Webstyle Javascript Coding Problem
The code below is from my Webstyle-generated script:-
-------------------------------------------------------------------------
writeButton(loc+"../","/page.html","button_b1",200,30,"mygraphicname","",0 );
-------------------------------------------------------------------------
The fields in the above line corresponds to the following defined labels in the following line from the same script:-
---------------------------------------------------------
function writeButton(urld, url, name, w, h, alt, target, hsp)
---------------------------------------------------------
I have no problems when working with the fields except the first one (urld). I've been trying unsuccessfully to make sense of the field. Does anyone know what this field refers to and how to make it work?
Thanks in advance for the help.
Re: Webstyle Javascript Coding Problem
rwon, I have moved your thread to the correct forum for Webstyle questions.
Please take care where you post.
Re: Webstyle Javascript Coding Problem
I am still struggling with this problem.
Hope to find a solution soon.
Re: Webstyle Javascript Coding Problem
Hi Rwon,
I'm not sure what your question is, and why you would want to write your own javascript when Webstyle has already done so.
Re: Webstyle Javascript Coding Problem
Looking at a sample file created with Webstyle 4, the only time the urld variable is more than an empty text string is when the button is linked to a local page.
The javascript for the Webstyle menu is located in a subfolder and the local pages are located in the parent folder of the subfolder.
The variable loc is usually an empty text string so the urld variable (the loc variable) would be the text string "../"
1 Attachment(s)
Re: Webstyle Javascript Coding Problem
The attached image shows how the writebutton function is used in a simple 4 button menu. The first three buttons link to xara.com, xaraxone.com, and talkgraphics.com. The fourth button links to the "Home" page, and is the only place the urld (the loc) variable contains more than a null string.