![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Mar 2006
Posts: 1
Rep Power: 0
![]() |
JavaScript and Firefox
Hi Everyone,
I am kinda new to JavaScript, but have been playing with it for work and my own fun. One think I noticed is that Firefox 1.5 won't allow me to call a function unless its for an event link onclick? E.g. I got a form that has the fields format, delivery, and email_address. just below this form I place the script code. <script language="javascript1.4" type="text/javascript" src="javascript/grp_e.js> checkFormat(); </script> |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Dunno, never tried it like that. I put my definitions (whether direct are via .js file) in the head area and the invocations where I need 'em. Possibly the call occurs before the definition is completely read in and stored with Firefox.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 122
Rep Power: 4
![]() |
The checkFormat() function should either be inside the JS file
you linked to, or in a set of script tags of it's own.
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet" |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|