• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

populating the parent combo box

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have a combo box.Adjoining that i have a hyper-link which opens a popup.
Now that popup has few hyperlinked texts in every row which on click returns that value or populates the combobox in the parent page.i have written one thing which works for the similar requirement in the case of text boxes but in this case of combo box.This doesn't work.

code:-

window.opener.document.forms[0].others.options[len]=new Option(typeName,typeId);

here typeName,typeId are arguments of the method in javascript.



Plzzzzzzzz help.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the problem? You say there is one, but never mentioned what it was.

Eric
 
Abhishek Kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Eric,

the problem was that it said:---

The server threw an exception when i clicked on the hyperlink in the pop-up
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the server threw an exception. So you are saying that the server is causing the error and not the client?

The thing I am really going after without asking it was: What does the error message say exactly?

Eric
 
Abhishek Kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi eric,
first of all i should say i was not running any server-client.I had both the pages(parent and pop-up) as htmls.the error message i was getting was a javascript error which read as:-

the server threw an exception.

but when the same command(window.opener.document.showSlaUserDetails.otherBox.options[len] = newOpt is written on the parent page itself without window.opener then it works perfectly.but in popup it says the above said error.

the server threw an exception
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the code you are using to open the pop up window.

Eric
 
Abhishek Kumar
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The code i am using for opening the popup window is

window.open('OtherContacts.html','true','width=400,height=400,status=yes');
 
reply
    Bookmark Topic Watch Topic
  • New Topic