Anyone got an idea's I've been looking nearly all day about javascript
variables, and I just dont know enough about them to figure out what
I'm doing wrong. I think its a jquery issue. How can I tell jQuery to
evaluate this var?


On Oct 1, 5:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Basically what I need done is i need "thequery" variable evaluated to
> be my string of params. like Value1: 1, Value2: 2, but I think jQuery
> thinks thequery is similar to declaring value1, it doesnt know any
> better. Is there anyway to say "This is a variable, evaulate it!?"
>
> On Oct 1, 4:08 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I've also tried this:
>
> >         if ( \$(e.target).is('.legacy_view') ){
> >                 \$("#loading").toggle();
> >                 var thequery = \$("input#legacy_data").val();
> >                 alert (thequery);
> >                 \$("#query").load("/storeops/invoices/invoice.pl", 
> > {thequery},
> > function(){
> >                         \$("#loading").toggle();
> >                 });
>
> > On Oct 1, 3:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hello,
>
> > > I'm very in-experienced in javascript, this is my second javascript /
> > > jQuery experiment. I was wondering if someone could tell me what I'm
> > > doing wrong:
>
> > > I have the following code
>
> > >         if ( \$(e.target).is('.legacy_view') ){
> > >                 \$("#loading").toggle();
> > >                 var thequery = \$("#legacy_data").val();
> > >                 alert (thequery);
> > >                 \$("#query").load("/mysite/thepage.pl", {thequery}, 
> > > function(){
> > >                         \$("#loading").toggle();
> > >                 });
>
> > > thequery is data the looks like this: "Value1: 1, Value2: 2".
> > > Basically I'm creating the list of variables with a perl script else
> > > where, and sending them to the javascript function by a hidden form
> > > field.
>
> > > *The $'s in the javascript are esacped for perl.
>
> > > Everytime I run this with thequery in my param list,  my javascript
> > > debug window says "invalid object initializer".
>
> > > Anyone know whats up here?

Reply via email to