textarea in footer form shows html tags
Oxygen general issues.
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
textarea in footer form shows html tags
Hello
I have placed a feedback form in the footer of the webhelp topics (in dita2webhelp.xsl file). It transforms just fine, but the textarea of the form (last input of the form) displays all the remaining code from the html page it is hosted in.

Usually this indicates tags that are not closed properly, but this is not the case here. I'm not sure how adding this into the XSL would change how to code the form.
Does anyone have any advice? Thanks for any help!
I have placed a feedback form in the footer of the webhelp topics (in dita2webhelp.xsl file). It transforms just fine, but the textarea of the form (last input of the form) displays all the remaining code from the html page it is hosted in.

Usually this indicates tags that are not closed properly, but this is not the case here. I'm not sure how adding this into the XSL would change how to code the form.
Does anyone have any advice? Thanks for any help!
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: textarea in footer form shows html tags
Hi,
Could you go into more detail about what particular changes you made to the dita2webhelp.xsl?
Maybe post the XSLT changes that you made in a codeblock...
Regards,
Radu
Could you go into more detail about what particular changes you made to the dita2webhelp.xsl?
Maybe post the XSLT changes that you made in a codeblock...
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: textarea in footer form shows html tags
By the way,
You can also directly output feedback-enabled webhelp using our WebHelp plugin:
https://www.oxygenxml.com/doc/versions/ ... dback.html
Regards,
Radu
You can also directly output feedback-enabled webhelp using our WebHelp plugin:
https://www.oxygenxml.com/doc/versions/ ... dback.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Re: textarea in footer form shows html tags
Hi, Radu
We are actually trying to implement a simple feedback form because, although the feedback feature you suggested is nice it is not the type of functionality we are looking for.
We need a simple modal dialog that collects information and sends it via PHP to our email. To that end, I have placed code in the appropriate areas to initiate the popup of the modal dialog and receive the results mentioned earlier, as follows:
Within dita2webhelp.xsl, I created a table in the footer area with the following code:
the result is the screencap posted earlier. The textarea itself displays all the HTML code existing in the page after the textarea code. Also, the Submit button is not shown.
Does this make more sense?
We are actually trying to implement a simple feedback form because, although the feedback feature you suggested is nice it is not the type of functionality we are looking for.
We need a simple modal dialog that collects information and sends it via PHP to our email. To that end, I have placed code in the appropriate areas to initiate the popup of the modal dialog and receive the results mentioned earlier, as follows:
Within dita2webhelp.xsl, I created a table in the footer area with the following code:
Code: Select all
<td width="33%" align="left">
<a href="#openModal" class="btn_feedback">
<img src="feedback.png" alt="We Want Your Feedback" height="56" width="75" />
</a>
<div id="openModal" class="modalDialog">
<div style="font-family:Segoe UI Light">
<a href="#close" title="Close" class="close">X</a>
<form action="send_form_email.php" style="font-family:Segoe UI Light">
<img src="logo.jpg" height="33" width="175" />
<h2>Give us your feedback!</h2>
<p>Complete the form below to send an email:</p>
<p><label for="name">Full Name: <input type="text" size="48" name="name" id="name" value="" ></input></label></p>
<p><label for="email">Email: <input type="email" size="48" name="email" id="email" value="" ></input></label></p>
<label for="company">Company: <input type="text" size="48" name="company" id="company" value="" ></input></label><br/>
<label for="comments">Comments: </label><br/>
<textarea name="Comments" id="comments" maxlength="1000" cols="49" rows="6"></textarea><br/>
<input type="submit" value="Send" />
</form>
</div>
</div>
Does this make more sense?
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: textarea in footer form shows html tags
Hi,
Could you attach the modified dita2webhelp.xsl to an email (support@oxygenxml.com)? It would help to see the change in context.
Regards,
Radu
Could you attach the modified dita2webhelp.xsl to an email (support@oxygenxml.com)? It would help to see the change in context.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9439
- Joined: Fri Jul 09, 2004 5:18 pm
Re: textarea in footer form shows html tags
Hi,
What I did was to copy the entire XSLT template:
from your modified XSLT stylesheet to the one in my DITA OT distribution.
I could not reproduce the problem, I tested with both Chrome, IE and Firefox. What web browser are you using?
I will also send you separately via email a screenshot with how this looks on my side.
Regards,
Radu
What I did was to copy the entire XSLT template:
Code: Select all
<xsl:template match="/|node()|@*" mode="gen-user-footer">
I could not reproduce the problem, I tested with both Chrome, IE and Firefox. What web browser are you using?
I will also send you separately via email a screenshot with how this looks on my side.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service