开发者

issue while synchronising PHP (reading file) and Ajax (jquery ui slider)

I got an issue while trying to display a jquery UI slider with its range based on a values read with PHP from a text file. Its seems that it's a syncrhonising issue as I get the error: "An attempt was made to use an object that is not, or is no longer, usable" code: 11"

Is there a way I can force the jquery UI slider to wait for the value to be present or to work in synchrone mode ?

Thanks in advance开发者_运维知识库.


Where does the error comes from? Is it a javscript or php error? I guess it's javascript but you didn't really precise...

In your php script, you should read your text file first, build a string that contains the html/javascript code of the ui slider declaration with the right values, and once this is done output the string.

Thus when you browser reads the source, it will initialize your slider with the correct values.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