I have the following code to open a popup window and pass a value.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450") ;
w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However,
in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100 in
this example) in Firefox, IE.
How to pass value when using Safari?
Thanks. 4 1211
nick wrote: I have the following code to open a popup window and pass a value.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450") ; w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However, in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100 in this example) in Firefox, IE.
What does Safari show for
window.itemIndex
?
--
Martin Honnen http://JavaScript.FAQTs.com/
All this.itemIndex, itemIndex, window.itemIndex shows "undefined".
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:42***********************@newsread2.arcor-online.net...
nick wrote:
I have the following code to open a popup window and pass a value.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450") ; w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However, in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100 in this example) in Firefox, IE.
What does Safari show for window.itemIndex ?
--
Martin Honnen http://JavaScript.FAQTs.com/
"nick" <nb**************@hotmail.com> skrev i meddelandet
news:cu**********@news3.bu.edu... I have the following code to open a popup window and pass a value.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450") ; w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However, in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100
in this example) in Firefox, IE.
How to pass value when using Safari?
Thanks.
Perhaps popup.htm renders its content before w.itemIndex is defined?
--
Joakim Braun
Not likely, I added alert(itemIndex) in the function called by onload and it
still shows undefined on Safari.
w.itemIndex should create a public member itemIndex of the object window.
"Joakim Braun" <jo**********@jfbraun.removethis.com> wrote in message
news:zm*******************@nntpserver.swip.net... "nick" <nb**************@hotmail.com> skrev i meddelandet news:cu**********@news3.bu.edu... I have the following code to open a popup window and pass a value.
In the main html page:
var w = window.open("popup.htm","","width=510,height=450") ; w.itemIndex = 100; // alert(w.itemIndex) will show 100
The popup window will be openned. However, in the popup.htm, javascript code
alert(this.itemIndex) shows 'undefined', while it shows right value (100 in this example) in Firefox, IE.
How to pass value when using Safari?
Thanks.
Perhaps popup.htm renders its content before w.itemIndex is defined?
-- Joakim Braun
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: MPennig |
last post by:
Here's my situation. I have a function defined in my document's <head>
section which adds a <script> tag to a specified <div> tag. The added
<script> has a src="" attribute pointing to a PHP file,...
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
...
|
by: R Duke |
last post by:
I have tried everything I can think of to change the visible property
of a design time created control from a dynamically created control's
command event handler.
Here is the scenario.
I have...
|
by: Joe Cox |
last post by:
I am having a problem with style properties for dynamic images in Mac OS X
Safari. By dymanic images, I mean images allocated with the javascript 'new
Image()' call.
With static images (created...
|
by: Simon Wigzell |
last post by:
document...focus() will scroll the form to move the
specified text field into view on everything I have tried it with except
Safari on the MAC. The form doesn't move. Any work around? Thanks.
|
by: dd |
last post by:
Hi,
I've discovered a scenario where Safari 1.3 (I need to make my stuff
compliant with 1.3+) gets confused about the scope of local variables
WITHIN functions that were created in dynamic...
|
by: Nathan Sokalski |
last post by:
I have LinkButtons that are dynamically created in one of the PostBack
events. They must be created in the PostBack event because one of the
variables required to determine which ones to create...
|
by: GinnTech |
last post by:
I have a site that works perfectly in IE6 IE7 FF2 FF3 but not in the
latest Safari.
Here is the issue. I am attempting to call functions within a flash
object. When trying to attempt to...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
| |