[jQuery] Jquery Ajax one request, multiple answers problem
Hello, I've been working on a jquery projet (with the lastest stable version of jquery) that retrieves information using json from a php script that requests information from an API. The script lists all the different extensions with a status colomn that says what it's doing (waiting, searching or result). The script gets the list of extensions form an input select drop down that's generated by PHP (this allows me to manage extensions using a database). It then launches the search for the selected
[jQuery] How to pass variables between jQuery plugins?
Hopefully this won't sound too silly, although it probably is. I've been scratching my head about how to get 2 jQuery plugins to be aware of the same array variable. Situation: $(function () { anArray = [ ]; // Instead of hardcoding the values in an array like below: // anArray = [ [A,1], [B,2], [C,3] ]; // I want to read it from a csv file using http://plugins.jquery.com/project/csv. So I put in: $.get("a1b2c3.csv", function(data) { anArray = $.csv() (data); alert(anArray); // this works just fine.
confirmation box jquery ui
I need to fire the jquery ui confirmation box when link is pressed... heres my code so far... $(function() { $(".logout").bind('click', function() { $(".logout").dialog({ bgiframe: true, resizable: false, height:140, modal: true, overlay: { backgroundColor: '#000', opacity: 0.5 }, buttons: { 'Logout and return to login page': function() { $(this).dialog('close'); return true; }, Cancel: function() { $(this).dialog('close'); return false; } } }); }); }); For some reason the tutorials only display
Can the elements be passed as string argument to methode?
I hope I get the terminology right I am building a small extension and I would like the elements this extension is used on to be passed as a string. Example: $('q, .quotes').quote(); Now, inside this function I have: var NumberOfParents = $(this).parents().filter('q, .quotes').length; Obviously I want to be able to replace the filter('q, .quotes') with something like filter(string). Where string equals the list of elements. Any way to do this (apart from passing the string as an argument)? Thnx.
Multiple select and AJAX submit
I'm trying to submit a form with ajax. HTML code (this is a jquery multiselect, I can select from 1 to 3 options): <form action="" method="post" id="formzone"> <select id="zone" name="zone" multiple="multiple" size="5"> <option value="1">OPTION 1</option> <option value="2">OPTION 2</option> <option value="3">OPTION 3</option> <option value="4">OPTION 4</option> </select> <input type="submit" value="Show Results" /> </form> <div id="filterzone"></div> js code: $('#formzone').submit(function() { var
[jQuery] remove live events from all children
I am trying to remove live events from all children of an element (specifically, the element is a dialog window). jQuery("#id *").die() There's an "Invalid Quantifier" exception when creating the namespace RegExp in the remove function (line 2431, jquery.js v1.3.1). The asterisk is never escaped and is causing the exception. That said, looking through the code, it looks like '*' is simply not supported. True? If so, am I missing something else easy? I really like to not go through each event and
custom callback function
Can't manage calling custom callback function with ajax response. $.post("mails", { "type": p }, myfunc(data)); where myfunc() supposed to alert .resposeText however, $.post("mails", { "type": p }, function(data){ myfunc(data) } ); is not what i'm looking for. Thanks in advance. =)
[jQuery] Earn money $1000-25000 per month
MONEY WORLD EARN MONEY "$1000-25000" PER MONTH TAKE SIMPLE ONLINE SURVEYS CREATE FREE ACCOUNT OTHER DETAILS LOG ON TO ******************************************************************** http://www.AWSurveys.com/HomeMain.cfm?RefID=ushaselvam ********************************************************************
[jQuery] Jquery Valdation :the data is entered in the UI real estate after validation
Jquery Valdation :the data is entered in the UI real estate after validation STEPS TO REPRODUCE: 1. Type an invalid value in a field Ex: type an invalid e-mail id in e- mail field 3. After the above step try to enter the data in a different field by moving the cursor to a different field using your mouse and notice that the data is entered in the UI real estate It happens only in IE 6 please do view the link to have a clear idea http://www.nabble.com/file/p22131628/validationerror.JPG
[jQuery] each on a css class
so i have a class "positiveMessage" I use throughout the page and i always want to fade them (FAT style). I'm starting to catch, but I can't figure out why this only fades the first one! $('.positiveMessage').each( function(){$(this).vkfade("00dd00")} ); Shouldn't this find every element with css class "positiveMessage" and then run vkfade on it???
[jQuery] jcarousel buttons
Hi, I tried using the simple carousel, but the buttons for nextlabel and prevlabel don't appear on the screen, yet I can click to manouver left or right. I must have missed a step somewhere to add the visibility to these buttons, but I can't figure it out. Can someone help me out? Thanks, Shannon.
[jQuery] validate - non U.S. phone numbers
I would like to be able to validate phone numbers but accept any number, dash or parenthesis without having restrictions that are currently in the plugin i.e. area code etc. how would I go about adding that? http://docs.jquery.com/Plugins/Validation
[jQuery] How to close dropdown
Hi, I am trying to create a simple dropdown. The problem I have is that I do not know how to close the dropdown. It is supposed to close when user clicks on id="btn" or anywhere outside of dropdown. That's what I tried but close does not work. <html> <body> <div id="wrapper"> <div id="btn">Open Menu</div> <div id="some_menu" style="display:none">Some Menu</div> </div> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#btn').click( function(){ jQuery('#some_menu').show();
[jQuery] Data returned (from a JQuery function) with the $ character cause to error in IE
assume the following code: -------------------------------------- price = $("#field").text(); -------------------------------------- This code cause the following error in IE: "object doesn't support this property or method". $("#field").text(); returns a string, like: "$21.3". (the data is price). I guess the $ character (of "$21.3") make JQuery confused as it thinks this is a function. BUT, when I write something like this: var htmlOut = '<span>' + $("#field").text(); + '</span>' No error occurs!
[jQuery] TableSorter Pagination: Move pagination to top
Is there any way i can move the pagination div to the top of the table sort-- because the last page of the table sort always has a white gap between the last row and the pagination buttons. Two ways to solve this would be to either move the pagination to the top or fix the pagination div so that it adjusts to the last row of the table, instead of assuming the rows are full and staying way beneath the content at the bottom, causing a gap(see image below). Any thoughts? Here is the gap, when its limited
[jQuery] JQuery Forms plugin, success callback fail
Hi all! I have this code: $("#loading") .ajaxStart(function() { $(this).show(); }) .ajaxComplete(function() { $(this).hide(); }); var options = { beforeSubmit: showRequest, success: showResponse, url: '/library/scripts/upload.php', clearForm: true, dataType: 'json' }; $('#ajax_form').submit(function() { $(this).ajaxSubmit(options); return false; }); function showRequest(formData, jqForm, options) { var fileToUploadValue = $('#upFileInput').val(); if (fileToUploadValue == "") { alert('Пожалуйста,
[jQuery] Error in IE 7 with Form Plugin
I've worked quite a bit with the Form Plugin. A couple times I have had somewhat strange problems with it not submitting any data in the ajax request. It came up again today and I've isolated the issue. - It only occurs in IE 7. - The problem seems to happen in the Form Plugin's formToArray() method. The 'els' var does not seem to return any elements. The result is that the form does not get serialized. I've validated the HTML that we're using on the form, and it passes fine. Any ideas? Thanks -
[jQuery] linkselect plugin: issue with setting value
I'm trying to externally update the value of the linkselect field using this._itemSelect.linkselect("val", newValue); and am getting the following exception on FF3: 'self is undefined' on line 37, since the 'self' lookup from $.data returned null. Digging in to things, it looks like $.data is getting initialized with $input[0], but at least in my browser, the retrieval is being done with $select. Changing line 178 to $.data($select[0], "linkselect", this); fixed the issue for me. Is this the proper
[jQuery] Youtube Playlist in jQuery
Hi peoples out there! I have been looking for a plugin witch can play youtube-videos from a list and appear a small text, when a song just got started. I imagine something like this: <script type="text/javascript"> $(document).ready(function(){ $('#YTsong').myYouTubePlaylist({ player: '#myYTplayer', // In my case this one has height="0" and width="0", because I want the music played in the background highlight: '#nowPlaying', // this should only appe highlightClear: true,
[jQuery] JQuery changes the CSS
I'm using JQuery to display and hide some form input fields, but some of the CSS from the fields that are hidden does not display correct, JQuery is changing my font.
[jQuery] JQuery IE7 Help
Here is a link to the problem I'm having. http://www.coastalpet.com/new_test_project/jquery.php http://www.coastalpet.com/new_test_project/jquery.php I've slowed it down so you can see it. When it slides up, it reaches the top and then displays the whole thing for a tenth of a second and then hides it again. It makes a jerky motion when sped up. I could really use some help on this. There is a separate issue that happens on the page this goes on. When I make surround "Help" with anchor tags instead
[jQuery] blockUI issue
I found it's not work in IE7 with flash, is it?
[jQuery] inproper function
I have found a script for a sliding scroll of thumbnail pictures. by itself it works fine but on my web site firefox says its not a proper function. What could cause this? jQuery(function($) { $("#carousel").html( $("#holder_images").html()).carousel3d({ control: 'continuous', radiusY: 0, speed: 1, radiusX: 250, fadeEffect: 1, centerX: $ ('#carousel').offset().left + $('#carousel').width()/2 }); }); My link for the page is: http://royalvillicus.com/photosite/photo.html I appreciate
[jQuery] jQuery IE PopUp Issue
Hello all, I'm running into a slight issue with my code in internet explorer. I'm wondering if anyone else has gone through something similar like this. I have a calendar on my website with a list of events. Each event is a link. When you click on the link I query the server and return some XML data which I use to populate a jQuery UI Popup box. It looks and works great in FF and Safari, but for some reason none of the dynamic data is showing up in IE. I checked the console in IE and it is returning
[jQuery] .contents() not meeting its contract?
According to the documentation, .contents() should "Find all the child nodes inside the matched elements (including text nodes)". However, in the example given there, when the jquery $("p").contents().not("[nodeType=1]").wrap("<b/>") is applied to the content Hello <a href="http://ejohn.org/">John</a>, how are you doing?</ p> only the text "John" is made bold---in other words, jquery is failing to select the text nodes containing "Hello" and ", how are you doing" Since I would very much like to be
[jQuery] How to get jQuery UI as discrete files
I'm looking to get a copy of the latest stable jquery UI *as discrete files* but it seems that all that is available now is the customizeable download form at http://jqueryui.com/download. Is there any way to do this? If there isn't, could the Powers That Be make it easy to get this? I'm trying to update a central server with the latest version of UI, but I don't want to have to force all our users to download 150kB+ just to get at one small element of UI functionality. -dan
[jQuery] Using jQuery to Parse XML in AIR
I'm trying to get Adobe(TM)(R) AIR to work with jQuery kinda friendly- like. I'm sending off an xml-rpc request as follows: this.packageRequest = function(method, secure, params, callback) { var msg = new XMLRPCMessage(method); msg.addParameter(params); urn = (secure) ? this.SecureUrn : this.Urn; urn += this.istockEndPoint; $.ajax({ url: urn, data:
[jQuery] Validate two form useing Validation Plugin
<div dir="ltr">Hello every one can some one give me a example of validating two form using Validation plugin thanks </div>
[jQuery] Event handling/propagation question
A question re: event handling/propagation: I have a surrounding <div> and I want any click within the <div> (including a click on any element within the div) to toggle the addition/removal of a class on the <div>. In this example, if the user clicks on one of the elements within the <div>, my toggle doesn't work--I'm assuming because the event.target is the element and not the <div>, so the add/ removeClass isn't performed on the parent <div>. html: -------- <!-- div is 200px x 200px --> <div class="clickable_element">
The menu jumps when I try to animate
In This link http://tradeera.com/demo/a.html the menu jumps when u hover over "apple" in Firefox 3.0.3. We want a look similar to http://www.colourlovers.com/ when we put our mouse on "Forums" then the menu moves up I can't understand the reason for the same? Thanks in advance CSJakharia
[jQuery] Howto extend toggle plugin with cookies so toggle states will be remembered?
Hi, I’m using a toggle control plugin[1] made by Darren Oakley. However I would like to extend it using the Cookie plugin so that toggle states will be remembered and since its been awhile that I've been using jQuery I could use some help with this. I’m trying to find a nice way to extend the script in such a way that it: 1) Detects if the Cookie plugin[2] is available 2) Allows you to set a cookiename, location and expiration date (incl logical defaults) as options 3) Using -if available- the set
[jQuery] Javascript in Included Files
I am working on a game, and I want the game portion to load pages and display them without reloading (dynamically) the problem I ALWAYS run into though, is that some of the files I am including have Javascript in them. If I use say: jQuery.post to include test.php where test.php has some simple JS like an alert, redirect, timer, etc, will that be executed? If not, how do I make it execute? Thanks for any help you can provide!
[jQuery] Resizable and Draggable button
Hello, I'm trying to apply the resizable and draggable behaviors to a standard HTML input button. I've found so far that the draggable behavior doesn't work outright. Is there something I need to do to make that work? I've also found that the resizable behavior will work as long as I don't apply any options. Once I apply options, I get an error that states that "options is null or not an object" on line 2214 of the jquery ui js file. Any suggestions?
[jQuery] $.ajax on succes is not being executed???
So why doesn't my success callback excutes? ---------------- $(document).ready(function(){ $('.error').hide(); $(".voteBtn").click(function() { var poll = $("input[@name='poll']:checked").val(); alert("send: "+poll); if (poll == 'undefined') { alert("don't post"); $("label#poll_error").show(); return false; } var question_id = $("input[@name='question_id']").val();; var t = $("input[@name='t']").val();
[jQuery] get reference to element for cookie storage
I'm sure there's a simple answer to this buried somewhere in the jquery library, or in the jquery object returned by the selector... but I''m just not seeing it.:( I need to store a reference in a cookie to an element that was clicked. I know how to detect which element was clicked, and how to write the cookie, so those are not the problem. My problem comes in that I'm not sure what the reference to that exact element is that I would store in a cookie to find it again on the next page load. The elements
[jQuery] [ANN] New plugin: simplyScroll
Hi Just released a plugin for some code I've been working on and off for the past few months. It's a simple content scroller that can accept images as well as more complex content and features an 'infinite' scroll mode as well as image data from Flickr. Plug-in: http://logicbox.net/jquery/simplyscroll/ Blog post: http://logicbox.net/blog/simplyscroll-jquery-plugin Would love feedback etc, also would be interested to know how I can detect Safari/Chrome (webkit), now that I can't use $.browser! Cheers
[jQuery] BlockUI and cursor:wait in IE7
I am having a problem with the wait cursor when using BlockUI. After unBlock is run I need to move the mouse before the mouse cursor changes to the "normal" cursor. There is no problem i FF. There the cursor is changed to the default as soon as the unBlock completes. Is this a known issue? I get the same behaviour when I try out the demos. Any ideas? Br Johan
[jQuery] Lower speed with 1.3.1 vs 1.2.6 with simple parsing
Hi!, When switching between 1.3.1 and 1.2.6 i get a serious drop in speed when collection a JSON object from static HTML content. 1.2.6 FF: 325ms Safari: 75ms IE7: 450ms 1.3.1 FF: 1205ms Safari: 415ms IE7: 1550 ms The javascript collects data into a JSON object with a few methods like this: // MAIN function getMenuItems(menu) { var menuItems = []; $(menu).find('.MenuItem').each(function(){ var item = false; if ($(this).hasClass('processMenuItem')) item = getProcessMenuItem($
[jQuery] ajax question
if we want to transfer some variable to another page by ajax, we use data: {a: 1, b: 2} and it will send like xxx.php?a=1&b=2 but if a is not a constant variable, such as var $a = x data: {$a: 1} I want it become xxx.php?x=1 var $a = y data: {$a: 1} I want it become xxx.php?y=1 how to do that?
jquery blur
hey everyone im having some trouble using blur() its basically working but the problem is the div that iam hiding has a submit button and when i want to go click it blur kicks in to fast when textarea class (".expanding') loses focus and the user has no way of clicking the button any delays available on to fix this?
Next Page