Hi Walt thanks for coming back
but I am still not there.
If I describe what I am trying to do then it may make it easier for you to see what or where I am going wrong.
I have been using a combination of your method and weavers slight alternative of replacing content within a div (you helped me out with some excellent examples some time ago)
You came up with this method.
//get a reference to the item this action is applied to
var myDiv = fwDocument.fwTags.fwFind(fwItem,'div');
//make a new disposable tag to work with
var dummy = fwDocument.fwTags.fwAdd('');
//wrap this tag in a paragraph
dummy = dummy.fwAddEnclosing('p',true);
//add some text to it, the classic example text!
dummy.fwAddRaw('Hello, world!');
alert(dummy.fwToHTML());
//just so you can see where you have gotten at this point
myDiv.fwAdd(dummy);
//add the new dummy tag into the found tag
dummy.fwDelete();
//delete the dummy, otherwise it will print in your final HTML as the last line of code
and weaver also wrote down an alternative to referencing the div which was
var myDiv = fwDocument.fwTags.fwFind(fwItem,'div');
//so we have a reference to our div to which we want to add the JS
myDiv.fwAddRaw('string to add', myDiv);
//______________________________^^^^^ new AFTER argument
which has worked really well, and I have been using yours and weavers suggestions on how to get this to work. Now I am at a point were I would like to add some input from a drop down and one of those drop down options contains a built-in variable. Like a &_date or &_page.title
I have been successful in adding normal items like numbers and text into fwParameters but I cant seem to get the built variables to be recognized into some thing like below from a choice within a drop down
var theContent = myDiv.fwAddRaw( ' + fwParameters["PageTitle"].fwValue + '
Does this make sense, am I tackling this the correct way?
I am sorry if this seems to be going over old ground and I do appreciate the time every one has spent helping me out in the past, I will try to make the mental jump, I think I am not far off.
I did follow an example in the freeway actions document of:
<item-action name+"Image Border1">
<action-javascript>
functions fwAtContent()
{
fwDocument.fwWrite(' border=1');
fwDocument.fwWrite(' height=', fwHeight);
and then tried to adapt it to work in my example but this doesn’t work either
so again I have hit a brick wall.
So any help would be really appreciated
pems
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options