Hi, from help in the javascript forum I found the error in some code but need help. This bit of code works perfectly, trouble is I am writing it to a javascript function so the height needs to be in "" instead of "" otherwise I get an error message.
Can anyone suggest how to write it so that it writes " instead of "".
I have tried all combinations of adding " to the code but as soon as I think I am there I get throw out again.
I got to this point and it wrote the "to the page but kept the inner "", when I took them out I got asp errors again.
Is there a function that could tell it to write the " differently.
Any help would be great before I pull my hair out!
Thanks
Richard
Can anyone suggest how to write it so that it writes " instead of "".
I have tried all combinations of adding " to the code but as soon as I think I am there I get throw out again.
Code:
if CurrentRatio > TargetRatio then ' We'll scale height strResize = "width=""" & intDesiredWidth & """" else strResize = "height=""" & intDesiredHeight & """" ' We'll scale width end if else strResize = "" end if ImageResize = strResize
I got to this point and it wrote the "to the page but kept the inner "", when I took them out I got asp errors again.
Code:
strResize = "height= " """ & intDesiredHeight & """"" ' We'll scale width end if else strResize = "" end if
Any help would be great before I pull my hair out!
Thanks
Richard
Comment