Populate Iframe Srcs From External Page Link ?

Oct 18, 2011

I have several hundred html links in a file "main.html" pointing to external websites. ie: "external.html"

When a user clicks an external link from within "main.html", I want to bring up "external.html" in all its glory, but with a banner / header across the top (I am guessing iframe is a good option) - so effectively the link will take us to "frame.html", with "banner.html" and "external.html" in an iframe (or alike).

The banner has to be populated with information specific for that "external.html" file. ie: when they click on the link to "external_1.html", the header might have the text "external_1".

So, I am happy with doing this as a one off, but can't see the method to have a single 'onclick' script to pass the required information from "main.html" to "frame.html", and then for "banner.html" to be updated with the text passed from the 'onclick', and to know to call in the correct "external" to populate the iframe.

I will further complicate it by asking if it is possible to have all the scripting required contained within "main.html"?

View 1 Replies


ADVERTISEMENT

Calculate Height Of Iframe Problem In Asp Page With External Link

Nov 7, 2005

I use an asp page to display pages, where the dynamic content is in an
iframe. To calculate the height of the iframe I use the calcheight function. However when trying to do this with external pages, I get an access denied error, and the iframe won't display correctly. Is there a way to solve this or another way to calculate the height for the iframe. The relevant code displayed below...

View 1 Replies View Related

Open All External Link In Iframe?

Sep 11, 2011

I want to open All external link, in iframe with the help of javascript. For E.g, My site is www.domain.com and I have made few post where it contains few external link, so, rather than opening the link in new window or in new tab or in parent page, i want to open link in iframe.

So that user remain in same page.

For an instance, "search box" of dreamincode.net.

View 5 Replies View Related

Force External Page Into Iframe?

Apr 27, 2006

If I try to put a site into an iframe that has "escape frame" code in
its source (posted below), it will reload the requested page into the
parent instead of the iframe. Is there a way to prevent this from
happening?

One could use onunload to stop the redirection, but I would like to
find a way to load a page into an iframe, even if it has this type of
code.

I have considered server code loading the content and re-displaying it
but I would like to find a pre javascript solution.

//this is not my code
if (self != top) {
if (document.images) {
top.location.replace(window.location.href);
} else {
top.location.href = window.location.href;
}
}

View 3 Replies View Related

When A User Go To An External Link Of Page An Alert Appear

Dec 25, 2010

when a user go to an external link of my page an alert, or confirm box appear, or run some other code?

View 5 Replies View Related

JQuery :: Reveal A Div With Doslide When Landing On A Page From An External Link?

Jan 20, 2011

I have a some divs in a list which are shown or hidden using doslide. I would like to be able to make a link on another page or an email which will go to the page and reveal a specific div automatically without the user having to land on the page and then search through the list.

View 2 Replies View Related

JQuery :: Page Loads Slow When Link To External .js File?

Sep 18, 2011

This is a weird one. I am new to jQuery so have been following a tute online. My script works, its just takes ages to load - up to a minute! Things were working fine before when the script was on the same page as the HTML but when I put it on its own file it just slows right down. All these files are just operating straight from my local.All I am doing is changing the color of a list (ul) with jQuery on an external .js file.This is the only code on that .js file (called script.js)

$(function () {
$('#list1 li').addClass('alert');
});

[code]....

View 1 Replies View Related

Go To Next Page - Load The First Page Of A Series Of Pages Into An Iframe When You Click A Link

Aug 15, 2006

1. Load the first page of a series of pages into an iframe when you click a link
2. On each click load the next in order page
3. When last page has loaded if clicked again will start from the beginning.

What I am doing: I am creating a tutorial for a friend who cannot figure out how to use her new rental management program. I could use a manual slide show to have her click for the next image however, there are a LOT of tutorial images which show her what to do at that point. Her program contains a great number of setup screens, report screens etc. This means the slide show would be sitting there loading all these images before it will work. So, I figured, OK make a page with an iframe, and then I could put each image on it's own little page i.e. page1, page2 etc. Place a little button, or a next link, then have the link load the pages into the iframe in order.

View 5 Replies View Related

Jquery :: Cycle Plugin - How To Link Directly To Slide From External Page

Jun 15, 2010

