Search:

Type: Posts; User: LUCKY_PRINCE

Search: Search took 0.01 seconds.

  1. Re: Why won't both button script run?

    OK I think I figured it out because this script now works.

    It looks like I have to check first if the element is in the page (not null). I found the error when I used the browser to trace the...
  2. [RESOLVED] Why won't both button script run?

    So I am modifying the ASPX page since we don't have the CODE BEHIND. These are just minor visual changes.

    When BUTTON C is pressed, the displayed labels numerator is wrong. So a fix is just to...
  3. Replies
    3
    Views
    1,779

    Re: Trying to get SUBSTRING

    Thanks all.

    Someone pointed out to me that on a .substring(x,y), x and y are indices so they would get swapped on who has a higher index value. I ended up using below recommendation:

    ...
  4. Replies
    3
    Views
    1,779

    [RESOLVED] Trying to get SUBSTRING

    I have a label control with text Present: 1/1(2%)

    I want to change via script to Present 1(2%)

    When testing, I can get the string Present: 1 but I can't get the other half (2%) .
    What am I...
  5. Replies
    4
    Views
    2,710

    Re: Hide a DIV when page renders

    Yeah all DIVs hidden from the start.

    click BUTTON 1 displays DIV1 and hides all other DIVs
    click BUTTON 2 displays DIV2 with DIV1 (DIV1 should not be showing)
    click BUTTON 3 displays DIV3 and...
  6. Replies
    4
    Views
    2,710

    Re: Hide a DIV when page renders

    Looks like this worked when I tested. I'm open to other inputs.


    <script>
    window.onload = function(){

    var x = document.getElementById("myDIV1");
    var y = document.getElementById("myDIV2");...
  7. Replies
    4
    Views
    2,710

    Re: Hide a DIV when page renders

    It looks like I can use this script below. It hides DIV2 but I want to use it only when DIV1 and DIV2 is visible on the screen. How do I check for that condition?

    <script>
    window.onload =...
  8. Replies
    4
    Views
    2,710

    Hide a DIV when page renders

    I'm trying to do some minor changes on a web application but the source code is missing. I think I can modify the ASPX page for minor visual changes and that's what I'm trying to do but not really...
Results 1 to 8 of 8



Click Here to Expand Forum to Full Width