Results 1 to 2 of 2

Thread: Ajax 'Submit' in DIV??

  1. #1
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax 'Submit' in DIV??

    Hello,

    i need help with following problem:

    I use the Dynamic Ajax Content Script from http://dynamicdrive.com/dynamicindex17/ajaxcontent.htm. It works fine. So i fill out my via Ajax called Login Page and hit 'Submit' - Problem: the following Page opens in a 'Top' or 'New' Target.

    How i can solve that Problem?

    Thanks to all.

    Mike

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Technically speaking, 'top' would be in the same window, overwriting the top level page in the window. I think that is what is happening because with Ajax, there is usually only the one page. If it were 'new' that generally means in a new window. If you wanted it to open in the content division, that might be able to be done if your form's method is get (the default) by using the form's onsubmit attribute and targeting the login page to the content division. Something like:

    Code:
    <form action="loginpage's URL" onsubmit="ajaxpage(this.action+whatever parameters the form is passing if any, 'contentarea');return false;">
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

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