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


Groups > comp.lang.javascript > #22900 > unrolled thread

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

Started byGirish Kaltippi <girish.kaltippi@gmail.com>
First post2014-01-30 22:52 -0800
Last post2014-01-31 18:52 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.lang.javascript


Contents

  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

#22900 — How to send javascript object from one page to another page?

FromGirish Kaltippi <girish.kaltippi@gmail.com>
Date2014-01-30 22:52 -0800
SubjectHow to send javascript object from one page to another page?
Message-ID<b01c0438-6313-4a8c-b114-f15f49624be6@googlegroups.com>
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.

[toc] | [next] | [standalone]


#22905

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2014-01-31 12:06 +0100
Message-ID<XnsA2C67B1BF74B3eejj99@194.109.133.133>
In reply to#22900
Girish Kaltippi <girish.kaltippi@gmail.com> wrote on 31 jan 2014 in
comp.lang.javascript: 

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

Well that is a nicely put question in your exam, then we should share in the 
honours. 

Especially the assuming bit makes this a clear examination Q, 
in this NG we are more into real world scripting problems.

> Anything in this regard highly appreciated.

I imagine so.

> Thanks in advance.

Indeed?

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#22909

FromJJ <duh@nah.meh>
Date2014-01-31 22:53 +0700
Message-ID<9zvh3qrhs0sd$.cbq782d68wf7$.dlg@40tude.net>
In reply to#22900
On Thu, 30 Jan 2014 22:52:09 -0800 (PST), 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.

Use AJAX to retrieve the new page, and replace the current page with it.
That should keep the object instances intact, details aside.
The new page should be able to access them.

[toc] | [prev] | [next] | [standalone]


#22916

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2014-01-31 18:52 +0000
Message-ID<lcgre1$53g$1@dont-email.me>
In reply to#22900
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web