How can i load javascript(js file) from external source Its not loading if I use Http://mysite.com/js/jfile.js
459942
You can't link to your local hard drive. Create a folder on your host called JavaScript and upload the JavaScript there...
951893
I am using Firefox and had no problems loading the page, perhaps you should think about downloading it and using that instead of IE.
637505
Javascript is a programming language, not a software. It doesn't have to be installed. However, you do need a web browser that is javascript-enabled in order to access sites and games written in java.
880072
I agree with Mallik, but this will let you know a bit more !\n\nEach time you make changes, or more clearly each time when you access the JSP, the server will make changes in the corresponding \nservlet and is reloaded.(But beware of borwser cache, if you make changes and there is content at cache, then it 'll be displayed).\n\nTry the following to get a better understanding.\n\nfirst  create a jsp named one.jsp\ncall it in IE\nrename one.jsp to two.jsp\nrefresh the IE, you will still get one.jsp\n\nnow restart IE and try to access one.jsp, you'll get an error msg.\ni.e., each time the server searches for the file and proceses it and converts it to .java file(servlet).\n\ngood luck.
909579
Save script file with "js" extention.\nOpen your paage via an HTML editor like Dreamweaver or Notepad and insert this code between <head> and </head>:\n<script language="javascript1.2" src="myJSFile.js" ></script>\n\n\nsrc>>>the address of java script file\nlanguage>>>language of your script
690913
Using a standard server-side include:\n\nRename your page to be pagename.shtml instead of pagename.html\n\nAdd this:\n\n<!--# include virtual = "path/to/text/document.txt" -->\n\nWhereever you want the text file included.\n\nWhere "path/to/text/document.txt" is the RELATIVE path to the file you want to include.
530544
without seeing your stylesheet code i can only suggest you check how you referenced the css and js files.\n\nstylesheets should be referenced inside the <HEAD> section as follows:\n<link rel=stylesheet href=path/to/stylesheet.css type=text/css>\n\nyour javascript can be referenced something like this:\n<script language=javascript src=path/to/scriptfile.js>\n\nof course, substitute the path to the files in place of the "path/to/filename" i used in the example. ("http://www.yourwebsite.com/stylesheet.css" for example)\n\ngood luck!\n\nof your references are right then your culprit might be within the script or stylesheet themselves. post that code so we can see it and maybe we can catch something for you.
301889
TOOLS > INTERNET OPTIONS > TURN ON JAVASCRIPT. i don't know where though. i'm on a public library computer and that is blocked on these computers. but i know it is in there. i used to have my own computer and have seen it.
151834
If i am not mistaken you just call the function within the script file and pass the parameters as required e.g\n\ninclude file function :\n\nSomefunction(int param1, int param2)\n{\n  //somelogic\n  //return value\n\n}\n\nin html file where you included the above file:\n\n<script>\nfunction newfunction()\n{\n var result = Somefunction(1,2)\n}\n</script>\n\nhope this helps. I haven't tested this yet but it should work
1073311
Be more specific.\n\nBasic explanation: View it's HTML source.
681937
java script is an interpted langause this means you dont need java to run it. u can run it in internet explora or any other web browser. all u need to do is save the file as .htm\nits text based. depends what you want to do with java script if you go on someones web page and view source you can take the java script it looks some thing like this \n<script type="text/javascript">\nvar mm=null; var aIncentiveArray=[];/* arraylist of incentive events */ var gPageTitle=null;\nvar Util=new KS_Util('Util',oBw,false,"AA11069738","blonde dyslexic but good looking"); function init() { Util.init(); } yui.Event.addListener(window, "load", init);\n</script>\n  <title>Yahoo! Answers - How can I download java script, i downloaded java, but some sites ned java script.?</title>\n<META name="description" content="Yahoo! Answers - How can I download java script, i downloaded java, but some sites ned java script.?" />\n<META name="keywords" content="yahoo, answers, questions, Internet" />\n<link rel="alternate" type="application/rss+xml"\ntitle="Yahoo! Answers: Answers and Comments for How can I download java script, i downloaded java, but some sites ned java script.?" href="/rss/question?qid=1006052702959" />\n</head>\n<body>\n<a name="top"></a>\n<div id="y-ks-whole-page">\n<div id="y-ks-header" align="center">\n<!-- Y! Global -->\n<div align=center id=ygma><form name=yhdr_form style="margin:0" action="http://srd.yahoo.com/loc=head&st=yahoo/*http://uk.search.yahoo.com/search"><input type=hidden name="fr" value="ks"><table width=750 cellpadding=0 cellspacing=0 border=0 style="padding-top:2px;"><tr bgcolor="#efefef"><td id=ygmalinks class=ygmabk width="100%" colspan=3><font face="arial,helvetica,sans-serif" size="-2"><a href="http://uk.yahoo.com" target="_top"><font color=#000000>Yahoo!</font></a>   <a href="http://uk.my.yahoo.com" target="_top"><font color=#000000>My Yahoo!</font></a>   <a href="http://mail.yahoo.co.uk/" target="_top"><font color=#000000>Mail</font></a>\n<script language="JavaScript" type="text/javascript">\nif (window.yzq_a == null) document.write("<scr" + "ipt type=text/javascript src=http://us.js1.yimg.com/us.yimg.com/lib/bc/bc_1.7.0.js></scr" + "ipt>");\nif (window.yzq_a) {\nyzq_a('p', 'P=6ZWOeELaS.ZifT5zQwSTRgA02JE2nkM8ab0AABVr&T=13pd1h5ug%2fX%3d1128032701%2fE%3d81121452%2fR%3dnews%2fK%3d5%2fV%3d1.1%2fW%3d8%2fY%3dYAHOO%2fF%3d2158281210%2fS%3d1%2fJ%3d9FA949D1');\nyzq_a('a', '&U=129om5h7k%2fN%3dEacRBNFJq2g-%2fC%3d-1%2fD%3dHMYYH%2fB%3d-1');\n}\n</script><noscript><img width=1 height=1 alt="" src="http://bc.us.yahoo.com/b?P=6ZWOeELaS.ZifT5zQwSTRgA02JE2nkM8ab0AABVr&T=13u008n92%2fX%3d1128032701%2fE%3d81121452%2fR%3dnews%2fK%3d5%2fV%3d2.1%2fW%3d8%2fY%3dYAHOO%2fF%3d2098075231%2fQ%3d-1%2fS%3d1%2fJ%3d9FA949D1&U=129om5h7k%2fN%3dEacRBNFJq2g-%2fC%3d-1%2fD%3dHMYYH%2fB%3d-1"></noscript></font></td><td class=ygmatcrn><spacer type=block width=1 height=1></td><td class=ygmabk rowspan=2><img src=http://us.i1.yimg.com/us.yimg.com/i/us/nt/hdr/stw.gif width=34 height=17 border=0 hspace=4 vspace="2" alt="Search the web"></td><td id=ygmasearch class=ygmabk rowspan=2 nowrap><font face="verdana,geneva,sans-serif" size="-2"><input type=text name=p size=12 title="Enter search terms here" maxl
803745
Everyone is answering sooooo wrong! Javascript is NOT the same as Java! Downloading Java has nothing to do with viewing javascript.\n\nTo view javascript in Internet Explorer, go to Tools > Internet Options > Security > Internet > Custom Level > Scripting > Active Scripting > "Enable" > OK > answer "Yes" > Ok
627921
I have never heard of any java third party classes that could do this.\n\nThere is a way to find the locale and the browser detail  but I do not think there is a way to have java open a file using a specific browser since the browser that opens usually is defaulted to whatever the user has.
13064
There are literally millions of sites that offer free javascripts that you can use on your site. Some require you to leave the copyright info while others don't. \n\nHere is a list my favorite sites:\nhttp://www.hotscripts.com\nhttp://www.javascript.com\nhttp://www.javascriptkit.com\nhttp://www.dynamicdrive.com/\n\nA simple search (e.g. free javascript) on any search engine will show you tons of places where you can get free source codes. \n\nHope this helps.
208360
Try these sites:\n\nhttp://www.javascript.com/\nhttp://javascript.internet.com/\nhttp://www.w3schools.com/js/
395704
Put this into the <head> section of your code\n<script type="text/javascript">\n\n/***********************************************\n* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)\n* This notice MUST stay intact for legal use\n* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code\n***********************************************/\n\nfunction bookmarksite(title, url){\nif (document.all)\nwindow.external.AddFavorite(url, title);\nelse if (window.sidebar)\nwindow.sidebar.addPanel(title, url, "")\n}\n\n</script>\n\n\nreate either an image or text link that will be used as the Bookmark Site link. For the href attribute, use the following code:\n\njavascript:bookmarksite('title_of_site', 'url_of_site')\n\nHere's an example:\n\n<a href="javascript:bookmarksite('Dynamic Drive', 'http://www.dynamicdrive.com')">Bookmark this site!</a>\n\nRemember, if your site's title contains apostrophes, they need to be backslashed when entered:\n\n<a href="javascript:bookmarksite('Mike&#92;'s Place', 'http://www.google.com')">Bookmark this site!</a>\n\nNon IE4+ and NS6+ browsers will simply see nothing when clicking on the link.
419737
Try to view the source code for these sites: