jquery

jQuery UI Dragging - which handler is being used?

Hi, I got the following setup for dragdrop functionality: const listDragOptions = { handle: ".camera, .texter", // dragged by either camera or edit icon //revert: true, // so dragged elements fall back to their original position, revertDuration: 200, // the element goes back instantly, no need for effects on this one sn...

C# method to convert html-markup into JavaScript-compatible string

I believe there should exist a known method for converting this: <div class="singlePane pane"> <div class="tripleColumn"> <!-- TODO: --> <div class="col"> <div class="captionedLink"> <div class="icon" style="background-position: -26px 0px;"> blah blah INTO THIS: \r\n \u003Cdiv class=\"singlePane pane\"\u00...

how can i change the unselected item to selected item from dropdown list without using iterator function in Jquery?

how can i change the unselected item to selected item in dropdown list without using iterator function? Thanks in Advance ...

Reload multi webcam(jpg) IMG with jquery

Just stated to play around with Jquery and Java. I stated to setup a page with sevral webcams and updating the live preview image using Jquery. Tryed to google around but I'm not able to find an "easy" solution for reloading sevral camera jpegs without reloading the complete page. So far I came up with this and it's "working" Script par...

Removing CDATA from XML/RSS feed using jQuery

Ok So I looked at this: http://stackoverflow.com/questions/2308889/using-jquery-to-extract-cdata-in-xml-for-use-as-html-content But it didn't help with what I'm doing. I'm getting an rss/xml feed from a url. I'm having an issue with the CDATA in the title and description tag. Here's the feed item: <item> <title><![CDATA[Impact Sou...

toggle function happening on second click

function toggleDiv() { $('#myDiv').toggle(function() { $('.pnlMyarea').slideDown(); $('#separator').hide(); $('#manualInsert').css('margin-top', '15px'); }, function() { $('.pnlMyarea').slideUp(); $('#separator').show(); $(...

Jquery DOM not updating after .each() iteration

I am trying to keep track of updates as the each iterates and when the each is finished I would like to show a summary to the user in a graceful way. I have tried almost everything to a method call to update an element on the page but unless I fire off an alert at any point in the event call it will not update. If anyone knows what I ma...

Set Table cellspacing in JQuery Datepicker

Hi, I'm porting a website from PHP to ASP.NET MVC, and I'm trying to mimic the original JQuery Datepicker. They used an older version, but I noticed I'll need to change the cellspacing attribute on the generated of the Datepicker. Any ideas how this can be done? ...

jquery problem with anchor click() method

Among other things I have this html content in my content page: <asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server"> <script type="text/javascript"> $("[ID$=panelDetail]").dialog({ autoOpen: false , resizable: false , height: 'auto' , width: 'auto' , modal: true ...

jquery - disable anchor "jump" when loading a page..

Hi I think this may not be possible, will try and explain as best as I can. I have a page containing tabs (jquery powered), controlled by the following: I'm using this code, as provided by another user from a previous question. <script type="text/javascript"> $(function() { $('html, body').animate({scrollTop:0}); // this is ...

jsTree checkbox ajax request, checked

Hi, Is there a way to update selected checkbox with ajax request in jsTree? I cant find any ideas how to do this, how to call an event or calback function on checkbox click or unclick. Also I cant find any ideas how to update checkbox tree with selected values on page load. Thanks for your answers :) ...

jQuery - Reversing the sequental fade-in plugin

Hello, I'm wondering if there ar any ways to make this plugin: http://www.thewebsqueeze.com/web-design-tutorials/sequential-fade-in-jquery-plug-in.html showing fade in items at the top? Thanks a lot! ...

jQuery ajax call in Rails?

Hi guys, I want to execute a simple thing. When the user clicks the link jQuery needs to generate an Ajax request which sends the id of the link item to a method in the controller. Basically I want a nice looking modal dialog window when the user clicks the delete link. That window needs to contain various info about the deleted items. ...

Submitting a dynamic form using jQuery and AJAX

Hi guys, I am cloning a HTML drop down list using jQuery, the problem I have now is that there is no limit to the amount of cloned sections, and I have to capture all of the sections into a mySQL database. How can I get all of those different sections with different ID's into a mySQL table, since I am using POST, how will the receiving ...

problem with the css overflow: hidden property

Hi everyone! I'm having a problem with displaying a popup that's rendered within the html and then just toggled to show and hide it. My problem is that this popup sits in a div that has an overflow: hidden property and it means that some of the popup background graphics cross over the width of the overflow: hidden div. this causes a di...

JsTree returns "invalid JSON" error..

I'm trying to make a Jstree, the code for it is the following: $(function () { $("#groups") .jstree({ "plugins" : [ "themes", "json_data", "ui", "crrm", "cookies", "dnd", "search", "types", "contextmenu" ], "json_data" : { "ajax" : { "url" : base_url+"/json", "data" : f...

How do I subclass the jQuery ajax object or reuse a common callback?

I'm sorry for ambiguous title, but this question is hard for me to put into words, I can only seem to describe it with code. I have the following function function initRPC(procedureName, parameters) { var parcel = //some code that parcels up the procedure name and params $.get( 'url' : 'rpcserver.php', 'dat...

How to make a span fully clickable?

I'd like to make a span fully clickable. <span><a href="#" title="Remove" id="159" class="remove">159</a><input type="hidden" name="t[1][p][]" value="159"></span> The span is assigned a background image which is floated to the right. The image is a plus sign which will basically serve to indicate the record can be moved to another div...

looking for a jquery plugin

hello. i am in search for a jquery plugin that can creat the same sliding effect that you can see in http://www.metalabdesign.com/ thank you. ...

hide duplicate div in jquery

I have some layers that are dynamically put in as follows <div><p class="locid">2<p></div> <div><p class="locid">1<p></div> <div><p class="locid">2<p></div> <div><p class="locid">3<p></div> <div><p class="locid">4<p></div> What I need to do is hide the second occurrence of this layer so it appears as follows <div><p class="locid">2<p...