it should find the element once its been added to dom. perhaps you are
calling the javascript that needs that id a tad too early? try
target.appendjavascript instead of prepand

-igor


On 2/26/07, dukejansen <[EMAIL PROTECTED]> wrote:


Yes, I've tested some more and I only get this error in my Ajax debug
window
under IE. In Firefox, it correctly loads the modal window.

However, in Firefox it fails a few steps later because it is unable to
locate a form element by ID, when clearly the form element is coming back
as
part of the Ajax request, I can see it in the log.

Are there known issues with Ajax not being able to find elements by ID
when
those elements only exist in markup that was updated by Ajax, and they
weren't in the original markup?

I'm trying to build a very Ajax-dependent UI that has multiple nested
modal
windows and lots of ajax tabbed panels and so forth. Should I scale back
my
optimism? Are there tricks/pitfalls I should be aware of?

Using 1.2.4.

-Jason


igor.vaynberg wrote:
>
> ive seen that in explorer before when it encounters something it cannot
do
> (like change outerhtml of a tr). it is a very helpful message :) i bet
> that
> code looks like this
>
> try {
>  processjavascript();
> } catch (Throwable e) {
>   // we should never get here
>   throw new Exception("Unknown Error");
> }
>
> :)
>
> -igor
>
> On 2/25/07, dukejansen <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hmm. Yeah, have done this. All the event code gets through just fine,
it
>> steps all the way back out with no obvious exception. I'll start
setting
>> some exception breakpoints and see if I can't find it.
>>
>> I wanted to rule out the possibility that the error message was
something
>> client-side before I kept trying to find it server side.
>>
>>
>> Ryan Holmes wrote:
>> >
>> > Set a breakpoint in the Java code that handles the Ajax event and
>> > then the problem is usually pretty obvious...
>> >
>> > -Ryan
>> >
>> > On Feb 25, 2007, at 3:54 PM, dukejansen wrote:
>> >
>> >>
>> >> INFO: Response parsed. Now invoking steps...
>> >> ERROR: Error while parsing response: Unknown runtime error
>> >> INFO: Invoking post-call handler(s)...
>> >> INFO: Invoking failure handler(s)...
>> >>
>> >> How can I dig deeper into this "Unknown runtime error"? I see
>> >> nothing in the
>> >> server logs. Thought I'd ask for simple tips for debugging this
>> >> sort of ajax
>> >> response before taking the time to describe the full context of my
>> >> problem.
>> >> --
>> >> View this message in context: http://www.nabble.com/%22Unknown-
>> >> Runtime-Exception%22-in-Ajax--tf3290142.html#a9151269
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
----------------------------------------------------------------------
>> >> ---
>> >> Take Surveys. Earn Cash. Influence the Future of IT
>> >> Join SourceForge.net's Techsay panel and you'll get the chance to
>> >> share your
>> >> opinions on IT & business topics through brief surveys-and earn cash
>> >> http://www.techsay.com/default.php?
>> >> page=join.php&p=sourceforge&CID=DEVDEV
>> >> _______________________________________________
>> >> Wicket-user mailing list
>> >> Wicket-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>> >
>>
-------------------------------------------------------------------------
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
>> > your
>> > opinions on IT & business topics through brief surveys-and earn cash
>> >
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > _______________________________________________
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/%22Unknown-Runtime-Exception%22-in-Ajax--tf3290142.html#a9151938
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/%22Unknown-Runtime-Exception%22-in-Ajax--tf3290142.html#a9163216
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to