Sub-pages should open in an Inline Frame
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
Yes you're right - I just thought as long as they find the nav they can make their own way but its not right to do that.
I'm having a slight problem so I may return when I have more time.
Does the following code need to be modified?
I'm having a slight problem so I may return when I have more time.
Does the following code need to be modified?
Code: Select all
onLoad = "self.IFrameName.location.href = file"
Yes.Patr100 wrote:Does the following code need to be modified?
Code: Select all
onLoad = "self.IFrameName.location.href = file"
IFrameName should be changed to the name of your Inline Frame.
Kees,
Small request to you.
Is it possible to add a variable to the javascript that can be a trigger for a javascript in the index page?
crude example of what i'm looking for
-put a variable called var sd on sub_1.html
-have it display in an editbox with document.getElementById(Editbox1).value =sd;
This to execute a javascript function on index page
Hans
Small request to you.
Is it possible to add a variable to the javascript that can be a trigger for a javascript in the index page?
crude example of what i'm looking for
-put a variable called var sd on sub_1.html
-have it display in an editbox with document.getElementById(Editbox1).value =sd;
This to execute a javascript function on index page
Hans
The inserted code at step 3a should be:
Code: Select all
<script type="text/javascript">
if (top != self) top.location = self.location;
var file = location.search ? unescape(location.search.substring(1)) : "./Velkommen/Velkommen.php";
</script>
-
-
- Posts: 43
- Joined: Mon Aug 19, 2013 8:39 am
- Location: Darling River
Re: Sub-pages should open in an Inline Frame
Not sure if I am missing something here, but all this can be done using the standard options provided by Web Builder, No!
WYSIWYG THE GREATEST Web Builder EVER
Re: Sub-pages should open in an Inline Frame
Please note that this topic is more than 5 years old. 'Kees' is no longer active on this forum.
However the script still works.
However the script still works.
Re: Sub-pages should open in an Inline Frame
I came up with this little piece of code that may help anyone interested.
<script>
// Get where the user came from
referrer = document.referrer.toLocaleLowerCase(); //new URL(document.referrer).hostname;
// If it isn't onlinewatersports...
if (referrer.indexOf("onlinewatersports")==-1)
{
// send them to the main website page
window.location="http://www.onlinewatersports.com";
}
}
</script>
It simply captures where the user browsed from. In this case...was it onlinewatersports? if it wasn't...it redirects them to the main page. I modified the code to post here so consider this untested.
<script>
// Get where the user came from
referrer = document.referrer.toLocaleLowerCase(); //new URL(document.referrer).hostname;
// If it isn't onlinewatersports...
if (referrer.indexOf("onlinewatersports")==-1)
{
// send them to the main website page
window.location="http://www.onlinewatersports.com";
}
}
</script>
It simply captures where the user browsed from. In this case...was it onlinewatersports? if it wasn't...it redirects them to the main page. I modified the code to post here so consider this untested.
Mark
SkinnysWebworks.com
SkinnysWebworks.com