0

How can I write document.write() functions inside a struts form. Although I give the id of each element in a javascript file, above js functions always write outside of the form. I need to add a line above of the s:textarea which is come from the javascript. How can I fix it?

Edited by Airshow: Capitalization and spacing

2
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by Airshow
0

Divsok,

document.write() functions inside a struts form

I'm struggling to understand what you might be attempting here. document.write() isn't the sort of statement I would normally associate with Struts.

Can you provide some code please.

0
<s:form action="">
    //insert javascript code here <script>function()</script>
    <s:textarea name="post" rows="10" cols="50" label="Your Post" labelposition="top" cssClass="post_area"/>
    <img id="loadingImage" src="images/loadingAnimation.gif" style="display:none"/>
    <sx:submit value="submit" targets="form" showLoadingText="false" indicator="loadingImage" cssClass="submit_button" />
</s:form>

how can i do this?because i need to print some images by js.the img tag also outside of the form

I'm struggling to understand what you might be attempting here. document.write() isn't the sort of statement I would normally associate with Struts.

Can you provide some code please.

Edited by divsok

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.