Send Refresh Command From Pop-up To Parent Frame?

Feb 25, 2009

I want to send a refresh command from my pop-up screen to a i frame in the parent document.

I have written the following script code...

View 4 Replies


ADVERTISEMENT

Any Command To Send To Indicate I Want To Close That Stream?

Apr 23, 2010

Within my Flex application I write stuff to the browser via a javascript document write.Is there a command to send to indicate I want to close that stream? When I send the command the rotating indicator keeps running indicating the browser is still expecting some stuff. If I click the stop button on the browser it stops spinning and the stuff I sent (an xml stream) becomes available. As this is an automated process, there is no person to hit the stop button.

View 2 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

Command To Refresh

Jun 5, 2004

What is the JS to refresh the page and possibly append some url parameters?

View 3 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

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

Command Flips Parent Page...

Jul 23, 2005

i popup a new window in my submit command and return false;

but my parent still flips the page ! how can i stop it ?

View 2 Replies View Related

JQuery :: .ajax And Page Refresh In Firefox - Can't Send Form Data In FF Without Page Refresh

Apr 15, 2010

So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).

My code fragments:

View 1 Replies View Related

Refresh Parent From IFrame Makes Refresh Loop In FF Only?

Jan 2, 2009

I have this code in a page that appears in my iframe if requested from parent:

<script type="text/javascript">
parent.rrr();
</script>
The parent code is:
function rrr() {
javascript:location.reload(true);
}

So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.

Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.

Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.

View 2 Replies View Related

How To Refresh Whole Frameset From The Frame

Jan 24, 2010

I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames. I've searched google and tried many options, about 6 or 7 codes, but failed. This is among one of which i tried:

<a href="#" onClick="opener.top.location.reload()">Homepage</a>

Very briefly, what i need to do is to refresh the entire frameset - the effect which can be obtained by pressing on the RELOAD button on the internet browser.This is how the frame looks like:

Code:

<html>
<head>
<title>Client</title>

[code]....

I am trying to refresh this entire frame using a link on the left frame, left.php.

View 1 Replies View Related

Refresh Whole Frameset From Frame?

Jan 24, 2010

I'm having difficulty trying to refresh the whole frameset from a hyperlink on one of the frames.I've searched google and tried many options, about 6 or 7 codes, but failed.This is among one of which i tried:[code]Very briefly, what i need to do is to refresh the entire frameset the effect which can be obtained by pressing on the RELOAD button on the internet browser.[code]I am trying to refresh this entire frame using a link on the left frame, left.php.

View 4 Replies View Related

Way To Stop Page Refresh In A Frame Set?

Jul 12, 2009

Is there any simple way to stop page refresh in a frame set? So you return to the same frame set page/pages?(Like firefox does it)

View 3 Replies View Related

Set Var In Parent Frame From Iframe

Jan 19, 2007

I have a var in the parent frame called imageon.


Inside my iframe when someone clicks on a thumbnail, I want to change the value of imageon in the parent window.

Here is what I am doing


//I will hardcode the #4 here for this example
i_imageon =4;

/*
here I have to tell my parent page that they clicked on a thumbnail so my parent page knows where to pick up when they start hitting the next or prev arrows
*/
parent.document.imageon = i_imageon;


This is not working. Any ideas? Onclick, I can alert i_imageon and it shows what I need. The problem is, it is not setting the var imageon to this value in my parent frame.

View 3 Replies View Related

Accessing The Parent Frame?

Nov 11, 2010

I'm using an iframe and I have this code in the src file for that iframe.

HTML Code:
if (parent.location == "http://domain.com/store.html"){
document.write("********************************");
}

[Code]....

I've tried self.parent.location, I've tried parent.window.location, I've tried parent.location.href, none of it works.

View 3 Replies View Related

Send Value From Select In A Pop Up To Parent Window

Jan 21, 2002

how would I send the value from a <select> box that's in a pop up opened with window.open() back to the parent window, and put it in a text field?

View 10 Replies View Related

Getting Parent.[frame Name].location Has No Properties

Aug 25, 2006

This is not an IFrame. The frame exists. This is code for a Notes Client. Should be the same as for a browser? Here is my code:

document.bgColor = "blue";
document.frames[0].location =
"/IC.nsf/Get%20and%20Compare%20URLs?OpenView"

OR

document.bgColor = "blue";
document.Frame2.location =
"/IC.nsf/Get%20and%20Compare%20URLs?OpenView"

View 1 Replies View Related

Get Parent Window Title And Url From Frame?

