Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22916

Re: How to send javascript object from one page to another page?

From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: How to send javascript object from one page to another page?
Date 2014-01-31 18:52 +0000
Organization A noiseless patient Spider
Message-ID <lcgre1$53g$1@dont-email.me> (permalink)
References <b01c0438-6313-4a8c-b114-f15f49624be6@googlegroups.com>

Show all headers | View raw


On Thu, 30 Jan 2014 22:52:09 -0800, Girish Kaltippi wrote:

> Assume i have javascript object called "call" and i have stored some
> values in it and i want to access the same object "call" not values.
> This type of approach is it possible?
> 
> If yes plese explain with simple example.
> 
> I know there are several ways we can send the object properties values
> from one page to another page by using post url, header, cookies so on
> but my requirment to access the whole object instanse form one page to
> another page.
> 
> Anything in this regard highly appreciated. Thanks in advance.

When I needed to do this once, a long time ago, when i was coding a 
shopping cart application that was solely javascript in the client side, 
I solved this issue by using a frame, loading the pages I wanted to 
display into the frame, and keeping the shopping cart in the page that 
enclosed the frame.

This only works if the document inside the frame comes from the same 
domain as the parent document containing the frame, otherwise you hit a 
cross site scripting issue.

-- 
Denis McMahon, denismfmcmahon@gmail.com

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to send javascript object from one page to another page? Girish Kaltippi <girish.kaltippi@gmail.com> - 2014-01-30 22:52 -0800
  Re: How to send javascript object from one page to another page? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-31 12:06 +0100
  Re: How to send javascript object from one page to another page? JJ <duh@nah.meh> - 2014-01-31 22:53 +0700
  Re: How to send javascript object from one page to another page? Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-31 18:52 +0000

csiph-web