Login Register

parameter

How do I dynamically add GET parameters to the url of my dojo.data.ItemFileReadStore?

Hello,

I am new to Dojo and I am trying to create an ItemFileReadStore to feed a grid. Using the following markup, I get what I am looking for when the server reads the item parameter from the url.

<div dojoType="dojo.data.ItemFileReadStore" jsId="jsonStore" url="http://mysite.com&item=1234">
</div>

If I need to pass a different item number to the server dynamically, how would I go about doing that? I tried creating the Store programmatically like this, but the code throws an error on the last statement:

function getItem(){

Syndicate content