[mapguide-users] Javascript access
Greenhough, Jamie
JamieGreenhough at sierrasystems.com
Thu Oct 2 16:50:09 EDT 2008
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/cb95707e/attachment.html
More information about the mapguide-users
mailing list