On 12/8/05, Ryan Wynn <[EMAIL PROTECTED]> wrote:
> On 12/7/05, Volker Weber <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Ryan Wynn wrote:
> > > Anyway, this works as intended.  The span gets updated with the
> > > correct html and it looks far better than an entire page refresh.  My
> > > problem is that setting the innerHtml does not seem to be
> > > reinterpreting embedded javascript and stylesheet references.
> > > innerHtml was the easiest way to accomplish what I wanted, I don't
> > > argue it may not be the best.  Can anyone help explain to me why if my
> > > new html content has <script src="x"></script> that script will not be
> > > interpreted using innerHtml?
> >
> > I can't explain :-).
> > But maybe i can help. I am using prototype [1] to refresh content via
> > ajax and there is the javascript part outfiltered before setting to
> > inner html and the javascript part is, (if via options enabled)
> > evaluated afterwards via javascripts 'eval()' command.
> >
> > regards
> >  Volker
> > --
> > Don't answer to From: address!
> > Mail to this account are droped if not recieved via mailinglist.
> > To contact me direct create the mail address by
> > concatenating my forename to my senders domain.
> >
>
> Volker, that was helpful.  I switched from dojo to ajaxAnywhere which
> like Prototype utilizes the eval() command.  This worked much better.
>
> I encountered a couple problems though.  I am using the myfaces
> calendar component which evidently uses document.write().  This breaks
> the page when eval is called.  Does Prototype have any support to
> workaround this?
>
> Also, I noticed that AjaxAnywhere as well as dojo seem to be posting
> my checkboxes incorrectly.  I haven't figured this out yet, but it
> seems to be posting them as true even when they are unchecked.  If I
> remember correctly the normal behavior is to not send the parameter at
> all if the checkbox is unchecked.  Do you know if Prototype handles
> this correctly?
>
> Thanks,
> Ryan
>

Scratch the checkbox problem.  I think that's a problem in my
application code.  But the document.write is still an issue for me.  I
am investigating a workaround that does not require me to change
tomahawk.

Reply via email to