CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004

    JavaScript on Form Action

    I have a form that works when the form action is set to

     form action="login/login.php"
    That works find it displays the error if the details are missing/incorrect and displays the correct page if the correct details are used.

    But as soon as I change it to this

     form action="javascript:ajaxpage('login/login.php', 'mainarea');"
    It don't work fully it only displays the first error message it hits.

    mainarea is a container that holds all the data, the site is AJAX but this seems to be a JavaScript error.

  2. #2
    Join Date
    May 2004
    MN / NJ, United States

    Re: JavaScript on Form Action

    Copied to AJAX ... I'm not sure exactly how to resolve this.
    *9-11-01* Never Forget; Never Forgive; Never Relent!
    "If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan

  3. #3
    PeejAvery's Avatar
    PeejAvery is offline Super Moderator Power Poster
    Join Date
    May 2002

    Re: JavaScript on Form Action

    If it is firing a JavaScript error, then the PHP page probably calls some JavaScript based on results. You should double check that. You can also post the PHP source to help with some clarification.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.