473,503 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refreshing field problem

Hello there....I have the following problem...

I have a form on a PARENT window with couple of text boxes and select
boxes..

One selection box is HOTELS and beside that is a link add_new_hotel which
openes in a popup window....

After entering the hotel nam in CHILD window and submiting theform i want to
see the entered hotel in PARENT window in a selection box....

Ok...I did that with the window.opener.location.reload()..

But i want only THAT one selection box to be reloaded(refreshed) not the
whole form because the all the other fields are then reseted as well....

any suggestions...

thanx and respect....

point
Jul 20 '05 #1
1 1932
Hm.....thanx for the answer....

It seams that I didn't mention something important...

When the new HOTEL is added from a CHILD window it is entered(I'm a PHP
programmer) in mySQL database so actually select filed on PARENT window
should refresh the databse....

opener.document.forms['myForm'].elements['mySelectBox'].options.add(
new Option("Option Name","Option Value"));

Not just to add the <option> to parent form but also to stay in database....

any onther suggestions as I'm a bit new to Javascript on this level...

respect...

p.
"Lasse Reichstein Nielsen" <lr*@hotpop.com> wrote in message
news:k7**********@hotpop.com...
"point" <in**@caanproduction.com> writes:
Ok...I did that with the window.opener.location.reload()..

But i want only THAT one selection box to be reloaded(refreshed) not the
whole form because the all the other fields are then reseted as well....


opener.document.forms['myForm'].elements['mySelectBox'].options.add(
new Option("Option Name","Option Value"));

The "add" function is newer, and doesn't work in NS4. If necessary,
it can be simulated.
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'

Jul 20 '05 #2

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

Similar topics

0
1446
by: John Walker | last post by:
Hi, I'm running into a really frustrating problem using Crystal Reports .NET. I'm using an ADO.NET dataset as my data source for the report, and everything works wonderfully until I need to add...
1
392
by: LRD | last post by:
Form not refreshing after autopostback unless keyboard or mouse move Hi, We created several new ASP.NET C# forms for our intranet. In each form we use panels for different sections of the...
9
3310
by: William Wisnieski | last post by:
Hello Everyone, Access 2000 I have a main form with a continuous subform. On the main form I have a text field called . It gets populated based on what the user selects in a field on the...
1
1694
by: J | last post by:
Hi, Ive got 3 forms, (a subform within a subform within a form) and when I refresh the outermost form, Access closes and offers to send an error report. The forms worked fine a few weeks ago,...
1
1322
by: MaXXXiMaNiAc | last post by:
Hey all, I have attached here a sample of what im trying to do. Basically i set up a combo box in a subform where an employee will select his name. I want the selection to be made only once...
0
1465
by: sean.hpr | last post by:
Hi all- I am a vb2005 newb so apologies in advance. Essentially I am having some problems with data refreshing on some of my forms. Background: I have created a project containing a few...
2
2840
by: millertime90 | last post by:
Hi basically my problem is I have 2 drop down menus populated by my database the first populated by a field in the database and the 2nd populated with a relation to the value selected in the first...
3
3692
by: Marcin Domaslawski | last post by:
Hi, I've got simple script which adds to pointed DIV another DIV which contains 1 combobox (select) and textbox (input) - it's a AddNewRow() function. Every field has got unique ID (acording with...
13
7428
by: honey99 | last post by:
Hi! I have to fix a problem in JSP.Actually,i have a JSP page say Ex1.jsp.In this Ex1.jsp i have an anchor tag which links into another JSP page i.e when i click on the link another pop-up window...
2
1565
by: T | last post by:
I'm stuck and would appreciate help. I have a field called plant, (combobox) that list 4 plants, another field called customercost and one field for MIcost, GAcost, LAcost and OG cost. Whenthe...
0
7199
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
7076
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
7274
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,...
0
7323
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
6984
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
7453
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...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
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.