A unwanted behavior

  •  07-21-2004, 7:29 PM

    A unwanted behavior

    When I use the following script i get downright wierd results...the text grows and grows and grows....
    The script below works fine and display fine and I can edit it ok.
     
    <script language='javascript'>var fdy_7="00"</script>
    <UL>
    <LI><A href="line1.pdf">Line 1</A> 
    <LI><A href="line2.PDF">Line 2</A> 
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line3.pdf">line 3</a>')}</SCRIPT>
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line4.pdf">line 4</a>')}</SCRIPT>
     
    but when I change fdy_7="00" to fdy_7="07" is when i get the headache
     
    <script language='javascript'>var fdy_7="07"</script>
    <UL>
    <LI><A href="line1.pdf">Line 1</A> 
    <LI><A href="line2.PDF">Line 2</A> 
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line3.pdf">line 3</a>')}</SCRIPT>
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line4.pdf">line 4</a>')}</SCRIPT>
     
    It updates fine and display fine. Next time I edit the file it becomes
     
    <script language='javascript'>var fdy_7="07"</script>
     
    <UL>
    <LI><A href="line1.pdf">Line 1</A> 
    <LI><A href="line2.PDF">Line 2</A> 
    <LI> <A href="line3.pdf">line 3
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line3.pdf">line 3</a>')}</SCRIPT>
    <LI> <A href="line4.pdf">line 4</a>
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line4.pdf">line 4</a>')}</SCRIPT>
     
    then next time
     
    <UL>
    <LI><A href="line1.pdf">Line 1</A> 
    <LI><A href="line2.PDF">Line 2</A> 
    <LI> <A href="line3.pdf">line 3
    <LI> <A href="line3.pdf">line 3
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line3.pdf">line 3</a>')}</SCRIPT>
    <LI> <A href="line4.pdf">line 4</a>
    <LI> <A href="line4.pdf">line 4</a>
    <SCRIPT language=javascript>if(fdy_7=="07") {document.write ('<LI> <A href="line4.pdf">line 4</a>')}</SCRIPT>
     

    and so on  and so on....
     
    It appears that you are grabbing the "rendered" data rather that the underline 'true' html. Is there a setting that can turn this off????????
     
    Bob
     
     
     
     
     
View Complete Thread