WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2005, 08:02 AM
iany's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: Stirling, Scotland
Posts: 237
iany RepRank 1
Default Firefox and JavaScript

I have some very simple JavScripts which are used in upload forms (to format correctly) and which have a message at bottom of site. Work perfectly well in IE6 Opera but not Firefox. Does limit its effectiveness for me.
Any thoughts?
URl www.directors-online.net

Cheers

Ian
Reply With Quote
  #2 (permalink)  
Old 04-09-2005, 09:55 PM
mikmik's Avatar
WebProWorld 1,000+ Club
 

Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 3,406
mikmik RepRank 1
Default

I would try to stay aaway from DOM and use 'get element by id' or 'name' for passing to the submit function.

DOM support varies much, as well as javascript libraries supported. There seems to be much that works in IE etc but not gecko.

Quote:
document.FL.username.focus();
document.onkeydown = post_form;
Also, maybe gecko doesn't support 'onkeydown'?

PS I am not very good with javascript yet, so sorry if this isn't much. Just wanted to try anyways, you never know!
__________________
What I am is what I am, are you what you are, or what.
Eddie Brickel
Reply With Quote
  #3 (permalink)  
Old 04-10-2005, 12:53 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 

Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,217
ADAM Web Design RepRank 0
Default

iany, you have a much larger problem than a non-cross-browser-compatible Javascript on your site.

I'm not sure what you coded this with (I'm guessing Front Page or another graphic editor, since I don't see the usual suspect Front Page code other than form name references), but it's generating some code that a tech-savvy individual with all the wrong intentions could turn around and do some serious damage with.

Rather than post code samples (because if you correct them and they still sit here, it might still pose a problem for you), look at any commented code beginning with <!--webbot . All of this code should be stored on the server side, and should never be outputted to the client side like this.

For example, you have an SQL query that states "Select * from [table name] order by [field name] DESC". The right guy with the wrong intentions could wipe that entire table out on you.

Get that stuff fixed up, and then worry about any JScript issues you have after that.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0