I have a series of video links. On each click, I want to open the video modaly. I thought of using internal divs for each video (hidden at page load) but then it didn't seem to be a good practice since I would need 5 div for each video's player. So, I thought of preparing the player in external file, pass the variables with PHP and play the video file. My player is JW and the videos are FLV.
I am trying to set up an onclick function in Javascript that opens another html file.Below there are a few examples of the code used and the error messages they received.Please note that it must be a button not a hyperlink and also it needs to be the genuine file that opens not a popup window.I cannot fathom why a simple request to open a file with a button should be such a problemTHE FOLLOWING CODE
I have been working on this and cant figure it out.I have an index.html as my main file and I wanted to have a pop-up window that will also open together with the index file. the pop-up window is a notepad like type, file name is clipboard.html.Addon: i started adding code to have the pop-up to stay on the right side of the screen and always on top.
I need to be able to search through an xml located on my local machine with an html page. Here's the thing: this whole system (html files, xml file) will always be on my local machine. Because it's a class project it won't be on a server. So here's the scenario: I navigate to where my files are located (say C:) and I double click my index.html page and this page opens in my browser and from this page I need to be able to search my xml file which is at the same location. I've tried xmlhttprequest and it won't open the xml file I'm guessing because I don't need an http request.
Here's what I have so far: if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","C:MovieDB.xml",false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML;
function searchDB() { if(!xmlDoc){ alert("error") } var keyword = $('#txtBox').val(); var searchVal = $('#basicCategory :selected').text(); var allitems = xmlDoc.getElementsByTagName("Movie"); for(var i=0;i<allitems.length;i++){ alert(allitems[i].getElementsByTagName(searchVal[0]. childNodes[0].nodeValue); } } The code doesn't make it past the xmlhttp.send() line.
in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"
I have a folder "A" with 10 files, all with .txt extensions in it. I want a java script to open all the 10 files in the folder "A" and change the extensions to .js and save it in a folder "B".
I got an [object error] from IE 7.0.5730.11 when moving the <script src="..." type="text/javascript" /tag from the <headpart to the <bodysection of a HTML file.
Is not possibile to include Javascript code via <script src="..." type="text/javascript" /from the <bodysection, instead from the <headone? If yes, anyone has any idea of which the problem could be? If not, how can I programmatically include a javascript external file inside the <bodypart of a HTML file, for example, using Javascript to some particular native functions?
I wanna send a file thru the JQuery.load, I want it to work exactly like the regular post without the JQuery. So I can check the $_FILES['file']['error'] in PHP and all its features like I do without using JQuery.
$("#load").load('gerenciar_itens.php',{/* This is where I wanna pass the file. */}, function(data){ alert(data); });
I have a external file for example abc.js ,in this abc.js file no functions ,it contains some scripting,i want to call the scripting file though html I use the code
I have one html-file where the user inserts a search path for an excel file. When the user clicks the button the data in the excel file should be presented in a <TABLE>. (Yeah, I know, activex only works in IE .. but that's good enough for this project)
The problem is .. I started out with a "fixed" search path for the excel file, so I didn't have the code in a function. That worked just fine. Once I added the function {} around the code it wouldn't work, it works just fine if I comment out the form-part and the function-part, and give the search path, of course. It also works just fine if I use the function and form, but remove the <TABLE>- and <TR>-rows
I have a .js file, we want to make it to load a html file right next to it, both files are on client system. I couldn't find any such examples and some posts talked about JavaScript security issues, I wonder if it is related to what I want.
Someone said .js file is not really JaveScript file, though Microsoft named it 'JavaScript'.
note that I am trying to "call" .html file from the .js file, not embed html code in .js.
I came across a very odd browser behavior when trying to modify a css class using javascript and at the same time having a base html statement in my html file.Without the base html statement, all browsers work fine and I can change the css class definition using javascript easily.With a base html statement, only FireFox still works while Internet Explorer and Google Chrome dont work anymore. If there is a cross-domain issue, while one browser does work and the others dont? An example of what I'm talking about, with the base statement:
http://freebsdcluster.org/~casaschi/tmp/example-base.html Without the base statement: http://freebsdcluster.org/~casaschi/tmp/example-nobase.html
how to tweak the code in the case with the base html statement in order for the javascript to work with all browser (modifying the class definition) ?I want to be able to manipulare css classes with javascript when a base html statement is in my html code.This is essentially the code:
I have a file that generates web galleries in Adobe Lightroom. They are generated depending on which files are selected and the metadata in those files.
Basically it is a series of pages of thumbnails called index.html index_1.html index_2.html etc.
Then a set of pages for each individual image.
An example can be seen here: [url](the page navigation links are not great, but I have addressed that, they're at the bottom >> )
Currently if a user clicks on a photo there is a 'return to thumbnails button at the top, but this always takes them to /index.html
So the user could be at a picture after browsing to /index_39.html and still get returned to /index
Is there any way I can use history.go to find the last instance of index.html Or index_x.html (where x is any number) and take them back to that instead?
my website is in php .am using a javascript code to open a file .
function dec() { window.open("www.test.com/files/2010/test.pdf"); }
when i click the hyperlink connected to this function , a browser window is opened .path to the file will be dispaled in the address bar i dont want it like tat. i need to open only the file test.pdf , not in browser window so that path will not be seen .
I would like to include text from an external file in my html file. This is normally done with <object> or <iframe> but in this case the style sheet and internal links (like <a href="#positiononpage">) do not work. So I thought of writing a little script which does the following
- open the file http://something.com/textfile.htm - put the content of that file in variable "var" - document.write(var)
Is this possible? (also without using activeX objects)
I am trying to open a FTP file in IE 6, but Its not opening, it throws "Page cannot be Displayed" message. Its work fine in Firefox. Below is the code:<A href="ftp://sysvine.lmt.com/reports/chart.doc">Category Chart</A>even I tried like this:<A href="ftp://username:password@sysvine.lmt.com/reports/chart.doc">Category Chart</A>
How can we open a flv file using the lightbox? I am using the following code <a href="[URL]" class="lightwindow">Link Name</a> But the browser still downloads the file instead of showing it in lightbox. One more thing...is it possible to display some text along with this video in the lightbox?
how I can parse a xml-file into a html-file containing javascript without using iE to get various informations out of the xml-file.(The xml contains geocoordinates which I want to have displayed in Googlemaps using the Gmaps API for javascript).