473,833 Members | 2,142 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to position an IFRAME

QA
I want to open an IFRAME. The chilld IFRAME need to be scrolled 100px from
left and 200px from top. This setup needs to be done from the parent frame.
Is that possbile?

Jul 23 '05 #1
6 6404
QA wrote:
I want to open an IFRAME. The chilld IFRAME need to be scrolled 100px from
left and 200px from top. This setup needs to be done from the parent frame.
Is that possbile?


Yes, it's possible. Use a hash.

<iframe src="somePage.h tml#anchorName" ></iframe>

Then put an anchor in somePage.html where you want it scrolled to.

comp.infosystem s.www.authoring.html is preferred to alt.html (or so it
was last I heard)

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
QA
I don't have access to the child frame, as it is a foreign page. Your method
does not work.
QA wrote:
I want to open an IFRAME. The chilld IFRAME need to be scrolled 100px from left and 200px from top. This setup needs to be done from the parent frame. Is that possbile?


Yes, it's possible. Use a hash.

<iframe src="somePage.h tml#anchorName" ></iframe>

Then put an anchor in somePage.html where you want it scrolled to.

comp.infosystem s.www.authoring.html is preferred to alt.html (or so it
was last I heard)

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #3
On Wed, 08 Sep 2004 23:08:54 GMT, QA <QA@alexa.com > declared in
alt.html,comp.l ang.javascript:
I don't have access to the child frame, as it is a foreign page. Your method
does not work.


Do you have permission from the other site to use their page? If not,
you are in breach of copyright.

BTW: Please don't post upside down.
http://www.allmyfaqs.com/faq.pl?How_to_post
http://en.wikipedia.org/wiki/Top-posting

This will help:
http://home.in.tum.de/~jain/software/oe-quotefix/

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004
Jul 23 '05 #4
QA wrote:
I don't have access to the child frame, as it is a foreign page. Your method
does not work.


If you do not have access to the child frame, then you can not script
it. Its a cross-domain security violation.

And, as has been pointed out, your newsreader is broken.

Copyright also comes into play.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #5
In article <1t************ *************** **@40tude.net>,
we*******@clark ecomputers.com. au says...
I don't have access to the child frame, as it is a foreign page. Your method
does not work.

Do you have permission from the other site to use their page? If not,
you are in breach of copyright.


Could be, there are a lot of variables we don't know. Not having access
!= don't have permission. (Probably does, but we don't know)
--
WebcastMaker
Webcasting for free
http://www.webentations.com
Jul 23 '05 #6
On Wed, 8 Sep 2004 21:09:38 -0400, WebcastMaker <in**@invalid.c om>
declared in alt.html,comp.l ang.javascript:
Could be, there are a lot of variables we don't know.
Which is why I asked, instead of accusing. :-)
Not having access
!= don't have permission. (Probably does, but we don't know)


Indeed.

--
Mark Parnell
http://www.clarkecomputers.com.au
"Never drink rum&coke whilst reading usenet" - rf 2004
Jul 23 '05 #7

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

Similar topics

2
16480
by: madmike | last post by:
Hi, I have an iframe with some javascipt that gets the mouse x and y position like this: //inside the iframe's onmousemove call back funciton xMousePos = window.event.clientX + document.body.scrollLeft; yMousePos = window.event.clientY + document.body.scrollTop; This gets the x and y position inside the iframe. But what I want is
1
5190
by: Alexander | last post by:
Scroll IFrame Content to desired Position (JavaScript) ====================================== How can I scoll the content of an Ifram to a desire Position? The function should be: window.scrollTo(x,y)
0
2175
by: nick | last post by:
In the following link, the screen has a lot of refresh (iframe keep relocate its position ) when the mouse hover around the popup menu. But IE doesn't have the problem. http://greywolfdesign.com/tmp/projects/sylvan%20way/ProjSylvan.htm The flashing doesn't occur after I remove the iframe in the html code. Any clue?
1
1548
by: christine.nguyen | last post by:
I'm using offset values to find the x,y position of an iframe on an html page. The code works in all browsers except in Mac explorer 5.x. Does anybody have any ideas how to get around this?? Thanks. My code is below, assuming myFrame is the iframe in question, offsetLeft is the x coordinate, offsetTop is the y coordinate. For some reason, offsetParent for the iframe on Mac Explorer is always undefined. Even stranger, this is only the...
6
15068
by: PD | last post by:
I have a parent .Net page (http://mywebsite/project.aspx) that has an iframe (http://iframe/iframe.aspx) which are on seperate domains. I need to adjust the scrolling on the parent window due the size of the iframe. It displays a rather lengthy message which causes scrolling on the parent page (not in the iframe) which is what the UI folks want. I need to be able to scroll the parent page from a click in the iframe. After they read this...
19
60407
by: derelicten | last post by:
hello , I have an issue positionating some pics I want to anchor to an existing table cell but I cant just place regular position on the cell because the background is fixed height and the set of pics is bigger then fixed space. SO I put them in a position:absolute div and I gave a position:relative to the container td. This seems to work in IE but in Firefox position is relative to the browser window, not the cell. I need a compatible solution...
19
5948
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up the page but I find that the iframes interfere with the getting the mouse coords from the screen which is essential in moving the scroll bar around. My test html is given below. With the iframe hidden the mouse coords are obtainable. With the...
1
2111
by: Luongo | last post by:
Hi, I'm working on a project which includes an iframe that can be scrolled both vertically and horizontally. The basic purpose is for the user to be able to create an image map - on each click, the image in the iframe refreshes itself with red dots on the click coordinates and lines connecting the dots. This is working fine - however, my problem is that each time the iframe refreshes it goes back to the default starting position, whereas I...
4
2153
by: oldnewbie | last post by:
EXAMPLE Please load a movie (with the buttons) to see the iframe's content... Given the above example, where I used an iframe (within it's own division...) over an embedded Flash movie, how can I restrict the iframe from moving out of the position where it's seems to be within the Flash movie on IE, when the user resizes the browser window's width to less than the Flash movie's width? I've managed to get it working fine on FF & Safari...
0
9796
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9642
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10782
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10543
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9323
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5624
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5789
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4422
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 we have to send another system

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.