Hey Everyone,
http://blog.falafel.com/Blogs/AdamAnderson/07-11-06/Create_a_Submit_Button_That_Prevents_Double_Clicks.aspx
I'm using the code the above and running into an error i can't quite figure out. Maybe its something simple or maybe it's something that can't be done. Not sure.
I created a user control (button) that references a ...
Hello,
I am using the ExternalInterface to communicate between Flash and JavaScript using callbacks and the call method. I would like to throw an exception in ActionScript 3.0 and catch it in JavaScript and I was please wondering if there was anyway to do that?
Thank you very much,
Rudy
...
I have an array which is part of a small JS game I am working on I need to check (as often as reasonable) that each of the elements in the array haven't left the "stage" or "playground", so I can remove them and save the script load
I have coded the below and was wondering if anyone knew a faster/more efficient way to calculate this. Th...
HI,
I have an HTML which has several a list of items with a checkbox (these are placed in a table). Each row in the table has the following coloumn:
<input type='checkbox' name='Events[]' value='1'>
<input type='checkbox' name='Events[]' value='2'>
etc
I would like to have make a link names "select all" that when clicked will select ...
Hi,
I try to use first time the Dojo toolkit and I'm facing an error.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/ja...
Dear all,
I'm writing a webpage that relies on an external javascript file (that I have no control of), which returns data by using document.write's. Is there any way to dynamically call the function without it overwriting the whole document? Here's the most concise code I can think of:
<html>
<head>
<script type="text/javascript">...
I currently have jQuery code that looks like this:
if ($.url.param("s") == "error") {
$.gritter.add({
title: 'Error!',
text: $.url.param('message')
});
}
I'm checking to see if the request variable s exists in the url (ie. http://example.com/?s=error&message=this%20is%20my%20message and then showing a popup...
Hi All,
I have a js object structured like:
object.property1 = "some string";
object.property2 = "some string";
object.property3.property1 = "some string";
object.property3.property2 = "some string";
object.property3.property2 = "some string";
i'm using JSON.stringify(object) to pass this with ajax request. When i try to deserialize ...
I'm looking for a function to convert a string to the xml string with xml entities where needed. Something like htmlentities in PHP but for XML and in Javascript.
Thank you for any help!
...
I have a webpage when it finished on the left bottom there's a warning says:Done, but with errors on the page. I double click it and it told me:
Line:628
Char:100
Error: Expected ')'
Code: 0
URL:.....
I knew Fiddler is a good tool to debug. I download it and try to debug. The line IE told me I just can't find anything that's missing ')'...
I am attempting to set the source of an image. The image shows up correctly in IE and Firefox, but it doesn't show in Chrome. The error message that shows up in the console is: "Resource interpreted as image but transferred with MIME type text/html."
ColdFusion.Window.show('loading');
image = <cfoutput>#randrange(1,numImages)#</cfoutput...
I stumbled across a CMS written in jQuery that enables the site to be managed from the frontend (backend functionality is embedded in the frontend pages). Are there any other CMSs that are similar to this?
editEase Demo
http://jquerystuff.com/editease/ - Admin link is at the bottom-right
user: admin
pass: pass
...
I know very well that null and undefined are distinct in JavaScript. However, I can't seem to decide whether or not use that fact when my own functions are passed one of those as its argument.
Or, expressed in a different way, should myFoo(undefined) return the same thing as myFoo(null)?
Or, in yet another case, since myBar(1, 2, 3) is...
We have a GWT application that needs to display various holidays. Is there a library available to do these calendrical calculations? If not, we'll have to do our own that we can ingest a set of rules to.
Cheers
...
Hello,
I am trying to mimic the file selecting from Windows Explorer in Javascript. I notice Windows Explorer has two types of "selecting". One is the normal selection which highlights the file and the other one is a dotted line which means that file is currently focussed on. So I am using "selected" and "focus" as css classes.
Here yo...
Hi, I have this script which loads external content:
<script type="text/javascript">
var http_request = false;
function makePOSTRequest(url, parameters) {
http_request = false;
if (window.XMLHttpRequest) {
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideM...
I try to do an AJAX call with jQuery and $.post in Internet Explorer, but all I get is an error saying "Permission denied". The problem is kinda weird since it occurs only when I access a page after I was on any other page.
For instance I type the URL in the adress line and let IE load the page. Then I click on a button so the script s...
Given a namespaces ns used in two different files:
abc.js
ns = ns || (function () {
foo = function() { ... };
return {
abc : foo
};
}());
def.js
// is this correct?
ns = ns || {}
ns.def = ns.def || (function () {
defoo = function () { ... };
return {
deFoo: defoo
};
}());
Is this the proper way to a...
I'm trying to select all the <input> elements of a form except ones with IDs containing the words foo or bar. How can I do this using ExtJS 2.3.0? I've tried the following:
Ext.query("select,input:not([id*=foo][id*=bar])", "SomeForm");`
... but it doesn't work. Excluding IDs with foo in them seems to work fine:
Ext.query("select,in...
how can i know that a specific is on another specific after dragging the first and drop it
I am using this code in the head of my document to enable drag and drop of my divs
var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.c...