Apr 7, 2010

How do I get the parent window title and url in the iframe? JS code being in the iframe, not parent window.

View 1 Replies View Related

Scroll To Parent Frame When Can't Control It?

Nov 4, 2011

I have searched the net extensively for a js link code that will scroll to the top of the parent frame.So, link is in iframe within a parent frame that I can't control. Therefore I cannot place any 'a name' attribute in any link in the parent frame. But would like to scroll to the top once the button in my iframe is clicked.I have used most scroll, document scroll to parent etc js functions but none of them scroll to top of parent page and some require a name to be placed in parentthis is my simple link<a href="#">go to top</a>

View 7 Replies View Related

Frame Load Order Trick Fails With Refresh

Jul 23, 2005

I'm using the 'standard' trick to force the load order of my frames:

<HTML>
<HEAD>
<TITLE>Frametest master page</TITLE>
<SCRIPT Language="Javascript">
function refreshFrame() {
frames['vFrame'].window.location.href = "VisibleFrame.htm"; }
</SCRIPT>
</HEAD>
<FRAMESET COLS="100%,0" BORDER="0"
<FRAME SRC="blank.htm" NAME="vFrame">
<FRAME SRC="HiddenFrame.htm" NAME="hFrame">
</FRAMESET>
</HTML>

but this does not work when the user hits F5 (refresh). I want this specific load order because VisibleFrame.htm accesses objects in HiddenFrame.htm.

View 1 Replies View Related

Refresh Frame Without Having Status Bar And Tabs Showing It Loading?

Jan 17, 2009

I'm working on a chat box. Everything works fine with the chat contents in a separate frame except when it reloads. I'm using the <meta> reload and I don't like how obvious the refresh is. Could someone tell me how I can refresh the frame without having the status bar and tabs showing it loading.

View 1 Replies View Related

Chat Screen Is Refresh To Bottom After The Send Button Submit?

Dec 13, 2011

<?php
session_start();
if (empty($_SESSION['is_logged_in']))
{
header("Location:chatframe.php");

[Code]...

View 3 Replies View Related

Redirect Page To Open In Parent Frame

Apr 5, 2007

What I'm trying to do is make it so when a visitor or a search engine tries to view a page outside of the parent frame it reloads that particular page inside the parent frame. All the scripts I've tried WILL redirect the visitor back to the parent frame, but NONE of them will then load the previously viewed page into the 'main' frame. I don't want visitors to have to navigate through the site to find the particular page they were viewing.

I have seen this script before but I can't remember which site was using it, also without a redirection to the frames the site won't display properly and navigation would be difficult. Code:

View 1 Replies View Related

Update Parent Iframe Size Without Updating Inner Frame?

May 3, 2009

I have a web page. In that there is a toggle button to show or hide advanced search options. Below that there is a "IFrame A"(Table). IFrame A conatins "IFrame B" (Table Contents). Based on the toggle switch status, i want to update "IFrame A" size without refreshing the "IFrame B".Is it possible to do so ? Can you give me some example or point to some tutorial .

View 4 Replies View Related

Define A Child Of A Frame - What's The Object Opposite Of Parent

Apr 24, 2010

How do I define a child of a frame? What's the opposite of parent.document?

View 1 Replies View Related

Passing Input Values From Parent Frame To Iframe Not Working In Firefox

Mar 5, 2009

To sum up this issue, I have a parent page, which holds some values in hidden input fields passed to them from the url. On this page, I have an iframe with a form in it, to which I want to pass values from these hidden fields to be displayed for the user in the iframe form. In IE, it works. To accomplish this, im just simply doing a <body onload="GetInput()">. The GetInput function does the following, but for about 10 fields:

Fnamefield=document.getElementById('firstname').value = parent.document.getElementById('firstname').value; Thats it. Once the page loads, i see my values. In firefox it does not work. I know the hidden fields are getting their values, but thats as far as it makes it. I have tried calling the GetInput function after the form is written out and not in the body tag, which still works for IE, but not FF.

View 3 Replies View Related

Refresh Parent.parent From A Pop Up?

May 12, 2010

I have a page. In that page is an iframe, lets name it 'A'. inside A there is another iframe 'B'. there is a link on that page which on click opens a popup. In that pop up, there is actually a document upload facility. Now i want that after every upload (onSubmit), iframe A should refresh.

have done it many times but today its not working.

function validate() {
(window.parent.opener.location.href)=(window.parent.opener.location.href);
window.parent.opener.location.reload(true);// this is tried as well
}

View 3 Replies View Related







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