jquery

Google map Geolocation formatting address

I'm using Geo location service with Gmap Api and i would like to know ,how do i have to format data address ? i have to format addresses according to local server location. which is the best practice? ...

Can this sort be made more elegant/recursive

I have a table which needs to be sorted by several columns - let's say music which is sorted by genre, then by artist, album and so on. Or you can sort by artist/album/track. This is what I came up with in jquery: function tableSort (by) { var mylist = $('#...

how to work on same search tab on multiple html pages

I have around ten html pages all have search tab ,only one page is dedicated to display the search result , from which ever page i enter search it directs to search page and displays output ,is their any better method to do this? I am using jquery on clientside and webservices written in c# on the server side and i am not using master p...

Does Ajax inevitably result public API?

I am using AJAX to generate actions on my website. For example, a "search results page" calls Ajax which initiates "/getResults.php". This PHP file returns a JSON with 20 entries that contains the results. The HTML Page calls the callback function and re-builds the DOM with the results from the JSON. It thus seems inevitable that using ...

DatePicker Problem

Hi, I have to set the startdate/Mindate in jquery datapicked calender. i am using datepicker v1.7.2. and using mindate and max date prpperty but its not working fine. ...

Scope problem in JS: Uncaught TypeError: Object #<an Object> has no method 'createDocumentFragment'

I'm trying to make instrument to simplify work with complex grids of jqGrid, a function that could read schemes of grids, but looks like i lack JS skills for that ) function renderGridSystemRecursively(scheme, container){ // CHILDREN if ('children' in scheme && scheme.children.length > 0) { scheme.prm.gridPrm.subGrid = true...

calendar widget in javascript

What is the best way to create a calendar with JavaScript like the jquery Datepicker where I can add some more functionality? I want to display some arrays of dates in different colors in it as well as selecting a date. Shall I try to edit the source code, or better, use some library and do it myself? For the first case I would like t...

Facebox 1.2 Hide event ?

Hi guys, I am using facebox in one of my projects. Is there a event to get the close/hide event of the box? onHide is not available ? ...

Someone to explain a part of this jQuery code to me using the dhtmlxcombo plugin.

I have this code fragment var combo = new dhtmlXCombo("combo_zone4", "alfa4", 230); combo.loadXML("create_store2.php"); combo.attachEvent("onChange", onChangeFunc); combo.enableFilteringMode(true, "select_store.php"); function onChangeFunc() { var d=combo.getSelectedValue(); var product=$("#selProduct"); ...

jQuery selector and DataPager cannot coexist! (ASP .NET)

I am using a ASP .NET ListView with a MS SQL Database. I use the ListView to show the information and in the list view, there is an hyperlink which opens the editing window for the specific record in a jQuery Modal Dialog Box. <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1"> <LayoutTemplate> <div id=...

How does stackoverflow calculates answer accept time limit of 14 mins using jquery?

Can somebody help me to use a timer exactly like stackoverflow's answer accept time limit of 14 mins. How to create a timer in jquery and work with it? EDIT: I am doing an online examination system where the time limit is 60 mins i would like to show an alert of remaining minutes every ten mins.. How to do this in jquery? Or should i m...

Noob jquery .hide and .click question

I am a Jquery noob. I and am trying to create an accordion menu. I have been able to get the following js working with the following HTML code. function initMenu() { $('#menu ul').hide(); $('#menu li a').click( function() { $(this).next().slideToggle('normal'); } ); } $(document).ready(function() {initMe...

jQuery image reszie on window resize

$(document).ready(function(){ WinSize = $(window).width(); var currentPosition = 0; var slideWidth = WinSize; $(function(){ $(window).resize(function(){ slideWidth = WinSize = $(window).width(); }); }); var slides = $('.slide'); var numberOfSlides = slides.length; // Remove scrollbar in JS $('#slidesContainer'...

How do I implement this pop up box that displays when hovered over "Shopping Cart" link in this website

I want exactly like this...not a simple box but the one with shadow borders like this one..I have been googling but all I came across is Slide down boxes and tool tips..that's not what I want..How do I implement the one in this website..oh and this box's got HTML stuff in it...like buttons and all Is there any way I can see the code of ...

jquery - how to addClass based on the content of an element?

Suppose you have a table like this: <table> <tr> <td>Group 1</td> <td>some data here</td> <td>Group 2</td> </tr> </table> and you want it to be like this: <table> <tr> <td class="group1">Group 1</td> <td>some data here</td> <td class="group2">Group 2</td> </tr> </table> Both Nick Craver's and Kevin's solutions here below work nicel...

preload an array of images with jquery

Hi all. I am using jQuery to build an array of images from a php array. I want to loop through these images, preloading them while displaying a little loading gif until all of the images are loaded. At the moment, I have tried many methods of doing so and the rest of the page always seems to carry on loading and so the images are bein...

How can I upload files only with type image in asp.net mvc2

Hi all, I want to upload Images only with file upload in asp.net mvc2 and show validation for the user in client side using jquery or mvc validation and server side also. any one can help? Thanks. ...

Strange behaviour

I have the following script which works kind of... $(document).ready(function(){ // add or remove from favorites $("input:checkbox").change(function() { if($(this).is(":checked")) { $.ajax({ url: 'favorite.aspx', type: 'POST', data: { ID:$(this).attr("id"), St...

Using html() as an attribute with jQuery

I am trying to select an element in the list depending on its html content. I was hoping to do something like $('li[html="something"]'), but of course html isn't an attribute. Is there an equivalent set based operation? I could of course iterate all the elements in the list using $.each(), but it seems to me it will be quite a lot slowe...

Has anyone got Datatables 1.7.x to actually work with ASP.NET MVC 2 ?

Hello, Is there a demo somewhere how to use Datatables 1.7.x with ASP.NET MVC 2 ? Is saw an early demo somewhere but the Datatables API has since been updated. Does anyone have working code for implementation ? Thanks! ...