User Profile

Collapse

Profile Sidebar

Collapse
Nalum
Nalum
Last Activity: Mar 4 '08, 03:06 PM
Joined: Jan 21 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Nalum
    replied to form.submit()
    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...
    See more | Go to post

    Leave a comment:


  • Nalum
    replied to form.submit()
    Hi, the destination value does get set. it all works fine except the form.submit(); part of the javascript.
    See more | Go to post

    Leave a comment:


  • Hi Pravinnweb
    Thats not a bug.
    The browser does that to show that the button has focus....
    See more | Go to post

    Leave a comment:


  • Nalum
    replied to form.submit()
    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"...
    See more | Go to post

    Leave a comment:


  • Nalum
    started a topic form.submit()

    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( )...
    See more | Go to post
No activity results to display
Show More
Working...