unfortunately no I don't have a host.
I've put in alerts to the script
[code=javascript]
var response = transport.respo nseText || '';
alert("We have a response");
dest.value = response;
alert("destinat ion has it's value"); // It seems to stop here
form.submit();
alert("Form should now have submitted");
[/code]
I'm gonna try doing this...
User Profile
Collapse
-
Hi, the destination value does get set. it all works fine except the form.submit(); part of the javascript.Leave a comment:
-
Hi Pravinnweb
Thats not a bug.
The browser does that to show that the button has focus....Leave a comment:
-
Here is a stripped down version of the form
[HTML]
<form id="hotel_searc h" name="hotel_sea rch" action="searchr esults.php" method="post" onsubmit="retur n validateSearch( );">
<input type="hidden" id="destination " name="destinati on" value="" />
<input type="text" id="destination Name"...Leave a comment:
-
form.submit()
Hello all,
I've had a look around but couldn't find an answer to my question.
I'm trying to submit a form using the javascript .submit() function but it doesn't seem to want to work. I'm using Ajax to get a value from a database and put it into a hidden field called destination and then want to submit the form.
Here is my code. The function is called by a button input.
[CODE=javascript]function getDestination( )...
No activity results to display
Show More
Leave a comment: