jquery

PhoneGap Alert Notification firing multiple times

I've implemented the notification alert in an iphone project using phonegap. I've tried the direct, quick, and full examples listed on their api page: http://docs.phonegap.com/phonegap_notification_notification.md.html The problem is that when the event fires, it fires multiple times. Twice on iphone 3gs, and 3 times on iphone 3g. I'...

is there any specific jquery plugin which includes a combination of jquery slider & php paging ?

I have a products listing page that lists 3 products in a single line per page. So I want to put next-previous buttons on left-right side of this 3 products line. So when someone click next, it bring next 3 products by slide-in effect. Any suggestion ? ...

Callback and Functions with jquery..

Hi everybody... I have already asked a question but I wanted to ask it in another way with another question. Is that possible call a method 10 times in asynchronous mode without specifying a return value. I am doing everything in a single page. I do not need to visit any other page. I have got a set of operation, each operation should w...

jQuery When using an iframe, should I try to consolidate inner and outer instances of jQuery?

I code the game over at ninjawars.net, and have recently consolidated most of my (ugly) javascript code into a single object that gets re-used for the inner frame and the outer frame. We were going to consolidate the same instance of jQuery as well (i.e. making it a Global so that it is accessible via $ everywhere, but is only 1 jQuery ...

How to pass a string to a asp.net web service using jQuery/JSON/AJAX

Hi, As it is now I create a JavaScript object and then stringify it, put it in a hidden textbox and my code behind can read this string. I then use JSON.NET to parse the string which works fine. I now try to use ajax to post it to my web service but have some issues with how to send the string. I have tried many ways but gets the common...

Are there any Good Open API for Web Frontend Paint Tools ?

Hi Stack Overflow! I'm currently attempting to develop an HTML5/JavaScript application which is similar to: http://mugtug.com/sketchpad/ The source is right there, but I think I'd run into some copyright issues by cutting/pasting (I suppose I could contact them), but I'd rather use some free APIs that would have similar functionality. ...

how do i check which tabs is active using jquery tabs?

how do i check which tabs is active using jquery tabs? ...

Jixed Bar Too Horozontally

Hi everyone I am currently doing a chat application and I saw jixedbar which is very suitable to manage multiple chat windows. Unfortunately, when there are too many divs within the jixedbar container element, it hides the additional chat titles with overflow-x: hidden (default jixedbar). I was wondering whether there's an elegant soluti...

How to get the rendered DIV's width and height?

I have a <div>, which is dynamically controlled by the JS, for example, some children are added dynamically. Is it possible to know the width & height of the rendered DIV after the insertion/deletion are done? ...

Javascript Hover Content Show

Hello, I am attempting to write a JS function (using prototype in rails) that will show hidden divs within a li when that li is mouseover'ed. Each li has a unique id that is a number, like so: <li id="100"> <div style="display:none;" id="hover-display-content">Content</div> <div style="display:none;" id="more-hover-display-content"...

How to pass parameter back from asp.net web service if an insert to a database was successfull? ASP.NET/jQuery/AJAX/JASON

I have a web form and I use jQuery/AJAX/JASON to send objects to a web service using $.ajax({ type: "POST", url: "SynchroniseCustomers.asmx/synchroniseCustomers", data: JSON.stringify(customerObj), contentType: "application/json; charset=utf-8", dataType: "json", error: function (xhr, status) {}, success: function (msg) {} }); From t...

Need Help Converting JQuery .delegate to .live

Hello, I am working on script where I have code like this... $(document).delegate(scroll.links,'click',function(){ switchTo(getId(this.href)) return false }) I want to convert it into .live I tried but couldnt get it right. Can anybody show me ? Thanks. ...

Making the left column move according to selection?

I came across a jQuery Wizard plugin at the following URI: http://www.techlaboratory.net/labs/SmartWizard/wizard-vertical.htm While it serves my purpose, I am trying to achieve one small thing. If I add more than 5 steps, obviously not all steps are visible. Instead, when clicking on the next, I am trying to center the step that is sel...

div in front of another resets jQuery hover animation. how to prevent this?

hello. i have an animate effect applied to 4 divs in order to create a blinds effect: when you hover over the first box it grows , the other 3 shrink and when you "mouseout" all 4 return to 25% of the total height. i want to insert a nested div inside each box (in front, actually with absolute positioning) in order to present some text...

How to change Images by using jquery by using .load()

Hello All, I have a list of images. When the page load each time I want to show the next image in the series, and when it reloads again I want to change next image, etc. Please suggest me a solution using jQuery. Thanks ...

How to add a sequence of classes to three objects in one

I need to add: an ID to the table in my form a numbered sequence of classes to a certain amount of TD's in every next TR in that table (three td's in this case) I've got next html-model: <form id="myform"> <table> <tr> <td>some text</td> <td>some text</td> <td>some text</td> </tr> <tr> <td>some text</td> <td>some text</t...

How to save the value of INPUT in variable?

How to save the value of INPUT in variable to not to write a lot of duplicate code? like var input = $(this).val(); full example <div id="form"> 1. <input type="text" value="title" /> 2. <input type="text" value="value" /> </div> $(function(){ $('#form input:eq(0)').bind({ focus: function(){ if($(this).val()=='ti...

How to execute a function when mouse overs a division and all its nesting elements inside?

How to execute a function when mouse overs a division and all its nesting elements inside? Like <div id="main"> <div id="sub1">Sometext</div> </div> <script> $(function() { $("#main").mouseover(function() { //This function fails to execute if i am over #sub1 }); }); </script> I want to execute the mouseover function...

How to create my JQuery Carousel Plugins to an API

Hi, Please see my JQuery Carousel and let me know how can i do this is an API? I have shared my codes on http://jsfiddle.net/Jmj5u/2/ Below is my plugin `if (window.jQuery) { if (!window.jQuery.fn.productCarousel) { (function ($) { window.Config = (window.Config === undefined) ? {} : window.Config; var Confi...

How to avoid pre-loading images when using jQuery Cycle Plugin

I have a slideshow (jQuery Cycle) with large images, and would like to AVOID pre-loading all the images when the page loads. Instead, I'd like to only load the first image, and have the rest load after the user CLICKS on it. I'd really appreciate any ideas! Javascript newbie here... Thanks so much!!!!! ...