I use Jquery , and change many compress tool but still cause error "it dont know function I created in this file"
http://gist.github.com/586338
help me !!!
This file run fine , dont have a error if it dont compress
...
I have a div that contains the value of the textarea on keyup, so as i type in the textarea, it's shown in the div, the div is a comment preview for the textarea. is it possible to emulate a click in the textarea when i click in the div? so if in the div i click on the word 'world' in the sentence 'hello world i am on you', then it would...
Hi,
I have used Prototype.js in my past and was able to write classes uing:
var XEventDesc = Class.create();
XEventDesc.prototype = {
initialize: function(element, eventName, handler, useCapture) {
....................
}
};
How do I write classes in Javascript using jQuery
...
I'm using jsonp to do cross-domain comet requests, and the "loading" status is really annoying.
Is there any way to suppress this with javascript?
For those who are unfamiliar with jsonp, it basically injects a script tag, except in my case, I'm hanging the request on my server without returning the request until a later time.
During ...
Right now I'm getting this strange error from IE which is basically
'null' is null or not an object
The line number it gives is completely off so I don't put much credit into that however I think I narrowed it down to where it's coming from.
function openSong(songlink){
$('#smallbox').slideDown();
requestCompleteSong('<tr>...
I want to make a thunderbird extension. So the first question is where to get started. Can you point me to some sample extensions in which I can plug in my code? This will significantly reduce the effort. I presume what we would write some javascript files along with some configuration files for writing an extension. Is that write?
That...
Hi. I need a little direction on how to parse this in JavaScript.
I want to list the total number of buildings and in each building, the total number of tenants.
My XML looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<AppManager-response uri="/AppManager/xml/ListBuildings">
<result>
<response method="ListBuildings...
Is there a simple way to know when the DOM has been changed ?
Is there any built-in JavaScript/jQuery event/function for this ?
...
According to JavaScript: the Good Parts:
JavaScript was built at a time when Unicode was a 16-bit character set, so all characters in JavaScript are 16 bits wide.
This leads me to believe that JavaScript uses UCS-2 (not UTF-16!) and can only handle characters up to U+FFFF.
Further investigation confirms this:
> String.fromCharCod...
Consider this code:
HTML:
<div class='a'>a</div>
<div class='b'>b</div>
<div id='log'></div>
CSS:
.a, .b {
width: 100px;
height: 100px;
border: 1px solid black;
position: absolute;
text-align: right;
}
.a {
left: 100px;
top: 100px;
}
.b {
left: 150px;
top: 150px;
}
JS:
$('*').click(function(e) ...
Hi,
I have the following code snippet :
function getCheckListTaskWithId(id){
var tempTask = db.readTransaction(function (tx) {
tx.executeSql('SELECT * FROM checklisttasks where id=? ', [id], function (tx, results) {
var len = results.rows.length;
if(len>0){
var task=results.rows.item(0);
var temp=...
This method is to prevent users from entering anything but numbers and "allowed characters." Allowed characters are passed as the parameter allowedchars.
So far, the method prevents number entries but the allowedchars doesn't work (tried with passing "-" (hyphen) and "." (period)). So I'm assuming my dynamic regex construction isn't...
Here is the home page for the popular jquery-plugin galleria. I need to insert the download link to the right bottom corner for the active image. Now there is available statistic like (3/10), which indicates the current number from list.
Maybe someone already did this. What is the fastest way?
UPD: using the gearsdigital's idea I wrot...
Hi all,
I have recently started to tinker with Project Euler problems and I try to solve them in Javascript. Doing this I tend to produce many endless loops, and now I'm wondering if there is any better way to terminate the script than killing the tab in Firefox or Chrome?
Also, is firebug still considered the "best" debugger (myself ...
I'm trying to implement a onclick event to select an item in a asp:ListViewControl.
<ItemTemplate>
<tr runat="server" id="MemberRow" onclick='<%#ClientScript.GetPostBackClientHyperlink(LvMembers, string.Format("Select${0}", Container.DataItemIndex)) %>'>
<td>
<asp:Literal runat="server" ID="LtlMember...
I'm trying to convert this code over to C# and was wondering what is the equivalent to Javascript's "Array.push"?
Here's a few lines of the code i'm converting:
var macroInit1, macroInit2;
var macroSteps = new Array();
var i, step;
macroInit1 = "Random String";
macroInit2 = "Random String two";
macroSteps.push(mac...
I try to build a really simple screensaver, but it is not as easy as I thought.
My solution did not really work and it is IMHO really dirty.
Did anyone have a good clean idea? Maybe without a timeout?
HTML
<div id="screensaver" style="width:100%; height:100%; background-color:#000000; display:none;" > </div>
JS
$('body')....
Hi,
in this example the dialog is added to an #dialog-confirm element. But I want it to be added just to the body and I do not want any predefined div#dialog-confirm element in my html. So how do I realize that?
...
Hi,
Does anybody have a way to detect Firebug opening and closing.
I know you can do the following:
if (window.console && window.console.firebug) {
//Firebug is enabled
}
but this only detects the firebug console on page load. What I want to do is on a page where firebug is not open, detect the opening of the firebug console.
I'v...
I am learning to write a plugin for myself, but I got something odd in the code. I have a reset button, and when I click it, it runs as times as the number of input elements I have.
My code: jsbin, jsfiddle
HTML:
<div id="container">
<div id="createCSVWrap">
<fieldset>
<legend> Create the CVS File </legend>
...