How To Reload Iframe Content From A Pop-up Window?
Jun 2, 2007
I have a main webpage with an iframe embedded inside:
PHP Code:
<IFRAME id="imagesframe" src="images_frame.php" width="100%"></IFRAME>
Now, I want to be able to reload the content of that iframe from a pop-up window. I tried the following JavaScript command inside the pop-up window:
PHP Code:
opener.document.getElementById("imagesframe").location.reload();
but when I call that command i get the following JavaScript error: ...
View 2 Replies
ADVERTISEMENT
Jun 4, 2004
I am a total javascript newbie and have been pulling out my hair trying to figure out how I could reload an iframe inside the main browser window from a popup window.
What I am trying to do is have a system where people can upload pictures from the popup and then veiw the pictures they have uploaded as they upload them in the main window.
View 1 Replies
View Related
Jun 30, 2010
Basically I created a nice Jquery function to resize a window to the content on an Iframe. Because the Iframe has PHP in it which pulls a list of stockists and Iframes dont Auto resize to fit its contents if it pulls extra info.
[Code]...
So this bit of code is embedded into my Iframe, all its suppose to do is get the documents (the Iframe's) current height then it selects the parent document ( the one containing the Iframe ) then it basically adds the height to the attributes.
THE PROBLEM: It works great, the first time you use it. BOOYAKASHAA. However when you click a another stockist on the list. A smaller list for example... it keeps the height of the document really big. So it initially makes the space bigger to accomadate the list. But does not go smaller afterwards?
View 1 Replies
View Related
May 3, 2005
I have a page A which contains an iframe B which gets loaded with content as the page loads Page A has a link. When the link is clicked, I invoke some JavaScript function which performs some tests, and then I would like to have my iframe reload some other URL
The problem is that I change the iframe's src attribute to the new URL but nothing happens. The iframe isn't reloading.
How can I force it to reload? I heard that it was a problem in IE but that could be a mistake on my part It is vital to note that if I clean my browser cache (on IE), then the code works fine once (the iframe gets reloaded). But once it is in the cache, successive attempts fail
Here is a sample of my code
Code:
<head>
function test() {
// perform some tests here
[Code]....
View 14 Replies
View Related
May 6, 2009
I have the script below (lend by one of the geniuses of this wonderful community) and as you'll see it reloads the page products.php every 3 seconds without any visitor noticing it. Simply wonderful.
Now the problem: products.php contains divs with information, but it also contains an iframe. The iframe is calling an URL that displays videos.
When products.php is reloaded the information changes (is coming from a xml file) and the iframe contents are also reloaded which causes the video stream to blink every 3 seconds. Therefore, the iframe should not be reloaded. What can I do, how should I modify the script to reload everything inside of products.php but the iframe??
Code:
<script type="text/javascript">
function getHTTPObject() {
var request = false;
try {
[Code].....
View 1 Replies
View Related
May 15, 2009
I am having trouble with a script that displays the url of an iframe. On this page, I have a single iframe and want to display the url of the iframe in a div. It works upon initial loading, but the url does not change when a link within the iframe is clicked and a new iframe page loads within the frame. My users need the ability to determine and directly link/view the iframe url.
Here is the script
<iframe id="mainFrame" name="mainFrame" class="inner-center" frameborder="0" scrolling="auto" width="100%" height="400"
src="whats_new.htm"></iframe>
[Code]....
what to research and implement. Can you reload the content in the div? do I want to look at cross-frame scripting?
View 3 Replies
View Related
Mar 6, 2006
How can I reload content in an <object>?
View 3 Replies
View Related
Nov 5, 2006
My main browser page has an iframe. Whenever the iframe is reloaded
(updated), I want to automatically refresh the main webpage as well.
How can this be done, preferably using javascript?
View 2 Replies
View Related
May 22, 2010
I have an iframe that is used to access the server so the entire page doesn't reload. The frame works great the first time but after the frame has preformed the query and reloaded, if the script tries to access the frame, I get a "permission denied" error.
server = (document.all) ? window.frames['SERVER_REQUEST'].document.getElementsByTagName('input') : document.getElementById('SERVER_REQUEST').contentWindow.document.getElementsByTagName('input');
post_edit.onclick = function() {
server['REQUEST_CRITERIA_0'].value = "some value";}
View 2 Replies
View Related
Oct 13, 2011
I have 2 Divs. One Div has a form and another one DIV should get refreshed. While I submit the form, another DIV should reload without refresh/reload the page. I submit the form using Ajax its working fine. The content is displayed in the Div2 should reload. How to do it?
Example
<div id="one">
<form>
<input type="text" name="myname" id="myname" />.
[Code].....
View 3 Replies
View Related
May 11, 2011
OK, I've got an HTML page with some divs. I want to update those divs at some fixed intervals.
Those divs could be some text, some html, some picture, whatever, doesn't matter, I juste want to know how to update a divs at some fixed intervals.
View 3 Replies
View Related
Feb 18, 2011
I am trying to make a comment editor with iframe, and want to trigger the change of content inside iframe, the following code cant work.code....
View 5 Replies
View Related
Apr 30, 2009
Basically I have a web page with a search box and an iFrame where the full dataset is loaded. What I am trying to do is when the search field is populated and the user clicks search modify the src element of the iFrame to include a get variable. Then reload the iFrame so the new results will load. I've tried various combinations and nothing appears to work. It is only the master page that reloads. The jQuery to detect the click on the search box outside the frame is written into the iFrame file because other functions are.
[Code]....
View 1 Replies
View Related
Jul 4, 2009
I have an iframe somewhere on my page. Now on click of a link, I would like to show it in a different location on the same page, BUT I don't want it to reload again. I've tried this simple method but it doesn't do it because the iframe reloads in its new location.
<script type="text/javascript">
function move(what, where)
{
document.getElementsByID(where).innerHTML = document.getElementsByID(what).innerHTML;
}
</script>
[Code]...
View 2 Replies
View Related
Oct 22, 2010
I have a jsp file that is used to display data from Java objects running on my server. I'm using JQuery for tabs and to handle the ajax calls to a servlet that affects the Java server I have running.Each tab represents a service, and has a corresponding java object on the server side. These are generated from the spring configuration, and is working fine. The page is used to control some aspects of the service, and I have a few buttons that can be clicked. I'm trying to get it so that when a button is pressed, the appropriate Java function is called on the service's object (this happens using ajax) and then refresh the current tab.
My js code is like this:
function doPause(params) {
//some additional params set
doAjax(params);
[code]....
Right now, I'm using the window.location.reload(true) to refresh the whole page but I'd like to just redo the div for the tab that contains the button that has been clicked.I have tried:
$("#"+params.client).load("monitor.jsp#"+params.client);
instead of the window.location calls above, but that puts the whole page into the tab.
View 1 Replies
View Related
Feb 15, 2009
I currently have a DHTML popup menu that holds a form. I was trying to make it so on submission of the form within the DHTML popup the page itself will fully reload to update the content. However, on submission of the form the page "reloads" but not really, because i still need to go to the URL again for it to display the updated content.
View 2 Replies
View Related
May 27, 2011
There are two pages,
folder/india.html
folder/usa.html
and dropdown menu in each page to switch between india and usa pages.
india.html page sells in INR and usa.html in USD with links to shopping carts for each currency.
link1(INR)
link2(USD)
Except the link and the currency information(selling price), contents in both the pages are same.
So here comes the problem. Google hates duplicate pages!
I am looking for a solution where, a single page In That Page, a dropdown menu to select currency As the currency is selected, without page reload, the link to shopping cart and the pricing also should be changed according to the selected currency. So Single page should be able to handle both the currencies.
View 2 Replies
View Related
Aug 12, 2010
I am using this code to refresh the browser after a iframe has finished loading. Does anyone know a cross-browser one that will work on all browsers. I have tested it on firefox and internet explorer, it seems to only work on firefox.
PHP Code:
<script type="text/javascript">
window.onload = function() {
document.getElementById("updates").onload = function() {
[code]...
View 4 Replies
View Related
Aug 2, 2010
What I would like to do is have a page with a dropdown menu, and depending on which option the user chooses from the dropdown, reload the page and display a particular iframe below the dropdown, based on the users choice. Also, a default iframe would load (the one connected to the default choice in the select box). I was trying to make this work with PHP (without having the user having to click a submit button) but I couldn't find a way to make it happen.
View 6 Replies
View Related
Nov 10, 2010
I'm using JQuery to write content into an otherwise empty iframe like so:
Code:
$('#ifrmID').contents.find('html').html(htmlContent);
The content is coming from an Ajax request. The content gets used more than once on the page for other purposes which is why I don't simply change the iframe src--I have to do an ajax request regardless so I'm trying to avoid multiple calls.
After I load the content, I need modify the height of the iframe so it fits snuggly around the content.
Calculating the height isn't a problem with the exception that it's not always correct and I think it's because the calculation is happening before images have downloaded.
I don't seem to be able to rely on a `load` or `ready` event to delay the calculation. The load event is the only one that tiggers on a change of iframe content, but it doesn't see the new content.
Code:
$('iframe').each(function () {
$(this).load(function () {
alert($(this).contents().find('html').html());
});
});
This will output '<html><body></body></html>' even though I have successfully inserted different content.
Any suggestions on what I'm doing wrong, or if it's possible to do what I want reliably?
Note that a general JS solution will be appreciated as much as a JQuery one.
View 4 Replies
View Related
Apr 11, 2011
I currently have a website with a number of menu items, many of which result in the main site being redisplayed but with an iframe being inserted somewhere within the middle of the page. The iframe is initially loaded as hidden but there is a JavaScript 'onload' routine which calculates the height of the iframe and then makes it visible in order to avoid the iframe showing scrollbars since the content of the iframe is variable.
Roughly, things look like this:
Menu button: reloads main page and passes one or more parameters, e.g. [url]
Then elements of the main page including the menu are displayed. Then, if specified by the relevant 'func' parameter the iframe is shown using code similar to the following:
This works fine but I was wondering whether there is any way of using jQuery such that I don't have to reload the page when the menu item is clicked. In other words, you'd click on the menu item and the relevant iframe would be inserted within the middle of the website, automatically sized.
View 2 Replies
View Related
Oct 9, 2001
I have a script that when you click on a form button it post the results in a new pop-up window - and doesn't change the origin window. I then create a close.window on the pop-up window to close it. I now want to make it so the origin page is reload/refreshed after the pop-up is closed via the link. I have tried a few things but can't seem to get it to work.
View 1 Replies
View Related
Aug 6, 2009
I'm using a jquery slider for displaying content on a webpage.
[url]
Like in the first examples i have 5 panels, and i have a meta navigation, contact, links ect. all thedifferent content for the meta-navigation is displayed via jquery in panel 5, and is working fine.
Now my question; when the user is for example on the second panel, and the clicks on links, the page should show panel 5 (which is the index page(default.asp)), and then show only the content for the links.
I tried different stuff for loading the defautl.asp page, but it doesn't work. how do i tell, that if i click on the link wirh class="kontakt" the page should load the default.asp, and THEN do all the jquery stuff?
Below is one example, what i tried, but did not work.
View 1 Replies
View Related
Jul 23, 2005
I'm popping a window to a page with a different dns than the parent, and
i want the opener's location reloaded when this window is closed.
With Mozilla it seems that all the opener's methods and properties are
protected because the dns are different. A security exception
(permission denied) is thrown every time i try to exec an
"opener.location.reload()" from the pop up window.
An alternative would be catching the window closing from the opener, but
i don't know how this could be done.
View 2 Replies
View Related
Jul 20, 2005
I'm trying to reload a frame from a pop-up, but really cannot figure
this out.
Within my index.htm file, I make a link to call a pop-up frame with a
javascript function that calls the following code from an external
javascript source file, dynamically created with PHP...
View 3 Replies
View Related
Apr 13, 2009
one windown is opening a popup window.. and then the popup window is interacting with user information and then some processing with the use of some more php file.. now at last.. there is a "ok" button which should close this popup window and reload the parent window.. from where it was actually called.. i am trying to reload previous/parent window... using the function
[Code]...
View 2 Replies
View Related