473,480 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

passing an element into iframe

11 New Member
Hi, im using a colorpicker script where i have to pass an element like this:

Expand|Select|Wrap|Line Numbers
  1. node = targetDocument.getElementById('textcolorpicker');
  2. var selector = window.top.makeColorSelector(node);
  3.  
works fine in firefox, but in internet explorer: invalid argument.
it says that about the makeColorSelector()
now i can do window.top.anyOtherFunc(), so i think it has problems passing the node..

any ideas? thank you very much:)
Dec 18 '06 #1
1 1496
b1randon
171 Recognized Expert New Member
Hi, im using a colorpicker script where i have to pass an element like this:

Expand|Select|Wrap|Line Numbers
  1. node = targetDocument.getElementById('textcolorpicker');
  2. var selector = window.top.makeColorSelector(node);
  3.  
works fine in firefox, but in internet explorer: invalid argument.
it says that about the makeColorSelector()
now i can do window.top.anyOtherFunc(), so i think it has problems passing the node..

any ideas? thank you very much:)
Why are you trying to pass a node like that? If it isn't necessary it is probably way easier to pass an attribute to the top or reference the window's dom from the top.
Dec 18 '06 #2

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

Similar topics

2
2787
by: Jim | last post by:
I want to pass a value from the parent to the iframe when I click a button, the parent will reload and the iframe should show the data I need... when the iframe loads I want it to run something...
10
2444
by: vbMark | last post by:
Hello, I am doing this: window.location="page2.php?subj="+subj+"&body="+body; to send information to another page. However, I don't want that second page to show up or display in any way....
5
2884
by: tweety | last post by:
I have a Rich text editor which is a DIV element. I am not able to capture the value of this element.i am working in firefox browser. alert(window._content.document.getElementById("RTEContent"));...
13
4109
by: Fernando Deutsch | last post by:
I have an html page with an iframe on it. Inside the iframe there is an img element. I am looking how to reference the iframe from the img element contained on it and cannot find a way to do it. I...
14
2003
by: kelvin.jones | last post by:
Hi, if I had the ID of an input element, how can I find the input's FORM in javascript? Basically, given a input's dom id, I want to insert something in the onSubmit of the Form that that input...
2
2932
by: strauchdieb | last post by:
hi, i have a non-visible iframe on my page. in that iframe i load data in a htmltable. if the data is ready, i want to take this table out of the iframe and insert it in the parent. as soon as...
4
4146
by: moondaddy | last post by:
I have a htm page where I need to pass some data to an aspx page as a means of sending data to the database. I don't need to see the aspx page so I was going to put it in a hidden iframe. This...
2
5451
by: MATTXtwo | last post by:
how to get/set element that inside of iframe from parent pages.. please give me tip.. my iframe define :name="ifrMenu" id="ifrMenu" the element inside of iframe that i need control :id="mnuLevel"
0
7033
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
6903
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
7071
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...
1
6726
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
5318
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
4763
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
1291
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
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
170
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.