Note that there are some explanatory texts on larger screens.

plurals
  1. POI want to add a chart control inside a UL tag in code behind
    primarykey
    data
    text
    <p>I want to dynamically add chart controls inside my ul tags through code. How can I do this? This is my statement for the anythingslider javascript</p> <pre><code>&lt;script type="text/javascript"&gt; var slider2 = ['Machines', 'Trend','test','test2','test3']; function formatText(index, panel) { return slider2[index - 1]; } $(function () { $('#slider2').anythingSlider({ width: 800, // if resizeContent is false, this is the default width if panel size is not defined height: 400, // if resizeContent is false, this is the default height if panel size is not defined buildArrows: true, resizeContents: false, // If true, solitary images/objects in the panel will expand to fit the viewport autoPlay: true, // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not navigationFormatter: formatText, // Format navigation labels with text forwardText: "&amp;raquo;", backText: "&amp;laquo;" }) }); &lt;/script&gt; </code></pre> <p>Edit: This is the source code to the page with the new added code:</p> <pre><code>&lt;ul id="MainContent_slider2"&gt; &lt;img id="MainContent_PlantMachineChart" src="/ChartImg.axd?i=chart_93717cef16e84387b35d83bdd04da217_0.png&amp;amp;g=898a170672b0476ca6f6d49173c231b1" alt="" usemap="#MainContent_PlantMachineChartImageMap" style="height:400px;width:868px;border-width:0px;" /&gt; &lt;map name="MainContent_PlantMachineChartImageMap" id="MainContent_PlantMachineChartImageMap"&gt; &lt;/map&gt; &lt;li&gt;&lt;img id="MainContent_ctl01" src="/ChartImg.axd? i=chart_93717cef16e84387b35d83bdd04da217_1.png&amp;amp;g=23020f9898ab40898782de3234fae6e4" alt="" style="height:400px;width:868px;border-width:0px;" /&gt;&lt;/li'&gt;&lt;li'&gt;&lt;img id="MainContent_ctl03" src="/ChartImg.axd? i=chart_93717cef16e84387b35d83bdd04da217_2.png&amp;amp;g=aa749f6279484859a7892f1f117fbd1c" alt="" style="height:400px;width:868px;border-width:0px;" /&gt;&lt;/li&gt;&lt;/ul&gt; </code></pre> <p>It has all the data points listed for the first chart(which I left out here) which isn't added dynmically.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload