jquery

Complex form widgets in Django

I am looking for good helper libraries to generate a rather complex form in Django. Dynamic field dependencies: Say if option a is selected certain fields are shown/hidden and subset of these are mandatory depending on option selection. Add more: On clicking "Add more" button that clones some widget. This is something which ToscaWid...

A better way to detect the index in the parent's children array by using JQuery?

for example, how to detect the index of the li elem in it's parent ul? ...

run jquery code in partial view called by ajax link

Hi! I have read your guide for "run jquery code in partial view called by ajax link" but i don't understand May you show me more clearly, possible a sample project Thanks for support ...

Explain error in code using fullcalendar control to show Google calendar

It's giving me error "Line: 13 Error: Object doesn't support this property or method " please tell me what is problem in my code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <link rel='stylesheet' type='text/css' href='../fullcalendar.css' /> <script ...

jquery json storage for life of page

can anyone please point me in the right direction for a json database on the client side for the duration of the pages life. example: i have a page with a canvas that i can add elements to and move them around, but i wish to create a Json object so that if an item is added to the canvas, the details are also added or updated in the jso...

jQuery with divs that can't be found even searching by its id

I have a piece of html/javascript written in jQuery at http://pastebin.com/MzMPjtvF My issue is the divs with images in them will only show up until $('.platform').hide() is ran, to the point that those divs won't even show up in $('.platform'). I'm not sure if its a bug or my lack of knowledge of jQuery ...

Height of the div respective to other DIV

Hi I have DIV structure something like this. <div class="leftCol"> Left Col Content </div> <div class="rightCol"> Right Col Content </div> I want to calculate the height of the right col. and that height to Left col. ...

Jquery dynamic dropdown event not firing

Hi i am trying to create dropdownlists dynamically and populating the contents via an ajax call, this sort of works in the sense that the drop down is created and populated as required but its 'change' event does not fire. I am posting the code below, if anyone can spot something obvious, can you please let me know regards $(document).r...

Alternative to before </body> tag inline Javascript

I know inline Javascript is frowned upon and with the new on-the-fly Javascript compressors that check for idle/unused function usage and omit the unused code, it seems good practice to have all your Javascript in an external file. My question is, in situations like FOUC (flash of unstyled content) which usually require little snippets ...

Slide HTML element using jQuery's mousemove() event

Hello, I would want to move a DIV element in a container when I move my mouse horizontally (X axis). I found this piece code http://nnbox.ca/demo/mousetrack/ that does almost what I want, but there the movement is on the Y axis. Here's my code, modified from the original one: function mouseTrack() { var xLeft = $("body#homepage #secon...

Which is better: string html generation or jquery DOM element creation?

Ok, I'm rewriting some vanilla JS functions in my current project, and I'm at a point where there's a lot of HTML being generated for tooltips etc. My question is, is it better/preferred to do this: var html = '<div><span>Some More Stuff</span></div>'; if (someCondition) { html += '<div>Some Conditional Content</div>'; } $('#parent...

.live() vs .bind()

i want to know main difference between .live() and .bind() method of jquery ...

jQuery: pass different data to periodicalupdater each time?

Hi, On my setup, the ids of all entries will be fetched (e.g. assigned to variable ids=2,5,7,9,11) and passed to periodicalupdater to send to a php script. The problem is that the list of ids change over time, when new entries are added via ajax. How can I make it such that the updated id list of entries will be passed to periodicalupda...

jquery function

Hello id like to get the current element firing this event inside the event, Ideally I need the id, selected value and class, Thanks in advance $(document).ready(function () { $("#positions select").live("change", function () { var id = $("#category_id").val(); //var id = this.val(); alert(id); $.ge...

jQuery / wordpress issue with .addClass based on url

Hi, I'm have some issues adding a class to 2 navigation links on a theme. I need to add a class based on a url string as i'm redirecting the page to another. You can see the blog here: http://208.43.250.67/~thingsig/ Links are: 'Blog' and 'Keepers' I'm using the following code: <script type="text/javascript"> if (window.location.pa...

How to make a show case something like a marquee from bottom to top

Click on this link, you will be redirected to a shopping site. On the right side, there is an animated block called TOP SELLER. What kind of plugin is that? Thanks in advance! ...

Jquery calendar overlapped by flash....

I use a jquery calendar and a flash in the same page.. What happens is my jquery calendar is overlapped by my flash... Any suggestion to make it display above flash... Look at the image and see my calendar Fr,sat are invisible because of flash... EDIT: This is what i used, <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ...

Firebug profiling issue: "no activity to profile"

I want to try some different options with some javascript (jQuery) to see which is the fastest, however I can't get profiling working properly. Here is the code I want to test. $this.keypress(function(e) { console.profile("test"); //retrieve the charcode if possible, otherwise get the keycode k = e.which ? e...

Is it better to use HTML5 & Canvas or CSS3(background image) & jquery to make a slideshow?

I'm making a slideshow and the images won't be static, they'll be pulled in dynamically through an array and finally it will look like this: What i'm wondering is, what is more CPU friendly, CSS3 & jQuery making transitions fade simply by changing the CSS class of the div that will fill the screen, or, Canvas with drawn on it refre...

Merge an image over another in the specified position and save it as a new image?

save an image that is generated by merging an image over another image? i have an image first and i want to insert some text over this image in a specified position given....that i got coorectly..bt the new task is to place this last generated image over another image template in the location given and save it as a new jpg image in my w...