File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "<input type="submit" ...> issue on Safari" Watch "<input type="submit" ...> issue on Safari" New topic

<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
author & internet detective

Joined: May 26, 2003
Posts: 33102

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?

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, 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:
subject: <input type="submit" ...> issue on Safari
It's not a secret anymore!