Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A workaround for a JavaScript button problem in Safari' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A workaround for a JavaScript button problem in Safari
Authored by: enigmamf on Oct 15, '03 12:23:20PM
Didn't work for the place where I was having trouble ( http://webct.ucsd.edu ). I drag the button and it just pastes "javascript:doLogin()" (which is I suppose what the link does :) ) rather than the place it links to, and of course it does not go. I was also a bit dubious about this tip submitting the form for the associated button -- most buttons are associated with CGI after all.

But at least hitting return inside one of the form fields works.

[ Reply to This | # ]

Malformed JavaScript commands
Authored by: OSX_Apprentice on Oct 16, '03 10:00:12PM

I have had similar problems in IE 5.2 many times. Often, the cause is as easy as undisciplined developers using malformed JavaScript commands in the HREF tags. In most cases, their leaving out the required semicolon at the end of the command is rendering the link useless.

Some browsers (mostly on the Win platform) are more forgiving than others which is probably why the developers don't notice.

Here is the command provided in the preceding posting:
"javascript:doLogin()"

It should have a trailing semicolon for it to be a proper JavaScript command, and thus look like:
"javascript:doLogin();"

As far as I know, the only thing the user can do about these problems is to notify the site's administrators. No quick client side fix exists.



[ Reply to This | # ]