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
    Posts
    23

    JavaScript on Form Action

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

    Code:
     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

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

    Notes:
    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
    Location
    MN / NJ, United States
    Posts
    768

    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
    Join Date
    May 2002
    Posts
    10,943

    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
  •  





Click Here to Expand Forum to Full Width

Featured