Anyone knows how to call javascript function inside WOActionResult?

Hi,


I am new to webobjects and javascript. I have a AjaxUpdateLink action to change some value inside of an IFrame. I tried to put the IFrame into an AjaxUpdateContainer but seems not work.

Then I want to try

document.getElementById('iframe').contentWindow.document.getElementById('txt').v alue = 'test successful'

by put it in to

How can I trigger this or trigger the script inside WOActionResult java code.


Anyone can help? Many thanks

Mac OS X (10.6.5)

Posted on Dec 7, 2011 5:43 AM

Reply
2 replies

Dec 7, 2011 4:56 PM in response to Ted Petrosky

Hi Ted,


For the main component:

In the html:

<wo:AjaxUpdateContainerid="editform">

<webobjectname="content"/>

</wo:AjaxUpdateContainer>


<webobjectname="TagHpyerLink"></webobject>


In the wod:


TagHpyerLink : AjaxUpdateLink {


string = "change this";


action = change;


updateContainerID = "editform";

}


content : WOIFrame {

id = "iframe";

pageName = "Page";

height = "400px";

width = "1170px";


the Page component:


html:

<div><webobjectname="pagestring"></webobject></div>

wod:

pagestring : WOString {

value = html;


escapeHTML = "false";

}


I want to change the value of pagestring by AjaxUpdateLink change action but do not know how to do pass that via Iframe


Thanks

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Anyone knows how to call javascript function inside WOActionResult?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.