This topic is locked

YAHOO.namespace

7/9/2014 5:57:57 AM
PHPRunner General questions
W
wpl author

Hello listers,
I just wanted to port a small code fragment from PHPRunner 6.2 to 7.1, latest build. In the JS onLoad event I used something like:



YAHOO.namespace("deleteDetails.container");


and this stopped working in 7.1. JS console says: "YAHOO is not defined".
Any ideas hwo to solve this issue?
Thanks

Admin 7/9/2014

You can try this:

Runner.Y.namespace("deleteDetails.container");
W
wpl author 7/9/2014



You can try this:

Runner.Y.namespace("deleteDetails.container");



Sergey,
thanks for helping. Does this mean that "YAHOO." has to be replaced always with "Runner.Y."?
Because



YAHOO.deleteDetails.container.deleteQuestion = new YAHOO.widget.Panel("deleteQuestion", { width:"380px", fixedcenter: true, modal:true,visible:false, draggable:true, close:true, constraintoviewport:true } );


after creating the namespace will not work. It looks like Runner 6.2 has been using yui2, whereas 7.1 is using yui3. Needs the yui dialog recoding for yui3 or is yui2 kind of "hidden" behind Runner.Y.?
Thanks again

regards

Admin 7/10/2014

Yes, YAHOO needs to be replace with Runner.Y

W
wpl author 7/11/2014



Sergey,
thanks for helping. Does this mean that "YAHOO." has to be replaced always with "Runner.Y."?
Because



YAHOO.deleteDetails.container.deleteQuestion = new YAHOO.widget.Panel("deleteQuestion", { width:"380px", fixedcenter: true, modal:true,visible:false, draggable:true, close:true, constraintoviewport:true } );


after creating the namespace will not work. It looks like Runner 6.2 has been using yui2, whereas 7.1 is using yui3. Needs the yui dialog recoding for yui3 or is yui2 kind of "hidden" behind Runner.Y.?
Thanks again

regards


Sergey,
thanks. I will give it a try.
Regards