I am trying to invoke a method in a Custom widget from the main Webinterface on document-ready. I get the error "ReferenceError: sayHello is not defined"
More Details:
I have a customWidget(say CW1) which contains a JS widget (say JS1).
JS1 has only the following method.
function sayHello(){
alert("Hello");
}
In my webinterface(say WI1), I have included CW1 and a JS(say JS2).
JS2 is as follows.
try{
var $j = jQuery.noConflict();
$j(document).ready(function(){sayHello();});
}catch(err){
console.log(err);
}
If I have JS1 inside WI1 directly, there is no error and the alert is displayed.
Can you help me find out what the problem is?
Regards,
Sowmya
--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/f2608611-62ba-418c-965c-3d49dc6c5232%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Adding the JS id with the CW id solved it. Thanks for your timely response.
Regards,
Sowmya