This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Update frame by script
#3
The second call returned 1 and this is the result from call 1, but the frame didn't update:
Code:
$('.graph').find('iframe').attr('src', 'http://192.168.0.101/Tag1')  
{…}
0: <iframe border="0" src="http://192.168.0.101/Tag1" width="1045" height="431" frameborder="0">
context: HTMLDocument http://192.168.0.130/scada-vis/#6
length: 1
prevObject: {…}
 0: <div class="item graph item-iframe" style="top: 336px; left: 0px; z-index: 10; width: 1045px; height: 431px;">
 context: HTMLDocument http://192.168.0.130/scada-vis/#6
 length: 1
 prevObject: Object { 0: HTMLDocument http://192.168.0.130/scada-vis/#6, context: HTMLDocument http://192.168.0.130/scada-vis/#6, length: 1 }
 selector: ".graph"
 __proto__: Object { jquery: "2.2.4", constructor: G(), length: 0, … }
 selector: ".graph iframe"
__proto__: Object { jquery: "2.2.4", constructor: G(), length: 0, … }

Well now it worked again after a while, but I didn't change anything.
I just wanted to check if the script is correct, maybe it's a browser problem. If I discover why it didn't work I'll post it. Thank you anway.
Reply


Messages In This Thread
Update frame by script - by winamp - 18.04.2018, 07:54
RE: Update frame by script - by admin - 18.04.2018, 08:18
RE: Update frame by script - by winamp - 18.04.2018, 08:46
RE: Update frame by script - by admin - 18.04.2018, 09:46
RE: Update frame by script - by winamp - 18.04.2018, 11:09
RE: Update frame by script - by admin - 18.04.2018, 11:13

Forum Jump: