I am trying to use a JSN type of file javascript in my file However, when I look at Google results, they claim that Javascript can not do such thing as it is a client-side language, however, when I do the following code (which I do not want, but it works), which Specifies the file I am looking at, it works, I was wondering why this is the case. Is it because I am using jQuery?
To clarify, I have a directory that contains my html file and JSON file, and the Scene.js file is in subdirectory. So, it looks like:
-labvtk
--- ch4_CameraTypes.html (HTML file)
--- noise.json < P> --- js
----- webgl
------- Scene. JS:
If this is the case,
Javascript code:
var scene = {objects: [], getObject: function (alias) {for (var i = 0; i and html file (which has some JavaScript in it)
... This code was taken mostly from
The Google listings you've seen are quite right: you can not find a server with Javascript. If you already know the name, you can find a file.
The only way to search the server is to implement a script on the server that does this. You can use PHP's scandir () or globe () functions, for example there are many other ways. You can give some hints.
No comments:
Post a Comment