permaculture playing cards*
The moose likes Struts and the fly likes Html:button is not working in Mozilla? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Html:button is not working in Mozilla?" Watch "Html:button is not working in Mozilla?" New topic

Html:button is not working in Mozilla?

Sudarshan Reddy

Joined: Aug 23, 2007
Posts: 20
The following code that i am using

<html:button property="Upload" styleId="Upload" value="Upload" style="Upload" onclick="javascript:getsize()" />

Its working fine in IE but its not working in Mozilla?

any one help me on this..?

Thanks in advance

With Regards<br /> <br />Sudarshan Reddy
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I have no idea what you mean with "no working", but I guess that you're talking about that Javascript function? Why didn't you post the related JS function then? And I also have to guess that you're using some IE proprietary scripting framework called 'ActiveX' to get the file size? Well, that doesn't work in alternative browsers, no. Having that script in a JSP file doesn´t make it a JSP problem. It´s a JS/browser problem.

Please ask questions the smart way.
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30130

Also, can you post what it looks like in the generated HTML rather than Struts. This will help people who don't Struts answer the question too.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
It is sorta covered in the JavaRanch Style Guide.
subject: Html:button is not working in Mozilla?
Similar Threads
Uploading Multiple Files Using html:file
tabindex is not working in jsf
How to include css in new window using javascript
Problem with Window.opener
Can any one tell me html:button is not working in the FireFox but its working fine in IE?