Whats the contents of the clearSelect?

Felix.


On 11/28/06, Greg Miller <[EMAIL PROTECTED]> wrote:

Hi,

I've only tested it in FF.  I'm 99% certain what's happening is the html
with
the <select> hasn't finished loading before I'm trying to access it.

The code portion is:

    win = new Window('noteswin',{className: "alphacube", title: "Notes",
width: 650, height: 250, top: 100, left: 100})
    win.setAjaxContent("/snippets/notes.html")
    win.setDestroyOnClose()
    win.show(true)
    win.setDelegate(notesClose)
alert("wait...")
    clearSelect("notecats")

The clearSelect is where the error occurs.  If I leave in the alert it
works
fine, take it out and it gets an error about not finding notecats.

I can probably move the clearSelect, which will solve it.  But, a more
permanent solution would be better.

Thanks for helping!
Greg



At 10:15 PM on Tuesday, 28 November 2006, Felix Shnir wrote:
>There is a known issue with selectboxes in IE :) Do you have a sample?
>
>Felix
>
>On 11/28/06, Greg Miller <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> I'm making good progress in using PWC.  So far it works as advertised
and
>> is
>> quite easy to use.
>>
>> I've run into an issue that I don't know how to solve.  I'm creating a
>> window
>> and setting the content with setAjaxContent() which works
>> perfectly.  However,
>> there is a <select id="notecats"> in the html being loaded, but I can't
>> always
>> access it.  I've come to the conclusion that perhaps the ajax request
>> hasn't
>> finished by the time I want to fill the <select>.
>>
>> Is there a way to either submit the ajax request synchronously, or to
>> somehow
>> not continue until after the html is loaded?
>>
>> Thanks!
>> Greg
>>
>> _______________________________________________
>> Javawin mailing list
>> [email protected]
>> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to