home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

simple javascript in firefox can't get to work

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2435
Discussions: 200,941, Posts: 2,379,267, Members: 246,304
Old June 20th, 2006, 09:31 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Oct 2003
Posts: 263
simple javascript in firefox can't get to work

Hi Guys,

I am having a little trouble with this. (Keep in mind it works fine in IE) In firefox it basically can't find the external javascript page I am trying to grab the function from. I am using a simple java script function just to test if it works.

javascript page --> jscript/main_code.js

void function Test()
{
alert('test function');
}


.aspx

<script type="text/javascript" src="JScript\Main_Code.js"></script>

ex. onclick="Test();"

it basically says it can't find the function. My code page (main_code.js) is within a folder in the root directory of the web app.

Anyone have any idea's what could be wrong? I know firefox is weird with navigating directories.

Any help would be appreciated


Thanks,
Jason
amtrac24 is offline   Reply With Quote
Old June 20th, 2006, 09:44 PM     #2 (permalink)
Not Really a Member
 
Join Date: Oct 2001
Posts: 25,385
maybe case sensitive?
vass0922 is offline   Reply With Quote
Old June 20th, 2006, 09:45 PM     #3 (permalink)
Member
 
Join Date: Oct 2003
Posts: 263
no i tried that.
amtrac24 is offline   Reply With Quote
Old June 20th, 2006, 11:16 PM     #4 (permalink)
Member
 
Join Date: Oct 2003
Posts: 263
i figured it out...it was the void that was the problem...not sure why but i took it out and it works.
amtrac24 is offline   Reply With Quote
Old June 21st, 2006, 02:24 AM     #5 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,552
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Quote:
i figured it out...it was the void that was the problem...not sure why but i took it out and it works.

You are correct, Javascript does not denote return types in function declaration. Whether or not you return something, and what you return is up to you in the function. Javascript doesn't care.

Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
jkrohn is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript problem with Firefox Iturea Webmastering and Programming 3 October 17th, 2005 09:55 AM
Simple Firefox Query The_Diceman Technical Support 1 March 24th, 2005 08:22 AM
JavaScript doesn't work twice... fishsponge Webmastering and Programming 1 January 5th, 2005 08:31 AM
Simple bash script won't work BFlurie Applications and Operating Systems 3 November 18th, 2002 09:46 PM
HELP needed with simple javascript kalm Webmastering and Programming 6 May 3rd, 2002 11:04 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2912)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Wireless Televisions. (8)
California Passes Anti-Flat-HDTV Le.. (43)
Regular Build (6)
Obama the Muslim (14)
Is the PSU I received dead? (11)
windows vista security holes (9)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Print spooler problem (13)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
screen resolution vs monitor size (0)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Is the PSU I received dead? (11)
Have you switched yet? (85)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
Wireless Televisions. (8)
wireless user (1)
World's largest Monopoly Game using G.. (332)
Ideal cheap graph card for PC-Gaming? (17)
BIOS won't read disk when I try to fl.. (0)
Install XP pro and a Vista laptop ?? (11)
Graphics Card Upgrade Question (1)
favorit (1)
solutions for virtical white lines on.. (1)
Fire in DVD (2)
Modern Warfare For the PC (33)
radeon x850xt platinum & shader 3 (3)


All times are GMT -4. The time now is 01:54 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28