Hi Guys,
Using a TV so the user can set a slider transition. Original slider code is
<script language="javascript">
$(document).ready(function (){
$("#pikame").PikaChoose({autoPlay:true, speed: 5000, transition:[0]});
$("#id").PikaChoose({IESafe:true});
});
I amended it to:
<script language="javascript">
$(document).ready(function (){
$("#pikame").PikaChoose({autoPlay:true, speed: [[*slider_speed]], transition:[[[*slider_transition]]]});
$("#id").PikaChoose({IESafe:true});
});
so a user defined TV will populate the value eg for transiotion 1-10 or speed 1000 - 10000. Anyway the slider_speed TV pulls in the value fine but not the slider_transition. For some WEEEIRD reason the fix is putting a commented out [[*slider_transition]] above the opening script tag <script
so here is the weirdest of solutions.
<!--[[*slider_transition]]-->
<script language="javascript">
$(document).ready(function (){
$("#pikame").PikaChoose({autoPlay:true, speed: [[*slider_speed]], transition:[[[*slider_transition]]]});
$("#id").PikaChoose({IESafe:true});
});
..somehow the value say 3 then passes to transition:[[[*slider_transition]]]}); with the comment set above. I thought commenting out deactivated code and not initialised stuff?
Anyway is there better way to do this. Feeling guilty that I found a poxy hack to fix it!

Is there a way for using TV’s in JS?
THANKS