[jQuery] Re: Assigning variable on click

2009-04-15 Thread Josch
You initialize the variable within your function ("var color"). This means the variable works only within the function. You have to initialize it outside your function (Before "$ ("span.yellow").click()"). Josch On 15 Apr., 15:26, Connor wrote: > Hi, > &g

[jQuery] Re: how to select elements inside jQuery objects

2009-04-16 Thread Josch
I don't really understand what you want to do... Do you want to select a DOM-Object like ? Then, the selector would be $("form.example"). Josch On 16 Apr., 10:47, hybris77 wrote: > i've tried to do the following on a grand scale the last few days, > please help &

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Josch
Do you get an empty alert or nothing? On 16 Apr., 12:13, spstieng wrote: > Hi, I'm trying to use jQuery.post() function to retrieve som data. But > i get no ouput. > > My PHP file looks like this: > >   inlcude_once('dal.php'); > >   //Get store data, and ouput it as JSON. >   function getSto

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Josch
]; $storeID = $_POST['sID']; call_user_func ($func, $storeID); // Not sure about the syntax here, but something like that ..because "func" is just another parameter for PHP. 3. Yes, you can use sID: storeID Greets, Josch On 16 Apr., 14:21, spstieng wrote: > No, I don't

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Josch
By hitting F12, firebug opens up in Firefox. On the first use, you have to check all three options (Console, Javascript, Network). After reloading the page, you can see the requests and its answers under "Console". Under "Script", you can debug your scripts. Above "Script" you can select which sc

[jQuery] Re: jQuery.post() not working for me

2009-04-16 Thread Josch
ata[] = array( >     "id"=>($row['id']) , >     "name"=>($row['name'])); >   } >   $storeData = json_encode($data); > > I still get 'undefined' output :( > > On 16 Apr, 15:36, Josch wrote: > > > By hitting F12,