textarea in footer form shows html tags

<oXygen/> general issues.
kmank
Posts: 85

textarea in footer form shows html tags

Wed Apr 13, 2016 3:26 am

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.
Image

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!
Radu
Posts: 5752

Re: textarea in footer form shows html tags

Wed Apr 13, 2016 8:25 am

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 5752

Re: textarea in footer form shows html tags

Wed Apr 13, 2016 12:16 pm

By the way,

You can also directly output feedback-enabled webhelp using our WebHelp plugin:

https://www.oxygenxml.com/doc/versions/17.1/ug-author/#topics/installation-dita-webhelp-feedback.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
kmank
Posts: 85

Re: textarea in footer form shows html tags

Wed Apr 13, 2016 4:39 pm

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:

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>
           


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?
Radu
Posts: 5752

Re: textarea in footer form shows html tags

Thu Apr 14, 2016 4:30 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
kmank
Posts: 85

Re: textarea in footer form shows html tags

Thu Apr 14, 2016 4:50 pm

Sent - thanks! I look forward to your reply.
Radu
Posts: 5752

Re: textarea in footer form shows html tags

Fri Apr 15, 2016 9:29 am

Hi,

What I did was to copy the entire XSLT template:

Code: Select all

 <xsl:template match="/|node()|@*" mode="gen-user-footer">


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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests