[mapguide-users] Javascript access

Mark Pendergraft markp at Meadgilman.com
Thu Oct 2 18:27:29 EDT 2008


Hmnnnnnn.  I can't seem to make the function GetFormFrame() to work
either.

However, top.viewerFrame.formFrame gives me the formFrame object.

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Greenhough,
Jamie
Sent: Thursday, October 02, 2008 1:50 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

I want to do something like this...

 

var formframe =
document.getElementById("viewerFrame").contentWindow.GetFormFrame();

formframe.Submit("../assetManage.aspx", null, "taskPaneFrame");

 

but I am getting Object Required error on first line.
.contentWindow.GetFormFrame() is the problem. I can locate/identify my
viewerFrame iframe object.

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 2:39 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

Could you post the javascript you have so far?

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Greenhough,
Jamie
Sent: Thursday, October 02, 2008 1:06 PM
To: MapGuide Users Mail List
Subject: [mapguide-users] Javascript access

 

I have 2 iframes on my page. 1 containing the mapguide mapviewer,
another iframe containing a page with additional feature details.

 

<body>

                <iframe name="viewerFrame">

                <iframe name="assetFrame">

</body>

 

I want to call the viewerFrame.formFrame.Submit() method. I am trying to
call it from Javascript located on a page in the assetFrame.

 

Can anyone tell me how to access the Submit() method in this scenario?

----Notice Regarding Confidentiality----
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you are
hereby notified that any dissemination, copying or other use of this
Email is prohibited. Please notify us of the error in communication by
return email and destroy all copies of this Email. Thank you.

----Notice Regarding Confidentiality----
This email, including any and all attachments, (this "Email") is
intended only for the party to whom it is addressed and may contain
information that is confidential or privileged. Sierra Systems Group
Inc. and its affiliates accept no responsibility for any loss or damage
suffered by any person resulting from any unauthorized use of or
reliance upon this Email. If you are not the intended recipient, you are
hereby notified that any dissemination, copying or other use of this
Email is prohibited. Please notify us of the error in communication by
return email and destroy all copies of this Email. Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20081002/e407a79e/attachment.html


More information about the mapguide-users mailing list