Is it feasible to use ifarme for website background on a single page? Background iframe
Specifically
There is a set of background templates that do not want to be changed to nested iframe, but the problem is that the function address will change constantly, and every operation needs to refresh the entire page
In what ways can users experience better?
Reply to discussion (solution)
Ajax can satisfy you.
Ajax can satisfy you.
How to write it? I have never written it ....
$. Post ('URL', {data}, function (msg ){
// Process data
});
Open the jquery manual. Search for post.
What is the returned page?
Previously, only ajax was used to return a small amount of data.
What is the returned page?
Previously, only ajax was used to return a small amount of data.
Change it to the majority, and perform ajax for the entire body.
It's actually very easy!
Use jq to set the link.
$(function() { $('a').click(function(){ $('#test').load(this.href) return false; });});The test id is the position occupied by the original framework page (change to p of course)
It's actually very easy!
Use jq to set the link.
$(function() { $('a').click(function(){ $('#test').load(this.href) return false; });});The test id is the position occupied by the original framework page (change to p of course)
Discuz phpwind does not need iframe now
It's actually very easy!
Use jq to set the link.
$(function() { $('a').click(function(){ $('#test').load(this.href) return false; });});The test id is the position occupied by the original framework page (change to p of course)
Is p directly replaced with the content of this. href link? So how do I write the link content based on the original iframe content?
Yes, or based on the original content
Yes, or based on the original content
Well, let me try.
In this case, the address bar of the page will not change.
That is ajax, and will not affect the address bar.
That is ajax, and will not affect the address bar.
En, I will try again.