jquery

sorting month description field using DataTables of jquery

Hi, I using DataTables to sort my table files.i have a column of displaying month description.i need to sort the data according to months description.but dataTables sorting data using the alphabetical order. i created my own function, as shown below. [code] var monthsArray=new Array("Gennaio","febbraio","Marzo","Aprile","Maggio","...

HTML UL Menu from XML

Hi, i am receiving xml structured data which is not nested and I need to create UL menu out of it. Data is receiver using .ajax jquery .. please for any idea. Even if I fix output of XML i don't know how to achive this. Structure of XML (sample values) : <data id="1"> <skItem>Food</skItem> <psItem>Item1 </psItem> <vssItem>val...

jQuery: how to reference an HTML element whose class name has a period ?

Hi, I have several elements in this way <td class="sede_co.uk"> I want to reference them using jquery this way: $(td.sede_co.uk) but jquery doesn't "find" them because (I guess) the point between "co" and "uk". Any idea? Regards Javi ...

jQuery .load(); not loading all content in IE. grrrrrrr!

Hi, Hope someone can help me here before my hair falls out! I am working on my website and I am trying to use .load() to grab an and its content from another page and display it on the homepage. The code: $(document).ready(function(){ $(".abt").empty().load("about-andrew-broomfield.html article.aboutPage", function() ...

Update the content of a div via AJAX with jQuery when they're new events

I am doing a match "live timing" where an administrator sends to a database new inputs like: "Team A scores! 1-0". This is shown in a public website inside a <div /> and I want to get the new inputs and print it. I've never done something similar and I don't know what is the way to go. I also have some doubts: It's posible that the se...

Jquery, Opera. How to stop submit?

Hello, i'm using this control http://devthought.com/projects/mootools/textboxlist/ It's using JQuery Code: bit.toElement().keydown(navigate); var navigate = function (ev) { var evStop = function () { ev.stopPropagation(); ev.preventDefault(); }; switch (ev.which) { case 13: evStop(); ...

Jquery - Designing a report builder web tool

Hi All, I am looking to develop a report builder tool and thought if I could use JQuery for this. Basically, what I am looking for is to have a screen that shows a list of field in the left hand side (something like a tree view). I can select a field and then drag it to a panel in the right hand side and drop it there. As I add more fie...

jQuery replicating attributes of one table's headers to all table data cells in another table

Hi, I have the following jQuery which will allow me to update the widths and classes from the header of one table onto the data cells of another. Currently the following only updates the first row in the other table but i need it to update all the widths and classes in the other table for consistency :( $($orginalHeaders).each(functio...

CakePHP AJAX request fails to show new content and uses wrong layout

I'm using CakePHP 1.3.2 with jQuery 1.4.2 and I'm seeing some strange behaviour with AJAX requests. Intermittently, when clicking an AJAX pagination link I'll see 2 POST requests instead of 1, the first of which is via XMLHttpRequest, the second of which isn't. The first request never completes, but returns a full page using the default...

Display just bellow the link on mouse over.

I have some links and a div in my web page.On mouse over the link I need to display the div just bellow the link.How to do it so that on mouse hovering any link the div will display just bellow that link only(I mean like a tooltip)? ...

jquery how to how to get key and value in an associative array

Hi all, here's my problem. I have a datepicker which has only some dates enabled based on 3 sets of arrays. onSelect I retrieve the available date I clicked. Now things get complicated. The array with the available dates needs to be an associative array with id and date as 'key' and 'value'. How do I retrieve the id associated with the a...

Best way to return response from server side to client side through ajax call

Hi, I am calling the webservice with jQuery Ajax method. Now I am looking for a way to pass the server side response to the client . The response will not be so simple in the client side in "success" method(of $.ajax) I need to notify the client what is the status of the desired task which he made through his request, I need to notify t...

disable a column sorting using datatables of jquery

hi, i am using datatables of jquery to sort the table fields.my question is how to disable particular column with out sorting . i tried with the following code ,but get excepted result. "aoColumns": [ { "bSearchable": false }, null ] i also tried with following code "aoColumnDefs": [ { "bSearchable": false, "aTar...

jquery and textarea

Hi, i have this jQuery code: $("#text_a").html('<textarea name = "text">".$text_user."</textarea>'); And if I put in textarea text with new line i get this error: unterminated string literal I get an error with this text: First line... Second line ... ...

Jquery checkbox validation

Hi, I'm using the jquery code below to validate a form. Now it all works great but I would like for the checkbox validation to use the '.validator' rather than its current 'alert', but when I add 'required="required"' to the checkbox input boxes, I get messages for all of the checkboxes, whereas I only need one. Hope this makes sense. T...

how does this js function work? Title too small to explain

I've been digging into jquery to find out how it works and I see it uses a construct i've never seen in JS before. The following code seems to execute when the browser loads, it's almost like a function that invokes itself. I've searched for docs for this feature but not sure what its called. Can someone tell me the principle so I can ...

assigning click event to div but not anchor within it

A jquery question. I have a div that contains text and an anchor tag. I want to assign a click event to the div tag and its content EXCLUDING the anchor tag. So when I click on the div, an alert window pops up. But if I click the anchor (thats within the div), the alert should not occur. The div would be something like this: <div id...

Upload multiple files ajax

Can you recommend me some jquery or native javascript lib for multiple uploading via ajax ? ...

Conditional form using jQuery and cookies

Hi everybody! I've got two different forms on my website: one for submitting a general inquiry and another one to order stuff. By clicking a radio button the user can choose the form he/she needs. I created the form in a content management system which checks if the textfield-data is entered correctly after submitting the form. If the ...

Is it possible to invoke the jQuery.data() method within a jQuery template?

I'm using the jQuery template plug-in (official jquery-tmpl plugin) to build up a an HTML list. The template basically defines <li> elements and looks something like this: <script id="item-display-template"> type="text/html"> <li> <div class="item-display-container"> <p>${SomeData1} .... ${SomeData2} etc....</p> <a...