File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes <input type= issue on Safari" title="" /> 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 » Engineering » HTML, CSS and JavaScript
Bookmark "<input type="submit" ...> issue on Safari" Watch "<input type="submit" ...> issue on Safari" New topic
Author

<input type="submit" ...> issue on Safari

manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
I am using the following tag for displaying "Login" button -



On click of this button, the form is supposed to send the value of this button (whose name is "submitButton") to the action. It is working perfectly on Mozilla and IE. But not working on Safari. If I change the method from POST to GET, then on Safari browser also it works but I can not use get for the obvious reasons.

Does anyone know the problem here? I would be very mush grateful if one can give me some pointers.

Thanks In Advance.


love your job and not your company;
...because you never know when your company will stop loving you!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Patil,
What does not working mean? Do you get an error message in Safari's console?

Have you tried using a submit button instead of a regular button?


[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
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
I am using submit button already.

Its not working means that button value is not sent to the next page. I am accessing this value using request.getParameter() on jsp but as that parameter itself is not sent, I am getting it null.

When I try GET method, it works fine on Safari as well. I don't know if Safari while posting the request gives special treatment to submit button or how otherwise.

I have one workaround where I am setting one hidden field in case of Safari browser and setting it but then its redundant so I was wondering if there is any better way.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: <input type="submit" ...> issue on Safari
 
Similar Threads
recognizing different buttons pressed in html form in servlet
hitting the enter on the keyBoard should default to "YES" button on the html/jsp page
Question regarding jsp:include
How to provide the Shortcut on submit button in JSP/HTML
Method to give me the name of the button