jquery

How to start creating a selection script , "inspect like what firebug do"?

I want to create a small tool on webproject which will let the user select tags on the page and i will save selections in an array for future use, so what i need is something near the functionality of firebug. From where i can start? any good articles or tools can make things easier? ...

How to show/hide div on the current mouse over element?

I want to write a script which allow the user when hovering on any element on the page "such as a, img, div" another hidden element will show on this current element and will have its position, width, height with transparent color. How to do that using javascript/jquery? ...

Does anyone know a dom inspector javascript library or plugin?

Anyone knows a dom inspector javascript library or plugin? I want to use this code inside a website i am creating, i searched too much but didn't fid except this one http://slayeroffice.com/tools/modi/v2.0/modi_help.html UPDATE: Seams That no one understood about my question :(, i want find an example or plug in which let me implement ...

Jquery $.ajax async odd behaviour

I have a code snippet like this var searchurl="http://mysite.com/searchpath?q=test"; $.ajax({ type: "GET", url: searchurl, cache: false, dataType : "jsonp", async : false, success: function(data){ alert("success"); } }); alert("outside ajax"); The problem is that I am not seeing async at work. "outside aja...

jQuery: action as form is being submitted?

Here's my problem: I have a selectable grid of div's that are tied to unique category IDs I could probably re-write the grid to use hidden inputs as they are being selected, but it's a little late for that. As the form is submitted (standard form.. no ajax), I want to gather the selected IDs into a variable.. this code below works when...

switch body background using jquery?

i want to make a body background switcher using jquery. you will have some buttons and each will change the body bg according to your choice. and i want to make it so like that it will save a cookie so that it can retrieve user's choice when you change the page. first part i got it useing .addclass or .css but i am stuck on the svaing ...

Clone isn't cloning select values

I didn't expect it but the following test fails on the cloned value check: test("clone should retain values of select", function() { var select = $("<select>").append($("<option>") .val("1")) .append($("<option>") .val("2")); $(select).val(...

JQuery Modal Popup after window.location

Below is the information required for this problem. default.aspx /test/default.aspx When default.aspx loads the user clicks a button which should then redirect to /test/default.aspx. I have the modal popup working just not with the redirect and ideas? I have tried doing window.location = "/test/default.aspx"; and using a custom settim...

Advice on playing sound files from an ASP.NET MVC app

I'm working on a new ASP.NET MVC / JQuery app which will need to play short sound files in response to user actions. For example, in some cases, when a user clicks on a word, the computer should pronounce that word (there is a small finite list of words). I'd like advice on the following: Which sound file format(s) would you recomme...

attributes not selectable by jquery attribute selector

I am auto generating selectors and ive ran into a problem. some attribute selectors dont work. for example, on this page the following selector does not work as expected: $("img[src=/p/aost/logo?logo_id=1238551994]"); I also noticed that I cant select a <form> using the value of the action attribute. Question: Is there a full list s...

How to get the selected value of the radio button list in jquery?

I have radio button list which has id as the value, I want to access the selected id in the jquery function. ...

Trying to find an AJAX file upload solution for Zend Framework using jQuery...

I'm trying to create an "upload file, and email as an attachment" form where the file starts uploading after it has been selected (like Gmail), before sending the email. I would also like to implement a progress bar to show the status of the upload. There should be all sorts of examples out there, but I just can't find them! Do you kn...

Google geomap with jquery fails in IE

Hi all. I faced with problem that geomap by google fails with JQuery together in Internet explorer. Otherwise in Firefox it looks like this: Here comes js references <script type="text/javascript" src="http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=ABCDEFG"&gt; </script> <script type="text/javascript" src="http://ww...

List all javascript events wired up on a page using jquery

Using jqeury, is it possible to get a list of all the events and to which element the event is bound to? ...

How to get elements which have no children, but may have text?

the empty selector says that: Matches all elements that have no children (including text nodes).Finds all elements that are empty - they don't have child elements or text. What i want is to get elements which has no children but may have text inside., how? UPDATE: Example: I want select these elements which has no children but may hav...

How do I select an element in jQuery by using a variable for the ID?

For example, the following selects a division with id="2": row = $("body").find("#2"); How do I do something like this: row_id = 5; row = $("body").find(row_id); The above syntax produces an error. I checked the jQuery documentation and answers here without success. ...

get CSS rule's percentage value in jQuery

Let's say the rule is as follows: .largeField { width: 65%; } Is there a way to get '65%' back somehow, and not the pixel value? Thanks. EDIT: Unfortunately using DOM methods is unreliable in my case, as I have a stylesheet which imports other stylesheets, and as a result the cssRules parameter ends up with either null or undefi...

attributes not found by jquery attribute selector

I need to reask my old question, I probably shouldnt have asked it at 1am :P It seems that some attributes are not being found using jquery's attribute selector: $("*[some=value]"); So far it seems that i cant use form's action attribute, and img's src attribute. Is there a list somewhere of attributes that do not work so i can write...

jQuery UI dialog positioning

I am trying to use the jQuery dialog UI library in order to position a dialog next to some text when it is hovered over. The jQuery dialog takes a position parameter which is measured from the top left corner of the current viewport (in other words, [0, 0] will always put it in the upper left hand corner of your browser window, regardle...

Working with jQuery Slider - positions

I have been working with the slider and am using the following code: $(function(){ $('#slider').slider({ animate: true, step: 1, min: 0, max: 10, orientation: 'vertical', start: function(event, ui){ $('#current_value').empty(); $('#current_value').fadeIn().append('Value is ' + ui.value); }, change: fun...