Dear Animesh,
I have tried all sorts but the result is always the same:
GetElementById is null or not an object..!
Is there a problem with the project type (VWP)?
Oddvard
-----Original Message-----
From: Animesh Sahay [mailto:animesh.sahay_at_gmail.com]
Sent: Monday, May 19, 2008 6:41 PM
To: users_at_woodstock.dev.java.net
Subject: Re: updating a dropdown on page1 from page2.
This should work:
var dom =
window.opener.document.getElementById("form1.propertysheet2.commonProp.manua
lset.manualsetDropDown");
-Animesh
On Mon, May 19, 2008 at 9:14 PM, Oddvard Myrnes
<oddvardm_at_doremitechno.com> wrote:
> Dear Animesh,
>
> The underlaying CachedRowSetXImpl (JPA data binding) must be triggered so
> that the data in it is refreshed. In the action_routine (java) I get the
> handle to the rowset (from the sessionbean) and call its
>
release(
http://developers.sun.com/docs/jscreator/apis/rowset/com/sun/sql/row
> set/CachedRowSetXImpl.html#release()) function. That should fire update
> events to all listners and refresh the rowset (I think :-). Then I call
your
> javascript code in the onclick event slot. Problem is that I get
javascript
> error "object does not support this property or method" which imply I get
> null back from getElementById. I forgot to mention that page1 and page2
are
> both popup pages. How do I get the corrct Id from page1 in javascript
> running in page2?
>
> My dropdown is located in:
> form1.propertysheet2.commonProp.manualset.manualsetDropDown.
>
> Oddvard
>
> -----Original Message-----
> From: Animesh Sahay [mailto:animesh.sahay_at_gmail.com]
> Sent: Monday, May 19, 2008 7:37 AM
> To: users_at_woodstock.dev.java.net
> Subject: Re: updating a dropdown on page1 from page2.
>
>
> Try using
> window.parent.getElementById(drop down id from page 1).refresh();
>
> -Animesh
>
> On 5/18/08, Oddvard Myrnes <oddvardm_at_doremitechno.com> wrote:
>> Hi,
>>
>> I have a dropdown bound to a CachedRowSetXImpl object on page1. I have a
>> popup page (page2 launced from page1) that manipulate the same data.
When
> I
>> close page2 I whould like to update the dropdown component on page1
> without
>> refreshing the whole page. Any hints, examples..?
>>
>> Oddvard
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
For additional commands, e-mail: users-help_at_woodstock.dev.java.net