Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Using a asp.net vb variable in javascript animate

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40433

    I am calling a list of records from my sql database then I write them to a dynamic table. During this I have a variable(CountRecord) that increments every time I add a new element to the table. I was wondering if it was possible to call CountRecord from my .js file and change my

    $(“#SubFirst”).animate({height:525},”slow”);

    to something like

    $(“#SubFirst”).animate({height:”<%=CountRecord%>*30px”},”slow”);

    I am guessing that the variable doesn’t cross over different files. So I don’t even know if this is possible. If anyone knows of a different way to do this I am willing to give it a shot.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.