[英]WMLS file not detected when called
I have a wml and wmls file both in the same directory , I am using winwap to run my script. 我在同一个目录中都有一个wml和wmls文件,我正在使用winwap运行脚本。
in my wml file I call a function in the wmls file in the following fashion 在我的wml文件中,我以以下方式调用wmls文件中的函数
<a href="validateForm.wmls#validate()">Submit Form Data</a>
my wmls file named validateForm.wmls has the following function 我名为validateForm.wmls的wmls文件具有以下功能
extern function validate()
I keep getting this error that the file location of the wmls is not found 我不断收到此错误,即找不到wmls的文件位置
1) I have kept both the files in the same folder 2) in the declaration the file name seems correct 1)我将两个文件都保存在同一个文件夹中2)在声明中文件名似乎正确
I am unsure why this error occurs . 我不确定为什么会发生此错误。 Any help would be appreciated . 任何帮助,将不胜感激 。 THank ou 曼谷
Did you compile your WMLScript?, usually you should call it from the compiled version 您是否编译过WMLScript?通常应从编译后的版本中调用它
<a href="validateForm.wmls**c**#validate()">Submit Form Data</a>
Also if your device supports local storage and you downloaded the file locally, is usefull to specify the path (in devices running POSWEB, VERIWEB, and similar): 同样,如果您的设备支持本地存储并且您在本地下载了文件,则可用于指定路径(在运行POSWEB,VERIWEB等的设备中):
<a href="**f:**validateForm.wmls**c**#validate()">Submit Form Data</a>
If not, it may happen that the browser is loading the file from cache or another location. 否则,可能是浏览器正在从缓存或其他位置加载文件。
Hope it helps you, I had that issue long time ago. 希望对您有帮助,我很久以前就遇到过这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.