> when u click on submit after inserting your user and pass it pushes
those values to iframe and asp query the db and returns a code if it is
ok then whe whole page redirect to a url if not an error code is showed
on the page
how do I do this? I am really confused?!?!
I am assuming you can create most of the code yourself and just need to
be pointed in the right direction... if not please reply as such. Also
note that this is far from being the only way to do this.
In the document loaded by the iframe create a form with a hidden field
for each field the user fills out. Set the onsubmit handler of the
user-visible form to grab each value and copy its value into the iframe
form, then call submit() on the form in the iframe. The ASP script can
then take errors and turn them into javascript variables in the
resulting page loaded into the iframe, along with an onload handler
that calls whatever function on the main page that will handle errors,
passing the error(s) as arguments.
Apple has a tutorial on doing pretty much what you are asking for at
http://developer.apple.com/internet/...nt/iframe.html
You may also want to try using AJAX to do the same thing, the most
useful tutorial for such I have seen being
http://jibbering.com/2002/4/httprequest.html
Hope this helps you.