Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for tutorial on "Set text of layer" behavior 3

Status
Not open for further replies.

frenchtaquito

Technical User
Apr 5, 2001
56
US
Hi, Does anyone know of a good, extensive tutorial on the set text of layer behavior in DW3? I just can't get a handle on inserting javascript (specifically transferring form info) with this behavior. Thanks in advance. Ginger
 
French...there does not seem to be much info on the net about this behaviour. I am pretty good at digging up something if it is out there.

I will look at it when I get home and maybe I can walk you thru the process or write a little FAQ on the behaviour.

watch the posts later this evening. Ya' Gotta Love It!:)X-)
 
Hi French...I am still looking for a tutorial on how to get form data entered by a user to be set as text into a layer. That is what you want...correct?

I found some help on entering text into a form field using this method...for instance you have a form field that wants to know what is your favorite color.

you would have the 8 colors listed as text and when the user clicked on one it would add that color name to the form field to be submitted.

If I am reading your post correctly, you are wanting just the opposite of that which in my mind seems like the form data entered by the user would have to be established as a variable and then the set text behaviour would call the variable somehow.

Am I making any sense at all?

Ya' Gotta Love It!:)X-)
 
Yeah thats about it, accept a bit simpler (I hope). We want the user to enter whatever text they want and have it appear in the layer with our font & color,formating, etc. I can get it to work in a pop up window (not using the set text of layer,just javascript) but I'm really looking to get it to appear in another layer on a new page. I am not really sure if the set text of layer idea will work because I really don't know what it is capable of.

I hope this make sense.
 
I am not exactly what most people would call a javascript guru but if you have it working in a pop-up window...I wonder if one could enter the script or the pertinent part into the dialogue box when you click on set text as layer?

I know there is a way to do it....

You know...It may be to your advantage to check out the javascript forum and see what their take is on it. Ya' Gotta Love It!:)X-)
 
Yeah, that is what I was having trouble with, getting the javascript to work in the layer. I was hoping to find a tutorial to help out. BUT, as it turns out, I figured it out last night. I was making it much harder than it had to be. Just one line of scipt was all it took. I was trying to add too much. Thanks for your advise, It is much appreciated! Ginger
 
Do you mind posting the script or better yet....click on the FAQ tab and make a little tutorial out of it. It would be well appreciated.

Thanks! Ya' Gotta Love It!:)X-)
 
I was grabing info from a text field (inputtext) in the form so all I had to do was put this script into the html window in the set text of layer pop up after I choose which layer to put it in.

The {...} brackets are necessary in DW3 but thats about it.

{form.inputtext.value}

and that's all!

I hope this helps anyone in the same situation.
Ginger
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top