Querystring Info Sending
Author
Discussion

schueymcfee

Original Poster:

1,577 posts

289 months

Friday 30th July 2004
quotequote all
In an ASP page I need to do two things.

Send some info to a page that will update my DB and also I need to send some info via a querystring URL without leaving my current ASP page.

My mind has gone blank!

Or in other words how can I send info off to a URL without leaving my current page.

>>> Edited by schueymcfee on Friday 30th July 12:31

Don

28,378 posts

308 months

Friday 30th July 2004
quotequote all
schueymcfee said:

Or in other words how can I send info off to a URL without leaving my current page.


We use an Applet to do this...

Ours is our very own middleware and has client and server components to allow database access (and other stuff) from JavaScript on the client side.

Basically you write an applet that pretends to be a browser and communicates with your back end ASP as if it was a web page. Then you embed the applet in your web page and make it scriptable with JavaScript. That way you can communicate as many times as you like with your back-end web server without ever turning around the web page the user is on.

Writing one is quite an investment but its really worth it.

I'm sure the .NET guys will cringe at the very thought but there you go...

schueymcfee

Original Poster:

1,577 posts

289 months

Friday 30th July 2004
quotequote all
Or I need a way of sending one form to two different URL's with only one URL being displayed.

KITT

5,345 posts

265 months

Friday 30th July 2004
quotequote all
Could you not post the data to the same page but with a flag set so the page knows it needs to update the DB?

schueymcfee

Original Poster:

1,577 posts

289 months

Friday 30th July 2004
quotequote all
KITT said:
Could you not post the data to the same page but with a flag set so the page knows it needs to update the DB?



Mmmm you might be onto something here.

Thanks.

schueymcfee

Original Poster:

1,577 posts

289 months

Friday 30th July 2004
quotequote all
Don said:

schueymcfee said:

Or in other words how can I send info off to a URL without leaving my current page.



We use an Applet to do this...

Ours is our very own middleware and has client and server components to allow database access (and other stuff) from JavaScript on the client side.

Basically you write an applet that pretends to be a browser and communicates with your back end ASP as if it was a web page. Then you embed the applet in your web page and make it scriptable with JavaScript. That way you can communicate as many times as you like with your back-end web server without ever turning around the web page the user is on.

Writing one is quite an investment but its really worth it.

I'm sure the .NET guys will cringe at the very thought but there you go...



To be honest Don it's a lot of work just for a simple redirect to an affiliate. I'd rather just have a submit button.

But thanks

anonymous-user

78 months

Friday 30th July 2004
quotequote all
The form that you're posting to that updates the database can use the WinHttp or XmlHttp COM objects to make an HTTP request to the third script.

gopher

5,160 posts

283 months

Saturday 31st July 2004
quotequote all
Why not post to the page to the page which does the DB update - which displays nothing, or a "please wait" message and once the update is complete redirect to the next web page.

Or open a child window which does the db update and then closes itself and then the main page re-directs.

Might not be suitable for your purposes but may work.

Cheers

Paul

lanciachris

3,357 posts

265 months

Monday 2nd August 2004
quotequote all
Sounds painful. Switch to .net and c#, server.execute, job done...