jquery

Django jQuery update fragment

Hi. I have a menu which shows certain information such as message_count, notifcation_count from django, and also a user profile that makes use of a load of jquery ajax functions to get information when a user clicks a url reference. one of these reference relates to a users messages that he can view in his profile, without being redire...

problem with adding jQuery to ASP.NET MVC application

I've a problem with adding jQuery to an ASP.NET MVC application. I add jquery to Site.Master like that: <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script> In Visual Studio 2010 this is o.k. - now I publish a application to a web server (IIS 7) an a Folder like: h ttp://localhost/AnApplication When calling...

Using Javascript to display weights

I have a javascript function that changes a user preference, if they want weights to be metric or in imperial. On my page I print out the weight, IE: This is some description: This product weights <b>200 KG</b> Blah blah I need to make it so that Javascript changes the weight measurement for all weights on the page, and am not sure...

JQuery - It fails on IE7. Crossbrowser compatibility?

Hi. I tried to open a post time ago about this problem (here), thinking i was wrong making the code. Now more or less i've understood that some version of Jquery with my code doesnt work on IE7. What's Happening? I also tried to open a post on JQuery official forum (link) but no one reply. Anyway, in my old website i used to work with jq...

Jquery - Get the latest element in a div

Hello. I have this code : <div class="content"> <div class="tlcontent"> <div class="sideon" id="sideline0"> somethings </div> <div class="trackon" id="trackline0"> somethings </div> <div class="sideon" id="sideline1"> somethings </div> ...

How to capture mouse click with javascript when the mouse has moved between mousedown and mouseup

Hi, I am building a website with a scrolling javascript time line, using code from this tutorial. There is a demo to go with the tutorial here. My problem is as follows: if the user clicks on the timeline to drag it, and they happen to click on a link, then when the mouse button is released, the browser interprets that as a click on ...

How to read/write input fields in Django-admin tabular inlines using ajax?

I am looking for ways to dynamically update the inline entries using ajax. i.e. as the user selects an item from the dropdown box, the associated input fields can be populated with data. The views.py part for ajax should be straightforward. But one problem for me is how to get the names of dropdown boxes in js, which can be added on the...

Jquery Error: $("[data-weight]") is null

Stripped a ton of stuff to make it more readable, it throws an error on the line: $('[data-weight]').each(function() { Saying that it is null <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <head id="ctl00_mainHead"> ...

What is "info_dialog" Method in Visual Studio 2010 Javascript AutoComplete?

When editing javascript in VS2010, the dropdown autocomplete list shows a method called info_dialog - i dont have this method in any of my javascript and cant seem to find out where it comes from or what it does? Does anyone know? Thanks a lot! ...

Jsf integrating with Jquery

Hi All, I am new to integrating the JSf with jquery(usign "url" and jgrid). please can you help me on this topic.if possible please provide one sample example. ...

Add class in html tag with jquery

Hi friends, I got this html code: <form id = "xxx"> <ul> <li class = "req" > </li> <li class = "req" > </li> <li class = "req" > </li> <li > </li> ==================> HOW CAN I ADD A CLASS="req" to this li with jquery <li class = "req" > </li> .... <li class = "req" > </li> </ul> </form> So I ...

Jquery Map Highlight

I'm using http://plugins.jquery.com/project/maphilight for highlighting areas when I hover over an image map, but I'd also like to keep it highlighted when clicked. When another area is clicked, the previous one should fade out and the new one stay highlighted. Has anyone seen this done or know a way to do this? Many thanks, C ...

Using HTTPHandler in C# .NET 3.5 with jQuery Week Calendar

I've been trying to get this to work for weeks now, all to no avail. I am sure that my code must be failing through something fairly small and stupid, but having tried a number of different approaches I'm starting to really struggle as to what the problem might be. Has anybody else managed to get the jQuery Week Calendar (http://github.c...

JQuery filter on children's class after .get()

Problem: I want to do a .get() but only with the elements without the .played class. (I'm building a shuffle playlist, played numbers are being marked by a .played class on their div). Current code: var randomElements = $("#playlistVideos").get(); What I tried: the filter() and a lot of selector tricks, none of them succeed. I'm ver...

Add Icon(s) in first line of an event (fullCalendar)

For specific attributes of an event to be displayed in the 'fullCalendar' matrix I would like to add icons to show them, for 'completed' an (i) button, or an URL symbol in case the event contains an URL link. I don't want to write any html string to one of the elements (fc-event-time/-title) in the <a> element, but define an additional ...

Jquery popup window without close button

How do I create a jQuery popup window without close button? Please see my code below. $('#addNewRecord').dialog( { autoOpen: true, width: 570, bgiframe: true, resizable: false, height:490, modal: true } ); Could anyone please help me ? ...

How to use jQuery's .css() with variable property name ?

Instead of writing: $('div').css({'backgroundColor': 'red'}); I want to write something like: $('div').css({get_property_name(): 'red'}); where get_property_name() will return "backgroundColor", "color", "border-top-color", or any other property. What options do I have to make it work ? ...

Horizontal scroll Coda Slider

Hello , i have this demo at http://tourscript.com/gabriele2/default2.asp and i don't know how to make the scroll move left right horizontally instead of breaking the div as is now. Thank you ...

IE 8 not pushing footer down when jquery toggle method called

Hello Just getting into jquery. This problem only occurs in IE 8, its fine in IE 7, IE 8 Compat mode, Chrome and FF. When the nail enhancements button is clicked the content bombs over the top of the footer. Does any body have any ideas please? here's the page. http://deansmith.me.uk/acrylicwizarddev/pricelist.aspx thanks Dean ...

Is there a way to identify an element on the page at a specified location in javascript?

I'm looking to identify the target DOM element at a specified location. For example, I want to say, give me the element at offset 200px from the top and 150px from the left. This needs to be done programatically, and not via an event (for example, it should be able to return the element when the page loads) For extra points, would it ...