 |
| Javascript How-To Ask your "How do I do this with Javascript?" questions here. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 17th, 2003, 09:47 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Passing Variables between Web Apps
I have several html-based eBook applications that include links to my remote site.
When a customer decides to purchase an eBook, they are directed to a purchase page that is part of the eBook - it is an HTML based form located within the eBook itself that includes a link to the purchase page of the remote site.
To date, the only means of transferring information from the eBook page to the purchase page of the remote site is to have the customer manually enter all of the information from the eBook into the form from the remote site, wait for a response, and then type the response back into the eBook page.
To make this process invisible, I would like to pass variables from the form page of the eBook into the matching fields of a page on the remote site.
Once the processing is complete, I would like the remote server site to pass the necessary information back to the page of the eBook.
I know I can pass variables between pages when the pages are from the same domain. Is this possible, however, in the above scenario?
I'm familiar with creating and using ASP and JavaScript.
Thank you
|
|

September 18th, 2003, 02:40 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
Yes it's feasible, you can just post the values. There are no doamin restrictions, these only normally apply client to client, i.e. reading data from a page displaed in a frame from another page in the frameset from a different domain, not client to server
--
Joe
|
|

September 18th, 2003, 01:40 PM
|
|
Authorized User
|
|
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks, Joe,
I'll do some trial runs and see how it all plays out. Thanks for the clarification. I had assumed that due to it's independance from the server, the page produced from the eBook would adopt the host computer as its "server." Needless to say, as I think it all through, this is not the case.
Best regards,
TSEROOGY
TSEROOGY
|
|

September 23rd, 2003, 09:37 AM
|
|
Registered User
|
|
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi,
How can I solve the problems that come up when I want to tranfer a value from a child page to it's parent page where the parent and child reside on different domains ?
Thanks in advance
Rishi G
|
|

September 22nd, 2004, 12:24 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
hi,
i have a problem where a variable value has to passed to another
page. but that page is opened by window.open option
pls tell me how to pass the variable from parent to that child
from
srinivas
|
|

September 22nd, 2004, 04:09 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
srinivas,
You would be better off asking this as a new question as it is may not be as related as it looks.
But in the mean time check out this link below, it provides the ASP and JavaScript solution to you problem.
http://p2p.wrox.com/topic.asp?TOPIC_ID=11112
======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
|
|
 |