specific document version restriction on an action

Hi everyone…
I have the basis of an action which is working but there are a couple of things ideally I would like to do…

  1. I would like to restrict the action to just one HTML document type of 3.2
    can anyone remember where that’s reference in the JSRef manual, I just went through it and I just cant see it, and I am sure its in there.

  2. I would like to delete the line thats created when a page is published is there a way stop this being published ?

cheers max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Max,

will limit the Action to HTML 3.2 only.

You can find and remove the DOCTYPE tag it using:

var doctype = fwDocument.fwTags.fwFind(“!DOCTYPE”);
doctype.fwDelete();

Joe

On 30 Apr 2009, at 11:43, max wrote:

Hi everyone…
I have the basis of an action which is working but there are a
couple of things ideally I would like to do…

  1. I would like to restrict the action to just one HTML document
    type of 3.2
    can anyone remember where that’s reference in the JSRef manual, I
    just went through it and I just cant see it, and I am sure its in
    there.

  2. I would like to delete the line thats created when a page is
    published is there a way stop this being published ?

cheers max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi joe cheers, the only question is:
did you write something before… “will limit the Action to HTML 3.2 only.”

thanks max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Max, (sorry, I forgot the list likes to eat code for breakfast)

<action-appliesto html32 >

will limit the Action to HTML 3.2 only.

You can find and remove the DOCTYPE tag it using:

var doctype = fwDocument.fwTags.fwFind("!DOCTYPE");
doctype.fwDelete();

Joe

On 30 Apr 2009, at 11:43, max wrote:

Hi everyone…
I have the basis of an action which is working but there are a
couple of things ideally I would like to do…

  1. I would like to restrict the action to just one HTML document
    type of 3.2
    can anyone remember where that’s reference in the JSRef manual, I
    just went through it and I just cant see it, and I am sure its in
    there.

  2. I would like to delete the line thats created when a page is
    published is there a way stop this being published ?

cheers max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Joe,
I’ve a vague recollection that finding the doctype like this was added (or
fixed) quite recently. If this method supported right back to v3?
I ask because I’m doing the same thing but with much more code using
fwFindAllContent and looking for the doctype that way.
It would be good if I could move into the 21 century! :slight_smile:
Thanks,
Tim.

You can find and remove the DOCTYPE tag it using:

var doctype = fwDocument.fwTags.fwFind(“!DOCTYPE”);
doctype.fwDelete();


Extend Freeway the way you want with FreewayActions.com
http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks joe both methods worked perfectly
thanks again

max


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

I think it may have been something that was added in 4, I don’t have
3.5 on this machine to test it though I’m afraid.

Joe

On 30 Apr 2009, at 17:45, email@hidden wrote:

Hi Joe,
I’ve a vague recollection that finding the doctype like this was
added (or
fixed) quite recently. If this method supported right back to v3?
I ask because I’m doing the same thing but with much more code using
fwFindAllContent and looking for the doctype that way.
It would be good if I could move into the 21 century! :slight_smile:
Thanks,
Tim.

You can find and remove the DOCTYPE tag it using:

var doctype = fwDocument.fwTags.fwFind(“!DOCTYPE”);
doctype.fwDelete();


Extend Freeway the way you want with FreewayActions.com
http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, I just tried this in FW 3 and it fails although it works in FW 4.
Something like the following would act as a catch all;
http://www.pastie.org/464606
although I never like doing things twice (unless it involves drink). :slight_smile:
Regards,
Tim.

Quoting Joe Billings email@hidden:

I think it may have been something that was added in 4, I don’t have
3.5 on this machine to test it though I’m afraid.

Extend Freeway the way you want with FreewayActions.com
http://www.freewayactions.com


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options