I've set up a portfolio using the Cycle Plugin. It works great, but now I want to link directly to one of the slides from the home page, and I'm not sure how to make this work or where to even begin. Here is a page on my site with a slideshow using Cycle. (I'm actually transitioning divs, not just images) [URL].

View 1 Replies View Related

Link To Iframe From Another Page

Oct 31, 2010

What I want to do is go from page1 (which does not have an Iframe) to page2 (which does have an Iframe) and change the content of that Iframe based on the links clicked on page1.

So say I click link1 on page1, I want page2 to show up and for the Iframe to show link1 content.

If I click link2 on page1, I want page2 to show up and in the Iframe I want to see link2 content.

If there's a javascript code for this that works.

View 2 Replies View Related

A Link In Parent That Refreshes A Page In An Iframe?

Feb 7, 2011

My site has a menu + iframe layout. Clicking on the menu link loads a page in the iframe. The iframe is set to a specified dimension.

I only have a single page that loads in the iframe. Clicking on the menu link loads a specific section on the page using the name anchor. The specified dimension of the iframe allows for the selected info to be visible.

I can create a new page for every link, but to the site's nature (its like a catalogue), I rather have it on a single page and have it called by the name anchor. I am trying to set it so that every time a menu link is clicked, the single page refreshes itself, and then goes to the anchored location.
I need this for a reason.

I have tried many things but I have not got it working.

Here is my iframe:

Code HTML4Strict:
<iframe name="data" id="data"></iframe>

Some of the codes I tried messing around with:

Code HTML4Strict:
<a href="info.html#red" target="data" onclick="window.location.reload()">Red</a>
Code HTML4Strict:
<a href="info.html#red" target="data"

[Code]....

View 4 Replies View Related

Populate Dynamic Content By Getting Info From External File

Nov 10, 2011

I have a site setup, where each page has 3 <div> columns. In the 3rd <div> Column, I want to populate dynamic content. Basically, I want to have 1 external file, which holds the content to be populated. The 3rd <div> column on each page would need to pull the information from the 1 external file. I want to insert JavaScript in the 3rd <div> column to direct the page to pull this content from the 1 external file.

Example: 3rd <div> column could show Ads or Promotions. The external file holds the images, links, etc. for the specific Ads or Promotions. The external file can be edited just once and all pages automatically show this new content because the JavaScript in the 3rd <div> column pulls from this external file. This seems like it should be really simple, but I cannot find anything online that describes how to do this. I am likely not using the right keywords for my search because I am new to JS.

View 9 Replies View Related

Link To Iframe Page (load Specific Content)

Oct 22, 2005

I have PAGE1 with the link to PAGE2 with iframe. (iframe load several
naked html). I want to add directive to the link to point sprcific
content of iframe. to make it clear

link on PAGE1 -> load PAGE2 with iframe -> iframe content is specified
on link = whole PAGE2 with iframe with desired content...

solving problem with creating several different PAGEs2 poining wanted
iframe src is not the case.

View 5 Replies View Related

JQuery :: Target A "Cycle #anchor" From An External Page Link?

Sep 3, 2010

I have Cycle "pager" navigation working flawlessly in one of my pages. What i'm trying to do is this:

I'm Attempting to LINK to specific Anchors from a link on a different page.

Example:
// external page link //
<a href="http://www.convertstyle.com/beta/apparel/womens-apparel#shirt1">Headline Womens</a>

[Code]....

View 1 Replies View Related

Populate Form Fields With Link?

Nov 4, 2005

Is it possible to populate a form field with a link. Let's say I have a link on my site to google's main page can I populate google's main text box?

View 1 Replies View Related

Dynamically Show Div And Populate Contained Iframe On Button Click?

Dec 30, 2009

I have created a page which pulls search results from various sites using PHP. It displays each result in a row in a table upon running.

I wanted to add a button saying "More information" at which point, a div would appear and load the associated link for that search result within an iframe within the newly appeared div. I've been able to get a div appear and disappear on button click but, I couldn't get it to dynamically load an iframe on click with the associated search results link.

View 3 Replies View Related

JQuery :: Populate Hidden Field When Click On A Link?

Oct 23, 2010

I am using multiple links at the same page with same class(cannot access using id because of multiple links) like

<a class="coupon_link" href="#?stockAlert=45">Click here to get coupon</a>
<a class="coupon_link" href="#?stockAlert=46">Click here to get coupon</a>
<a class="coupon_link" href="#?stockAlert=47">Click here to get coupon</a>

[code]....

View 4 Replies View Related

Iframe And External Files

Sep 2, 2007

<body>

<iframe name="alertiframe" id="alertiframe" width="1" height="1" src='xmlsample.html'></iframe>

<script>

function alertfunc()
{
sometext = window.frames['alertiframe'].document.all.tags['to'][0].innerHTML;
alert(sometext);
}

</script>

<a href="javascript:alertfunc()">Click Me</a>

I am working with an older browser more of MAC IE. It works with DOM 1 and extremely partially with DOM 2. contentDocument and contentWindow does not work on this browser.

The above code works very nicely, however as soon as I rename the file to "xmlsample.xml" with an xml extension, it does not work anywork. If you have any other solutions please let me know. Rem we can't use any newer techniques, this is very basic DOM.

View 4 Replies View Related

Get URL Of Iframe - External Domain

Jul 11, 2007

Is there ANY way to get the URL of an iframe if the page the user is on is an external domain? I know this is normally blocked by the "Same Origin Policy", but I'm just trying to find out if there is SOME workaround. All I'm trying to get is the URL.

View 1 Replies View Related

Resize External Website In Iframe

Nov 19, 2008

I am trying to resize an external website in an iframe using javascript, but have not found code that works very well.

View 5 Replies View Related

External Link

May 9, 2007

I have a php pages where i want to put the js script as externaly.
i have this code but not working.
If i put the code directly in the head area then works but externaly linking is not working.

Code:
<head><title>&raquo; School Registration From</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript" src="script.js" type="text/javascript"></SCRIPT>
<script language="javascript" src="script.js"></script>
<link rel="stylesheet" href="styles/style.css" type="text/css">
</head>

View 2 Replies View Related

Redirecting External Links To Dynamic IFrame?

Jan 25, 2010

Disclaimer 1: I am not a programmer, just a curious designer, so please take that into consideration in your replies.

Disclaimer 2: Despite all advices against it, I couldn't find a better solution to my website than using iFrame

Disclaimer 3: Before asking for help, I researched *several* forums and although I found people discussing similar issues,


implementing a method to intercept and redirect external links to a dynamic iframe. By "dynamic" iframe I mean an iframe whose SRC would be filled up in accordance to the external URL being intercepted and that it would resize its HEIGHT accordingly in order to avoid scroll bars.The function for resizing the iframe id="child" is already correctly implemented like so:

<script language="JavaScript">
<!--
function calcHeight()[code]...

This "replacement" function would be called onLoad and if tested true would run and refresh the page with the proper value in the iframe SRC.All this should be accomplished while still making the iframe HEIGHT dynamically adjustable and show a "clean" URL in the browser, such as "http:[url].....The potential issues I foresee is an infinite loop due to two onLoad queries (one for SRC, another for HEIGHT) in the parent and child objects, which might required a merge into a single script.

View 26 Replies View Related

Making External Website Target Iframe

Nov 20, 2010

I have built a basic website that contains an iframe in the middle, called "iframe1". In this iframe I wish to load an external message board from proboards.com. In my code I can easily do this by making a button or hyper-link with the href="http:proboards.com/myforums" and the target="iframe1".When I do this it will load inside of it the iframe jsut as I want it to. However, my the problem is when you click on the button to login its coded to target "_top" and it opens on the entire page replacing the whole website. If i run firebug (a real time HTML editor). I can easily locate and change the link code to target="iframe1". But How can I write a script in javascript in my webpage code to do this as soon as the iframe has loaded the external messageboard?

View 5 Replies View Related

Dynamic Iframe Height With External Domain Src?

Mar 5, 2009

I am trying to get an iframe to have dynamic height - I want it to resize to fit the contents of the page.There is a four or five step process within the iframe. So for example, page 1 is rather short, and it'll have a link that sends you to page 2, which might be rather long.I have no control over the pages I am using in the iframe and they are on another domain.I have googled and and searched the forum and I've yet to find anything that works. A lot of them say they're not cross-browser compatible, but I haven't gotten anything to work how I'd like in any browser.I'd like to do it without jQuery.

View 4 Replies View Related

Using IFrame To Pull External Forms That Cannot Change

Aug 24, 2009

Order entry project. I am using an iFrame to pull external forms that I can not change. Once our employee enters in the information and submits I would like to redirect the existing window to a new page.

I've tried many variations of:
<script type='text/javascript'>
function iHistory() {
var hist=history.length;
if (hist>1){
parent.window.location = "orderentry.php";
}}
</script>

Since I have no control of the external form I have been using OnLoad() in the iFrame tag to call iHistory(). The script works great unless the browser history is >1 If possible, I would like to also setup like a 5 or 10 second delay so the employee can see the framed confirmation page before redirect. So the function needs to check current history.length, when that changes delay 5-10 seconds and redirect parent window to orderentry.php

View 3 Replies View Related

Getting The Href Of A External Link?

Jan 9, 2011

I want to know if there is any way to access an external site, search for an a statement and get it's href, like this:

<a href="http:google.com/" target="_blank">Click Me!</a>

I need the code to search for the Click Me! href on the middle of a HTML file.

View 3 Replies View Related







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