close aspx and return to html that posted to it

nuritat
nuritat used Ask the Experts™
on
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!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Jamie McAllisterCloud Expert
Most Valuable Expert 2013
Top Expert 2014

Commented:

Author

Commented:
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
Jamie McAllisterCloud Expert
Most Valuable Expert 2013
Top Expert 2014

Commented:
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...

Author

Commented:
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...
Cloud Expert
Most Valuable Expert 2013
Top Expert 2014
Commented:
There's no return from the back function. No url to append a querystring to. No callback function.

The only thing you have is the index you can pass into the history Go method;

history.go(-1)

Off the wall suggestion, but post via another page like this;

Original Page -> Error Page -> iPad page.

If successful do history.go(-2) to go to original page (meaning success) or if not do history.go(-1) to go to error page.

Odd suggestion I know, but it's all you have to work with...

Author

Commented:
sounds interesting..
I'll try that

Author

Commented:
it seems that there's no solution for my question
Jamie McAllisterCloud Expert
Most Valuable Expert 2013
Top Expert 2014

Commented:
Well, we tried. Even just documenting what was tried here might help others...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial