HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 6th, 2008, 02:11 PM
IkoIko IkoIko is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 1 IkoIko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 59 sec
Reputation Power: 0
Unique iFrame help needed

I have two sites. Site1 uses iFrames. In a frame, there is a link that goes to Site2. Site2 takes some information and has a link to a thankyou page back on Site1. problem: Getting the link back to Site1 to open the tankyou in the frame.

It will open the thankyou page, but as in a new window.

Is there a way to write the link on Site2 linking back to site1, so that it loads the index.ht and, the thankyou page inside the frame?

BTW - opinions on using frames should be filed elsewhere

Reply With Quote
  #2  
Old May 7th, 2008, 05:26 AM
benno32's Avatar
benno32 benno32 is offline
/*
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 361 benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level)benno32 User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 6 Days 7 h 9 m 20 sec
Reputation Power: 239
Perhaps you could use javascript to change the src ="" attribute.
Alternatively you could use server side includes to incorporate your page
instead of using an iframe.
__________________
---| The Universe|

Reply With Quote
  #3  
Old Yesterday, 12:43 AM
x^2 x^2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 21 x^2 User rank is Lance Corporal (50 - 100 Reputation Level)x^2 User rank is Lance Corporal (50 - 100 Reputation Level)x^2 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 4 h 42 m 33 sec
Reputation Power: 0
Hello,

Let me make sure I understand the problem:

Site 1 contains an iframe to Site 2, and Site 2 needs some information. When a link is clicked in Site 2, the original or some other page needs to be loaded in the parent Site 1, which will contain an iframe with a thank you.

I think JavaScript is the answer to your problems. I wrote a couple quick pages (apologies for lack of strict <html> tag usage), but it should illustrate the point. Here is a directory containing four files. Open index1.html. This is your "Site 1" containing an iframe to "Site 2." When you click on the submit link under the textarea, the parent "Site 1" is changed from index1.html to index3.html, which contains an iframe displaying the contents of "thankyou.html."

This is accomplished by:
Code:
parent.location.href='index3.html'

which changes the parent window of the iframe to index3.

I hope this answers your question. If I don't understand correctly, please let me know. You can get a little more fancy with the JavaScript and use it to change the URL of the iframes, etc.

x^2

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Unique iFrame help needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway