oli22 Posted September 1, 2011 Share Posted September 1, 2011 i am instaling a complex video tube script' in a subfolder of main site and i made a section of this script appear on main index(root ) folder with an iframe. Recap->main index, my code, my site showing an iframe from subfolder tube script section. This iframe sometimes does not load, its as if it was not there. Is that due to connection speed? Is there a way to make sure it always loads?Or this this bad practice and bound to remain unstable? Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/ Share on other sites More sharing options...
cssfreakie Posted September 2, 2011 Share Posted September 2, 2011 I am pretty sure that if you post your code, or a link to an online example, you will get more responses. Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1264853 Share on other sites More sharing options...
oli22 Posted September 3, 2011 Author Share Posted September 3, 2011 OK see here is the < iframe> in the html: ... </div> <!--END container --> </div> <iframe src="http://www.mysite.com/searchEngine/" width="680px" height="205px" scrolling="no" frameborder="0" style="margin-left:10px;"> <p>Your browser does not support iframes.</p> </iframe> <!--START bottomContainer --> .... Sometimes it does not appear Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1264968 Share on other sites More sharing options...
cassey071 Posted September 8, 2011 Share Posted September 8, 2011 use a reset tools here's the link of cssreset http://meyerweb.com/eric/tools/css/reset/ Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1266666 Share on other sites More sharing options...
oli22 Posted September 8, 2011 Author Share Posted September 8, 2011 HOw the heck is the reset going to fix an iframe form appearing or not?Thats for css... Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1266996 Share on other sites More sharing options...
ZulfadlyAshBurn Posted September 8, 2011 Share Posted September 8, 2011 im not sure if this really works though but, hopefully it helps a little. <script> function ckframe() { var framesrc = document.getElementById('frame').src; var urlsrc = "http://www.mysite.com/searchEngine/"; if (framesrc != urlsrc) { framesrc = urlsrc; } } setInterval("ckframe()",1000); </script> <iframe id="frame" src="http://www.mysite.com/searchEngine/" width="680px" height="205px" scrolling="no" frameborder="0" style="margin-left:10px;"> <p>Your browser does not support iframes.</p> </iframe> Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1266998 Share on other sites More sharing options...
oli22 Posted September 8, 2011 Author Share Posted September 8, 2011 Thanks, what is the 1000 for? It refreshes? I was thinking of a 'onpageload ' Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1266999 Share on other sites More sharing options...
ZulfadlyAshBurn Posted September 8, 2011 Share Posted September 8, 2011 If you have learnt javascript you would know what it does. but still i would tell you how it works. <script> /* I created a function which would check if the frame src the same to which is your url. else it would change the frame src automatically */ function ckframe() { // define framesrc = the frame src var framesrc = document.getElementById('frame').src; // define the url var urlsrc = "http://www.mysite.com/searchEngine/"; // here is where it checks. if (framesrc != urlsrc) { framesrc = urlsrc; } } // make an interval every second to make sure that the src is correct. setInterval("ckframe()",1000); </script> <iframe id="frame" src="http://www.mysite.com/searchEngine/" width="680px" height="205px" scrolling="no" frameborder="0" style="margin-left:10px;"> <p>Your browser does not support iframes.</p> </iframe> Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1267002 Share on other sites More sharing options...
ZulfadlyAshBurn Posted September 8, 2011 Share Posted September 8, 2011 if i was you, i would just use php and incude the script... Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1267003 Share on other sites More sharing options...
oli22 Posted September 8, 2011 Author Share Posted September 8, 2011 Iframe is from a cms i intalled in a site subfolder, it cannot be accessed thru my index, so forget about includes The script is written with .tlp's its actually more complex than a regular cms and for the moment i don't have tech knowledge to for a better work around. Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1267004 Share on other sites More sharing options...
ZulfadlyAshBurn Posted September 8, 2011 Share Posted September 8, 2011 do you know what you are actually doing? the <iframe> tag defines an inline frame that contains another document. and what do you mean the subfolder cannot be access thru index? you mean its out of the public folder? and what is .tlp? what language is it written in? Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1267009 Share on other sites More sharing options...
oli22 Posted September 8, 2011 Author Share Posted September 8, 2011 Actually i am doing the best i can with what i know Sorry, it can be accessed with links from index to subfolder, but i cannot pull any sections/folders directly from the sub folder to root folder as it will not easily allow it. The script has a scrary amount of folders that interlink... .tlp : not quite sure,but script is written in php using .tpl extensions is for modular architecture in a script , a step up from a regular cms, kind of like joomla, i also seen .tlp's in phpmelody csm . Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1267016 Share on other sites More sharing options...
ZulfadlyAshBurn Posted September 8, 2011 Share Posted September 8, 2011 .tlp usually means template? not viewable by subfolder because you .htaccess or server config's directory listing is disable?! Quote Link to comment https://forums.phpfreaks.com/topic/246156-iframe-not-showing-sometimes/#findComment-1267018 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.