Redirecting "main" Frame

Jul 23, 2005

Is there some way to redirect the "main" frame to another URL from within the "header" frame?

View 4 Replies


ADVERTISEMENT

Go Back History Button On Top Frame That Affects Main Frame?

Oct 15, 2001

Im trying to make a back button that reloads the previous page the user was at.
The back button will be on a small top frame and the page that needs to be controlled will be in the main frame.

The top frame is just a navigation system, and all pages will be loaded in the main frame.
Im trying to use this Code:

<FORM>
<INPUT TYPE="button"
NAME="back"
VALUE="BACK"
onClick="history.go(-1)">
</FORM>

Does anyone know how I could accoplish the desired result using this code, or any other code? And what about a foreward button?

View 2 Replies View Related

Open The Frame Inside The Main Frame

Jan 10, 2011

I have a little problem, I structure my site with a main page index.html with a frame in the central whit name CENTRALE, so every other page I will open within this frame. Now I need to have a direct link to these internal pages, give an example I wish it were possible to go to the page clothing giving a direct link to that section of the site type www.indirizzo.com / clothing.html because the state of things if I take the 'direct address to that page I open only the part inside of the frame, but I wish I would open inside the "main frame, there is a solution in javascrip to overcome this problem?

View 4 Replies View Related

Countdown To Page Refresh - Put A Short Page Of Copy On Each Address Along With Keywords Before Redirecting The User To Main Site

Aug 22, 2011

Our company own a lot of domains and want to put a short page of copy on each address along with keywords before redirecting the user to our main site. I have been able to get the page to load the main site after the desired time using this code in the head...

<META HTTP-EQUIV="refresh" CONTENT="40;URL=http://webaddress.com/">

That works perfectly, I am now trying to display a countdown timer from 40 seconds down to 0, and on 0 redirect the user. Saying something like "You will be redirected in XX seconds". Is there anyway of doing this? I've been searching google for the answers with no luck and can only seem to find timers that countdown to a set date.

View 13 Replies View Related

Thumbnail Link To Main Frame?

Oct 14, 2002

I have a site with 2 frames. The navigation frame is on the right side and the larger main frame is on the left. The navigation frame is nothing but a bunch of thumbnails that scroll when the mouse hovers over “up/down�. The links are the thumbnails. I hope you get the picture… a user would click on a thumbnail and go to a site. The problem is that I want the thumbnail to link to a site and open it in the frame on the left (the main frame.) The only options I have (through Dreamweaver) is _blank, _parent, _self, _top.

The script I think that might need to change is below. Can anyone help me and figure out what needs to be changed? Code:

View 7 Replies View Related

JQuery :: Use A Parent-frame - Objected To Make Child-frame AJAX?

Aug 26, 2011

I have a domain: example.com; which is the parent.And a subdomain: api.example.com; which page 'receiver.html' is being loaded in an iframe, child of parent. Both pages set document.domain = example.com.

I'm trying to adapt this code:[url] but Idon't want to load jQuery from the <iframe> again but I need to have the method $.ajax() working from the <iframe> otherwise it would be a cross-domain request and the browser would abort it. I tried ingenuously to set via $('iframe')[0].contentWindow.$.ajax = $.ajax() and I just got a shortcut to the parent page jQuery method. I also tried to "clone" it using $.expand (true...) but the method doesn't work for me; probably because of the complexity of the objected I'm trying to clone. So is there a way for me to use jQuery to have only a $.ajax() method in the <iframe> ? I've thought even about creating a XHR in the child-iframe and then use that in the $.ajaxSetup ({xhr: THATNEWXHR}) but I couldn't do it. I mean, I want to use the XHR factory from jQuery (which has fallbacks for IE, etc) but it has to be created from the iframe-child.

Maybe there is other way to make the AJAX call come from the child-iframe.

If you're wondering "why don't you load jQuery from <script> in the child-iframe", there is a reason... As I'm using jQuery plugins + my own custom javascripts + other independent scripts I created a compiler which minifies each file and bundle them in one. The advantage of this is the reduction of HTTP requests. So "why don't you load that bundle inside the child-iframe?", because it's ugly and Twitter doesn't... Yeah, I like to take Twitter as a reference and I think if they were able to make it so can I;

I got to work in most browsers except IE and Operaby doing it with pure javascript.

I'm "attaching" the code for you guys to test. If you open it with Chrome, Safari or Firefox you will receive 2 alerts one with the return of $.get() and another with the return of a request made via XMLHttpsRequest object. Otherwise (if you open it with IE or Opera) you'll get 'undefined' in the first alert but the real return in the second.

