I'm trying to attach some events to an HTML5 Video element inside my iPad web app but they don't seem to be firing? I've tested this both on the device and in the simulator and get the same results. The events however (for the onclick at least) work fine in desktop Safari. I've also tried swapping the video element for a div and the even...
I have this simple line
alert(window.parent.frames[0].document.getElementById('textToSearch').value);
I have 2 frames, first with a text field with id 'textToSearch'
I want to get the value of the text field in the second frame
The line above is on the html file from second frame
I get this error only in Google Chrome, in IE or FF wor...
Situation: I am currently working on a website-design which requires me to fill up the entire screen with 60px x 60px DIVs. They are merely like tiles on a wall except that it is required to have that many of them, because each one has to get its colour changed to a random value upon hovering.
Problem: If the monitor resolution changes,...
Hello,
I'm trying to detect the scroll event in Android browser (my specific version is 2.1, but U want it to work also on older versions). This seems impossible!
I first tried this:
document.addEventListener('scroll', function(){ alert('test'); }, false);
But nothing is triggered (except when the page load).
I thought: well, let's...
Given a form (id = "my_form"), how do I loop over all checkboxes of the form, checking if the given one is checked or not and grabbing its name/value?
I know how to check a checkbox status given its value, but I need to loop without knowing in advance which checkboxes exist. Thanks.
...
Hi everyone!Can any one Tel me how to Compare the two java script files using C#?I have tried comparing the two text files.But if the first file and second file has same data only a space is extra in Second file.then i showing me a Change.
...
Hi people,
I'm using Valum's AJAX file uploader. I am trying to send a parameter with the GET request made by the jQuery plugin. This code used to work a few hours ago. But it isn't now!
Can't see any error in Firebug either.
Help!
$(document).ready(function(){
$("#newProject").colorbox({width:"38%",inline:true, href:"#project-n...
Throughout many third-party libraries and best practices blogs/recommendations, etc... it is common to see syntax like this:
typeof x === 'object' (instead of typeof x == 'object')
typeof y === 'string' (instead of typeof x == 'string')
typeof z === 'function' (instead of typeof x == 'function')
If the typeof operator already returns ...
Hi all
I have a bunch of HTML list items and what i want is to be able to read the text of a list item and then be able to give the user the ability to modify it. the structure of each list item is the same:
<li id='1' class='attachment'>
<a href='link.html'>TEXT VALUE I WANT TO READ AND MODIFY</a>
<a href='link2.html'><img src...
I'm trying to reload a JSON file every 10 seconds with JQUERY.
The page is here: http://moemonty.com/chirp/chirp.html
The Code is here:
<html>
<head>
<title>the title</title>
<!-- included Jquery Library -->
<script type="text/javascript" src="./js/jquery-1.4.2.js"></script>
<!-- jquery library -->
</head>
<body>
<script>
...
Hi,
I've been banging my head against a wall with this one for way too long now.
I have a page outside facebook, with a like-button. Because it should be on a public computer, we also need a visible logout-button. When "like" is clicked, the user is prompted for login credentials. If those are ok, the like-event goes through ok. The us...
I used to handle cross-domain scripting in DWR 2.0 by setting the remoting method to ScriptTag through the dwr.engine.setRpcType(dwr.engine.ScriptTag); function and setting some initial parameters for the DWR servlet on the web.xml as described in the remoting options section on the official website.
However, in DWR 3.0, the setRpcType...
g,day. could someone help me make sense of why my code is not returing the results to json? i am sure there is an error in my code but cannot seem to find it. what is supposed to happen is the values of $dept and $box are supposed to be returned in an alert, but this does not happen. thanks
<?php
function runSQL($rsql) {
$hostname = "...
Possible Duplicate:
In Javascript, what does it mean when there is a logical operator in a variable declaration?
Stumbled across this code online, have no idea what it does, wasn't able to find out with FireBug either, and I can't google it because of the special characters...
var myValue = myInput.value || 0;
Thanks! :)
...
Hi!
I have 3 sections of specific interest on my home page.
What I'd like to do is set up links that call a javascript function that makes sure 2 sections are hidden and ONLY the section whose button was clicked is displayed.
Here's my code:
<div id="idc" class="leftFloat"><span id="title" class="title1">Introduction</span...
Consider this script.
<script type="text/javascript">
document.write(parseFloat(parseFloat("97.74")+parseFloat("1.82")) + "<br />");
</script>
Why is the result 99.55999999999999 ?
And how can I get the expected output?
...
So the code below is called when a user selects Save on an ExtJS popup modal window. This window ONLY contains a combobox. Now, sometimes when a user saves this, and then re-opens it later on, the combobox will appear BEHIND the window all grayed out, unable to get to. Other times, it will be fine and work, and no difference in events ha...
I need to have my web page periodically poll the server for new information every 10 seconds. I have a timer (setTimeout) setup to call my AJAX function to get the data. On completion, the AJAX function sets the timer for another 10 seconds.
The problem is that Firefox continuously displays the "Page Loading Indicator" (Throbbing).
H...
Can anybody tell me how we can delete browser cache using javascript. I want this because I am giving user, file for download with url ('http://www.example.com/docs/doc1.xlsx'). and this files are accessible for that specific user only.
I am checking with htaccess redirect to other action which redirect to that specific file url if user...
How can someone physically change a javascript file? It's completely locked down and i've no idea how someone would be able to do this through a web browser.
Rob
...