重新加载JavaScript方法时出现问题 [英] Problem reloading JavaScript Method

查看:125
本文介绍了重新加载JavaScript方法时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我目前正在开发一个新小工具,但遇到了卡住的情况.

我想启动一种方法,该方法每X分钟下载一次文件.问题是:小工具似乎正在重新加载数据,但是将要下载的值是相同的.因此,我的小工具上的标签不会更新.

功能:

我通过HTTPXmlRequest使用GET_Parameter启动远程文件,并读出了该文件.然后我将信息拆分并使用container.innerText = variable将其放在表单上.

获取信息的方法称为getInfo(),它是Javascript标记中的JavaScript.

我的HTML文件如下所示:

Hello,

i am currently working on a new gadget and i am getting stucked.

I want to launch a method, which downloads a file, every X Minute. The Problem is: The Gadget seems to reload the data, but the values which will be downloaded are the same. So the Labels on my Gadget wont update.

The function:

I launch a remote file via HTTPXmlRequest with a GET_Parameter and read out the file. Then i split the information and put it on my form using container.innerText = variable.

The method to get the information is called getInfo() and it is JavaScript in the Javascript Tag.

My HTML-File looks like:

代码块

推荐答案

我已经解决了这个问题.

我创建了一个随机参数,该参数已在GET-Statement中使用.

仍然感谢.
I have solved this problem.

I have created a random parameter which i have used in GET-Statement.

Thanks anyway.


这篇关于重新加载JavaScript方法时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