I am working on a web-interface that has to show certain data in real-time (update it every 2 seconds). I figured including an iframe and reloading it with javascript would be the best bet. So to see if it works I wrote this test code. But it doesnt reload the iframe every 2 seconds. Can anyone point out where I am going wrong ?this is the code for hello.html
I need a textbrowser with Javascript Support. I have compiled the elinks stable 0.11x and the unstable 0.12x version mit JavaScript Support (js moz dev). Both browsers can be started and showed websites normaly. But no javascript, even simple tests like [URL] failed. I started elink with ./elink and typed then the url.
Why wouldnt someone just add programs to ubuntus startup instead of using a script?Im configuring deluge and to have the web ui and daemon run at boot I added them to startup and they are working fine.
Just upgraded to the latest 3.0.7 thunderbird and it wouldnt startI tracked down the problem to it wanting to alert me and as I had Jackd running that blocked it.I had to kill jack to get it to start!
i think something has broken javascript in my chromium installation. I've tried updating chromium and reinstalling/updating my java installation. Neither of these has helped. To give you an idea of the behavior I'm seeing this page does not have buttons, but pictures of all the buttons. Clicking them does nothing. Also, gmail's regular interface will not load. Functionality seems entirely normal (so far) in firefox.
When using TOR it is recommended that you disable javascript and all other scripts because they can be used to detect your IP, defeating the purpose of TOR.
But there are some sites that simply do not work without javascript. Is it possible to keep all javascript functionality but disable just the functionality that is used to leak your IP?
I installed elinks from a slackware (slack 12.2) package, and no javascript anything is working. is that something i can only enable before install, or is there something in the setup menu i can do to turn it on?
I can't seem to get javascript to work in links. According to the documentation, there should be an entry in the setup menu for javascript options, and I don't even have that. I'm using slackware 13, and it came with links 2.2. I thought maybe it wasn't installed with javascript support, so I downloaded the source (2.3pre1) and reinstalled it:but still no javascript options in the menu.. and I verified that I was running the new version.
I'm trying to find a web browser which supports javascript for my embedded Linux. I have a ARM9 embedded board TQ4240 which runs on Qtopia 2.2.0 and have already installed konqueror, but it seems that konqueror doesn't support javascript. Is there any browser that you could support Jquery.
There is this sample web page: [URL] and it has a clickable link / button that executes a JavaScript function: (Right-Click and Copy Shortcut would give this piece of code)
Code: javascript:__doPostBack('lbtnUpdateStatus','') whereas the source code for the link / button is as follows: Code: <a id="lbtnUpdateStatus" href="javascript:__doPostBack('lbtnUpdateStatus','')">
I want to automate the above function / link along with the said URL so that I won't have to open the webpage and click the button / link. I want a single URL hitting which we won't need to do the extra effort of "clicking the link / button" that executes the JavaScript function given above. I can't automate this task in the source webpage itself because that has to be there as it is for the users who access the webpage. How to achieve it?
I got some useful information here: [URL] but I want to call a javascript function along with a URL such as this: Code: [URL] javascript:alert("OKAY") but the above line of code won't work.
I went to [URL] the other day, and I'm really impressed with the way, when you click on domain, it adds it to the cart WITHOUT A REFRESH. But what I really want to know is - how does it do the slick little effect when you click "Add to basket", when it "appears" on the right hand side?
I have some variables that are loaded from mysql - in mysql, the line breaks are not indicated by ' or '<br>' or anything -they are just line breaks. the variable is loaded into javascript and then inserted into a <pre> element. the line breaks are not showing up.
pre1 = pre1.replace(/>/g,">"); - this works well, naturally. but how do i get those line breaks to show up as line breaks in a browser?
On that site I want to run a little javascript that verifies that the site was accessed as "Website1.com" and not "dev-Website1.com"
If it was accessed correctly, nothing happens. If it was accessed incorrectly, it displays an error saying "You are trying to access this site incorrectly."
I am using window.onbeforeunload to keep people from accidentally leaving. I was hoping to intercept this event, run my own dialog box and load another page that closes the window, or of course, cancel.
I'm needing this because my site is a single page and I can't figure out how long people are visiting for, if I could load an exit page, then I can figure this out.
In my book, this is an example of a recursive algorithm:
var reverseArray = function(x,indx,str) { return indx == 0 ? str : reverseArray(x,--indx,(str+= " " + x[indx])) ;; } var arr = new Array('apple','orange','peach','lime'); var str = reverseArray(arr,arr.length,""); alert(str) ;
I'm trying to understand it, I'm stuck at the (str+= " " + x[indx])) part - that part of the function definition expects an ARGUMENT, am I right? What's being passed to it is a bit of PROGRAM, the str+= stuff. So - how is it working?
I have recently upgraded to Ubuntu 10.04 from 8.04. It installed Firefox 3.6.6, and now I and many others have no sound in any internet online javascript games nor in anything else that uses javascript for sound on the internet. I also have one site with a small javascript video issue (fails to fully load a gif image that is loaded by javascript).
The upgrade gave me the openjdk for java. I had no sound as described with firefox 3.6.6 and js. I uninstalled that and installed the sun-java6. This did not help. The problem is not java at all. It the fault solely of that version of Firefox. I also messed up someone else's Hardy 8.04 by allowing their computer to also upgrade to this version of Firefox. This was the only thing upgraded- the only change.
Does anyone know how to revert to Firefox 3.5 or even 3.1? I need all the steps. I have to do this in both Ubuntu 10.04 and in Ubuntu 8.04. It is unacceptable to wait for Mozilla to put out a browser update that really works. It may never happen.
I also need to know how to prevent the 3.5 from being upgraded through update manager after I get a working version back.
I found a work around for the Firefox problem in 10.04. that was to install the Google Chrome Browser which does work with javascript sound. That browser is also very fast. I cannot do this for the other computer having Ubuntu 8.04. It is not in synaptic package manager like it is in 10.04. I still want it in the computer that has 8.04 if Firefox can't be fixed.
i have an html page with a text box in a fourm, and am trying to change the value of it with javascript, but it not working. ive tried about everythin i can think of and find, but it just doesn't work. it all allways comes down to the <form>,</form> tags or the <input> tag doesn't exist. I know im getting the names right,(copy&paste)
First, i have no experience with javascript. I came across an interesting site and I'm curious if I could make a private webpage to call some shell commands or just open a terminal.Yes, i know this could potentially be malicious and possibly illegal. Again it's for my own private usage.
When someone is speaking into the mic, I'd like a "level meter" such as the one that comes with gnome sound recorder, that flashes up and down when a sound is made or somebody talks.This will be done in Javascript, using the brand new "Rainbow API", i.e. inside the browser.I know nothing about audio programming, so - where would I get *started* with something like this? Could anyone tell me at least WHAT to Google?
I'm loading an XML file stored in a tiny web server (based on lwip). This web server is not very cooperative and is not marking the http content-type as "text/xml". As result, Firefox is not recognizing the file as xml (IE does) so I can't use DOM methods for parsing the xml file. overrideMimeType("text/xml") should help me avoid this problem but, even having overrided the mymetype, the content-type received is still "text/plain". This is a portion of my JavaScript code:
Code: var xmlObj; // loadXMLdata is called from the html file function loadXMLdata() { var dataFile = window.location.href.substring(0, window.location.href.lastIndexOf("/") + 1) + "config/myfile.xml"; if (window.XMLHttpRequest) { xmlObj = new XMLHttpRequest();
// This should override the mimetype... if (xmlObj.overrideMimeType) xmlObj.overrideMimeType("text/xml"); xmlObj.onreadystatechange = fillXMLdata; xmlObj.open("GET", dataFile, true); xmlObj.send(""); } else { alert("Your browser can not handle this script"); return; } } // fillXMLdata is called from loadXMLdata once the xml object is ready function fillXMLdata() { if (xmlObj.readyState == 4) { // Here Content-Type shows again "text/plain" alert(xmlObj.getAllResponseHeaders()); var xmlDoc = xmlObj.responseXML.documentElement; // And here section is null var section = xmlDoc.getElementsByTagName("section")[0]; } } The xml is quite simple:
im trying to learn javascript. so i choose to start out making a image slideshow banner that auto scrolls on load no special buttons. so since i had no idea were to start i found code that was free to use commercial and non commercial and ill be able to change it. heres that code:
I'm working with javascript and trying to replace all instances of a Roman character in a string with nothing. How do I assign var reg to all Roman characters? In UTF8, capital letter A is U0041 and at the other end, small z is UFF5A.
So, I'd like to do something like: var reg = u0041 - UFF5A; str1 = str.replace(reg, '');
I think you get the idea. I have no idea if that can be done. The idea is to take this string (for example): str = make a door-to-door[house-to-house] visit / ring every doorbell." And take out all the Roman characters and define it as str1. And then take out all the Korean characters (u1100-uFFDC) and define it as str2. In fact, a WAY more useful thing to do would be to replace the instance of this: [u1100-uFFDC]+" "+[u0041-UFF5A] with [u1100-uFFDC]+","+[u0041-UFF5A] so that the output would be a .csv file.
I can play a sound on my local machine using the following code, but when I upload to a server the same code it does not play. I cannot work out why, the link below gives the code. The multi channel code is here:
I'm looking for javascript tutorials or books that meets the following criteria:
1. Very thorough: Starts with the most fundamental concepts and progresses logically from basic to advanced concepts, without skipping over important ideas for the sake of expediency.
2. Lots of small practice exercises that parallel the concepts and syntax being learned.
I've looked at a lot of tutorials, but they all tend to be lacking in one of these areas or the other.
I'm on web developing and was trying to embed an audio file on one of my page. The audio was successfully tested and emebeded on all browser. Added on the said embedding are javascript for customize buttons, here is the part of the code for embedding: