SID-01178: Writing HTML into a text area input to pass as 1
| Status: |
Answered |
TWiki version: |
5.0.1 |
Perl version: |
5.005 |
| Category: |
CategoryJavaScript |
Server OS: |
RedHat Linux 7.5 |
Last update: |
14 years ago |
Hello,
I was having some trouble figuring out how to post conditional input into a table. So I wrote some javascript to write the html for each row into a textarea input that I use as a %URLPARAM% for the Comment Plugin. I put the anchor inside the table on another page. So far it is working, but are there any problems that I am not seeing that could arise out of doing it this way?
Thanks,
Josh
--
JoshuaTatman - 2011-05-16
Discussion and Answer
Hi Josh,
what kind of conditional input do you have? The
IF statement
should work in tables too (it does with my twiki 4.3) and there is also the if condition from the
SpreadSheetPlugin.
In my opinion your solution sounds good too. You should always be careful that no user can insert any harmful code into your wiki but I think thats ok in your case.
The
CommentPlugin is a great tool - I like using it.
Some people do have javascript disabled in their browser, but that will bring general problems with twiki (and many other pages).
I hope that helps you, otherwise just ask
--
CarlaReitzenstein - 2011-06-08
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2011-08-01
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.