i need that it returns me id from the clicked object


2009/4/9 Pedro Erzubiaki <[email protected]>

> Jon,
>
> it shows in the screen "undefined" instead of "1"         =(
>
> my data.json is:
>
> {
>             "title": "Harry Potter",
>             *"id":    "1",*
>             "start": "2009-03-12",
>             "icon":  "http://www.iconesgratis.com.br/img/harry-potter.jpg";
>         },
>
>
>
> 2009/4/9 Jon Crump <[email protected]>
>
>
>> On Apr 9, 12:29 pm, Pedro Erzubiaki <[email protected]> wrote:
>>
>> > >>>> I have the function:
>> >
>> > >>>> Timeline.CompactEventPainter.prototype._showBubble=function(A,F,B){
>> > >>>>        var id =   //id of the clicked object
>> > >>>>        alert('this is '+id);
>> > >>>> };
>> >
>> > >>>> how I make to catch an attribute of an object of timeline? for
>> > >>>> example: " id".
>>
>> Pedro, how about:
>>
>> Timeline.CompactEventPainter.prototype._showBubble=function(x,y,evt){
>>        alert(evt._id);
>>
>> };
>>
>> Jon
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to