Add event to link does not work

In Javascript, I use a function (I'll call him 'function1') to create a bulleted list.

In the script that creates the bulleted list, I am trying to change ownership of each element OnClick so that when the user clicks on an item in the list, another function (I'll call him 'function2') is called and that function passes the ID of the element as a parameter. I think it should work, but I can't seem to get the passed ID at my function.

Here is the script used by function1 to set the properties of the unordered list:

return '

';

Here's the script for function2:

function populate_state_station_programs (station_state) {}
Alert (station_state.ID);

}

My alert in function2 guard display "Undefined" instead of the value of the ID I want to enter.

I hope my explanation is clear. Can someone give me some information about what can go wrong?

Sorry, gang.

I was not correctly set the id for the anchor point property. In my example below, row.id was actually worthless.

When I put it correctly, I got the alert in the click event.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • series-usb lag with other usb devices

    I don't think that the title of this post fully captures the problem I am facing, then, let me explain a little more.  I'm trying to interface with a lot of devices in LabVIEW, two of my machines are built to order and use adapters of RS-422 to USB a

  • OfficeJet pro 8600/printer

    I can't take the printer to print from another room.  Everything is connected as it should be.  It was working fine and all of a sudden, it would not print. I checked all the connections.

  • HP ENVY 700-214: map new graphics for HP ENVY 700-214

    OK, so I have a HP ENVY 700-214 (plug here: http://support.hp.com/us-en/document/c04100558 ) and I'd like to get a new graphics card that is compatible with my setup. Everything is wxactly the way I bought it. I want a graphics card that will be easy

  • HP Color Laserjet 277dw MFP: recording digitized files in smaller formats such as jpeg or pdf

    The scanner automatically saves files as TIF, which are too big for my needs. How can I change this setting to save the files scanned in JPEG or PDF format? (I scan using only HP Easy Scan of my computer, because my home computer is not on a network,

  • Access to the NAC/clean for VOIP phones

    Hello - Here is an excerpt from the manual of the CAM. "You must create a list of filters of the overall system of MAC addresses designed to ignore IP phones through which client computers will connect to your network. "You can set a list of MAC addr