Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
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
 
Old September 17th, 2003, 09:47 PM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old September 18th, 2003, 02:40 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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
 
Old September 18th, 2003, 01:40 PM
Authorized User
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old September 23rd, 2003, 09:37 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


 
Old September 22nd, 2004, 12:24 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sri_gangumalla
Default

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

 
Old September 22nd, 2004, 04:09 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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.
======================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginning C# Web Apps - Where's the Source Code??? nebulus All Other Wrox Books 3 April 6th, 2009 09:31 AM
how to control the layout with VB web apps hexOffender VB How-To 1 July 19th, 2006 05:27 PM
C# Web Apps & Databases enewmen All Other Wrox Books 2 November 25th, 2003 02:50 PM
Beg C# Web Apps w/ VS.Net, p. 86 nellster All Other Wrox Books 0 July 14th, 2003 02:15 PM
C# Web Apps & Databases enewmen BOOK: Beginning ASP.NET 1.0 2 June 6th, 2003 03:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.