View Full Version : How to: onClick to display ustream.tv in ap Div

04-07-2009, 06:30 PM
Hello all. Website under development is http://www.livedout.com/ (http://www.livedout.com/) I am using DW CS4. I want to click on each of the 3 "EveryONE has...." buttons and display a different ustream.tv video clip in the ap Div window above. Am confused on the onClick programming required. I'd appreciate some help with the javascript (i assume) to place in the DW onClick event box?

Relative to this, DW "edit tag" -> "Events" - "onClick" does not produce choices, an empty box for JS I'm guessing. Is that right? Do you have to write code for each different event?

Thank you in advance.

04-07-2009, 07:36 PM
If you want to use DW's behaviors, then don't edit the tag. Highlight it and choose a script from the behaviors panel.

04-07-2009, 07:55 PM
Thank you for stepping in and pointing me to behaviors. I see "onClick" There is no script for displaying a video in a specific ap Div. A little more info if you please. Oh yeah. Great forum. Thx.

04-07-2009, 07:59 PM
Look into the help manual and the behavior related to show/hide, I think it should do it for you.
If that does not work for you, I'd look into having SPRY/Ajax dynamically load the player.

04-07-2009, 08:04 PM
Read a manual? I don't understand what you mean. :)