Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8745159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:57:40+00:00 2026-06-13T11:57:40+00:00

I am calling a list of records from my sql database then I write

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:57:41+00:00Added an answer on June 13, 2026 at 11:57 am

    If you’re updating your count variable server side, then your approach is correct, all for one small syntax error.

    var heightToSet = "<%=CountRecord %>" * 30; 
    $("#SubFirst").animate({height: heightToSet + "px"},"slow");
    

    EDIT

    Answer in here for clarity,

    I believe the offending line should be

    <a onclick=" <%dim NumClicked=0 dim CountRecord =20 if NumClicked =0 then%> 
    $('#SubFirst').animate({height:'<%=CountRecord%>'*30 + 'px'},'slow'); 
    <%NumClicked=NumClicked+1 else %>$('#SubFirst').animate({height:525px},'slow'); 
    <%NumClicked=0 end if%>" id="first" overflow: "hidden">People</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am calling a contacts list from a MySQL database using AJAX in PHP
Currently, if we want to get a list of records from the database, our
I have a list of calling codes for all countries(the phone number prefixes), I
I have a query that, basically, says this: SELECT DISTINCT [DB_ID] FROM [TableX] WHERE
I have a silverlight 3 application, that fetches some simple data from a ms-sql-server
I'm currently calling a stored procedure from a .net application that inserts records into
I have a combobox that populates with a list of addresses: this.entityAddressField = new
I have the following class that doesn't seem to be returning a List from
What is the syntax for calling list.size() in a JSF 2.0 Facelets template (eg,
I was thinking about the performance of calling List<T>.Indexof(item) . I am not sure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.