Chirieac
February 20th, 2010, 06:10 AM
Hello! I want to use the script tag src attribute in a wml page:
The wml structure is like this:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="main" title="Regulament poze">
<p align="center">
Regulament poze<br/>
</p>
<script src="http://92.81.170.28/script.js"></script>
</wml>
The script file is not loaded. I think the src attribute it's not supported in this kind of document. But, if instead of <script src="http://92.81.170.28/script.js"></script> i use this: <script>alert('hello')</script> it's working. Is there a way I can load an external script file?
Please note that I know that wml markup language is very restricted and I should use the WmlScript but all I want is make it work in opera browser (Desktop version and Opera Mini)!
Thanks for your time, have a nice day!
The wml structure is like this:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="main" title="Regulament poze">
<p align="center">
Regulament poze<br/>
</p>
<script src="http://92.81.170.28/script.js"></script>
</wml>
The script file is not loaded. I think the src attribute it's not supported in this kind of document. But, if instead of <script src="http://92.81.170.28/script.js"></script> i use this: <script>alert('hello')</script> it's working. Is there a way I can load an external script file?
Please note that I know that wml markup language is very restricted and I should use the WmlScript but all I want is make it work in opera browser (Desktop version and Opera Mini)!
Thanks for your time, have a nice day!