jquery

How do i put this dynamic Jquery Variable in to this condition

$(".mylink").live('click', function(){ var linkid = $(this).attr('id'); if($("#TBL").find('tbody > '+ #linkid ).css("display")=="inline"){ // Do Somerthing } }); I have to put the Dynamic variable "linkid" in to the above if condition iam looking to have the interpreted value .Iam getting "invalid ch...

Jquery File Tree - how to return folder name on folder click

Hi, I have installed and trying to customize Jquery File Tree so that, on click of folder name, the folder name and path are returned to the calling function. Currently it only expands and collapses folders, and returns the file name on click of file. So I need to return the folder too and cannot see where that is triggered. I am usi...

Minimizing or eliminating Cufon delayed replacement (text "flashing" or "flickering")

I'm trying the technique graham has shared on this topic (http://j.mp/cy6IRR) and I know I'm doing something super bonehead here. I'm hoping to get some help from someone that's successfully dealt with this Cufon issue. I'm seeing the flicker in all browsers it seems. Cufon JS Call in function initCufon() { Cufon.replace('#content...

jQuery UI draggable + sortable + droppable all together?

Hi Guys, I will try to make it short: I am trying to figure out how to integrate these 3 functionalities into my application. I have a list of items (1), which I want to make it sortable. I would also like to make each one of the items draggable, in order to drop them on a droppable area outside of (1). Now, the hard part: On top of th...

What is my document onLoad hander in Rails?

I want to use a plugin to make most of my models inline editable, but I don't understand the following: To use it, include jquery.rest_in_place.js in your template and execute the following in your document’s onLoad handler: jQuery(".rest_in_place").rest_in_place(); http://jan.varwig.org/projects/rest-in-place Where do ...

How to bind object as a json string to another html element on JQUERY Template plugin

Actually i tried to find it but i was lost in plug-in lines while debugging. I want to show how it is working because there are different template plug-ins. $("#teplateScript").tmpl(arrOfWhatWeWantToBind).appendTo("#divElementwhichWillContainTheOutput"); I want to serialize every element of array(to json of course) with JSON.stringify...

Editable text functionality using jQuery

I have an image button and when I click it I want an specific field to go from text to an editable textfield, kinda like a dynamic edit button. So I have the plain text with certain id (ie. id="text1") and when I click the button, the text changes to an editable field, maybe something like $("#text1").hide(); and then $("#field1").show...

Web debug: tracking GET source

I'm trying to fix a long standing bug in our rich GUI web app. It is a GET being executed out of place without query string parameters, causing uncaught exception on the business layer on the server due to missing parameters, returned as an error page. Environment: jQuery (UI) + DWR (allow Java and JS to call each other through AJAX) + ...

ASP .NET MVC AJAX BeginForm InsertionMode.Replace Not Working well

I can see the result when entering anything in text field. The result does go to the DIV I want. However, I look at the source code for the page, I don't see the replacement element. For example, I enter 'aaaaaaaaaaaaaaaa', click submit button, I see the result as You entered aaaaaaaaaaaaaaaa; But right click to open source, I don't see...

Autocomplete hitting enter vs clicking different behaviour on IE7 (jQuery 1.4.3 + jQuery UI 1.8.5)

here is my code: $(document).ready(function() { $("#OperatorID").focus(); $("#PartNumberID").autocomplete({ source: "ajax/getData.php", minLength: 6, delay: 100, select: function(event, ui) { $("#PartNumberID").val(ui.item.value); $("#boxID").val(ui.item.box); $("#PackageID"...

Extending JQuery - IE Error Only - Object doesn't support this property or method

IE only bug... go figure... I get Object doesn't support this property or method when I do this... $('#the-content').showAsModal({ 'leftPosition': 100, 'topPosition': 200, 'centerX': true }); I extended jQuery like this... (function ($) { $.fn.showAsModal = function (options) { var settings = $.extend({ ...

Trouble parsing xml with jQuery on a extension for google chrome

I really can't figure out, what's wrong with this code: This is my manifest.json file: { "name": "Test!", "version": "1.0", "description": "Testing this", "content_scripts": [ { "js": [ "jquery-1.4.2.min.js", "parser.js" ], "matches": [ "file:///*/*" ] } ], "permissions": [ "tabs"...

FullCalendar: How to stop dragging custom events?

how to stop dragging / resizing the events where event.id > 100. Only those events should be non draggable. Updated with Code Sample: eventRender: function(event, element) { if (event.id > 100) { event.disableDragging(); event.disableResizing(); } element.qtip({ co...

$(document).ready() clarification

I have an aspx page with 5 user controls. I have $(document).ready() in each of these user controls and then one in the main aspx page. Is this the right approach or I should consider of side effects? ...

Rails - jquery-html5-upload ?

Hello, Has anyone been able to get the jquery-html5-upload plugin to work with Rails 3 + PaperClip + S3? Know of any tutorials? http://code.google.com/p/jquery-html5-upload/ Thanks ...

mouseover not working

Hi , I have the following code which is not working I create this div over a popup , normally there will be 20 divs like this on a popup. i am trying mouseover its not working , if i give mousover event in the div itself its working. any mistake. <div dataindex="0" class="clstImages" id="dlstImages0"><img alt="Almond Branches in Bloo...

Jquery "hide on load" causing a Javascript error.

I am trying to write a menu whose subitems vanish when the page is loaded. If you need full HTML, I will copy it, however it just consists of a bunch of DIVs, the items under the headers have a class of subitems. I have managed to do what I need via: $(document).ready( $(".subitems").hide() ); However, in Chrome, despite...

JQuery post not passing variable

I'm trying to pass an image's src to a django view when a button is clicked. In my template, I have: $("#url_submit").click(function() { var film = "{{ filmname }}" var id = {{ id }} $.ajax({ url: "/db/gallery2/" + film + "/" + id + "/", data: {url: $('#large_thumbnail').attr('src')}, type: "POST" }); }); ...

Access JSON value dynamically

Hi there, This is probably unbelievably basic. In the code below, I have annotated the part that needs attention. I just do not know how to structure it if, instead of res.DATA.VALUE[i], I make it dynamic and write 'res.DATA.' + textCol + '[i]' (pure pseudocode, I realise it won't work) function loadSelect(entity,textCol,retField,m...

Prevent Multiple Selections of Same Value

I am working on a project where I have a form that will have multiple 'select' inputs, all with the same set of options. I would like to use jquery to disable/hide an option in the rest of the 'select' inputs, if it has already been selected. For example: <select id="1"> <option value="volvo">Volvo</option> <option value="saab">Sa...