[jQuery] Re: ajax load, url variable question.

2008-01-22 Thread hj
On Jan 20, 2:18 pm, Mike Geise <[EMAIL PROTECTED]> wrote: > I am using the ajax load method to populate a select list. > > $("#games").load("$siteRoot/file/ajaxgames.aspx", > {criteria.Platform.PlatformID: $(this).val(), view: "normal"}); > > what I am wondering is how I can get jquery to work w

[jQuery] Re: ajax load, url variable question.

2008-01-21 Thread Hamish Campbell
Here's one way - it's possible, but messy, as you have to use eval. As far as I can see you can't have a variable variable name, unless you're evaluating on the fly. For example: var a = { b: 'x' }; var c = { a.b: 123 }; alert(c.x); // hopefully we'll get "123" .. doesn't work, because a.b is