473,729 Members | 2,235 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.l ocation.reload( )..

But i want only THAT one selection box to be reloaded(refres hed) 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 1942
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**@caanprodu ction.com> writes:
Ok...I did that with the window.opener.l ocation.reload( )..

But i want only THAT one selection box to be reloaded(refres hed) 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
1465
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 a field to the dataset. To try to do this I went to the Dataset1.xsd tab, found my dataset, and added a necessary field; and then performed a "Schema/Generate Dataset". I then went to the Crystalreports1.rpt tab/ Field Explorer and went to that...
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 form that are visible or not depending on what the user is doing. Each particular form.aspx page has a user control on it. This user control contains the form HTML and the C# code.
9
3337
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 sub form (code in the AfterUpdate Event). Here's the issue. If the user deletes a subform record. The field on the main form shows null even if there is a value in the preceding subform record. What I'd like it to do is immediately refresh to
1
1722
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, but now they cause this error in Access 2002 (Access 2000 is fine) Each of the sub forms use values from their parent forms to produce results.
1
1335
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 because that same person will be entering data for a prolonged period of time. I set up a linkchildfield on the main form to write to the main table. My problem is. on a new record, the name from the combo box does not populate in the...
0
1479
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 forms. The main form is linked to a data feed which is constantly refreshing data as it is available (it checks automatically and is updating a few times per second). The other forms are essentially taking this data and
2
2858
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 and basically i'm just havin a problem refreshing the menus after i submit a value or refresh the page. My code is below: //javascript <script language="JavaScript"> function autoSubmit() { var formObject = document.forms; ...
3
3707
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 script below). There is also getNewDig(int) function, which change value of appropriate input field (checks value of select field and put it to input e.g. if in Pr_1 value has changed than that value is set to the Number_1 input). Problem is,...
13
7452
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 will open.My problem is the pop-up window and the parent window has same combobox.if i add data through html form in pop-up window(Ex2.jsp) it enters the combobox...but the data in the combobox of parent window(Ex1.jsp) is entering only when i refresh...
2
1578
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 user selects a plant and enters a customercost the afterupdate on the customercost using an if then else statement populates the correct cost field. The problem is if the user orgianlly enters the plant as MI MIcost doesn't refrish with change. I've...
0
8913
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9280
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9142
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8144
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6016
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2162
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.