• jquery event sink for com object

    i have a comm object that raises events and javascript on the web page to capture those events. It all works perfectly. Now I have to "distribute" this javascript to serveral other web applications for use on their web pages (this is all internal intranet stuff). here is the javascript function and script tag for the event sink: <script for="ica" event="OnAgentEvents(evd)" language="javascript"> function ica::OnAgentEvents(evd) { // do stuff here } </script> how can I put this into a seperate .js
  • Ajax conflict

    callAjax works fine alone without $('.link').click(function(){. But it does NOT work with  $('.link').click(function(){. ---------------------- $(document).ready(function(){                var callAjax = function(){           $.ajax({             method:'get',             url:'random.php',             success:function(data){               $("#sample").html(data);             }           });         }         setInterval(callAjax,2000);       });       $('.link').click(function(){                
  • e.preventDefault() and $.ajax; === for ajax and jquery conflict

    Without  $(".refresh"). $.ajax , we can see  $('.link').click(function (){ is working . But with the  $(".refresh"). $.ajax is inserted,  $('.link').click(function ( does NOT   work . Question: I think this problem is related to the conflict. Any good way for ajax refreshing??? =================================================================== <script type="text/javascript">    $(document).ready(function(){   $(".refresh").everyTime(1300,function(i){   e.preventDefault();  $.ajax({  type: "POST",
  • Newbie: How to build dynamic jQuery tab from javascript?

    Hi, The question is simple. How can I build dynamic Tabs from javascript? The result is not the same as placing the very same markup in html. I have made this fiddle to show you what I mean: http://jsfiddle.net/9e4ruq5f/ What am I doing wrong?
  • insert tag css into file .css

    how to insert tags into the css .css file using jquery anyone can give me an example
  • How to update multiple dropdown selects when user changes one selection

    Hi, I posted this on Stackoverflow and I've not gotten any traction. http://stackoverflow.com/questions/29053525/how-to-update-multiple-dropdown-selects-when-user-changes-one-selection I'd appreciate a hint on how to proceed. Thanks.
  • Effects - Show (HIDE)

    I am trying to find an animation of the hide similar to turning a page. Is there something like that predefined.   Thanks
  • Newbie: Conditionally include script files

    Hi,   In jQuery mobile page is there a way to conditionally include certain files (CSS, javascript) based on whether browser is iOS based or Android? If so, is there such an example? Thanks in advance and regards
  • Newbie: Dynamic back to top button

    Hi,  I want to have back to button that appears itself when long text content (in a collapsible, accordion tab, page or others) is more than the viewport and then hide itself when content is scrolled to the top. Is there a way to do that?  I tried the approach in this link: http://www.developerdrive.com/2013/07/using-jquery-to-add-a-dynamic-back-to-top-floating-button-with-smooth-scroll/ . It works fine with jQuery mobile + phonegap in iOS but in Android, once the "Back to Top" button appears, it
  • how to create accordian for this formula?

    BookMyLoan *#nh { background-color: rgb(69,69,69); color: white; text-align: left; padding: 15.0px; width: 74.0%; } *#nhsec { width: 75.0%; float: inherit; padding: 4.0px; background-color: rgb(48,102,164); } *#nf { background-color: rgb(255,255,255); color: rgb(48,102,164); clear: both; text-align: center; padding: 5.0px; width: 74.0%; } *#nh1 { background-color: rgb(69,69,69); color: white; text-align: left; padding: 5.0px; width: 10.0%; } *#nf1 { background-color: rgb(255,255,255); color: rgb(48,102,164);
  • Tabs "Jump To" Button

    I am trying to have buttons within a tab to jump to a different tab, but get the following error:  Error: cannot call methods on tabs prior to initialization; attempted to call method 'enable'.  Below is the code I tried.  What is the correct way to implement this?   <div id="tabs" >   <ul>     <li><a href="#tabs-1">Nunc tincidunt</a></li>     <li><a href="#tabs-2">Proin dolor</a></li>     <li><a href="#tabs-3">Aenean lacinia</a></li>   </ul>   <div id="tabs-1">  <input id="lnk" type="button" value="Jump
  • ReferenceError: using google Maps API .

    hey guys i am trying to build a small custom map library and i have extrated most of the code into Mapster.js file and i use my script.js file to call all the functions from Mapster.js .  I have a small problem , i have this below line in my scripts.js file :  infoWindow.open(map.gMap , marker); now in my mapster.js i have the following function :  addMarker : function(opts){ var marker; opts.position = { lat : opts.lat, lng : opts.lng }  marker = this._createMarker(opts); if (opts.event) { this._on({
  • $.ajax post <<--- Why this easy code doesn't work????

    Why success alert is not popped up? [post.php] <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script> $(document).ready(function() { $('#post_button').click(function() { $text = $('#text_p').val(); $.ajax({ type: "POST", cache: false, url: "save.php", data: "text="+$text+"room="+"room1", success: function(data) { alert(data); } });//j.ajax }); }); </script>   </head> <body> sfefe <div id ="stage"> Stage </div> <form name="form1" action="" method="post">
  • problem with ajax

    hi to all, I try to call external text file to my html page using ajax..but it is showing error like XMLHttpRequest cannot load path of file. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource. this is my code. http://jsfiddle.net/harithareddy/8n6L0rdz/
  • Dynamic checkbox multiple from mysqli_fetch_array

    Please help me out from 1 hour struggling. [problem] Without CSS, checkbox multiple will be displayed on the left top. But applying CSS, the checkbox symbol is separated from checkbox value, located on CSS top and left (640, 390). But its value stays on the (0, 0). [Code] $dbc=....  $query1 = "SELECT * FROM classroom_start";  $result1= mysqli_query($con, $query1);    if(mysqli_num_rows($result1)){   $room_array = array();  while($row1 = mysqli_fetch_array($result1))    {        $room_array[] = $row1[1];
  • How to split strings?

    I have a column which can be multiple people. For example it can be: 35;#Peter Dawn 24;# James Taylor;# Is there a way I can use Jquery to automatically grab only the names and ignore the ID and the deliminator which is ;#?
  • Weird auto focusing on Android device

    Hi, I've got a bit of an issue, and I can't work out whats going on. Basically, I have the following code: <!-- item advanced settings  --> <div id="itemAdvancedSettings" data-role="page" data-enhance="false" data-dom-cache="false" data-transition="fade">     <div class="header" data-role="header" data-position="fixed" data-tap-toggle="false">             <a href="#" onclick="history.go(-1)" class="toolbar-button" ><img src="./img/back.png" class="header-back-button"></a>             <img src="./img/header-jcc-logo.png"
  • Passing array using .load

    Hi; Before I start: I want to use .load for this one. Ok, I use this to pass data to another page: function calculate_price() { $( "#calculate_price" ).load( 'http://localhost:8888/live/calculate_price', { product_type: $( "#product_type" ).val() , qty: $( "#qty" ).val(), size: $( "#size" ).val(), category: $( "#category" ).val(), p_type: $( "#p_type" ).val() , item_id: $( "#item_id" ).val() } ); } That all works fine and sweet. The problem is that I have another array that I need to pass to
  • How to use Liquid Slider

    Hello everyone and good day! I am working on a personal project and I want to use the Liquid slider jquery. http://liquidslider.com/ I cant seem to make it work, even thou I did follow the installation instructions. Instead of text for the title, I used an image, because I would like it with caption. Here are my codes. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"
  • What are difference between setOptions and setOption?

    Hai friends,             Currently i a worked with Jquery Widget factory.Anybody give the more explanations about _create, setOptions , setOption,  _refresh, _destroy and _init.I am waiting for your response.
  • rework a for loop into an each function

    I have this code on jsfiddle: https://jsfiddle.net/jlrough/wq95ycr5/ Code works except there is no place to add some images for the carousel so you can't really run it and see the carousel. What is wrong with it is the for loop is a closure and it doesn't work since it befuddles the i value in the hover function.  The next and for links work to go to the next image. Someone said to fix it by using each instead which I am trying to do below.  You can see commented out the for loop. I am getting a
  • Noob question conerning jQuery start-tag

    I am good at PHP and I am trying to learn jQuery. My question is these start tag showing WHERE jQuery finds (and eventually) does something, like: $('.myTR td').html(originalContent); or $("td[contenteditable=true]").blur(function() What I understand is that that it is looking for "myTR" and in the other case "td[contenteditable=true]". Abstractly it is a kind of regular expressions in the way that it searches for something and does something (blur/changes, whatever). I don't understand the convention
  • Slide navigation in Jquery mobile 1.4.5

    HI, Currently i am working on a Mobile app using jQuerymobile and Cordova and i am using JQM 1.4.5 version for this.   In my app, for my page transition i am using slide navigation but the slide effect is not visible when navigating to another page. In jQuerymobile 1.4.3 it is perfectly working fine..I have tested this on Desktop chrome and Android tablets.. Do i need to configure any additional parameters for this? Thanks.
  • show and hidden events not working

    Hey guys i came across the following lines on modal.js :      $target.one('show.bs.modal', function (showEvent) {       if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown       $target.one('hidden.bs.modal', function () {         $this.is(':visible') && $this.trigger('focus')       })     }) These are all event being attached right ? , well i was wondering where can i find the documentation for the show Jquery event ? , because i tried writing
  • How to create a select menu related to another select menu

    I am currently studying jQuery but I came across a topic related to select menu. I studied how a select menu is styled by a code as the following: $('#colors').selectmenu({ width : 300, change : function (event, ui) { // put your programming here } }); But I don't know how to add a second select menu with another set of options related to the original menu’s selected option, and so on. Can any one help me by showing how this is done or at least refer me to a reference that does just this. I would
  • jquery validate TypeError: c is undefined

    Hi, I'm fairly new to using jquery and plugins.  I'm trying to use jquery validate and I get an error "TypeError: c is undefined" in the Browser Console using Firefox when the form event fires.  Here is my test code: <html> <head> <meta charset="utf-8"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="js/jquery.validate.min.js" type="text/javascript"></script> <script> $().ready( function() { $("#userName").validate(); }); </script> </head> <body>
  • on change

    I was working on an on change function to detect when a count changes, it doesn't seem to be triggering, I places it in a jsfiddle page http://jsfiddle.net/uyy3bp1f/
  • Getting CrossSlide script to center rotating images

    I'm trying to get what should be a simple CrossSlide script to center a rotating image in a WP page. Below is the code: <div id="banner"><script src="http://www.bu.edu/nis/lib/jquery/crossslide.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[ jQuery(document).ready(function($) { $('#bannerimage').crossSlide({ sleep: 5, fade: 2, shuffle: 0 }, [ { src: '/images/IMG1.jpg' }, { src: '/images/IMG2.jpg' }, { src: '/images/IMG3.jpg' }, { src: '/images/IMG4.jpg' } ]); });
  • three.js - conflicts between versions!

    hi all, does anyone know how to resolve conflicts when going from one version three.js to a newer version? i have a document that uses r37 and works perfectly but when i move up to r48 it just stops working and tells me: ReferenceError: ImageUtils is not defined which is this bit in main.js... var sprite1 = ImageUtils.loadTexture("img/particle.png"); material = new THREE.ParticleBasicMaterial({ size : 30, map : sprite1, blending : THREE.AdditiveBlending, depthTest : false//, }); do i need
  • iframe/popup not working

    hey, could you please check and help me out. Why is the fancybox.iframe always opening full screen? What am I not seeing? Thanks for you advice. Kr http://gamanga.com/GMG_CONCEPT_01.html#
  • superfish theme wordpress - social media buttons

    Hi, first time posting, not sure if this si the right place, i have wordpress site using superfish theme, i have already existing social media buttons on my website at the top, but i need to add googleplus button, where do i do this, and how, have tried pasting the normal codes provided by google, in footer.php etc but doesnt work, there is a a sociallinks.php, and a sociallinks_footer.php (found in the INCLUDES FOLDER) which has the exisitng media buttons in the correct order but when i put the
  • From top-fixed to bottom-fixed when reaching the footer

    I need to stop a fixed sidebar when the footer is reached. I have the code below, but if you scroll down, the sidebar gets over the footer when reaching it. Of course, it will be fixed to the top again when scrolling up. Any help? jsFiddle $(window).scroll(function() { if($(window).scrollTop() + $(window).height() > $(document).height() - 210) { alert ("footer reached!"); $('.sidebar').css({ position: 'fixed', bottom: 210, }) } else { $('.sidebar').css({ position: 'fixed', top: 0 }) } }); .body {
  • Last grid messed up

    My last grid on my Jquery Mobile website is messed up it is not alligned. This is my code for the grid: http://i.imgur.com/T84p16w.png This is what it looks like: http://i.imgur.com/6ob5wAC.png Could someone help?
  • i hava problem with the below uncaught typeerror in jquery

    in that nivoslider error i didn't understand how to fix that error pls help me
  • Panel Open from top or bottom

    Jquery Mobile Panels opens from right or left. This is perfect. Is there a way to make a panel open from top or bottom?
  • Cannot save form with data populated by ajax jquery

    I am retrieving html data from a page and it's being displayed properly in the page - everything good so far. This is that code... $.ajax({ type: "POST", url: "myurl", cache: false, beforeSend: function(){ $("#spinner").show(); }, data: { id_code: id, mode: mode, IndexAbove:indexAbove }, success: function(data){ $('#entrytable').html(data); }, error:function(xhr, status, error) { alert('Request Status: ' + xhr.status + ' Status Text: ' + xhr.statusText + ' ' + xhr.responseText); }, complete: function(){
  • Is jquery IU included in the jquery 1.10

    I noted that when I add the library of jquery 1.10.1 or higher in JSfiddle, the possibility for adding the jquery UI disappears. Does jquery 1.10.1 includes the the said plugin. I would appreciate an explanation for this.
  • JQuery rangeslider issue

    Hi, I am using the JQuery rangeslider by Andre Ruffert I have been trying to set the parameters of the slider so that it changes the size of the 'step' once it reaches 36.... I want the minimum value to be 6, and the maximum to be 60 which I have set in the html code... <input type="range" value="18" min="6" max="60" step="6" > The step size should increase by increments of 6 until it gets to 36. When the slider reaches 36 the step size should increase by 12 ........ it should then snap to 48 and
  • IE is messing up my accordions and tabs!

    Hi, IE is messing up my accordions and tabs!  Can you please help? It looks like IE is not using the ui-helper-clearfix class b/c in the developer tools, all references to the class are crossed out.
  • rework a for loop to an each function

    I'm trying to rewrite this function:  for (i = 0; i < $('.carousel-dots-nav-item').length; i++) {             var dot = $('.carousel-dots-nav-item')[i];             // show the title of the image when hovering the associated dot             $(dot).hover(function(e){                 $('#title').text(carouselItems[i].title);             }, function(e){                 $('#title').text('');             }); To this one below using the each instead of the for loop above  because there is a closure and
  • 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