Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 17th, 2003, 10:47 PM
Authorized User
 
Join Date: Aug 2003
Location: Nicholasville, KY, USA.
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
Reply With Quote
  #2 (permalink)  
Old September 18th, 2003, 03:40 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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
Reply With Quote
  #3 (permalink)  
Old September 18th, 2003, 02:40 PM
Authorized User
 
Join Date: Aug 2003
Location: Nicholasville, KY, USA.
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
Reply With Quote
  #4 (permalink)  
Old September 23rd, 2003, 10:37 AM
Registered User
 
Join Date: Sep 2003
Location: , , .
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


Reply With Quote
  #5 (permalink)  
Old September 22nd, 2004, 01:24 AM
Registered User
 
Join Date: Aug 2004
Location: BANGALORE, Karnataka, India.
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

Reply With Quote
  #6 (permalink)  
Old September 22nd, 2004, 05:09 AM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
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.
======================================
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10:31 AM
how to control the layout with VB web apps hexOffender VB How-To 1 July 19th, 2006 06: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 03:15 PM
C# Web Apps & Databases enewmen BOOK: Beginning ASP.NET 1.0 2 June 6th, 2003 04:43 PM



All times are GMT -4. The time now is 05:24 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.