jquery

Best way to submit UL via POST?

Hi All, Quick question... I have an input box that upon key enter, adds the value to an unordered list. How would I pass this unordered list to jquery post? I'm using the form.serialize, so I don't have to define each variable for posting. Example, let's say I entered 3 fruits and they get dynamically added to an unordered list insid...

jqGrid hiding Plus icon

Hi I am using jqGrid with subGrid. But at some row i do not want to show the Plus icon. Because i do not want to allow user to view the subgrid on that perticular row. So can any body help me how to hide the plus icon over there. I tried with the below code but no luck. afterInsertRow : function(rowid, rowdata, rowelem) { $("tr[id="+r...

jQuery load method: loading foreign domain?

hey guys, is it possible to load a foreign website into a div of my page with the jQuery load method? $('#content').load('http://www.somedomain.com/server/whatever/file.php'); it's not working for me! regards matt ...

Why aren't these two bits of JavaScript equivalent?

in jquery 1.4.2, ff 3.6.6: The following code produces three divs, which write messages to the firebug console as you would expect. However, if you uncomment out the loop and comment out the 3 lines doing it manually, it doesn't work - mousing over any of the divs results in "three" being written to the console. Why are these two me...

What's so cool about jQuery?

...other than those neat little fade/slide effects, that is. ...

Update sum on table change (tr add, remove, focus, type...)

Hi, I'm looking for the best way to trigger (call) a function which will sum all the input fields in all table rows. The problem is, that the field can be manipulated manually (by typing) or with a function - value written to them (which does not trigger an event). I would like that the sum function would trigger on add/remove row (tr...

Change JQuery Settings Variable at Runtime from HTML Page.

Im using this horizontal accordion. (script pasted at the end.) Im initializing like this. $(".Accordion").hrzAccordion({eventTrigger:"mouseover",openOnLoad:"1",cycle: true,handlePositionArray: "left,left,left",easing: "swing"}); What i need to do is set cycle: false on click of a div. How do i do it??? (function($) { $.hrzAccordi...

jquery toggle only half working

My toggle() only half works... $('#show_hide_comments').toggle(function() { $('#show_hide_comments').attr('src','images/up.png'); $('.comments').fadeTo('slow', 0.01, function() { $(this).slideUp('slow',function() { }); }); },...

Get articles through RSS from Wordpress with JavaScript

Is there a way to get recent articles using JavaScript from Wordpress blog? I need to show some content from the blog easy way on a static page so I think JavaScript would be fine for this. ...

binding same event twice will trigger twice in jQuery 1.4.2

if you got something like this: jQuery(selector).focus(function(){...}); jQuery(selector).focus(function(){...}); the focus will trigger twice, is there anyway that I can correct/prevent that? ...

jquery file uplaod form plugin response issue

I find form plugin interesting and i want to know that how i can embed ajax response in html text area in asp.net mvc 2. any idea? Here is the link of that control http://jquery.malsup.com/form/#file-upload ...

what events are bound?

Is there any way to see what events are bound to an element with jQuery? ...

How to convert MM/DD/YYYY to YYYY-MM-DD?

Hi all, I have a jquery calendar that sets the input value to MM/DD/YYYY How would I convert it so that my database column (date) can accept it correctly? EDIT Gordon was right - his link pointed me to this answer $mysql_date = date('Y-m-d H:i:s', strtotime($user_date)); ...

modify cell content in dynamic table (jquery)

HI! I have a table, generated dynamic in jquery populated with data from a recordset. With a function I want to modify some cells from this table. How can I do that...? Thank you! Some code, maybe it helps: .... for (i = 0; i < nrInreg; i++) { $("<tr>").append('<table id="bod'+ i +'" >'+ headerTura + '<tr class="planifVtabel">'...

Getting height and width of body or window of web page

Hi Depending on which mode of IE8 i'm in (quirks or standard) i get different values for the height and width. I've tried standard javascript and jquery but both return different results. In Quirks $('body').width = 1239 $('body').height = 184 document.body.clientWidth = 1231 document.body.clientHeight = 176 In stand...

Jquery-animating left to right absolutely positioned div

Hello, I have a hidden panel off the left side of the screen which slides into view on the click of a 'tab' positioned on the left side of the screen. I need the panel to slide over the top of the existing page content, and I need the tab to move with it. This is an example of the original code which i have changed, how can I get the b...

jQuery: attach .fancybox() to a new element passed by .load() function

When I get new elements from load() function can't find the way to attach the function .fancybox (a lightbox plugin) to elements. I've tried with .live() and .delegate(), but think .fancybox() could not be considered as custom event. I probably miss something... :( ...

JQGrid Value and Text Column

Hi, I have a column that I want to display as a Text(e.g CityName) on read/display mode. When the user clicks edit, I want it to be displayed as a Select, i would then pass the CityID so that I can display the Select Control with options==CityID as selected. Does jqGrid have this functionality out of the box or do I have to implement ...

Segmented (multi color) progress bar / chart for Javascript

I'm looking for a segmented Javascript progress bar similar to the one in the upper right corner on this screenshot: http://jokke.dk/media/2008-webgrind/webgrind_large.png Preferably a jQuery plugin. ...

jQuery: Count children of several elements and calculate

Hi there I'm making a website for a restaurant, where they want to make "room" in the menu, by starting the numbering with the following "5". Example: Starter 1. 2. Salads 5. 6. 7. 8. 9. 10. 11. Pizza 15. 17. I want to count the numbers of TABLEs within a DIV, give the tables this number, then count the number of TRs within the TAB...