I want to have a form to select between English and Spanish on a site. Upon selecting a radio buton (I prefer to do this without a submit button - just select the radio button and move on), I want a cookie to be set for which selection has occured and then be taken to that page. On the return visit I'd like to check for this cookie and then be sent to the correct page if it exists. Anyone have any ideas? I've found a few cookie tutorials and things, but they invole a submit button or a manual page refresh after the selection.
I have a simple count-as-you click button form, and this is what I want to do with it:
Click the button (however many times) to get the sets of numerical data.Take those numbers into a cookie, and be able to add/subtract to each number as i use the form again; and update the cookie. I need a way to be able to do this multiple if not an infinite number of times!
I'm trying using this good example [URL] but I need to use it with more than 1 parameter. What I'm trying to do is a form with two fields (i.e. Name and city) who feed a query. The results of the query should be shown below the form.
i.e.: Enter name and city in the follow form...
SELECT * FROM partecipants WHERE name=name AD city=city
All I need is a MySQL update by pressing the submit button. The user sould't get on the php site by pressing the Submitbutton and when it's possible there should't be a page refresh by pressing the submit button.
The jquery.form.js plugin also didn't work that way.
[URL]. I looked at this script and I tried playing around with it but could not figure out how to: Instead of having a check box field and then a radio box field, have 2 radio box fields, so the user picks from one group of radio boxes and then another. Then change the math behind it so the values in the first field are multiplied by 100 and then the values in the second field tack on a percentage (ex value in first field is 1.5 so 1.5x100 = 150 and value in second field is .5 so total is 225).
I'd want that: at the first user's click on the #register div, the div #registerForm become visible, it should remains visible also when the user click the submit button within and it should disappear if the user click a second time on the #register.I partially solved my problems with this:
I have a cgi script provided by my web host to send the contents of the form through email but they only show me how to use the cgi script to send email through the submit event of the form.
I'm trying to use the cookie plugin to remember the state of a navigation menu from page to page. Here is the snippet of code from towards the top of my page where I am including the jquery files and cookie plugin. The second part of the sample tries to determine whether the cookie exists.
when i load page it does nothing only blank page, may have code in wrong place but not sure so can someone show me a working example so i can find out what i'm doing wrong also i would like the part of page to refresh evey 120 seconds is this possibe with jquery?
I'm trying to create a simple checkout system that utilizes cookies to pass information from page to page. Currently, my entire script works fine except for the read cookie portion. I cannot figure out what is wrong with it. It has been validated and the syntax is fine; it just doesn't work. I use the function with the onload call on my html file such as:
Basically I have a form where the user enters their info (name, last name, email) then clicks the add button to store their info into an array that I made. Then, the user can enter say... "Bill" in the first name field, click the search button, and in the text box, all results with bill will show up.
What I need to do is instead of the information being stored in the array when the user clicks add, is to store it as a cookie with a comma separated string like this: "lastname,firstname,emailid"
Then when the users clicks the search button, the info is retrieved from a cookie, not the array.
I have this in a FORM tag: OnSubmit="return SendForm(this);
to save the content of the form in a cookie. But I need to save it a on windows print, where I reload the form with a css for print. Therefore the form must be filled in again from the cookie. But how do I save the form without submitting ?
I retrieve the saved data with: onLoad="OldForm(document.forms(0));
I want to save the form value for a persons USERNAME in a cookie when they are logging into my free e-mail service. So when they come back I can lookup the cookie and write the value for their username back into that spot in the form.
I've got it working for the drop-down menu so that it will change to whatever domain they selected the last time they logged in but I can't get it to work for the username box.
Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...
That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.
I have a Cisco ASA that I use as a proxy server as such. I have a internal site that it will not pass credentials to so I was looking for a way to do that. Not being a site developer the only way I can come up with is to maybe pass it by using a cookie to store the password and ID. Below is the code I am trying to use. I can create the cookie with the code below but it will not change the PATH or the Domain for some reason. Also I do not think it is reading from the cookie not sure why. Basically I need it to set the cookie with the user info and then grab the info from the cookie to auto log the user in to the internal site.
I have been working on this script to save and then restore form values from a cookie. It works fine in both IE and Firefox, but does not work in Netscape. I get an error that says "error: testform is not defined". And, although Firefox saves and restores the values fine, I do get a warning "Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.". Perhaps that is a clue.