View Full Version : Ajax 'Submit' in DIV??

02-12-2007, 02:25 PM

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.


02-12-2007, 11:15 PM
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:

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