473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

IFRAME

Sinds anderhalf jaar omngeveer probeer ik een beetrje sites ijn elkaar
te plaatsen.

Nu zit ik met een probleem. Ik gebruik op mijn site een iframe. Met
bepaalde zoekresultaten voor mijn site bij bv google staat er een
adres waar mensen op kunnen klikken. Nu is dit precies het adres van
de iframe en zien mensen dus alleen de inhoud van de iframe op hun
scherm en niet de volledige site.

Heeft iemand een script hoe ik dit kan oplossen. Een script zodat
gewoon de volledige pagina word geladen. Bij voorbaat dank.
Jul 23 '05 #1
2 4185
Marco wrote on 15 aug 2004 in comp.lang.javascript:
Sinds anderhalf jaar omngeveer probeer ik een beetrje sites ijn elkaar
te plaatsen.

Nu zit ik met een probleem. Ik gebruik op mijn site een iframe. Met
bepaalde zoekresultaten voor mijn site bij bv google staat er een
adres waar mensen op kunnen klikken. Nu is dit precies het adres van
de iframe en zien mensen dus alleen de inhoud van de iframe op hun
scherm en niet de volledige site.

Heeft iemand een script hoe ik dit kan oplossen. Een script zodat
gewoon de volledige pagina word geladen. Bij voorbaat dank.


Nee, dat kan niet, want de pagina in de iframe is niet van jou, dus daar
kan je geen script in aanbrengen. Ik zou dat plan dus laten varen.

Als je serverside scripting hebt, zoals ASP of PHP, dan kan je op een
andere manier ("data mining") dat wel bereiken.

Laat je poging echter maar eens aan "ons" zien, door de URL hier te tonen.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 23 '05 #2
Marco wrote:
Nu zit ik met een probleem. Ik gebruik op mijn site een iframe. Met
bepaalde zoekresultaten voor mijn site bij bv google staat er een
adres waar mensen op kunnen klikken. Nu is dit precies het adres van
de iframe en zien mensen dus alleen de inhoud van de iframe op hun
scherm en niet de volledige site.

Heeft iemand een script hoe ik dit kan oplossen. Een script zodat
gewoon de volledige pagina word geladen. Bij voorbaat dank.


(Sorry, mijn Nederlands is niet zo goed, ik hop dat u hoewel snap het.)

Ofschoon u kunt hetzelfde skript gebruiken als voor laden van een frameset,
in het iframe document,

<script type="text/javascript">
var _global = this;
if (window == window.top)
{
var esc = _global.encodeURIComponent
|| _global.escape
|| function(s) { return s; };
window.top.location = "volledige_pagina.html?" + esc(window.location);
}
</script>

(en dan lez[?] [read] van window.location.search in "volledige_pagina.html"

var unesc = this.unescape
|| this.decodeURIComponent
|| function(s) { return s; };
var iframe_url = unesc(window.location.search.substr(1));

of gebruik daarvoor een server-side script), u kan dit niet *betrouwbaar*
mogelijk maken: Client-side script is niet immer ondersteunt bij software.
Daarom zult u een /robots.txt bestand en/of een

<meta name="robots" content="nofollow">

element in de volledige pagina gebruiken om Google het indexen van jouw
linken te verbieden. En u zult een link naar de volledige pagina in het
iframe document plaatsen voor mensen met software zonder ondersteunt voor
client-side scripten.
HTH

PointedEars
--
How do you like my wife? Oh, she's great! Then, please have another slice...
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Csaba2000 | last post by:
I want to be able to embed a single quote into an INPUT element within a dynamically generated IFRAME. The example below shows how the IFRAME is generated. Challenge: I'd like the alert box to...
4
by: Thomas | last post by:
Hi there, I have an iframe which is editable (designMode = "on") and want to resize it dynamically as the content grows (e.g. more lines of text is in there) and there the struggle starts. I...
2
by: Templar | last post by:
Hi i'm bothering with such problem... I must dynamic create an Iframe, and then put som raw HTML into it. But I can't. When I create iframe, I can't access its properties. Here's the coe...
1
by: Martin | last post by:
There seems to be some strange behaviour when trying to get the scrollHeight and scrollTop of an iframe in IE6. I have tried several ways of getting these values when the iframe is written into...
7
by: Christopher J. Hahn | last post by:
I'm trying to use a script-generated form to submit to a script-generated iframe. The problem I'm running into is that the iframe is not assuming the name I assign it. IE6 on Win2000. FF1.0.2+...
3
by: Angel | last post by:
How do I get the reference of the IFrame from the asp.net webpage that is being displayed within that IFrame? In other words I have an IFrame in my page. Within that IFrame Set the source to a...
0
by: tequilamala | last post by:
I have an Iframe in one of the pages i am developing... the iframe is suppose to scroll up and down and the links target the iframe. the problem is that the iframe scrolls side to side on internet...
1
by: Z1P2 | last post by:
I would like to gradually resize an iframe in an onmouseover event. I can easily do it with an image, but when I try to do it with an iframe, it doesn't do anything. So first of all, is it possible...
1
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.