stombaugh Posted November 16, 2008 Share Posted November 16, 2008 Hi, I'm trying to setup a website and Load a seperate URL in a frame. But when I log in to the site it loads to the main page. then it looks like it refreshes to that URL completely bypassing my entire site. How can I stop it from doing that? URL: http://www.mwmcalcs.tk Link to comment https://forums.phpfreaks.com/topic/132912-frame-problem/ Share on other sites More sharing options...
dropfaith Posted November 16, 2008 Share Posted November 16, 2008 sounds more like you want an iframe to load content from another page i didnt look at your code but frames are for cutting pages from your own server into the page(bad idea for seo reasons and old code) iframes will take other pages and load them in (also bad for seo but at least are recent code and sometimes unaviodable. but yea use iframes Link to comment https://forums.phpfreaks.com/topic/132912-frame-problem/#findComment-691468 Share on other sites More sharing options...
eyaleyal Posted November 19, 2008 Share Posted November 19, 2008 i would suggest use ajax instead you can download the jquery library and write something like that: <script src="jquery.js"></script> <script> $(document).ready(function() { $("#mydiv).load("url_path_here.php"); }); </script> <div id="mydiv"></div> that way the content would be loaded into mydiv Link to comment https://forums.phpfreaks.com/topic/132912-frame-problem/#findComment-693270 Share on other sites More sharing options...
BoltZ Posted November 19, 2008 Share Posted November 19, 2008 WHew I haven't learned ajax through jquery but oh boy thats like 10 times shorter then writing typical ajax. WoW Link to comment https://forums.phpfreaks.com/topic/132912-frame-problem/#findComment-693814 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.