Forum  General Visual ...  How do I...?  scripts in htmlbox
Previous Previous
 
Next Next
New Post 4/13/2009 9:14 AM
  Ismael
5 posts
No Ranking


scripts in htmlbox 

Hello,
I have an issue executing scripts from a page loaded in a htmlbox.
It works fine in IE 7.0 and 8.0 but it does not in Mozilla 3.0.7.
This is a link to the site where you can check that behavior:

http://www.trandatatech.com/test

This is the code i'm executing:
buttonMap: this.InvokeMethodWithId("window.frames[0].window.addLongMarkers", markersInfo); 
buttonClear: this.InvokeMethodWithId("window.frames[0].window.clear_Overlays");

It looks like the iframes are created different in mozilla than in IE.
Is there any way to overcome this?

Thanks,
Ismael

 
New Post 4/19/2009 3:42 AM
  ori.cohen
4383 posts
1st Level Poster




Re: scripts in htmlbox 

Hello Ismael,

Please try:
window.frames[0].document

Please reply if you need any further assistance on the subject.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 5/21/2009 10:24 AM
  dmcgrail
140 posts
5th Level Poster


Re: scripts in htmlbox 

Ori and Palli,

I cant get this to work with either

this.InvokeMethodWithId("window.frames[0].window.MyFunction"); 

this.InvokeMethodWithId("window.frames[0].document.MyFunction"); 

It seems neither .document or .window is correct. I have the obscurring turned off but no luck. I see in other forum posts you refer to "Searching the DOM for your function", can you show a sample of such code.

Thx

 
New Post 5/25/2009 4:26 AM
  ori.cohen
4383 posts
1st Level Poster




Re: scripts in htmlbox 

Hello Dan,

Please view this sample application here.
If the link is broken, you would be able to find this application in this issue here by search for thread "23593".

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 6/3/2009 11:58 AM
  dmcgrail
140 posts
5th Level Poster


Re: scripts in htmlbox 

Ori,

The only files in the ZIP are 1.html, 2.html and 3.html. Am I missing something?

 
Previous Previous
 
Next Next
  Forum  General Visual ...  How do I...?  scripts in htmlbox
CompanionKit Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS