Thanks Mark.

I am able to access the object + method now.

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Pendergraft
Sent: Thursday, October 02, 2008 4:27 PM
To: MapGuide Users Mail List
Subject: RE: [mapguide-users] Javascript access

 

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

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

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to