Link to home
Start Free TrialLog in
Avatar of nuritat
nuritatFlag for Israel

asked on

close aspx and return to html that posted to it

Hi

I have an html form that when submitted posts to an apsx.
the aspx contains vb elaboration only and when finished I'd like it to turn back to the html
the user should not notice of this move and it will be realy great if I could return a value of success yes/no

thanks!
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Avatar of nuritat

ASKER

sorry but this doesn't help me

the window.close closes the session at all and I can't use code except javascript in parent page which is a simple HTML.

I resolved the closing issue by doing:

javascript:history.back();

but how do I pass "success/not success" value to it??

thanks again
That's cool, but there's no way to send back a value with history.back()

If you could pass through your source page url as a querystring to the target page (or hardcode it if it'll always be the same - eeek) you'd be able to do this;

window.location.href="http://www.yourDom.com/yourPage.aspx?success=true";

with the url being extracted in JS from the page querystring...
Avatar of nuritat

ASKER

thanks, it could do the work nicly
but my html page is a part of an iPad project and has no url...

sorry for comlicating the problem
I assume that in this case there's no solution for me...
ASKER CERTIFIED SOLUTION
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nuritat

ASKER

sounds interesting..
I'll try that
Avatar of nuritat

ASKER

it seems that there's no solution for my question
Well, we tried. Even just documenting what was tried here might help others...