Cecil
19+ years progress programming and still learning.
This is something that has plagued me forever since I've started using WebSpeed. I have never been able to using Embedded SpeedScript of an element to be able to output an attribute. What am I doing wrong?
Here is a simple snippet of HTML/SpeedScript code that I have never quite understand why it will not compile .
ERROR:** Unable to understand after -- " value="". (247)
My current working solution:
Here is a simple snippet of HTML/SpeedScript code that I have never quite understand why it will not compile .
Code:
<div>
<select name="SiteGUID">
<!--WSS FOR EACH ttSite:-->
<option <!--WSS IF ttSite.SiteGUID EQ get-value('SiteGUID') THEN {&OUT} 'selected="selected"'. --> value="`ttSite.SiteGUID`"> `html-encode(ttSite.SiteName)` </option>
<!--WSS END. -->
</select>
</div>
ERROR:** Unable to understand after -- " value="". (247)
My current working solution:
Code:
<div>
<select name="SiteGUID">
<!--WSS FOR EACH ttSite:-->
<!--WSS IF ttSite.SiteGUID EQ get-value('SiteGUID') THEN -->
<option selected="selected" value="`ttSite.SiteGUID`"> `html-encode(ttSite.SiteName)` </option>
<!--WSS ELSE -->
<option value="`ttSite.SiteGUID`"> `html-encode(ttSite.SiteName)` </option>
</select>
</div>