473,503 Members | 2,150 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Normal iFrame Break out doesnt work - Help please

PepsiHack
3 New Member
Ok i am developing a site on a server that only allows HTML and some Java Script - The Server displays my pages in its own layout. I tried to set up hosting somewhere else, however the organization has to host on this server.At first i couldnt even use CSS to style the page. However up to this point I have used javascript to impliment CSS and an external server to host scripts and images and css on. Heres the problem:
there is a chat room through the server. I used an Iframe to put it into my layout - which is in their in their layout. It links back to the home page but when clicked it reloads the home page in the i-frame. I cant edit the
Expand|Select|Wrap|Line Numbers
  1. <a href="#" target="_top">
so i figured i would put javascript on the Home page that could detect that it was in the iframe and reload itself in the same window but without the iframe:

the home page is at http://www.lutheransonline.com/yolocountychapter then click on chat rooms:

now in this window the chat room is in an iframe and right above it sits two links
[Home Page] [Chat Room] clicking on Home Page opens the home page in the iframe - I have tried alot of ways to break this.

Once again i can not edit the links - the chat page in the iframe is dynamicly generated. Any Help would be great.
Jul 14 '07 #1
1 2212
PepsiHack
3 New Member
In addition I cant even get it to recognize that its loaded in the iframe - i am trying to get it to just recognize its in there and throw an alert but to no avail

UPDATE:
ok im using:
Expand|Select|Wrap|Line Numbers
  1. parent.document.URL = "http://www.lutheransonline.com/yolocountychapter/home"; 
to break away from the ifram however i need some kind of statement or some other way to tellit to stop otherwise it gets stuck in a loop.

i've tried a bunch of if statements to no avail

UPDATE:
Figured It Out Thanks i used
Expand|Select|Wrap|Line Numbers
  1. if (parent.document.getElementById("chatframe"))
  2. parent.document.URL = "http://www.lutheransonline.com/yolocountychapter/home";
probably a no brainer for most - just getting started with this stuff
most of my problems i think were syntax
Jul 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
1932
by: khothikhe | last post by:
can some one help me here coz this is really killing me! the problem is, i have this javascript code in my aspx page that i want it to work on almost all browsers, especially opera and safari : ...
1
2372
by: khothikhe | last post by:
Can someone help me here because this is really killing me! the problem is, i have this javascript code in my aspx page that i want it to work on almost all browsers, especially opera and safari...
5
1724
by: Paul Fi | last post by:
Can someone help me here because this is really killing me! the problem is, i have this javascript code in my aspx page that i want it to work on almost all browsers, especially opera and safari...
12
2462
by: wangzx | last post by:
I am the author of easyajax.sourceforge.net, and I have a problem on Firefox 1.5, I post the problem here and hopes somebody help me. The test page can be:...
2
2582
by: kwenterprise | last post by:
Hello All, I am normally great at figuring out ways around iframe issues that frustrate us all. I am using javasript to try and break an iframe that I have a banner rotator embedded in but it...
2
3266
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
10
3425
by: worldwideebm | last post by:
This is a problem that i have googled for hours and can't find an answer so i resort to asking on here because i found similar question on here. I have a page i use, It has an iframe on it but it...
3
5342
by: hash4sp | last post by:
Hello Can anyone here please guide me with the Cross Domain Communication between IFrames. Problem: Application1 running on IIS => http://localhost.ad.local/Applicaiton1 Application2...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.