[mapguide-users] Pass variables

Ivan Milicevic Ivan.Milicevic at supranet.hr
Fri Oct 12 19:01:15 EDT 2007


why don't you try put some values into hidden forms and then pass it via javascript to the other frame... just suggestion.

________________________________

From: mapguide-users-bounces at lists.osgeo.org on behalf of Mark Pendergraft
Sent: pet 12.10.2007 22:53
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Pass variables



A little bit.

I think I have solved this by putting some javascript code into my taskpane default page, which gets the url for the top frame (top.location.href)

Then I split it by the '?' character, and divide from there.

Of course, all this requires that the original page uses explicit paths to the pages being opened in the original 2 frames (took me a while to get that figured out).

 

Seems to work okay, but I'm definitely open to suggestions/hints.

 

 

-Mark Pendergraft

 

From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Ivan Milicevic
Sent: Friday, October 12, 2007 12:45 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Pass variables

 

Familiar with using ajax?

 

________________________________

From: mapguide-users-bounces at lists.osgeo.org on behalf of Mark Pendergraft
Sent: pet 12.10.2007 18:38
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Pass variables

Is there a way to pass variables from my default page (which creates two frames - titleFrame and viewerFrame) to the task page page?

 

I'm having trouble storing session variables when the map loads and retrieving them from the task pane afterwards.  It's as if the session variables are expiring due to the fact that a new frame has been created.  And seeing as mapguide opens a bunch of pages once it loads, I don't think it would be feasible to rewrite the viewer code just to continue passing along a few custom variables to the following pages.

 

 

cid:image001.jpg at 01C7185E.D0B84C40

Ph: (425) 486-1252  Fx: (425) 486-6108  www.meadgilman.com <http://www.meadgilman.com/> 

 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 6608 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20071013/1d950328/attachment.bin


More information about the mapguide-users mailing list