Stupid me, the dataType must be 'script' or must not be specified.

On Mar 30, 12:35 pm, bdaniel7 <[email protected]> wrote:
> Hello,
> I'm trying to use njs templates with jQuery like this:
>
> <div id="results">
>         #parse("/companies/_results.vm")
> </div>
>
> $JQuery.LinkToRemote("Filter", "FindByFirstLetter.asp",
> $Dict.CreateDict( "dataType='json'", "with='FirstLetter=M'"))
>
> In FindByFirstLetter.njs I have:
>
> $page.replacehtml('#results', "%{partial='/companies/_results.vm'}")
>
> The ajax call is executed, the data is set into the
> PropertyBag["companies"],
> Firebug shows that return call like this:
> try
> {
> jQuery("#results").html("<table width=\"100%\" cellpadding=\"1\"
> cellspacing=\"0\">\n       ...
> </table>\n");}
>
> catch(e)
> {
> alert('JS error ' + e.toString());
>
> }
>
> However the js is not actually executed, so nothing happens in the
> page.
>
> Is there anything else that I need to set, configure in order for this
> to work?
>
> Thanks,
> Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to