Newbie Question

Results 1 to 5 of 5

Thread: Newbie Question

  1. #1
    Heather Newbie Guest

    Default Newbie Question

    Hi gang;<BR><BR>I am taking over a project that has some jscript in it, and I really am not all that well versed in how to use it. So I need your help.<BR><BR>I am need to dynamically assign a value to a variable within some jscript based upon an variable I have in an ASP page. How can I do that?<BR><BR>Current Arrangement:<BR><BR>&#060;SCRIPT language="JAVASCRIPT"&#062;<BR>// intNumTabs : number of tabs in the control<BR>// intCurrentTab : currently selected tab<BR>var intNumTabs = 7, intCurrentTab = 0<BR>.<BR>.<BR>.<BR>&#060;/SCRIPT&#062;<BR>[use ASP to connect to a database to get iNumberOfTabs]<BR><BR>Rather than assign &#039;7&#039; to intNumTabs, I would like to assign the value in iNumberOfTabs to it.<BR><BR>Can anyone help??

  2. #2
    Your Professor Guest

    Default Homework Question

    Hmm.<BR><BR>What have you tried so far? Show us what you&#039;ve tried, and we&#039;ll help you through it. We can&#039;t do it for you.

  3. #3
    HN Guest

    Default RE: Homework Question


  4. #4
    Join Date
    Dec 1969

    Default Easier than you think...

    var intNumTabs = &#060;% = iNumberOfTabs %&#062;, intCurrentTab = 0<BR><BR>Really. That simple.<BR><BR>

  5. #5
    HN Guest

    Default RE: Easier than you think...

    Thank you Bill.<BR><BR>I also found that on<BR><BR>You are totally right. It is easier than I thought.<BR><BR>Once again, thank you for your help.<BR><BR>Heather Newbie.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts