473,545 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
+ 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.docu ment.test.dept. options.length;
opener.document .test.dept.opti ons[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 1387
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.docu ment.test.dept. options.length;
opener.document .test.dept.opti ons[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
1331
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 tbl_new ( t_value varchar(16) primary key not null, dt_used datetime, l_pid int(9)
0
1457
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. This ends up with 3-5 statements but every single time I do it this way, mysql chokes after the 3rd statement, no matter what order. I'm on...
0
1254
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
2462
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 table and increment by one (just one select + one table lock). Which one is fastest? Regards, BTJ
2
13708
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 the setting for a time format I use in MSAccess, also, I use a Short Date format to put into table only a date, not time, the application will...
4
1457
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
2583
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 I can probably code what I want to do the hard way. I've searching around online but can't find an answer to this specific question. Here's the...
1
2503
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'; where snapapps is the user name and dap1 is hostname. when i tried this its gving error incorrect table name.
0
7487
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...
0
7420
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...
0
7680
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. ...
1
7446
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...
0
6003
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...
1
5349
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3476
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...
1
1908
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
0
731
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.