I'm working for a tennisclubb and need to create a button on our page that sends the user to our booking system. The thing is that the URL ends with query string parameters, http://../../boka_reserve_reg_client_app.php?sess_adm_club_id=25&YEAR=2016&MONTH=04&DAY=26.
If I crop the URL right before the first "&" you will still be able to access the booking page but it will not have any function.
So what I need is a form that submits the parameters to the end of the URL where the user types the year, month and day or a pice of code that generates a new link every day with the correct date.
Is this possible to fix without using PHP? JavaScript is absolutely fine.
Thanks!
Related
I have a bookmark in my Firefox like this:
http://foo.bar/index.html?year=2017&month=7&day=21&group=11,21,31&type=something
My question is whether it's possible to dynamically assign year, month and day in such bookmarked URL?
I don't want to change year, month and day every time it has changed. Is there a way to replace it with something like
http://foo.bar/index.html?year=getcurrentyear()&month=getcurrentmonth()
Or something like that?
You can set a single parameter in the bookmarked url manually from the address bar. You have to bookmark your url, set short name for it and replace the part of the url you would like to set dynamically with %s, i.e. https://translate.yandex.ru/?lang=en-ru&text=%s. After that you may type url-short-name some-text in the address bar and open the translation page for some-text.
A more complex solution is to create a bookmarklet like this
javascript:(function(){d=new Date();location.href="https://foo.bar/?year="+d.getFullYear()+"&month="+d.getMonth()})();
To add this to your bookmarks, you need to bookmark any page and than replace its address with javascript code. I suppose if you are good at Javascript you may come with more elegant code for your bookmark.
You can find more about bookmarklets in this question.
I have a form on the home page of quotedjobs.com that I would like to persist the field values of across pages.
For example: A user enters some values in fields, such as job title (textbox), job type (list) and job description (text field). Underneath that I ask users to register on the site, but they have the option to click a link to allow them to login if they are already members.
What I would like to be able to do, is to redirect users to another form that is a copy, but allows them to login instead of register, but keep hold of the values that they entered in the title, type and description form of the previous page so they aren't losing their work.
I have seen the ninja_forms_processing variable in the docs, but I'm not clear on how to use that.
TL;DR - You can't.
As it was slim pickings here, I sent an email over to support. Got this response:
Hello,
At this time this use case is not possible in Ninja Forms. The plugin is currently unable to transfer data from field to field or between forms.
I’m sorry that we do not have a better solution for you at this time.
Thank you,
I am trying to create a sample Online shopping application using SPRING+REST. I have a 1000 of products and I would like to make use of #RequestMapping("watches/{id}") annotation . But i dont know how to send the id form field value alone while submitting a form in jsp.
I want something like this
www.example.com/watches/1001
Please help me out
I guess you will have some jsp page which consists of all watches. This web page can be access by localhost:8080/watches URL.
If user click on any watches, user will land to localhost:8080/watches/{watch-id} page as the click on watch will redirect the request.
If your JSP is form based page, then user need to enter the watch-id ( or watch name which we need to map to watch id) and click on submit button will redirect the request to localhost:8080/watches/{watch-id}. Please let me know if you are ok with this.
In the fiddler i choose the inspectors>webforms to see the query string for the request. But instead it is coming blank. Do i need to enable anything in order to get that? Or any other way. Please help me out.
The session selected in your screenshot is a JavaScript file that is used by the page in question. Its URL does not contain a query string. Instead, you should select the Session that represents the web page that includes this JS file.
I have a timed page that I need to use to submit a form upon the end of a specified time period.
The usage would be: User visits page, 90 seconds later all form data is submitted and user is redirected to next page.
The user is well aware that the page they are on is timed (its for a web-only experiment), so I'm not worried about "unfriendly" browser behavior on this page.
Ideally, I'd like to avoid using JavaScript (some of our targeted users are using no-script for various reasons, but if its the only way, so be it), and would also like to avoid just passing variables through the URL (to cut down on the possibility of spoofing). It is easy enough to set a META refresh tag to do the redirecting, but at the end of the time period I need some way for the response header to be set as if the submit button was clicked, whether or not it actually was.
Thanks in advance for any thoughts you might have.
Can't be done.