jquery

Delete <dt> without <dd> with jquery

I have a definition list and I need to delete all the <dt> tags who doesn't have any <dd> In this particular case: Herramientas, Suplementos, Repuestos, Herramientas and Anti pinchaduras The list can vary wildly because it's stock dependent (any category <dt> can get empty) I tried this $('dt+dt').each(function() { $(this).remove(); ...

Jquery function difference

Hello All What is the difference between $(document).ready(function() { //some code here }); and $(function() { //some code here }); I feel that they use for the same purpose. ...

Push object to array in js or jquery?

In my Script.js I am trying to push the object to array=>array of objects. $("#save_filter").click(function(){ var filter_saved = new Object();//Create new object to store the filter have been saved. var customer_type_selected = $('#id_customer_type :selected').text(); var list_tag_selected = $("#tag_checked").val(); var...

Can any one help me to understand jQuery?

I am new to jQuery. I know the use of jQuery but I want to understand the architecture of jQuery. I mean how jQuery works with DOM. Where can I get all this information? What would be a good book or website? ...

Integrating Geogoer VChecks Plugin 7 show value

Possible Duplicate: integrating Geogoer VChecks Plugin Hi, I’m integrating Geogoer VChecks Plugin into a page ( http://www.vaziuojam.lt/js/geogoer/jquery%5Fplugins/vchecks/index.html). The plug-in restyles a column of check boxes. When user changes a checkbox I would like to display the checkbox value like this: $(documen...

JQuery AJAX post - how to send extra form variables?

Hi, I'm using ajax for the first time and have hit a bit of a brick wall. I've created a single big function with lots of smaller functions inside it which handles all ajax requests. I'm passing a POST variable to tell it which function to process the request with. For example if(_is_ajax()) { if($_POST['save_company']) { // Do s...

Probably obvious problem in JavaScript

Hi, I think this is just an obvious problem that I can't spot because I've been staring at code too long today. I have this callback as part of a JQuery POST: function(data){ if(data == 'yes') { $('div.done').show(); ...

Crosser browser DHTML widget for edittinig large blocks of text

Can someone recommend a cross brower widget and/or technique that would allow users to work with large blocks of text in a browser? By work with text, I mean edit, search, and replace text. Ideally we're looking for something like a jquery-like DHTML component - not a Flash or RIA component (which may not run or not be allowed to run in ...

How to Get Form Values in ASP.Net When Using Jquery.post

I am using the following scrip to post data into ASP.Net $.post(window.location, { name: "John", time: "2pm" }) In my page_load event , I am checking Request.Forms.AllKeys but the count is comming as zero. My form is <form name="aspnetForm" method="post" action="Default.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="aspn...

Tablesorter - Dates Problem

Hi! I know there have been some questions about this, but I can't seem to fix my problem. I'm loading a .csv file into tablesorter, but one of my columns are dates (Dec 23, 2009). But they sort as Dec 2, Dec 23, Dec 3, Dec 31 Does anyone know a solution? You can see the problem here, it's the table at the bottom. Thanks so much in adv...

javascript jQuery binding

Hi everyone, I have problem with javascript that needs your help, any idea is highly appreciated. I am using jQuery to create an anchor and bind it with javascript function as follow: $(document).ready ( function() { var test = function(arg) { ...

Need help with layout (jQuery)

I already have this layout created using CSS, but its plagued with issues in IE6 and 7. So I'd like help recreating this layout using jQuery (and jQuery Only) for max compatibility. The only difficult part is the vertically and horizontally resizable (on browser resize as well) content area. Edited to add: I need to use jQuery for res...

Jquery Drag/drop in php+mysql

I am looking quite long for a solution for this. I found a great demo by Nathan Smith, using jQuery and interface to drag and drop favourites into a list. The demo is here: http://host.sonspring.com/dragdrop/ But how can I save the list to mysql database. ...

jquery/javascript object required error

Hi, I am working in an ASP .net mvc project. The weird issue is I am running a javascript/jquery which randomly gives object required error. Sometimes it occurs but sometime it does not occur at all. What I am doing is making an explicit link click call to load a page as follows: function LoadPopup() { $("#page2link").click(); } I...

how to reset the name attribute of a input control after a jquery action

i have an html table inside a form in an asp.net mvc view. I am using the tablesorter jquery plugin as well. Here is the table code (simplified for the example) <table id=managersTable> <thead> <tr> <th>Manager</th><th>Remove</th> </tr> </thead> <tbody> <tr> <td>Manager 1<input type='hidden' name='updat...

problem with jquery autocomplete

I am using the jquery autocomplete to fill the users list. In the document.ready, i am calling the autocomplete json to get the users list. When i type a valid username(or anything) in the textboxes before the autocomplete json call finishes, its not showing the autocomplete options(autocomplete not working for valid characters also). ...

Using jquery.support to check for Firefox 3.5

I'd like to use some CSS that is only supported by Firefox 3.5 at the moment (box-shadow: inset). For all the other browsers, via jQuery, I'll have to insert some extra divs with backgrounds to accomplish the effect. I'd like to 'reward' FF3.5 users and not bother with that bit of script if they support the CSS. It seems that the 'pr...

Jquery with ajax controls

Below is the offending piece of java script code(1). I am using an ajax update panel with a ajax calender control and an asp button(2). We are using the javascript to simulate a button click. Which is in conflict with the calender control and the update panel. The error is (3) function tsSave() { $("#<%=btnSave.ClientID%>")....

How to add anchor tag to a URL from text input

I want to be able to take user inputted text in a comment field and check for URL type expression, and if it exists, add an anchor tag (to url) when the comment is displayed. I am using PHP on the server-side, and Javascript (with jQuery) on client, so should I wait to check for URL until right before it is displayed? Or add the anchor ...

Pass variables to a pre-defined jQuery function.

Ok, so I have: function myfunc(foo,bar) { $('#div' + foo).hide(); $('#div' + bar).show(); return false; } Then I have: function myOtherFunc() { // define vars foo and bar myfunc(foo,bar); } var timerId = setInterval(myOtherFunc, 5000); // run myOtherFunc every 5 seconds. which works fine. But the I have: $('#myLink...