Hi, I am trying to have an animation run only when the mouse is over an object. I can get one iteration of the animation and then have it set back to normal on mouse out. But I'd like the animation to loop on mouseover. How would I do it, using setInterval? I'm a little stuck.
...
I'm building a small JavaScript application in Adobe AIR and I'm looking for some general advice for automated unit testing.
I'd like to be able to run a suite of unit tests from the shell (maybe from a Makefile or similar).
My initial thought was to use something lightweight like jsUnity to run test scripts from within Rhino. I could ...
I am coding a lot of annual data in JavaScript, and I was considering adding it to arrays, using the year as the array index and putting the data into the array. However, Firebug seems to be indicating that JavaScript handles this by populating two thousand odd entries in the array with "undefined." With hundreds of such arrays kicking a...
hi all,
I am trying to set element from one iframe to another.
window.iframes["test"].document.getElementById('lDownload').setAttribute('target',"_blank")
//document.getElementById('lDownload').setAttribute('target',"_blank")
window.iframes["test"].document.getElementById('lDownload').setAttribute('href',downloa...
Hi,
I need help enhancing this Gallery (tutorialdog.com/javascript-image-gallery-using-mootools/),
I've tried on my own (I'm new to js programming), But I haven't figure it out how to code it right resulting to the effect that I want. I've tried chaining the opacity but I wasn't successful.
here's the code
window.addEvent('domrea...
Short question: What does an exception's "sourceID" refer to, and how can I link it to the relevant source string/file?
Longer story:
I am running Javascript code in an iPhone native app through [UIWebView stringByEvaluatingJavaScriptFromString:]. To help development, and later check user-provided code, I use the following function to ...
I am iterating over an array in MooTools but seeing additional items when iterating through the array using the shorthand for..in loop. It works fine when I use the regular for loop. Is this a problem with MooTools polluting the global namespace or am I doing something wrong here?
There is a createTabs() function that iterates over an a...
iam using json object in my php file but i dont want my json object to be displayed in source code as it increases my page size a lot.
this is what im doing in php
$json = new Services_JSON();
$arr = array();
$qs=mysql_query("my own query");
while($obj = mysql_fetch_object($qs))
{
$arr[] = $obj;
}
$total=sizeof($arr);
$jsn_obj='{"a...
Hi All,
Is there any method available to strip unwanted background content (external css) being submitted to server by FCKeditor?
Currently many users are directly copying from web contents or from external editors like MS Word 7 which adds unwanted stuff in background while storing data to database. For e.g. when i copy pasted content...
How to remove The warning image of the alert box in Javascript. I want to delete the warning image from the javascript alert window. Is it Possible?
...
Hi
I am trying to create an HTML GUI for an application using Qt's WebKit... so far everything is going smooth with a minor problem, I don't want people to be able to drag and drop images from my GUI. I have disabled text selection using a small java script. But I'm not sure how to disable image dragging.... I have used onmousedown="ret...
I would love to display the following list of text in sequential order, with fadein/out effect and eventually display the image and stops at there. I also would love to display all these texts in center.
<div>a<div>
<div>b</div>
<div>c</div>
<div>d</div>
<div><img src="mypict.jpg" alt="my pict" /></div>
This are all I have for the pa...
Hey there, I'm looking so long for a Dreamweaver extension to Auto Beautify php / js / jQuery code. Currently dreameaver can beautify only HTML and CSS (Apply Source Formatting)..
any kind of help will be much appreciated..
Thanks
Adnan
...
Problem i encounter with outerHTML using IE Browser
if i say:
txt="Update Complete!";
msg = sub.appendChild(d.createElement("p"));
msg.outerHTML = txt;
It Works Fine:
But if i say
txt="1 Error:<ul><li>Some Error</li></ul>";
msg = sub.appendChild(d.createElement("p"));
msg.outerHTML = txt;
Gives me an error of:
Message: Unknown r...
The DOM specification on Range objects doesn't address whether a range can have an end container/offset that comes before its start container/offset. The Mozilla docs on Range.setStart() indicate that this isn't allowed. Is this a Mozilla quirk, or common behaviour?
...
I saw a website using below syntax to listen to the event from an activeX control, I am wandering where I can find the reference for the definition of the "for" and "event" keywords in "script" element? Is it W3C standard?
<script language="javascript" type="text/javascript" for="DopvsPlugInCtrl" event="NotifyLocalPort(localport)">
...
I want to add very simple cookies based persistence with dijit.TitlePane. I want to make sure that the state of the title pane whether it was open or closed should be preserved in a cookie so that next time the page is loaded, the title pane starts with the remembered state. This is particularly useful in situations where I have lots of...
Hello All,
I have two simple HTML divs one contains flash movie and another div contains simple text now my problem is that i have to put textual div onto the flash movie div what i am doing is setting the position of both divs to Absolute in CSS and setting the Z-Index of flash movie div to 1 and Z-Index of textual div to 2 but the text...
Is there a JavaScript hack I could place in the URL field which would guide mobile browsers to "m." prefixes and guide my desktop to "www." prefixes, if I provide the "<domain>.<root>" suffix?
I think this would be useful for both Weave and Opera Link users.
...
Hello everyone,
I have a code snipet like this:
var nbrPrevArt = $("#accordion > div .accordionPanel").size();
var processing = false;
if (nbrPrevArt == 0) {
processing = true;
getArticlesPreview();//Fetches articles first
}
//loop that makes the browser to wait until finishes "getArticlesPreview()"
while(!processing)
{
}
...