system — 2010-12-17T23:38:07-05:00 — #1
I assume I need to install a server to view scripts locally just want to confirm, and maybe a recommendation ? I know of one at the top of my head but forgot
system — 2010-12-18T00:17:26-05:00 — #2
I'll second XAMPP -- works great, simple to configure, but it gives you a real Apache/php/mySQL setup locally on your normal workstation.
It's also handy when testing from VM's when you don't necessarily want them having direct access to the directories on the host OS.
system — 2010-12-18T00:41:24-05:00 — #3
js runs in the browser.
you don't need a web server at all to run js.
system — 2010-12-17T23:41:37-05:00 — #4
if you're talking about php script then I can recommend xampp as a local web server.
system — 2010-12-18T00:38:56-05:00 — #5
system — 2010-12-18T07:53:17-05:00 — #6
I know, I asked because it doesn't seem to be working, hrm I'm going to try something else
system — 2010-12-18T09:28:40-05:00 — #7
Specifying the browser you're trying to test your scripts in may also provide us with insight otherwise hard to guess as to what the problem really is
system — 2010-12-18T14:43:24-05:00 — #8
FireFox, I hope that helps !
system — 2010-12-18T15:06:56-05:00 — #9
Well, for FireFox you've got:
Tools -> Error Console - for a quick look about problems you may have.
Firebug - you can play around Console or Script in there: run scripts, debug, all sorts.
But you need to be so much more specific about a problem, if any
system — 2010-12-19T01:23:50-05:00 — #10
Error, console error 'JScript not defined' but it does work live !
It was already enabled.
system — 2010-12-19T02:51:30-05:00 — #11
JScript is a scripting language based on the ECMAScript standard that is used in Microsoft's Internet Explorer.
It's also seems your code is IE specific, like using ActiveX: window.ActiveXObject.
system — 2010-12-19T03:07:01-05:00 — #12
post the code you claim is not working locally but is working live.
I'm not convinced it works live but not locally.
victorinox — 2010-12-19T06:50:56-05:00 — #13
system — 2010-12-19T10:49:29-05:00 — #14
Here is the script I have in my head.
I have this correct
victorinox — 2010-12-19T11:05:09-05:00 — #15
Are both the .js files in the same folder as the HTML file?
system — 2010-12-19T11:18:10-05:00 — #16
Now I do It's working
chroniclemaster1 — 2010-12-21T00:55:26-05:00 — #17
Windows can also play havoc with client-side scripts. The Internet configuration (Internet Options, etc.) typically sets locally run scripts as a much higher level of security threat than scripts running on the web. I've never understood this, but it's one of the reasons I usually test my JS through a web server (I program in .NET and use the test server in Visual Web Developer Express). Not sure how you solve your issue, but this can be an unpleasant little problem.