jquery

How to identify when the DOM has been changed ?

Is there a simple way to know when the DOM has been changed ? Is there any built-in JavaScript/jQuery event/function for this ? ...

Is this possible to force execution of .click() for all elements, even those that are underneath ?

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) ...

deleting a list item <li> with jquery?

im trying to delete a li item using jquery, but its not working heres my code? the html file: <li> <a href="nano.com/$username"><img class="avatar" src="images/$picture" width="48" height="48" alt="avatar" /></a> <div class="tweetTxt"> <strong><a href="nano.com/$username">$username</a></strong> $auto <div class="date">$...

Problems with dynamic RegExp construction in Javascript

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...

Galleria jquery plugin

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...

Adding a node with jQuery in a Firefox extension

Hi guys, I suspect that jQuery is not working ok in my extension... I'm using version 1.3.2, loaded with the following rows: var loader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getService(Components.interfaces.mozIJSSubScriptLoader); loader.loadSubScript("chrome://myext/content/lib/jquery.js", myext);...

How do i use an API? getting nothing back in a AJAX(jQuery) request

i am figuring out how i can use the tumblr api, but i think i maybe doing it wrong i tried $.get("http://jiewmeng.tumblr.com/api/read/json?callback=tumblr", function(data) { $("body").prepend(data); }); and even $.ajax() $.ajax({ type: 'get', contentType: 'json', url: 'http://jiewmeng.tumblr.com/api/read/json', ...

How to develop alert system like facebook using PHP and Jquery?

How can I develop an alert system like Facebook's, where User A add User B, User B will get some number in Friend Request Section on the header like in the image below. How can I develop something like that? How can we get numbers like this??how can i get codes in PHP and JQuery? ...

jQuery - Simple Screensaver

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;" > &nbsp; </div> JS $('body')....

Add a dialog to the document root, jQuery

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? ...

JQuery UI dialog display action (Rails 3)

Hi All! Before I start, I'm a beginner at javascript, rails 3 and jQuery so please provide full examples. Here is what i'm trying to do: I have build a rails app with scaffold and changed the default javascript to jQuery in order to make a piechart on the dashboard work. So now I though I could add the jQuery UI and display a dialog b...

Click event firing multiple times

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> ...

jQuery: $.post not working, $.get works

Firstly, I did look at related posts, but none of them quite stoops down to my stupidity levels. Its my first time working with web technologies and I'm trying to work with Ajax/JQuery and Django. Here is the code: $(document).ready(function() { $('#result').ajaxError(function() { ...

JQuery - Checkbox tree component.Help with API

I need to implement a Checkbox tree and I came across this component called jstree. It is a jQuery component and unfortunately I have no experience with Jquery. I followed the documentation and I have implemented my checkbox tree. The problem is with finding the selected checkboxes upon some event,say form submit. The API says,.get_check...

JQuery Datepicker not working

I am trying to get a date picker working and I am really struggling with my limited javascript knowledge. I have been basing this on this tutorial. I have the following code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript" src="sc...

jQuery remove element from the stack

How to remove element from the stack, but not from the DOM? Thanks ;) ...

How to send data with load function in jquery

I want to send a string data with jquery load function but its not sending, my code is function dialog(data) { $(function () { alert(data); var ph = $("#Org1"); ph.empty(); ph.load("/FrontEnd/DocsDownload", data, function () { ph.dialog({ ...

Strange look, jQuery UI

Hi, I am using jquery modal dialog, but the look of the dialog is other than the the look of the dialog example. jquery ui is included and enabled. any ideas? ...

Redirect jquery ui dialog on close.

I tried different ways to do this but i cant get it work. this is the code: $.ui.dialog.defaults.bgiframe = true; $(function() { $("#category_edit_dialog").dialog({ width: 960, hide: 'slide', position: 'top', show: 'slide', close: function(event, ui) { redirect here? how? } }); });...

Jquery - Replace all show() and hide() with special ui effects (not hardcoded)

Hi, i only use the hide() and the show() method on my website. But some user want more effect's. Like the jquery UI (bounce, clip, slide). Is it possible to replace (not hardcoded) all hide() & show() methods with the (for example) "bounce" effect? So that the user can decide wich effect he want? Thanks in advance! Peter ...