jquery

Are there any Ajax/jQuery like library for Windows mobile application development?

Hi, I need to develop an ajax based interface for a web-page, and I am not able to find any library that can help me do it. I have tried jQtouch, and it doesn't seem to work for windows mobile. Also I have tried XUI Library (http://xuijs.com/), this also didn't work. Can anyone point me to the right direction? I don't like to do ajax ...

Using jQuery Cycle plugin to move through DIV tags

I'm redesigning our site and one page I'm trying to build in a rotating carousel of information on the top of the page. It's having no issues on Firefox, but the CSS is all messed up in IE (no background in IE8, no background and page is all messed up in IE8 with IE& compatability turned on). Page is http://redesign.riversidecg.com/servi...

Is there a way to detect when a visitor comes back to your page after opening a new window?

Is there a way, using JavaScript or jQuery, to detect when someone goes back to your page after opening a new window or tab? I want to create a script that opens a new window or tab, and then does something when the user comes back to the page. Thanks, ...

how can i assign value to a Html.Hiddenfor from a jquery/ javascript

I have a hidden asp.net MVC control in the form: <%= Html.HiddenFor(m => m.NodeId) %> my JavaScript / jQuery code: var DeleteEntireItem = '<% = btnDeleteEntireMenu.ClientID%>'; var Node; debugger; $('#' + DeleteEntireItem).click(function () { Node = NodeValue; document.forms[0].submit(); }); How can I assign the value of v...

Send only few properties of objects within an Array in ajax call with jQuery

// Initialize the object, before adding data to it. var NewPerson = new Object(); NewPerson.FirstName = $("#FirstName").val(); NewPerson.LastName = $("#LastName").val(); NewPerson.Address = $("#Address").val(); NewPerson.City = $("#City").val(); NewPerson.State = $("#State").val(); NewPerson.Zip = $("#Zip").val(); In actual I'm p...

how to use POST method in LOAD function of JQUERY?

hi, i want to load JUST one part of my document,i had to use LOAD function bcause of this,so i tried this function.but i have a problem,i want to set method of this function to POST.i read in jquery manual that this function is using GET method by default,but if your data is an object it will use POST method.i dont know how to do that?i ...

Circular Carousel (jQuery)

I'm using a lightweight jQuery plugin for carousel, it works great except that it doesn't support circular carousel, i.e it'll auto-slide 1,2,3,4 and then backwards 4,3,2,1 instead of 1,2,3,4 then again jumping back to 1,2,3,4 again, which is what I want. Here's the jsFiddle for it: http://jsfiddle.net/vLZFh/ I'd really appreciate any...

jQuery UI sortable - Saving changes to server

I am using this and it's working perfectly on the browser http://docs.jquery.com/UI/Sortable Now I want to save it to the server, I know about serialize, but I don't want to update everything. On the server I only want to know what was moved to where. Is it possible to find that out on the stop event? And how? Thanks in advance. ...

jQuery: set 'active' class in menu from secondary link

Hi, I have a standard css/jquery menu where I use addClass/removeClass to set whatever li I am on to 'current'. However, the code to do this uses $(this). I want to also do this same set of procedures from links not in the menu. For example, I would like the menu 'active' flag to be in the right place after following a page link that is...

Update 2nd Textbox Based On Popup Calendar Selection

I am using the JavaScript-based popup calendar from dynamic drive named "Xin's Popup Calendar" and it works perfectly. But, I want to be able to adjust the date of a 2nd textbox based on the selection. For example, I want to be able to automatically adjust it to +1 month of whatever date was selected in the popup. How can I do that? H...

how to wrap questions and answers in jQuery

Hi, I am trying to make a poll application with java and jQuery for UI. The questions will be visible but answers will be hidden. I want that when a user clicks a question the answers will slide down. But in the implementation should i make every question and it's answers in a different 'div' element. What should be my outline? ...

jquery fadeTo chain not working

The first part of my chains tied to the .click() events: slideDown() works however the fadeTo() portion does not. <script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script> $(document).ready(function() { $('#contact').click(function() { $('#contact_box').remove(); $('.menu_item_content...

How to disable google translate original text tooltips

I have used google translate as a language converter in my site but it displays annoying tool tips called 'Original text'. How do I disable this and any other better ideas/tools/apis to do this? Thanks. The code used is... <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.T...

jQuery Fancybox doesn't wait for AJAX content to load before determining its dimensions

I'm using Fancybox to load some content with AJAX. Content: <div class="container"> <h2>An image</h2> <div class="span-16 colborder center clearfix"> <img src="/system/images/apple.jpg"> </div> <div class="span-7 last clearfix"> something here <br> something here </div> <div class="span-24 last"> FOOT...

Using jQuery how to get click coordinates on the target element

I have the following event handler for my html element jQuery("#seek-bar").click(function(e){ var x = e.pageX - e.target.offsetLeft; alert(x); }); I need to find the position of the mouse on the #seek-bar at the time of clicking. I would have thought the above code should work, but it gives incorrect result ...

How to use JQuery in Selenium?

Hi, I would like to use Selenium to click on the tab of a web where the tab was created dynamically using JQuery. There is one problem, since it was created dynamically and the tab got no ID tied to it (only class-ID provided), so I am running out of clue to click on it using Selenium. After googling for 2 weeks, I found out that it c...

Similar jQuery Menu System

Hi, Would anyone know of a jQuery plugin that is very similar to this style of menu found here: menu example Really looking for the same look and feel. Thanks. ...

jquery get function not working, even though the URL of the request works fine?

I'm using jquery to access a method of the Last.FM API. Here is my jquery code: $.get('http://ws.audioscrobbler.com/2.0/','method=user.getweeklytrackchart&amp;user=rj&amp;api_key=fb04ae401284be24afba0fbc2f4b0efb', function(data,status) { console.debug("in result method"); console.debug(data); }); Here is the console o...

Automatically reposition Jquery SimpleModal to center of page when modal div is resized

I'm using the SimpleModal Jquery plugin and it works great! However, there are times that the width and height of the modal div need to be changed, so I need the modal to automatically re-position itself in the center of the page. I found out that SimpleModal uses its setPosition() function to do this. It is automatically called when th...

Check username availability on fly?

Hello, I want some javascript + ajax to check username availability on fly. And I have some troubles... Let's imagine the situation when we're checking username availability on blur event. What if we're getting such scenario... a) user entered username "kir" b) focuses on another element c) ajax request started (requesting availabi...