PDA

View Full Version : How I include a .txt or script file in javascript code (non html code) ?



leonidassavvides
10-26-2008, 08:46 PM
I want to build my own library of wmlscript functions, how do it ?
How include this library in an Application ?
And to call function I must use:
mylib.myfunction();
or
mylib#myfunction(); ?

How I include a .txt or script file in javascript code (non html code) ?
I reference methods of objects in such included files using myobject.mymethod(); ?

Nile
10-27-2008, 03:54 AM
Can you use proper grammar please, try running your text through Word. That should check grammar for you. I've got no clue what your trying to say.

leonidassavvides
10-27-2008, 05:16 AM
WML/WMLScript questions
I want to build my own library of wmlscript functions, how do it ?
How I include this library in a Mobile Application ?
And to call a function I must use:
mylib.myfunction();
or
mylib#myfunction(); ?
javascript questions
How I include a .txt or script file in javascript code (non in html code) ?
I reference methods of objects in such included files using myobject.mymethod(); ?
What if there are conflicts between objects/methods, between "script" and "included script" ?