• jCarouselLite beforeStart .stop ?

    I am using http://www.gmarwaha.com/jquery/jcarousellite/ with Non-image Content with 1 visible item to make a survey. In the beforeStart, I do some validation, and I would like to abort the animation if it fails validation.  A sweet "return false" from beforeStart was what I was expecting in the hopes to not even execute afterEnd. I initialize with anyClass $(".anyClass").jCarouselLite({ ... beforeStart: function(b, direction){ ... If .stop( [clearQueue ] [, jumpToEnd ] ) is the way, how do I use
  • How to call a .cfc using jQuery?

    I'm trying to create and call a cold fusion component(.cfc) file and use jquery to pass my query info.  Am i doing this correctly in Coldfusion7.  Everytime i click the Finalize button nothing happens and I'm not sure what I'm doing wrong.  How do I fix this? The following is in form.cfm:  <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script src="http://code.jquery.com/jquery-migrate-1.1.0.js"></script>     <script language="javascript" type="text/javascript">     function aalidateFunding(awardTotals){
  • Order of CSS files generated by themeroller

    The themeroller application suggests that I include the CSS files in this order: <link rel="stylesheet" href="/themeroller/generated/custom-theme.css" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile.structure-1.3.0.min.css" /> I want to know if: - Is is OK to include the structure file first and the custom file later? - Is it OK to include the default CSS file first (http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css) and then (optionally) include the
  • Weird iOS bug for html() first time only?

    Hi, I am currently working on an iOS app using phonegap to build. My pages are loaded via AJAX into a #wrapper_block div, which is where I hold the contents. I have the following code in my function, which seems to break in iOS 5 (not sure about iOS6);         alert("test 5?");         $('#wrapper_block').html(new_data); // this breaks         alert("test 6?"); "test 6" doesn't show up, but when you press the same link again - it works perfectly! (and gets there fine) If I change the html() part
  • Jquery not working in Chrome and Internet Explorer

    I'm working on a Wordpress theme. On the header I check if this is the first visit (the user just entered the website). If this is the first visit, an animation appears. Animation = a sidebar appears in the middle of the page, in some miliseconds it opens and the page appears. In the code, ub_sb_closed_on_hp is an option that sets only the sidebar to appear for the home page. It works under Mozilla, but it doesn't work under Internet Explorer and Chrome. On IE and Chrome the animation appears on
  • The Boilerplate ?

    starting with an empty boilerplate like this one above, I want to call this plugin on one specific div : <div id="BoilerplateEntryPoint">BoilerplateEntryPoint</div>thus that is may code, first the text BoilerplateEntryPoint is set to pink color (OK), then I check that no data exist with "plugin_defaultPluginName" (OK -> alert box tells me "undefined"), then I call the plugin defaultPluginName on that specific div $('#BoilerplateEntryPoint'), and to check that the code is well execute, I start the
  • Disable droppable on sortable

    Hello, Im kind of in a quandry. I have a div that Im dropping items into. When I do, Im creating a child div for each item dropped. I also have that parent div section as sortable. But it is firing the droppable when I do a sortable on it. How can I disable the droppable, when Im doing sortable? I cant believe I wrote that where it makes any kind of sense.
  • (function($, window, undefined) {...})(jQuery, window);

    Hi, using and having a look at jquery.ascensor.js plugin, I can see that the code for this plugin is structured like that : (function($, window, undefined) {       ...     $.fn[pluginName] = function(options) {         return this.each(function() {             ...         })     } })(jQuery, window); So far, I only know this notation (function($) {     $.fn.myPlugIn=function(parameters)     {             ...     }; })(jQuery);Anyone to explain to me the first structure ? Or point to a tutorial ?
  • Comparison: JQXtree Or Dynatree.

    Hi, I wan to use jquery to build a tree as per client requirement, But I am very confused which one is better: JQXtree Or Dynatree. Can you please list out imporatant features for Dynatree then jqxTree, since I want to integrate with MVC and Ajax. Thanks…
  • Conflict with lightbox, grey box and bg stretcher code

    I got a no conflict fix ... the images are where they are supposed to be but the background animation does not work. If I take out the no conflict there is a white background where the background is supposed to be. I also tried it with the nivo slider and having the same issue. The images don't animate... here is the page with the mess I created! http://kbwdesigns.com/index.php the just e it link opens fine with the grey box, but the background is not animating... thank you for any help!
  • populating a list - lost jq format

    http://jsbin.com/ebutub/6/edit it does populate but loses list's quality. could you correcr?
  • Dialog Buttons

    Is there a way to individually style buttons I add to the dialog?
  • Passing jQuery "OK" button click to code behind

    Hi There! I have created a jQuery "confirm" type dialog which is called from a button click event in VB code behind. So far, so good. However, I now need to be able to do something (in VB) when the "OK" button is clicked by the user. So, to put in context, I will have a page with some textbox controls to gather information, then the user clicks a "Submit" (asp:button) to save the information to an SQL table. When the user clicks the asp:button, the VB code behind launchs a nice jQuery "Are you sure?"
  • how to set tinyscrollbar to scroll:false in overlay

    Invoking an overlay within a scrollable area.  Using tinyscrollbar plugin ( http://www.baijs.nl/tinyscrollbar/ ) and, when the overlay is invoked, I want to set the scroll option in tinyscrollbar to false.  This is the script in the header: <script type="text/javascript">     $(document).ready(function () {         $('#scrollbar2').tinyscrollbar({ scroll: true });     }); </script> This is the overlay script:     $(document).ready(function () {         $("img[rel]").overlay({             onBeforeLoad:
  • Need a solution for a problem urgently

    function initiateMadness() { var sparta = {         name : "Sparta"     };     function madness() {     alert("THIS. IS. " + this.name.toUpperCase() + "."); } document.onclick = makeAMessenger(madness, sparta); } initiateMadness();   Write a makeAMessenger function in the global scope so that when the user clicks the document, "THIS. IS. SPARTA." is alerted.
  • Sortable offset when scrolling

    Hello Everyone:   I have a problem with a sortable table when I attempt to put scroll bars on it.  The offset is off and it makes the use of it very bad.  Everything works fine without the scroll bars.  And with the scroll bars it works fine using FireFox.  My problem is with IE8.  I've attached a simple zip file with an easy example.  I'm using jquery ui /*! jQuery UI - v1.8.24 - 2012-09-28 and jquery jQuery v1.8.3 jquery.com so they are pretty new releases.   I see there have been some reported
  • Adding values together

    I have the code below and having a brain fart. Looking to add the values together in the txtgrandtotal if the dropdown is set to "yes"... Any help would be great thanks!!  <body>         <div id="onewindow">             <label for="txtoneside" class="editor-label"><strong>1 Side </strong></label>             <div align="right">                 <input type="text" name="txtoneside" id="txtoneside" value = "" />                 <select name="txtoneside_slider" id="txtoneside_slider" data-role="slider"
  • closing one overlay and opening another

    I've seen posts about similar things, and tried to make them work for my case, but am clearly doing something wrong. I have a page where an overlay is invoked by clicking on an image. In the code behind, some links are added to the overlay that's created such that if you click them, I want another overlay to be created and the first one to disappear. The layout of the first and second overlays are the same, though the "child" overlays don't have further "links" embedded. What's happening is that
  • Animating an image on a static background help

    I am trying to create an animation on top of a static background image. I have the animation working properly and correctly but i can't seem to wrap my head around how to get it where i need it to be. I want the image to be placed document.image[4].src as its animating in order to be in the correct position on the webpage. Any input would be greatly appreciated, rather new to this. Animating Code portion in <head> <script type="text/javascript"> function slideSwitch() {     var $active = $('#slideshow
  • Tabs Widget 1.10: How do I retrieve tab index of selected tab?

    How can I retrieve the index of the currently selected tab in the current version of Tabs Widget? ---- Another jQuery API browser: http://www.dashop.de/?hf=blog_f.html&if=blog/en/dev/JavaScript/content/JavaScript-jQuery-API-Documentation-Viewer.html
  • Can I make an if statement that is variable?

    I have the following lines of code: $(".ErrorCode").click(function () {       ErrorCode = $(this).val();       if ( $(this).attr('id') == 'e1' ) {             $('.error1').show();}       else if ( $(this).attr('id') == 'e2' ) {             $('.error2').show();}It goes on to like 300 errors. Can I make one simple code that says something like  if ( $(this).attr('id') == 'e(whatever number)' ) { $('.error(whatever number)').show();}So it's not like 600 lines?
  • JQuery UI Dialog not zIndex after update to 1.10

    I updated the jQuery UI to 1.10.2.  I found the dialog hasn't the option zIndex. How will I set up the zIndex? 
  • Using jQuery for Database operations

    Hi I have searched similar posts and came to know that jQuery Mobile cannot connect to database like a typical server side language. I wanted to develop a jQuery Mobile application that performs some basic database operations (login, fetch some data and show it in different controls (text boxes/lists/menus etc) Now I know that we can use jQuery (not jQuery mobile) for database operations but first I have never tried it, secondly, I dont know if I can use jQuery Mobile and jQuery to achieve my requirement.
  • $.ajax storing results in a variable then retrieving it, doesn't work

            <script type="text/javascript">             $(function () {                 var totalRows = ($("#<%=GridView1.ClientID %> tr#trident").length);                 var __debit = 0; var __credit = 0; __creditCalc = 0; __debitCalc = 0; var _VouchNumber;                 for (i = 0; i <= totalRows - 1; i++) {                     var _a = $("[id$=txtdat_" + i + "]").val();                     var _b = $("[id$=vname_" + i + "]").text();                     var _c = $("[id$=txtDep_" + i + "]").text();
  • How to call a java function from jQuery?

    I have a java class 'find' which has a function 'getValues' which returns string array. I want to call that function getValue() from a jQuery and convert it into a jQuery array. Can any one help me how to d so?
  • Cycle2 Plugin hide controls

    Hi there, I am using the cycle2 plugin integrated into the wordpress gallery and works like a charm. What i would like it to do is when there is only 1 image to hide the controls and when more than one show them. I spoke to Mike on Github and he gave me a snippet of code and with my additional lines it doesn't seem to work still. If anyone can spot how to resolve this i'd be grateful. Maslap JQuery file: http://malsup.github.com/jquery.cycle2.js Function to hide controls (this is in my header under
  • Google map is being stripped out

    Hi all, Having a wee bit of a problem on a site. The site is using Wordpress and I have a geo location plugin for the posts which includes a Google Map. To switch to mobile and desktop I have another plugin for that. Now, on the desktop view, the map works, if I switch to the mobile view using one of the default mobile themes from the plugin...map works. When I change the theme to the jQuery Mobile one I created, all of the google map bits get stripped out of the code. I am completely befuddled.
  • ASP.Net Visual Web Part

    Hello everybody,   I'm developing a Visual Web Part for SharePoint and I wanted to use jQuery Mobile for the visual layout, but it doesn't seem to be working. The script and CSS are properly referenced, but the controls are rendered invisible.   The question is: is it possible to use jQuery mobile with Visual Web Part, and if so, how?   Thank you!
  • Probleme with popup listview and rel="external"

    Hello the community ! For start i alert you i'm french and my English is not fluently..i hope i will do the minimum of mistake I have a little problem with my popup who contain a listview. This one works fine. but i i click on a element of the listview i arrived on the good destination but if i do a click on previous in my browser (Safari on the iOS Simulator or other, i have the same behaviour), i'm automatically redirect on the same page... For exemple :  <div id="bouton-contacts" data-role="controlgroup"
  • jquery draggable resizable specific example

    Hi Im doing a project where im using jquery for moving and resizing objects in a webapplication. Doing my research i found a great example of this. The object had a bin in one corner for deleting it, a hand in the other for dragging it around, and an arrow for reseizing it in the third - i dont remember if there was any symbol in the last corner. Now i cannot seem to find this example, if any1 in here have any idea where i can find it, plz let me know - thx
  • Hiding thick box then showing another one cause error

    Hi folks, I have a window that calls tb_show to open a page,  If i click on the close button, the following JavaScript code executed: javascript:self.parent.tb_remove();self.parent.showNewShadow();the showNewShadow function is calling an AJAX and according to the result it shows another shadowbox function showNewShadow(){ //call ajax //.......       if (ajaxResult=='YES'){       tb_show(...);//show the other page       } } This result on hiding the first shadow but a loading icons remains on the
  • CSS Font Size Units

    I see that the dist JQM css has both px and em units as font sizes.  I want to include a user control for size increase/decrease, and it wd be convenient if all of my css used just one of these measures, preferably em.  Is there some convenient way to accomplish that?
  • jquery mobile video tag - black rectangle

    I am using jquery mobile and try to embed the video using html5 video tag. My video plays fine on all 'desktop' browsers, but when play when I use the following code in mobile safari (iPhone) it shows only black rectangle without any controls. I used video used commonly in html5 examples. (from http://www.bigbuckbunny.org) so it is not an encoding issue. When I access video directly by typing its url http://myurlofvideo.mp4 it plays correctly in mobile Safari. What's causing the problem? How can
  • Problem with validate plugin

    I have a contact form on my website using the validate plugin. It has been working fine for years, until just recently. I haven't changed the form itself, but I did update to jquery 1.8.3. Now the validation images are showing up in the wrong place, and for the wrong fields. You can try it out at http://webrecipemanager.com/index-5.php
  • [Keith Wood Datepicker] Date-Range Selection Problem

    Hi everyone I'm a web developer and working in an IT Team of Tourism Agency. Well I was looking for a Jquery Date-Range plugin (not datepicker plugin). While looking for deeply on Google I've seen the Keith's date-range plugin blog and awesome plugins. And I emergencly need help !   I want to show inline 2 months datepicker. Well no matter about that. My problem is that; <span id="checkinDate"></span> <span id="checkoutDate"></span> <span id="total"></span> When customer select first date for check-in
  • Can jquery cache some data to the next page?

    Just like session machnism, pass some data to anothor page
  • source code from panel styling 1.3 demo does not work

    here's is how the code used works http://jsfiddle.net/tearex/6hLYe/#base here is how it shouldhttp://view.jquerymobile.com/1.3.0/docs/examples/panels/panel-styling.php what is the problem here?
  • Panel Navigation

    Hello can any one help me, I have a kendo ui panelbar and a button (fetch), they are both in different divs I would like every time i click on an item (eg Income, summary) in the panelbar, to relocate the button focus to that particular item. Is it possible? I will be grateful for any help please. Obad
  • load jquery ui datepicker inside colorbox

    how to load jquery ui datepicker inside colorbox? i have more than 1 colorbox and most of all colorbox contains datepicker.Please help...its urgent...
  • Adding custom rule to JQuery Validate

    Hello: I am having trouble getting adding custom rules to JQuery form validation to work properly. I want to use the default rules to make input required, make sure it is a number, and to make sure the number is 15 or greater. That was working fine. But, I am now trying to add a custom rule to it that will allow only numbers that are divisible by 5 into the field. And I am not having any luck getting it to work. I also would like to be able to have a custom message for each error. Can someone show
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of