jquery

jQuery table sorter with combined rows

Sorry for this title, I didn't know how to describe it better. I have the following table: <tr class="row-vm"> <td>...</td> <td>...</td> ... </tr> <tr class="row-details"> <td colspan="8"> <div class="vmdetail-left"> ... </div> <div class="vmdetail-right"> ... </div> <...

jQuery $.each(arr, foo) versus $(arr).each(foo)

In jQuery, what's the difference between the following two constructions of jQuery.each: // Given var arr = [1,2,3,4], results = [], foo = function (index, element) { /* something done to/with each element */ results.push(element * element); // arbitrary thing. } // construction #1 $.each(arr, foo); // result...

jQuery Coda Slider: javascript error in IE8 only

Hi, im getting a javascript error when using coda slider in IE8: "Expected ']'" Weird thing is that it only triggers when only. If i use the localhost version of the site, nothing happens. That line is when using: echo '<a href="javascript:void(null);" onclick="$.prettyPhoto.open( [\''.implode('\',\'',$pp['gallery']['link']).'\'], ...

How can I hide this overlay element intelligently?

The site I'm working on has a collection of navigation elements across the top ("Products", "Company", etc.). When you mouse over the Products link, an overlay appears that shows a list of products with links to each. There's a small link at the top of the container that, when clicked, closes the container. All of this works as advertise...

jquery auto-complete causes IE6 to hang

In my application, upon a certain event, an ajax call is triggered. The response contains a autocomplete select box (the data for which is statically included), therefore the response contains the following two scripts: <script type="text/javascript" src="<%=PropertyConstants.STATIC_LOCATION%>scripts/stp/jquery.bgiframe.min.js"></script...

using JQuery and Ajax to post a form

Hi there, I want to use ajax to post my form I want radiobuttons to do this(there is no submit buton) so clicking a radiobutton will cause a form to be submitted or be post my php page needs to know the name of the radio button clicked is my code correct? cuz it doesn't work and I don't know why? <div id="Q1"> <form id="Question1...

jQuery javascript dynamic menus with mbMenu plugin

Im using the MbMenu jQuery plugin. http://plugins.jquery.com/project/mbMenu http://pupunzi.open-lab.com/2009/01/18/mbmenu/ I am probably being ridiculously stupid but I wish to have multiple menus on the same page, but not load them from external files (the html structure of the menu already exists on the page). To me the only place yo...

How to call read event by using post request

Hello, I'm trying to call read event by sending post request to servlets in Tomcat. The code which I'm using in client side is in jquery $.post('just.do',{username:value},function(data){ $('#div').html(data); } ); but whenever I make a post request I get a response "Oh no" of begin event. I've not closed any connection in...

jQuery Plugin to perform Date manipulations

Am looking for a jQuery utility that will let me do date manipulations. eg: 1) Add x no. of days to a date and get a new Date. 2) For given a date, gives the corresponding week of the year 3) Find no. of days between 2 dates 4) Find no. of weeks between 2 dates 5) Find no. of months between 2 dates Is there a jQuery plugin that has the...

Using jQuery to do "does contain"

I have an array of strings, I want to use jQuery to see if a particular string is contained within the array? Can i do this with jQuery>? ...

jQuery QuickSearch

1- The filtering action runs on keypressed is there a way to make it run by a button. (i.e. the table is not filter unless a button is pressed). This will help in many ways especially on huge tables or when working on multiple tables. 2- There are 2 ways on filtering (all columns or using tag) what if we were able to filter according to...

Multible jquery .load() methods not running concurrently in MVC 2

In one of my aspx pages i have something like this in the head: <script type="text/javascript"> $(function() { // Jquery stuff loadStuff(); }); function loadStuff() { $('#result1').load({ source: url }); $('#result2').load({ source: url }); $('#result3').load({ source: url }); }; ...

[JQUERY/PHP] Sending and using POST variables using jQuery.ajax()

Is it possible to access $_POST variables without appending all the form elements into the data attribute? Ajax call: $.ajax({ type: "POST", url: "ajax/user.php", data: {**data**}, success: this.saveUserResponse }); Accessing variables: if(isset($_POST['saveUser']) && $_POST['saveUser']){ $user = $...

jquery/ajax post() in a posted page

hi everybody, I have a page with a div, inside this div I load a page with a form with a select, I can get selected option by post() function but, how can I get at the same time selected option and full data option? I've tried to get full data with a post() in a click() function positioned directly on form page but it does not work, can...

Best way to do client/server validation in ASP.NET in 2010?

First there was the ASP.NET validators and we used them... Then some people on the team did things manually in javascript... Then a bunch of jquery validation libraries came out... Then MVC2 came out with attributes as validators.. I work with apps that have alot of forms with alot of various validation (Some fields needs to be compared...

fullcalendar events from REST-ful php server.

I've written a very simple RESTful php server (my first experiment with REST, so feel free to make suggestions) to respond to the fullcalendar events callback. It produces exactly the same string output as the json-events.php file in the fullcalendar json example, but for some reason fullcalendar will not accept my server's output. I...

Show AJAX content after images have loaded

I am developing my own lightbox kind of jquery plugin. Everything works but I want to hide the loaded content until the images have loaded in the browser from the AJAX call. I found a similar post and I am using the following script but the setTimeout function is what reveals the content and not the .load function. Am I trying to achie...

How to receive ajax request using django?

I have the following JQuery Ajax request on my template that i want pass to my django view, function loginUser(){ $.ajax({ type:"POST", url :"/login-user/", data:"title=ajax call", datatype:"json", error:function(data){alert('Error:'+data);} success:function(dat...

Display a dynamic bubble on a link hover

Hi guys, I hope you can help me with this problem :). I'm looking for a script which allows me to display a dynamic bubble on a link hover by jQuery. I would to to define a hidden div with the content and display it on a hover of certain link (always in the middle of that link and it should disappear when you leave the link OR the box w...

.jstree() or .tree(), and how to get it to work

Silly question. A lot of examples using jstree that I find on the web use the syntax $('#someTreeId').tree(), whereas the demo on the jstree website keeps referring to the syntax $('#someTreeId').jstree(). When I use .jstree() I get a browser error saying this is not a function. But when I use .tree I barely get any farther: it only ge...