This topic is locked

Yet another problem with HTML Editor

7/29/2008 2:18:56 PM
PHPRunner General questions
S
spintz author

I'm trying to change this code :

<TD class=borderbody vAlign=middle><A class=tablelinks

href="java script:void(0);">Copy</A></TD>


to this :

<TD class=borderbody vAlign=middle><A class=tablelinks onclick="onRequestCopy({$row.1requestid_value},{$row.1statusuid_value});"

href="java script:void(0);">Copy</A></TD>


And PHPRunner keeps removing the quotation marks and making it :

<TD class=borderbody vAlign=middle><A class=tablelinks

onclick=onRequestCopy({$row.1requestid_value},{$row.1statusuid_value});

href="java script:void(0);">Copy</A></TD>


Which causes Javascript errors. How can I get this to work, I'm lost!

J
Jane 7/30/2008

Hi,
thank you for pointing me to this issue.

We're working on the Visual Editor now.
To make your pages working just add whitespaces to your code:

<TD class=borderbody vAlign=middle><A class=tablelinks onclick="onRequestCopy({$row.1requestid_value} , {$row.1statusuid_value});"

href="java script:void(0);">Copy</A></TD>

S
spintz author 7/30/2008

Thanks Jane. I also found out that doing the following works as well -

<TD class=borderbody vAlign=middle><A class=tablelinks onclick="java script: onRequestCopy({$row.1requestid_value},{$row.1statusuid_value});"

href="java script:void(0);">Copy</A></TD>


( Using the "java script:" string. Note: there is no space, the forums force it in, I guess to prevent browsers from interpreting the text following it as actual java script! )