If I have one main html file that calls an external JS file that contains only an array (infoArray), know I can do this code...
Now the question... Instead of 2 different main.html files, to load the different inforArray.js files, can I somehow overwrite the contents of the infoArray AFTER the information has been loaded from the first external JS file?
I have seen code that adds elements to the <head> section as the page loads, is there something similar to load/change array information during or after page load?
Or is this something that should be done by having text information in the file and loading with ajax and processing to an array afterward?
So rather than make the visitor wait 5 to 10 seconds to see anything at all, I thought a good solution would be to have the CGI script display a page quickly, showing that site #1 is being searched (and displaying results once it's finished), then site #2, then site #3. Ideally the results from site #1 would have JS that would trigger the search for site #2, and so on.I've done this before using frames, but I was hoping to avoid having to use frames.I'm not a JS expert, but I know how to use createTextNode to insert the contents of variable within the document.The only thing I need to know how to do is assign the contents of a URL request to a variable.
note that I am trying to "call" .html file from the .js file, not embed html code in .js.
I'm trying to present a collapsible list if keys which when expanded will have a delete button at the end of it. My problem is that when this code runs, the confirmation alert shows the key name as the last one read from the array for all items. Here's the complete function:
why this code invokes the deleteNote function with the last key name for all notes?
I have web page where user can upload file. He can select which file to upload with standard HTML input of type file. I want to add this feature: when user select some file (e.g. picture, pdf etc.) in file select dialog, I want to add link to selected local file. When user click on it browser(maybe associated application) should open local file so user can review what he selected. I was experimenting with urls with "file" protocol but it works only with html file located on local computer not for one on web server. I found that this is because of security restriction in browsers.
Just a sanity check.Can the src URL for the <script> tag be a local file ala:<script src="file:///c:/myScript.js">I'm making an IE BHO to insert a script into webpages.I've got it working for scripts with regular remote URL's (http://etc)
I have set of html pages that are installed locally on machine. I want to make ajax call to local files. In Firefox everything works fine. IE is able to load html pages through ajax call but not able to load xml document.
Chrome doesn't support ajax call locally...and I don't care about it. I need it to work on IE & firefox.
Anybody here have worked on a similar problem? What tools do you think I should take a look?
I'm busy making a project which needs to be ran locally. It has to work on Firefox only.
I've ran into the problem I can't load local XML files from another directory then the html file is located.
When I try loading XML trough an ajax request with the url "content.xml" everything works fine. As soon as I want the XML to be loaded from another folder, e.g. "../../../content.xml" it doesnt enter my success function.
I have text area that includes the full path for a local file on our company network. The files are usually excel sheets or docs. How can I have it so when they clicks the file it opens the local file?