So I've got this code:
var req = new Request.HTML({
        method: 'get',
        data: { 'n' : selectedNode },
        url: 'expenses_items.php',
        update: $('expenses_items_content')
}).send();

selectedNode gets changed around to values like "Date:2009-01", or
"Category:Jelly+Beans" that are pulled from the "rel" of an anchor
tag.

For some reason my url string is giving me:
http://blah/expenses_items.php?n[0]=Date:2009-01

rather than what I expect ( no [0] ):
http://blah/expenses_items.php?n=Date:2009-01

If I do directly place the text, instead of the variable like this:
data: { 'n' : 'Date:2009-01' }
I get the proper url string.

How did I mess up my variable?

Reply via email to