This is the example.com/index.htm:

View 4 Replies View Related

Click On 1 Of The 3 Frame Options The Frame Changes Showing A Preview?

Jul 20, 2010

I want to have a main image in place and when you click on 1 of the 3 frame options the frame changes showing a preview. Also I would like the add to cart button change its code to add the correct item as well.

View 2 Replies View Related

PASSING Data From One Frame To Another Frame In A Frameset

Aug 30, 2010

i need to pass the data in the textfields from the left frame to the textfields in the right frame of my frameset. (ex: dslnum of frame1 will be pass to txtDSLTN of frame2)[URL]

View 19 Replies View Related

Change Frame Url With Clicking Link In Another Frame

May 22, 2011

I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: click. How to do that? (I don't see any javascript code)

View 2 Replies View Related

Breaking Out Of Parent Frame If Child Frame Changes URL

Jul 19, 2006

I have a parent document that has a frameset with two frames in it. The first frame is a "header" that runs across the top of the site, and never changes. The second frame contains the "content" of the site. Essentially, I am trying to figure out how to prevent the header appearing above external sites when the user clicks an external link in the "content" frame.

Every time the content frame changes to a new URL, I would like the check that URL and determine if the content frame is changing to an external URL (i.e. different domain in URL) or to an internal link (same domain in URL). If the content is changing to an external link, I want to break out of the frame and just load that external link in the top most document.

I would like all of my javascript to be in the parent document, not spread throughout the individual pages of the site. I was trying to approach this by setting the onunload event handler of the content frame, but I am left with a couple of specific questions:
1. In handling an unload event, can you determine the next URL that the document is loading? Code:

View 6 Replies View Related

Redirecting?

Jul 23, 2005

What I want to achieve is to display a login screen in a certain size and
appearance window with no toolbars etc.

To achieve this I think I need to use redirection, but I am not sure how or
what is the best way?

The problem I am facing, that the user may get to the login page from
different pages, or simply from typing in the address of the login page.

In order to make the window appear as I like I need to pen a new one...?

View 7 Replies View Related

Redirecting

Jul 20, 2005

I am new to JavaScript and I have been sifting through the previous
posts about some specific help I need with a redirect problem. No luck
there! Could someone take a look and give me some suggestions. I could
really use some help.

What I am trying to accomplish is the following:

-grab the user bookmarked URL.
-strip some of the URL from the beginning
-pass what's leftover of the URL and append that to a new URL.
-i would then like to call this function in the body tag and pass it to onLoad

<HEAD>
<script>
var domain=window.location.href;
var domain2 = domain.substr(0,29);
document.write("https://hfdev1.test.com/rw"+domain2")

function test() {
document.location.href="https://hfdev1.test.com/rw"+domain2"
}
</script>
</HEAD>
<body onload="test()">

View 6 Replies View Related

Invisibly Redirecting

Jul 20, 2005

I need to re-direct site visitors to a new URL, but I don't want that
URL to appear in the Address field in the browser. I'm sure I've read
somewhere that there is a way to do this, but I can't find it. Does
anyone know this, or have I dreamt it?

View 1 Replies View Related

Redirecting According To Region?

Jun 23, 2009

I want to redirect some users based on their location. Is it possible to do so using JavaScript?

View 1 Replies View Related

Redirecting Login

Aug 10, 2004

Hi I'm trying to hack together a simple login (ish). The idea is to give the impression of a login when all I'm really doing is using the password to redirect a client to their own sub directory.

But I'm now stuck. Here's what I've put together so far. I'm a complete novice at Javascript - but I'm sure you'll see that.
Code:
<body>
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function submitentry(){
var password = ''
password = document.login.password.value.toLowerCase()
if (password != null) {
location.href= password + "/index.htm";
}
// End -->
</SCRIPT>


<form name="login">
<strong>Enter username: </strong>
<input type="text" name="username2" size="15">
<br>
<strong>Enter password: </strong>
<input type="password" name="password" size="15">

<input type="button" value="Submit" onClick="submitentry()">
</form>
</body>

View 2 Replies View Related

Redirecting An Iframe

Jun 27, 2006

I was wondering is there any way that I can use javascript on a button click that it redirects an iframe that is on that page?

View 1 Replies View Related

IE Window.location Not Redirecting

Jul 23, 2005

I'm working on a page that uses javascript very much. My problem is now
that i cannot redirect to another page in IE with window.location =<URL>;
This command gets executed (proofed with alert messages) but nothing
happens. FF acts like expected but i cant get it work in IE. What can be
the problem here?

here the code i use:

this.NodeSelected = function( node ) {
if ( node.Value != null && node.Value != "" ) {
window.location = node.Value;
}
}

View 3 Replies View Related

Redirecting If JavaScript Is Turned Off

Jul 20, 2005

I have a modest website that uses a lot of Javascript.

If anybody views the site and does not have Javascript enabled I want to
politely redirect them to another page, so I put this bit of code in my
<head> section :

<script type="text/javascript"
language="JavaScript">document.write("<!"+"--")</script>
<meta http-equiv="Refresh" content="0; URL=noscript.html">
<!--//-->

So far so good.
It appears to work, *and* it passes the the 'W3C MarkUp Validation Service'
test ( http://validator.w3.org/ ).

Now the bad news: Google doesn't index my site any more, presumably because
their crawler always gets redirected.

Does anybody have a solution to this dilema, please?
Redirecting to a 'with-script' page is not an option because my page is
linked-to by many other sites.

View 11 Replies View Related

Redirecting Web Pages Using Javascript?

Jan 31, 2006

I want to redirect all pages from one website to another. They will be permanent redirects, but I am looking for a way to make it look cool.

Is it possible (It does not HAVE to be a 301 redirect) that when someone goes to a page on the old website, they automatically go to the new website with a message explaining the transfer, and everything around the message goes grayscale until the user clicks ok...?

View 2 Replies View Related

Why Use 'bridge' Page When Redirecting

May 6, 2010

Why is it that we use bridge pages that say 'If you're not redirected...'.I can see it if you've moved a page and want the user to see the new url before redirecting, but are there other reasons? Does a meta refresh or window not work in some browsers?

View 2 Replies View Related

Executing Function After REDIRECTING To URL?

Sep 7, 2010

Following is my problem def: Load a HTML page and set the form fields on that page and submit it using javascript. I tried following code: I wrote a html file with following code in it.

<html>
<head>
<title>Test</title>

[code]....

View 1 Replies View Related

Script Not Redirecting When Trying To Encode URL

Aug 8, 2011

Page where I'm redirecting user after 5 seconds to another page. This part of the script seems to work fine and redirects to the URL I want. However, the issue comes when I try and add parameters onto the URL. The redirect will stop working. I believe it's a formatting issue, as I've used the code in a different application. [code]...

View 13 Replies View Related

Print Contents Of One Frame From Another Frame?

Sep 8, 2010

I have a frameset with two frames; topFrame and mainFrame. I have code in topFrame and wish to print the contents of mainFrame. The code that I have used has worked for many years and still works on my localhost Apache Server. However, it has now "stopped" working. When I press the button in topFrame it prints the contents of topFrame The code that I am using is

Code:
window.parent.mainFrame.focus()
window.print

I have tried to replace the first line with..

[Code]...

View 1 Replies View Related

Send Variables From Frame To Frame?

May 13, 2009

I use dreamweaver mx html editor to make web sites. I think I know enough Html to get by. My new site uses a frame set so the head and controller don't change reload or move. This works nice, now all I have to do to make a new page is make the content page. But my problem is if I send out a link for someone to look at, it only loads the content page and not the frame set. I thought I could use javascript to determine if the frame set is present and if not load it. But I can't seem to find a way to sent variables from one frame to another. Also if a user clicks a link I would like my flash controller to reflect it.

[Code]...

View 1 Replies View Related

Refreshing Bottom Frame From Top Frame

Aug 9, 2004

I need to know how to refresh a bottom frame TO a specific dynamic URL from my top frame (meaning the code has to be in the top frame) say every 5 seconds. The top frame will be a php file as I need DB values. But I believe the frame thing is done via javascript. This ain't working so far, it only loads the first URL at not the rest. Is there the ability to refresh to a specific url in a target frame. Code:

View 5 Replies View Related

Frame.contentWindow Vs Frame.contentDocument?

Feb 19, 2009

One more question about manipulating iframes. In a script I've looked through to investigate AJAX file uploads, there is this technique for accessing the contents of an iframe:

Code:
if(frame.contentWindow)
{
var thebody = frame.contentWindow.document.body;
}else if(frame.contentDocument)
{
var thebody = frame.contentDocument.document.body;
}

I haven't been able to find much info on contentWindow and contentDocument. In fact, other sources I've found talk only about using contentWindow to access an iframe's contents, ignoring contentDocument completely. What is the difference between the two, and what browsers is the contentDocument check targeting? Any modern browsers, or is this a backward compatibility thing?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved