Oops, I got it from the name of an li in this case... switched to the
rel of an <a> and everything hunky dory.
Still curious about that though, if you do:
var someVar = $('element').get('name');
It's not a string but an array?
On Jan 20, 4:30 pm, rpflo <[email protected]> wrote:
> 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?