Hi all
After many months of reading through Technotes, taking peoples advice and working through different Tutorials with a view to advancing my poor understanding of freeway 3 actions compared to the old simple actions, I am now at a point that I could do with a few pointers.
Over the last few months I have been converting my simple actions into the more advanced 3 action with the help of all the Tech notes, Getting started with actions document and the JSrefernce manual, plus I have found a few books which also helped.
Initially I have been concentrating using the simple:
function fwAtContent()
fwDocument.fwWrite('script to be added');
to write fairly basic actions and to me this method seems fairly straight forward (very similar to the old non javascript simple actions), but I do know this only adds script to a standalone action (to the output stream), so are limited in there use
My next step was to use the fwFind method to find a specific tag and than add code to the tags that Freeway outputs
I sort generally understand how this works (please tell me if I am wrong)
I could find a specific Tag by using for example:
var divTag = fwDocument.fwtags.fwFind("div");
and if this was applied to a freeway layered html box this would find the div tag as in this example
<div id="item1" style="position:absolute; left:135px; top:164px; width:244px; height:144px; z-index:1; font-size:1px">
</div>
I could then find other tags within the div using div.style and I have found references to this in the actions tech Note 2. so I do have a reference for that
Now to my questions problems which are twofold
1 - is there a standard equivalent to
function fwAtContent()
fwDocument.fwWrite
when I want to write to a freeway item
Because different examples seem to have different methods to add data to a tag
2 - and the other question which is related to this is: If I was successful in finding a Tag like:
<div id="item1" style="position:absolute;left:135px; top:164px; width:244px; height:144px; z-index:1; font-size:1px">
</div>
how do I add script after the opening div like this:
<div id="item1" style="position:absolute;left:135px; top:164px; width:244px; height:144px; z-index:1; font-size:1px"> <script to be added>
</div>
I cant seem to find a reference to adding script between the end of the styles and the actual content of whatever that the div may contain.
I hope I have explained my self and if any body could give me a tiny bit of direction it would be a really help.
thank you in advance
pems
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options