ActionsDev

2 replies to this thread. Most Recent

pems

29 Jul 2010, 4:06 pm

[Pro] Finding any tag using fwFindEnclosing("")

Hi Everyone
I have been trying to create a little script and I cant for the life of me work out how to write something…. (No change there!!! ) What I would like to achieve is to use the: fwFindEnclosing to find any tag

I have used:
fwFindEnclosing(“h1”);
and
fwFindEnclosing(“p”);
but how would I find any tag that might be present… is there a way of adding more tags to the: fwFindEnclosing(” “); so it will find the one thats there or just make it a general find any tag type.

Any help will be very helpful….

Pems :)

quote

Tim Plumb

29 Jul 2010, 5:51 pm

Hi Pems, Although you can pass in an array to the fwFindEnclosing function to look for various tags you can also look for the direct parent by passing a null value as well. Something like; var enclosing = styleslink.fwFindEnclosing();

When I have more time I’ll dig out an example. Kind regards, Tim.

On 29 Jul 2010, at 17:06, pems wrote:

Hi Everyone I have been trying to create a little script and I cant for the life of me work out how to write something…. (No change there!!! ) What I would like to achieve is to use the: fwFindEnclosing to find any tag

I have used: fwFindEnclosing(“h1”); and fwFindEnclosing(“p”); but how would I find any tag that might be present… is there a way of adding more tags to the: fwFindEnclosing(” “); so it will find the one thats there or just make it a general find any tag type.

Any help will be very helpful….

Pems :)

FreewayActions.com - Freeware and commercial actions for Freeway Express & Pro. ………………………………………………………………………… Protect your mailto links from being harvested by spambots with Anti Spam. Only available at FreewayActions.com ………………………………………………………………………… http://www.freewayactions.com

quote


Extend Freeway the way you want with FreewayActions.com

http://www.freewayactions.com

Back to Top

pems

31 Jul 2010, 8:56 am

Hi Tim
Thats great, it did the trick.
Thanks for pointing me in the right direction
Pems

quote