jquery

Force an event in jQuery

To all; I have created a up and down counter for decimal places and when a change occurs I have it force a blur event to recalculate fields with the following code: $('button').click(function(){ var decPlaces = document.calculator.dpv.value * 1; var hii = document.calculator.origin.value; if (this.id == 'up' && decPlaces < 9){ ...

Jquery $.post() variable scope

Hi I'm not massively experienced with JavaScript and I'm having trouble with variable scope and jquery. I have the following structure: function pass_variables() { username = "efcjoe" response = post_variables(username) alert(response) } function post_variables(username) { $.post( '/path/to/url/', { ...

how do i change this jquery code into pure javascript?

prelude: I'm sure this code is ugly so feel free to suggest a better way. the goal: making a little web store that lets people preview their different configurations of a given product (a belt) as they make their selections. (e.g. red belt with a gold buckle vs red belt with a silver buckle, etc.) you can see a working version here: ...

Drupal jQuery won't load in IE using $(document).ready()

This is my first jQuery script, which works great in Firefox and Chrome, but fails in Internet Explorer. I load two scripts using my theme's .info file: scripts[] = jquery.jfeed.pack.js scripts[] = script.js The first script is a jquery plugin that parses rss feeds for me. The second script looks like this: var init = jQuery.getFee...

How do I get specific element in jQuery.each loop

I need to get the div containing the street address within the list. The div has a class called address ( div class="address" ) I cannot use jQuery("#storeList li .address"), because there are other elements I need to acces as well. I have the following code: jQuery("#storeList li").each(function() { var n = jQuery(this.address).tex...

Django + Jquery, expanding AJAX div

How can I, when a user clicks a link, open a div right underneath the link which loads it's content via AJAX? Thanks for the help; I cannot find out how to. Just statically filling the div on the server side while loading the page works fine, but it's too much content for that. I'm kind of looking for a specific Django version of the...

How check for ID existence using jQuery?

I want to have a line of code similar to below: var name = $('#input-name').attr("value"); However, the id 'input-name' is not guaranteed to exist. How do I check for its existence so that the assignment does not throw an error? ...

jquery Polaroid viewer

I am hoping to get a little help. I am a designer by nature, so programming is not my strong suite. With that, I am using this jquery plugin to add some dynamic elements to my site. A link to the source is here: http://www.marcofolio.net/webdesign/creating_a_polaroid_photo_viewer_with_css3_and_jquery.html My question: I would like for...

JQuery, Ajax, JSon, PHP and parsererror

Hello. I'm trying to send a form to a PHP using $.ajax in Jquery. I send the whole thing as JSON, but, when I try to get the response, i get the 'parsererror'. What am I doing wrong? Thanks in advance. Jquery fragment: $("form").submit(function(){ $.ajax({type: "POST", url: "inscrever_curso.php", data: {cpf : $("input#cpf...

recommend a unique jquery image streamer?

Im looking for a really nice jquery image streamer/slideshow plugin. Something unobtrusive, that can take a group of images and fade through them and then update the list when done. Something thats not basic, something that you can sit back and watch and incoming stream of uploaded photos. ...

Using javascript to fade a thumbnail image from grayscale to to color

I'm relatively new to web development and wouldn't even know where to start in coding a javascript that fades a grayscale thumbnail image into a color thumbnail image on mouseover, and vice versa on mouseoff (<--or whatever this is called). I've looked all over and can't find a script that does this. Is this possible? Could I use jqu...

jQuery Datepicker: Prevent closing picker when clicking a date

Hi fellow stackoverflow:ers, I'm using the jQuery Datepicker plugin, together with Martin Milesich Timepicker plugin. Everything works great, except for the fact that clicking a date in the datepicker, closes the widget, leaving no time to pick the time. Question: So I'm wondering if there's a way to prevent the widget from closing wh...

When injecting text inside a div, I need to insert a url safely in javascript using jquery

Hi, Using jquery I am doing something like: $("#someId").append("this is some text, go here."); How can I insert a url like this safely? Is there an easier way to escape all those characters that will cause js to break? ...

problem refreshing div containing php code using jquery

I have read 3 posts on SO about how to do this, but its not working for some reason. On the page index.php, i have this script: <script type="text/javascript"> function update() { $.get("index.php", function(data) { $("#uploadcount").html(data); window.setTimeout(update, 5000); }); } </script> and then this div, also in...

How can I prevent jQuery from loading a modified content before hiding the element ?

Hi, When I want to change the content of an element, it works fine without effects, and does this behaviour with the effects: changes the content to the new one does the hiding effect, on the new content does the showing effect, still on the new content Here is the code that is launched everytime I need to change the content: funct...

Show progress without using an image

I would like to design a progress bar, without using an image (eg animated gif...). Can this be done with just html css and jquery? trying to be creative here :) Update: the progress percentage cannot be determined, so it has to be a loop ...

jQuery removing columns and rows..

Hi all, I've got a table which I'm pulling in from an external website, but I need to be able to hide the first 2 columns, add a class to the 3rd column, add a class to the 6th row and delete the 7th row. I've managed to do the columns, but I'm having problems with the rows.. I'm using the following code to hide the first 2 columns and ...

Flexigrid for jQuery - How to Edit/Update records in the grid?

Hello, I'm looking to create a form which will populate with data from my MYSQL database and allow me to edit/update the data in the form and have the updates saved in the database. Flexigrid looks like a great solution to output results but I'm not seeing how Flexigrid can be used to modify data and save the updates to the database. ...

Coldfusion + JSON issue for jqGrid

I'm working to setup a jqGrid JSON web service to populate JQUERY's jqGrid plugin. Currently I am outputting the following with my code: Current: {"total":2,"records":13,"page":1, "ROWS":{"arrUsers":[{"1":1,"4":"bgf","3":"faaff","5":"ASD","2":"asd","7":"1231231233'","6":"123asd"}]}} The desired output which is what jqGrid expe...

Theme Desinger using JQUery

Hi, I am developing an application to design Forms. Now i thought to add the option of desinging themes and saving it as a new theme. I want to apply the themes available including what i have designed with the one selected to my Form.Can u people suggest what is the best way to design themes . How to design themes using JQUery .Actuall...