Sorry, I was just blind.... Thanks!!
On 17 Nov., 12:20, Michel Belleville <michel.bellevi...@gmail.com> wrote: > It would help if your function was ready to receive this additional > parameter wouldn't it ? > > var init_number_of_bikes = function(chosen_id) { ... }; > > Then you could use the value. If someone calls the function and gives no > value, it'll be empty (empty is false when used as a boolean in JavaScript). > > Michel Belleville > > 2009/11/17 heohni <heidi.anselstet...@consultingteam.de> > > > Hi, > > > I have build a function like this: > > > var init_number_of_bikes = function(){ > > // Request all avail. bikes > > var urlextend = findBikes(); > > $.ajax({ > > type: "get", > > url: > > "./includes/ajax.php?action=getBikes"+urlextend, > > success: function(msg){ > > //alert(msg); > > $('.nrBikes').html(msg) > > } > > }); > > } > > > And I am calling this funtion on several places. > > Now I came to the point, where I want to pass an addtional value to > > this function, like > > > init_number_of_bikes(chosen_id); > > > But how can I access this passed value within my function?