aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes <script> tag issue - double submission of form in FF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "<script> tag issue - double submission of form in FF" Watch "<script> tag issue - double submission of form in FF" New topic
Author

<script> tag issue - double submission of form in FF

Ragini Karimidla
Greenhorn

Joined: Jan 19, 2011
Posts: 1
Hi,

Yesterday, I ran into a strange issue regarding script tag in a JSP.
Here is the issue

I had multiple script tags connecting to external source js files in the JSP and one of which is empty source

like

<script type="text/javascript" src="file.js"></script>
<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="file2.js"></script>
<script type="text/javascript" src="file3.js"></script>
<script type="text/javascript" src=" "></script>
<script type="text/javascript" src="file4.js"></script>

Because of this empty src script tag, whenever the that JSP is submitted, it submits two times in FF, one with post request and other with get request. I didnt quite get it why it is submitted twice. Any experts please advise.

Thanks,
RK

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: <script> tag issue - double submission of form in FF