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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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.