Jump to content

Recommended Posts

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

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.