• Animating a dropdown menu

    So I have done this meniu and I have 2 problems. 1. When I hover on a link, it does 2 animations, but when I "unhover", it doesn't reset the default values also with animations. I kwon the problem might be the display none in the css, but I really have no ideea how to get around that. 2. As I sed above, when I hover on a link, it does 2 animations, but when I move the cursor to a nother link, it doesn't "re"-do the animations anymore. Hope my bad english didn't confuse you to much, appreciate any
  • How to make existing JavaScripts & xml parsing browser independent

    Hi, We have an web app where client side JavaScript is used heavily and ONLY works in IE (All versions). However, we want to make these JavaScripts browser independent. We use Microsoft technologies such as Asp.net/Classic asp etc. We have mostly used XML (using activeX object such as new ActiveXObject("Microsoft.XMLDOM")) in JavaScript to:   - Get data from server in XML format   - Load to XMLDocument   - Parse the document   - Transform the document using XSLT How can we make these above steps
  • jQuery UI Autocomplete After request hook/event?

    Hi, I'm using jQuery UI Autocomplete search and open events. But the open event is only called when the request is successful and there are elements. There does not seem to be an event when the response is successful but empty. I display and hide a spinner logo when triggering the request, like this : search: function() {   $('.spinner').show(); }, open: function() {   $('.spinner').hide(); } This works well when there are elements in the server response but if the server response is empty the spinner
  • Dynamic data insert into a plain content Div and jquery Mobile

    I need a little Help with a call to add content dynamically.   I'm trying to load a page that dymanically generates a table into a div with jquery mobile:   Taking the date value from the datepicker and I have a routine to generate the url:    <div data-role="content">    <form action="" method="post" onsubmit="javascript:getData(this);" >    <div data-role="fieldcontain">            <input type="date" name="eventdate" id="eventdate1" value=""  style="display:none;" />            <button type="submit"
  • IE9 + prototype + jQuery conflict

    Hi Everyone,   I've noticed this strange conflict when trying to get the width of a jQuery object in IE8/9 when prototypejs is also loaded.  I'm using the latest version of prototypejs. version 1.7   IE8/9 w/o prototype works correctly. IE7 w/ prototype work correctly.   The object I'm trying to get the width from is a DIV with absolute positioning and a width of 500px in the style attribute.  It's called #INFO_DIALOG.   // supposed to return 500, but returns the WINDOW width.  same as jQuery(window).width();
  • Jquery Issue

    I have content (done in jquery) that gets added to a website (anyone on the web, which means I have no way of knowing what they are using).  I started with doing a jquery check to see if jquery needed to be installed, but found that my content needed a new version, which others didn't have installed on their site.  I am now trying to figure how to go about allowing multiple versions of jquery on a site... so their site could have <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.1/jquery.min.js"
  • JqueryMobile/Drop down to display US States

    I noticed when I select an US state from the drop down, If I selected Wyoming where it was last state in the drop down , the next time I go back to the drop down again, it only displays 25 states starting from Wyoming, I cannot scroll back to the 1st state in drop down any more. Did I miss out something here?    <div id="divByAddress"  style="display:inline">                  <div id="divByAddressInput" runat="server" style="display:inline">                  <p>Enter address,city and state to find
  • jquerymobile CSS and n97 support...

    Hi all,     ive been creating a mobile site for veepiz and i have fallen on a few snags.... i happened to fall on a nokia n97 and tried the website. no css was applied to the website.... and i couldnt login... after some digging i came up with this         <script type="text/javascript">             $(document).bind("mobileinit", function(){                     $.mobile.ajaxEnabled = false;                     $.mobile.ajaxFormsEnabled = false;                     $.mobile.ajaxLinksEnabled = false;
  • Setting accept when uploading file

      Hi all,   I'm trying to upload a form via jquery forms plugin. Here's the form:   <form method="post" action="<spring:url value="/grouplist/uploadavatar.do" />" enctype="multipart/form-data" id="formUploadAvatar"> <table width="100%">       <tr>             <td width="25%" style="padding-top: 30px; margin-top: 30px; ">                   <spring:message code="usersettings.form.usersettings.avatar"/>             </td>             <td style="padding-top: 30px; margin-top: 30px; vertical-align: middle;">
  • autocomplete: how to hook on on blur events?

    hi I've a autocomplete on top of an input text and I would like to hook in each time the user changes something in it. I tried to put a blur() on it but then the autocomple behavior wasn't working anymore. How can I get both ? For some willing to know, I'm trying to do an autocomplete where only the values selected from the list of choices are accepted. Any hint welcome
  • listnav

    it doesn't work on the next page for another list eg :- i have one list on first page and second list on second page it works fine for the first page but for the second page it gives error like listnav is not a function
  • Load any resource (well, popular ones: images, audio, video) given a url

    Hi gang, Is there an extension or plugin that could take a url to some media -- video, audio, image -- and just load it / display it on the page? I came across jQuery Media (http://jquery.malsup.com/media/), and it looks like a good start at what I'd need.  Although it just focuses on video and audio, not general images. Are there any other plugins besides jQuery Media that would get me even closer? Many thanks, Chris
  • Load Pages

    Hello,  I have three pages: reg1.htm, reg2.htm, reg3.htm On page reg1.htm, I have a form that uses jQuery to validate and send via email the user data. My problem is that once this process ends, I want to automatically load the pagereg2.htm . How I can do this, please?
  • Trouble with dialogs

    Hello!       For three days I trying to fix my problem and I can't do it. I think live example was good idea. I have problem with dialogs on my site. You can check it on http://www.knights.pl. When you click "Tawerna" (this is forum) and when subpage was loaded first time everythink works fine, but when you click "Tawera" one more time page loaded successful, if you click "Zarządzaj moim kontem" dialog open, but buttons don't work. If you close and reopen dialog everythink works fine... It is my
  • Removing script tag on ajax load

    Hello all, I'm using ajax call like below - $.ajax({     url: "/page/test.html",     success: function(data){         $("#something").html(data);                                               } }); The first line of this file is: <script type="text/javascript" language="JavaScript" src="/js/jquery.js"></script>I currently don't have control over this file and want to remove this script tag. I've tried lots methods and still I can't seem to remove the script and the file each time gets downloaded
  • gomap and street view

    Hi there, i'd like to get rid of street view on the maps i create into dynamic pages, but i can't find a way. My code is working fine (php for the dynamic part), but always shows the street view icon; the preview map iframe is really small, so i prefer to generate it without street view. Any suggestion would be really appreciated, thanks <script language="javascript"> $(document).ready(function() { $(function() {     $("#map").goMap({         markers: [{             <? echo $address; ?>,        
  • get/set textbox created dynamically

    Hello, I dynamically create a textbox as follows, but I cannot retrieve the value entered by the user: bp_boards = ' \                     <tr id="hwNumberBoards">                        \                             <td>No. of modules:</td>                    \                             <td><input id="hwNumberBoards" name="hwNumberBoards" type="text" size="3"></td>                    \                         </tr>                        \                     '; $('#hwStructureDetails').append(bp_boards);
  • jQuery 1.5 .load() - possible bug with imported Javascript?

    Forgive me if I'm mistaken with this I haven't been using jQuery for long. On my site I wanted to use the .load function to "import" some Javascript into the page and have it execute, I followed the documentation which says : $('#result').load('ajax/test.html #container'); Using Firebug I checked the response and everything seemed to have worked fine but the Javascript didn't execute as expected. If I changed the code to $('#result').load('ajax/test.html#container'); Basically just removing the
  • SSE is not supporting in android.

    Hi ,   am using jquerymobile alpha3.. in that am using SSE for rendering the events from server but its not supportted by the android....insted of that what can i use to get the server events in which it should support in all the emulators ... Thanks, Suresh
  • fadeIn + append/appendto

    Hi Guys, am I not able to fade in some content, which will be append to an div?? Here is my test case: http://jsfiddle.net/n3ZFt/1/ THX
  • Ideas on absolute positioning of dynamic content in mobile web app?

    Hi, I'm currently developing a mobile web app using jQuery Mobile and before I get to far deep I'd like to hear your thoughts about using absolute positioning of dynamic content in a mobile web app! I use it when I need to populate data from database through php and ajax and in this case I think it is convenient to "design" a template page with absolute positioning my divs. I use different class names for all fields I want to replace with my data from ajax using things like: $(newRow).find(".row_header").text(object.NAME);
  • Getting $_FILES from input.

    Hello, i have a form with a file upload. When i click on the submit button i will send the file with $.post to my php script. In the PHP Script i must use the variable $_FILES[]. How can i realize this? I try $('form').find("id").get(0).files[0] but it return an object and not $_FILES[]. Can anyone help me? Source: $("#cl-entry form").submit(function(event) {  // Stops submit action  event.preventDefault();  var $form = $( this ),   image = $form.find( 'input[name="image"]' ).get(0).files[0],   url
  • trying to understand callbacks

    Im new to js and jquery. I have created some nice animations and stuff but I am stuck in one point. Ive searched everywhere, checked every document and tutorial but I cant find where I am making the mistake. why isnt this working? $(document).ready(function(){       $('#startButton').click(function() { alert("wtf1"), (function() { alert("wtf2"); });       }); });the first function gets called but the wtf2 is never called.
  • Retrieving margin-left in Firefox & Opera

    Stumbled onto this one: retrieving the margin doesn't seem to work in Firefox or Opera.  This is code I'm using, which works fine in Chrome, Safari and IE:         var contentmarginl = parseInt($('#wrapper').css('marginLeft')); // fails         var contentwidth = $('#wrapper').width(); // works          alert(contentmarginl); The alert returns (in my case) 350 in the complying browsers and 0 in FF and Opera. Is this a bug or my error? Is there a known workaround? EDIT: Just tested in XP sp3 IE7 &
  • list don't get shown a second time

    if i click on a <li>-Element, it's children should be displayed This works fine but if i click on the back button and let me display the same Elements again, the code fails (try 1 > back > 1 in the jsfiddle) here's a jsfiddle with code i created http://jsfiddle.net/m3A8g/2/  (i hope you see what i mean) i don't have a cule what i'm doing wrong here  (perhaps there is even a more elegant way to deal with it than parent() and children()) thanks in advance, Fiisch0r
  • How to get the XML document part after using $.get()

    Hi folks, Given the following standard jQuery code to .get() a (valid) .xml file: $.get(file)       .success(function(data, textStatus, jqXHR) {             oUIxml = $(data);       }); Later on, I need the XML document part from the oUIxml jQuery object. Is there any way to achieve this without using something like .each() ? If I do: alert( oUIxml.text() );It'll get me all the text values from all nodes as one big chunk of text. But what I need is only the XML document, in fact just like: alert(
  • Most efficient way to search only some children of div?

    Given this sample HTML: <div>       <span class="searchme">some text</span>       <span class="ignoreme">some more text</span>       <span class="searchme">yet more text</span>       <span class="ignoreme">finally some last text</span> </div> What is the most efficient way to determine if some search text is found within the div and ONLY in any one of the spans inside with a class of searchme? I can think of some convoluted ways but am hoping I've missed something fairly elegant and simple :) Right
  • Vote system

    Hello. I have problems with vote system. I would write same vote system as on bash.org.pl. + and -  are linked to controller 'vote', when i click on them, div called for e.g. 123_vote(where '123' is id of object) will refresh with new value loaded from database, and div 123_msg will refresh with message. I'm using codeigniter framework. Need help, sorry for my english. 
  • drag and drop: draggable divs disappear

    Hi, i am experimenting with the drag and drop feature but it wont work. Maybe someone can check it. i have a table <div id="content"><table> <tr><td><div id="id1" class="dragable" style="width:10px;height:10px;background:green"></div> Hello World</td></tr> <tr><td><div id="id3" class="dragable" style="width:10px;height:10px;background:green"></div> Hello World</td></tr> <tr><td><div id="id3" class="dragable" style="width:10px;height:10px;background:green"></div> Hello World</td></tr> </table></div>
  • Lost again - datepicker output format

    Where is the date format changeable in a custom downloaded datepicker?  I only find jquery.ui.datepicker.js in the development-bundle folder of the download. How can I change - simply, I am new - the date format to m/d/yy.  More correctly -- where? Thanks.
  • Why is testing scroll not working?

    I like to test on my browser all possibilities to scroll screen. I'm using jquery.scrollTo.js URL: http://demos.flesler.com/jquery/scrollTo/ I kindly ask you to check why scroll works only on TOP corner not working relative path...and other top links. Thanks.
  • SUBMIT buttons, value not passed to PHP by Firefox etc

    I've inherited a website which uses jQuery to do AJAX submits.  (The website owner and the original designer fell out).   A piece of code which used to work under IE and FF (Chr, Opera, SAfari) now only works under IE.   The failing code is given below. Looking at the PHP the code uses AJAX to submit a query. It looks as if this uses a jQuery hook to add a variable "requestType", although frankly the code is somewhat hard to follow.   What happens is that under IE all variables are available to the
  • fadeIn & fadeOut not working in IE8 or lower

    Hi all, I have a problem with my jquery. The next code works fine in IE9, FF and Chrome, but not in IE8 or lower. The problem is that my fade out and fade in on a block element are not working. The problem in action can be found here: http://www.paarsekever.nl/Showroommodellen.html and soem snippets of the code: HTML: <div id="linkgoleft">goleft</div> <div class="infoBlock block0" >data</div> <div class="infoBlock block1" >data</div> <div class="infoBlock block2" >data</div> <div id="linkgoright">goright</div>
  • How to pass params in JQmobile

    Hello, I would like to ask: How to pass params in JQmobile? I have got html with params  href="game.html?name=Ellisa&sound=1 and on page "game.html" i want to get this two variables: name and sound. I tried it to with: window.location.search.substr(1).split("&") but this cannot works. Thanks for any advice.
  • Jquery level problem

    I have a problem with my jQuery accordion plugin. the control is always above everything in my page. i try to change z-index but it not solve it. this is the page: http://www.hfx.com/en-US/General FAQs If you try to press the top menu on: "Trading Tools -> World Interest Rates" you will find you can't do it, because the jQuery is above it. I can't find anything about it in the web. Someone? Adi
  • click event fires twice

    I ran inro a problem recently which i haven't found any solution to. i generated a subnode for all unordered lists which are Childs of List-Elements like this: <ul>       <li>1</li>       <li>2             <ul>                   <li>2.1</li>                   <li>2.2</li>             </ul>       </li>       <li>3</li> </ul> The generated list works fine and looks like this: 1 2 2.2 2.2 back    <-Generated Element   <li class="back">back</li> 3 but if I click the Back button the Event fires twice
  • Pause a function midway

    Hi can anyone help me to create a simple slideshow? Is there any way to pause a function that has more then one function inside of it (using callbacks).
  • Magic Line menu error

    Hi guys   I used a piece of code from a tutorial and edited it to get it working on my site, it works but for some reason it shows up differently on different browsers.  On my home machine using IE8 it has the line below the text and the text at the top of the page, on my work machine also on IE8 it has the line above the text and the text in the middle of the menu bar.  This is also how it displays in Firefox and Safari on my home machine as well.  Very strange. I don't know enough about jQuery
  • is .queue() empty?

    To what should .queue() be tested to ascertain if the queue is empty?  null?  empty string?  
  • Starting jquery-1.4, in IE8, html() returns null for a non-HTML element (e.g. <xml)

    In IE8, for the following HTML, $('#myXML').html() returns null starting jquery-1.4. This used to return the contents of the <xml> tag in jquery-1.3. Any ideas, how do I get the contents of <xml> tag? Thanks. <html>   <head>     <title>Title</title>     <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.js"></script>   </head>     <body>     <xml id='myXML'>       <node><value>some.value</value></node>     </xml>   <body> </html>
  • 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