473,479 Members | 2,060 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Select Update Pb

Hi,
I've a pb only with IE!
A popup windows must be update an opener select form!!

In my popup i execute this :
addOption = new Option();
addOption.text = 'Aude';
addOption.value= 12;
newIndex = top.opener.document.test.dept.options.length;
opener.document.test.dept.options[newIndex] = addOption;

It's very good on Mozilla browser! but not in IE!!
On IE i've an error : 'Le serveur a généré une exception'

Have you some solution?
thanks!
Fred
Jul 23 '05 #1
1 1380
HENNINOT FRÉDÉRIC wrote:
<snip>
A popup windows must be update an opener select form!!
Must implies the absence of alternatives, there probably are
alternatives.
In my popup i execute this :
addOption = new Option(); <snip> newIndex = top.opener.document.test.dept.options.length;
opener.document.test.dept.options[newIndex] = addOption;

<snip>

When you use - new Option() - in the pop-up it is the Option constructor
local to the pop-up that is used, and the resulting object is located in
memory belonging to the pop-up. Inserting that object into a document in
another window either will not be allowed, will tie-up the memory used
by the pop-up after it is closed, or will require that the browser
recognise what is going on an clone the original Option into a new one
local to the original window. IE takes the first choice.

You could try using the Option constructor form the original window as -
new opener.Option() - or you could make a function in the opener that
creates and adds the new Options locally, and call that from the pop-up
passing the string values needed for - text - and - value - as arguments
to that function. (the function in the opener option is the one I would
go with)

In the end, though, you are going to find that pop-ups are not the easy
answer for UI design that they first appear to be.

Richard.
Jul 23 '05 #2

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

Similar topics

0
1322
by: Andy Jackman | last post by:
Hi, I want to get any one of a number of rows that matches some criteria and update it so that it is marked as 'mine'. How can I do this safely? Given something like this table: create table...
0
1456
by: Andreas Paasch | last post by:
I'm having a little problem here that seems difficult to solve - to me. I'm working on several tables at one time and once in a while I need to update them based on a previous select statement....
0
1250
by: Ron | last post by:
Is it possible to combine a select and update statement in mysql? If so, what is the syntax? Thanks. LH
6
2456
by: Bjørn T Johansen | last post by:
I need to maintain a manually counter for an id-field, but I can do this two ways. Either make a counter table (which means one select and one update) or just selecting the largest id from existing...
2
13703
by: Juggernath | last post by:
Hi, I spent all morning trying to find a way to select a datetime field from a table (I work with ASP) My SQL is "SELECT * FROM Mytbl WHERE myDate = #2.12.2003# " (I live in Croatia, so that's...
4
1454
by: osmethod | last post by:
Hello, I've had help from this group before and I hope someone could be of help again. I have 2 tables as follows tbl_joinings Mnum JoinDate
5
2571
by: njb35 | last post by:
Hi all I'm beginning my foray from VBA into VB 2005 Express, and enjoying some of the efficiencies it provides! I'm stuck with some dataset handling however that I _think_ can be automated but...
1
2494
by: sridhar4554 | last post by:
How to give a grant like select,update,insert on a single table i had tried with the command grant eg:GRANT SELECT,INSERT,UPDATE ON DTS_OUTBOX_QUEUE TO sanpapps@dap1 IDENTIFIED BY 'disable';...
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,...
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
6861
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...
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
2987
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
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.