Thank you for your time Jeromy,

I have confirmed that the problem with running javascript is actually
related to ajax tags. I placed the following script on my page:
<script type="text/javascript" >
alert('boo');
</script>

It refused to run until I removed the one <sx:div> section I had in the
page:
<sx:div id="pricingParams" href="%{#ajaxPricingUrl}"
        listenTopics="/reloadPricingParams"
indicator="pricingParamsIndicator"
        preload="true" executeScripts="true" separateScripts="true">
        <s:include value="ajaxPricing.jsp" />
    </sx:div>

After I removed that, the script worked fine. As far as I can tell, any ajax
tags, even a simple sx:a, stops scripts from running. At the moment, I'm
using a 2.1.1 snapshot version of the dojo plugin; do you recommend that I
change to another version? To another poster, you recommended not using ajax
tags.

I'm asking since at the version of the plugin I'm using, the tags seem to be
highly breakable; they give problems that are very difficult to debug.

On Sat, Apr 19, 2008 at 9:46 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:

> Jukka Välimaa wrote:
>
> > Thanks for input,
> >
> > Yes, I have debug on. Interestingly enough, with firefox it gives me
> > just
> > this:
> > DEBUG: Error running scripts from content
> >
> > However, I just noticed that with IE, I get this:
> > DEBUG: Error running scripts from content:Could not complete the
> > operation
> > due to error 80020101
> >
> >
> >
>
> Hi Jukka,
>
> I have confirmed that the plugin will execute inline scripts if (and only
> if) executeScripts="true" and separateScripts="true".
>
> The errors you're getting are caused by invalid javascript evaluation.
> 80020101 is probably a missing semi-colon.
>
> Use a javascript delinter to find the javascript errors:
> http://www.jslint.com/lint.html
> http://www.javascriptlint.com/
>
> Your work-around is fine.  In fact, I discourage any use of inline scripts
> and recommend binding to the events published by the dojo widgets.
> regards,
> Jeromy Evans
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to