ActionsDev

3 replies to this thread. Most Recent

DeltaDave

10 Apr 2012, 9:15 pm

[Pro] javascript joining

I am trying to join 2 javascript events in a link

My first is

javascript:PJDshow(tabarea1TabItems,0);

the next is

onclick="addClass('myID', 'newclass')"

Not being much of a JS expert I was wondering how these 2 can be joined to both work on a link.

David

quote

Glasgow, Scotland

iMac 27 Snow (HD gone west!) and Pro 5.6.5 & 6.1.2 & now 7!

waltd

11 Apr 2012, 2:01 am

If you have the first one in your link address area, you would add the second through the Extended dialog. Add the Name: onclick and Value: addClass(‘myID’,’newclass’) through that sub-dialog.

Walter

On Apr 10, 2012, at 5:15 PM, DeltaDave wrote:

I am trying to join 2 javascript events in a link

My first is

javascript:PJDshow(tabarea1TabItems,0);

the next is

onclick="addClass('myID', 'newclass')"

Not being much of a JS expert I was wondering how these 2 can be joined to both work on a link.

David

quote

See the new ActionsForge: http://ActionsForge.com

Freeway user since 1997

http://www.walterdavisstudio.com

DeltaDave

11 Apr 2012, 9:06 am

Thanks Walter

I will give that a go later

D

quote

Glasgow, Scotland

iMac 27 Snow (HD gone west!) and Pro 5.6.5 & 6.1.2 & now 7!

Back to Top

DeltaDave

13 Apr 2012, 7:04 am

Thanks Walter - works for me

D

quote

Glasgow, Scotland

iMac 27 Snow (HD gone west!) and Pro 5.6.5 & 6.1.2 & now 7!