asp.net - news ticker jquery not running on dynamic content (repeater control) -


I created the news to show as a ticker that is dynamic, I create repeater controls to display the news I have,

  & lt; Div id = "nt-1" for a jquery (vTicker) to slide the news one by one. Jquery was working on static data but it is not working, title-container "> gt; & lt; asp: repeater id =" rptNews "runat =" server "> gt; item title & gt; & lt ; Li> ID = "Ticker"> 
  • & lt; asp: label Id = "lblHeader" runat = "server" text = '& lt;% # Eval ("newsHeader")%> & gt; CssClass = "lblHeader" & gt; & lt; / ASP: Labels & gt; & lt; / p & gt; & lt; small & gt; & lt; asp: label ID = " LblDate "runat =" server "text = '& lt;% # Eval (" newsDate ")% & gt; CssClass = "lblDate" & gt; & lt; / ASP: Labels & gt; & gt; & gt; & lt; br / & gt; & lt; p & gt; & lt; ASP: Labels ID = " LLL content "runat =" server "text = '& lt;% # Eval (" newsDescr ")% & gt; CssClass = "lblContent" & gt; & lt; / ASP: Labels & gt; & lt; / p & gt; & lt; / a & gt; & lt; / li & gt; & lt; / ul & gt; & Lt; / ItemTemplate & gt; & lt; / ASP: repeater & gt; & lt; / div & gt;
  • jquery: -------

      & lt; script type = "text / javascript" & gt; $ (function () {$ ('# ticker'). VTicker ();}); & lt; / script & gt; < / Code> 

    Please tell me what is wrong with it.

    The front-end code should look like the header template and the reversal footer templates

       gt; & gt; HeaderTemplate & gt; & quot; Lt; div id = "nt-title-container"> 
  • ID = "ticker">
  • & lt; & lt; Lt; a href = "newsandevents.aspx" id = "link news" & gt; & lt; b & gt; & lt; asp: label id = "lblHeader" runat = "server" text = '& lt;% # Eval ("newsHeader")% & gt; CssClass = "lblHeader" & gt; & lt; / ASP: Labels & gt; & lt; / p & gt; & lt; small & gt; & lt; asp: label ID = " LblDate "runat =" server "text = '& lt;% # Eval (" newsDate ")% & gt; CssClass = "lblDate" & gt; & lt; / ASP: Labels & gt; & gt; & gt; & lt; br / & gt; & lt; p & gt; & lt; ASP: Labels ID = " LLL content "runat =" server "text = '& lt;% # Eval (" newsDescr ")% & gt; CssClass = "lblContent" & gt; & lt; / ASP: Labels & gt; & lt; / p & gt; & lt; / a & gt; & lt; / li & gt; & lt; / ItemTemplate & gt; & Lt; FooterTemplate & gt; & lt; / ul & gt; & lt; / div & gt; & lt; / footerTemplate & gt; & lt; / ASP: repeater & gt;
  • < P> You need to modify your javascript to target the inherent device as opposed to running vTicker.

      
    
    
    
      

    Comments

    Popular posts from this blog

    java - org.apache.http.ProtocolException: Target host is not specified -

    java - Gradle dependencies: compile project by relative path -

    ruby on rails - Object doesn't support #inspect when used with .include -