[jQuery] Ajax reacts very slow...?
Hi, I have this function build: $.ajax({ type: "POST", url: "/ajax_add_selected_product_to_session.php?global_check", success: function(msg){ /* add here what to do on success */ //alert(msg); howmanyfromsession = msg; if (howmanyfromsession == 1){ $(".amount").empty(); $(".amount").append(' (Derzeit ist ' + howmanyfromsession + ' Produkt vorgemerkt)'); }else
[jQuery] Using Google's Code Repo
I just started using google's code repo to call JQuery on my sites. It was recommended by a number of people, including John Resig (on TWiT); I'm having an issue though, and I'm wondering if it's just me. about one in a hundred times it just doesn't load at all; and on some configurations, it was as high as 1 in 10. not loading jQuery breaks a great deal of my javascript, and I'm going to have to go back to self-hosting the library. The specific configuration that it's not loading consistently is
[jQuery] ajax() alternative to load() function?
Hi, Is there a way to use the ajax() function and insert html into the DOM similar to the load() function? I need to be able to catch errors and use a timeout, but replicate what load() does. Thanks.
[jQuery] Waiting for 'each' to finish
Hi First, the code: http://pastebin.com/m142fb6a4 The $("#guide").css('height', 'auto'); runs when i run the function, and after it changes to auto, it runs the each. So, how can i be sure that it has run the each, before it runs something else in my function? // Martin
[jQuery] autocomplete and json
What is the status of using remote JSON with jquery.autocomplete? I saw a couple of threads in the group about it, but they are patchworky and hard to follow. I did not see anything about using JSON on the autocomplete jquery plugin site. Is using remote JSON supported or do I have to modify source to make it work? Here is what I am trying to do. I created a WS to return some user data for an autocomplete. Here is the JSON that is returned when I type 'j' into my autocomplete form field. {"linked-list":{"gov.nasa.hq.portal.calendar.to.PersonTO":
[jQuery] Help me!: $(this) ???
Hi everyone, I have an add button set up and when you click it it changes the selected input from 0 to 1. Where my problem is...is that it's doing this for every product. Here's an example: http://rickyscentralcitymall.com/ordering/tables.html I would add a new class to each product, but that's going to be a pain in the end because there are 100+ items on the menu. Here's the code I'm working with currently. $(document).ready(function(){ $("select").html("<option>0</option><option>1</option><option>2</
[jQuery] Multiple JSON objects - using results from one JSON object within a $.each() parse of another JSON object
Attempt to post again..... Hi All, I have a JSON object (called 'dataloggers') that I am retrieving via $.getJSON, and then creating a <table> dynamically with the results . I can parse it just fine with $.each(). The structure looks like this: { "dataloggers": { "TA_124A": { "values": { "one": "wake", "two": "up", "three": "time", "four": "to", "five": "die" } }, "TA_109C": { "values": { "one": "this", "two": "is", "three": "not", "four": "a", "five": "test" } } } } Here is the code I have for processing
[jQuery] DSRTE or Alternative ?
Was looking for a good jQuery-powered WYSIWYG / Rich-Text Editor and any that I tried seemed to all have limitations or bugs, especially when dealing with bullet points. Then found DSRTE, which was GREAT..... But having uploaded it to the target site, it turns out that it doesn't work because it needs PHP5 :-( Any way of getting it to work ? Or does anyone have an alternative that's good ? Thanks, Liam
[jQuery] multiple event helpers
hey, how do i combine to event helpers together? for example, i have an input box that will change the size of a div height. i want the event to happen on mouseout and on blur. do i have to write the code out twice, once with mouseout as the event and once with blur, or is there a way to stick the two of them together? thanks!
[jQuery] fastest way to move dom nodes?
Hi All, I have a need to move a few hundred dom nodes from one place in a page to another place. For example, to take all link tags inside a div and move them to another div, like from divA to divB below: <div id="divA"> <a href="#">Link</a> <a href="#">Link</a> <a href="#">Link</a> <a href="#">Link</a> <a href="#">Link</a> <a href="#">Link</a> </div> <div id="wrapper"> <div class="divB"> </div> </div> I'm using jquery 1.3.2 (and have not tried 1.2.6 yet). I've found that in FF, Safari and Opera
[jQuery] Trouble with $(this) in custom plugin
Hi all. I've started creating a small plugin for an internal project at work however I'm having a bit of trouble. This is my code, (function($){ $.fn.fsGallery = { next: function() { var obj = $(this); if($('ul li.active', obj).next().length){ /* stuff*/ } } } })(jQuery); My HTML is <div id="gallery"> <ul> <li><img ...li> </ul> </div> and the call is $('#gallery').fsGallery.next(); When the function, next(),
[jQuery] Ajax capability question...
Hi All, I am posting to this group because of the number of members here. My question is really about ajax and not specific to jQuery (however if there is a specific jQuery solution please let me know). My question is this: Is it possible to send an ajax request to make an http request and not receive a response until the page has completely finished processing? I am trying to setup a dashboard to kick off data refreshes for cached data in various Intranet applications. They can all be run via URL's...
[jQuery] circular jcarousel help needed.
greetings, i can get a circular jcarousel work from within an array as per the example using itemVisibleInCallback: {onBeforeAnimation: mycarousel_itemVisibleInCallback}, itemVisibleOutCallback: {onAfterAnimation: mycarousel_itemVisibleOutCallback} i can load dynamic content from an xml file from the itemLoadCallback as per the other example. however i cannot fire the itemLoadCallback when i use it in conjunction with the ones above. any ideas on this one will be appreciated! best, aRman
[jQuery] jquery.form fails to handle JSON responses with iframe submit
I am running into what I think is a bug in jquery.form (version 2.21): I have a little form with a single file input element it. What I want to do is do an AJAX-submit on it as soon as the user selects a file, and handle the JSON response to make some changes to the page. The markup is very simple: <form method="POST" enctype="multipart/form-data" accept-charset="UTF-8" id="uploadForm" action="/cms/addImage"> <fieldset class="concise"> <label for="image.upload" id="imageUpload">Image <input type="file"
[jQuery] New plugin: thumbnail hover popup
New plugin that shows a larger image when you hover over a thumbnail. Works great in greasemonkey on different sites too. http://codebit.wordpress.com/2009/02/27/jquery-thumbnail-popup-plugin-for-greasemonkey/
[jQuery] selectable + anchor not working
Hi need some help please. anchor in inside div is not working in firefox when div is selectable, but works fine in opera. <div class="column"> <a>test</a> <div> $('.column').selectable(); $('a').click(function(){ alert('test'); });
[jQuery] jCarousel: Show only one picture
Hi! I'm trying to configure the jCarousel to show only one picture with the dimensions: 800x533 pixels. But when I change the CSS the navigation flips through 4 images every time. How can I change it to just go to next picture? See the example here: http://sorgalla.com/projects/jcarousel/examples/static_simple.html Thanks in advance!
[jQuery] Remove doenst work on dynamically created li
Hi, I'm new, so to all of you HELLO Smile. Btw, im Dutch so maybe my English isnt that good. I love Jquery but i've got some starting problems. Live demo: http://pauldulong.nl/jquery/dgm.php# When I click on the X the tab disappears, perfect, as it should be. But when I create a new tab and try to remove that one it doesn't do anything. What im I doing wrong? Dimby - Paul du long
[jQuery] Beginner question: AJAX doesn't work
Hello everybody, I tried some jQuery AJAX tutorials and got started with jQuery. Moving further, I got stuck somewhere in my code and I don't know, why. What I wanna do is simple: give an email address to a php script and display the script's answer in my page without reloading. so this is what i
[jQuery] :not selector
when I do this: $("*:not(.oneClass,(.oneClass :nth-child(n)))") or $("*:not(.oneClass,.oneClass :nth-child(n))") it returns 0 elements, but $(".oneClass,(.oneClass :nth-child(n))") returns only about half of the elements i get with $("*") am i doing something wrong? is there any known bug's of the :not selector for this sort of things?
[jQuery] jQuery.each need extra check for object
If the object passed into jQuery.each is null or undefined you get an error at object.length on the first line. Maybe there should be a check if (object == null) return object;? What do we think?
[jQuery] Exploding nested <div>s....
Hey all. Exploding a simple <div> is easy enough, but can you explode nested <div>s? I have a div container and inside it I have content generated from an AJAX call. When I explode the outer div, I don't get the "pieces" and the screen freezes up for a second. I don't know if the div is too large or if it is because of the inside div. Also, I would assume the inside div (the one returned via AJAX) would have to be re-binded, is this correct? If so, how do you bind on an explode? I can't simply write
[jQuery] AJAX File Upload Options
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] jquery.media
Hi, If there's any kind of query string on the end of an flv file name the media plugin seems to refuse to overwrite the element with the embed code? Anyone know how to fix/work-round this?? cheers, James
[jQuery] Passing array to $.ajax()
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Сообщение</TITLE> <META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD> <BODY style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: Arial" background=""> <DIV><SPAN class=248034106-11022009>I need to pass array to $.ajax() function and get this array on the server side.</SPAN></DIV> <DIV><SPAN class=248034106-11022009>If doing this manually,
[jQuery] JQuery & prototype - a unique issue
hi, Firstly I hope this is the right place to post problems in relation to JQuery. I'm having an issue with using prototype and JQuery at the same time. And if your wondering then yes I have looked at countless posts describing the use of JQuery's noconflict option. The thing is is that I haven't yet come accross a single post describing my problem yet. In the head of the html page.... 1) If I include the prototype file FIRST and the JQuery file SECOND with the jQuery.noConflict() method call at
[jQuery] Superfish Menu Using Images
Hi I was wondering if it were possible to replace the text links used here http://users.tpg.com.au/j_birch/plugins/superfish/#examples With rollover graphics, for both the top level navigation and the submenu navigation, or can anyone lead me to examples of what I am trying to acheive where I need to use graphics for the naviagtion. Hope someone can help! Thanks
[jQuery] Using autocomplete widgets cascadingly
Hi; One often wants to cascade selections; where the options/values of the later boxes are dependent on earlier selections; like Country --> State/Region --> City, where the Region options aren't initialized before the country is selected, and then the city options aren't initialized before the Region is selected. If it's any help, only the city needs to be auto-complete. Is there any smart way to do this with the autocomplete widget? It must come up a lot, but I didn't see anything in the documentation.
[jQuery] How to get and send AutoComplete input field value
Hi! Kindly visit following link: http://vibersol.com/sitesdemo/shipping/admin/addquotation.php There you can see 'MAKE' and 'MODEL' columns. I have placed autocomplete on these columns. I want to make 'MODEL' column's autocomplete should be dependent on value of 'MAKE' column. I want 'TYPE' value should be dependent on 'MODEL' value. In simple 'MAKE' -> 'MODEL' -> 'TYPE' How it would be possible. NOTE: This should also be on all dynamically added rows in this table block. What and where Iam going
Can't add a validator to a dynamically created select list.
I'm using a jqGrd and trying to have items in the row validated when an item in the select list changes. I figured I'd post this up here for anyone else.... var subJList = "<select name='subJList' id='subJList' Enabled='true' onClick='$(\"#hoursBx\").valid()' >"; for (var i = 0; i < result.SubJobs.length; i++) { if (result.SubJobs[i].SubJobName == rowData.SubJob) subJList += "<option selected> " + result.SubJobs[i].SubJobName + "</option>";
[jQuery] autocomplete
Hi, i am using jquery autocomplete in 2 places in the same page: One in the header and one in the body of the page. Both work fine in Firefox and Chrome. But in IE the autocomplete in the header works fine and not the one in the body. Could someone please let me know what the problem could be and a possible solution? Thanks in Advance, Rohini
[jQuery] Compatibility problem?
Hi, I've got some code which is working fine in FF3, Opera 9 and IE8 (!). But it's not working in IE6/7. What could be a problem? $(document).ready(function() { $.ajax({ type: "POST", dataType: "text", processData: false, url: "./DFWebService.asmx/checkLoginTyp", data: "", success: function(data) { var ret = "#"; ret += $(data.replace(/</g, "<").replace(/>/ g, ">")).text(); $(ret).attr("checked", "checked"); $(".login").removeAttr("disabled"); } }); }); On the website there are 2 radiobuttons
[jQuery] BlockUI help needed - limit function to only one button
I've managed to get BlockUI working in conjunction with a page on my site that uploads files. However, the way I've done it works off the window.onbeforeunload event, so it is displayed on every single click or navigation on the page. How can I force it to display only with the upload button click? (Site address is http://www.ka72.com and I am a total jquery newbie, so speak slowly and be gentle with me!) Dylan.
[jQuery] JQuery Ajax XML
I have tried searching solution to my problem with JQuery AJAX with XML document. I am trying to access XML document from the Library of Congress. The URL is: http://z3950.loc.gov:7090/voyager?version=1.1&operation=searchRetrieve&startRecord=1&maximumRecords=1&recordSchema=marcxml&query=9780020419808" I typed the url in the browser address on Safari and Firefox. The XML document was received as expected. Through JQuery AJAX the XML document was never received. I wonder whether Library of Congress
[jQuery] FadeTo() on <tr>
Hello Guys, I've been using FadeTo() on <tr> elements and it doesn't appear to work in IE, this is a bug in IE? At the moment I'm having to use .children().fadeTo() on the <tr> elements I want to fade and on large data sets its not very performant. Thanks guys, Robert
[jQuery] Help for beginners. Inspecting objects.
Hello, I just begin to work with jQuery and have some questions. Where I can find a list of all properties for elements. E.g. I generate a list item: var list = document.createElement("li"); How can I fill in in the list? list.text doesn't work. I have to guess again and again for each element which properties it has. Is there an API where I can see all properties of the object? Thank you, Sonya
[jQuery] Ajax Game Isometric
I have an isometric game that i am developing, i want to position the playing field programmatically but at the moment my offsets are hard coded. I'm wondering if you could give me a few suggestions on what to do. http://code.google.com/p/ajaxmmo the js file i need tweaking is this http://code.google.com/p/ajaxmmo/source/browse/trunk/src/static/default.js thanks -- View this message in context: http://www.nabble.com/Ajax-Game-Isometric-tp22243239s27240p22243239.html Sent from the jQuery General Discussion
[jQuery] Superfish First Child Behaviour
Hi, Many thanks to Joel for a great plugin :) I have been working with the Superfish plugin which is great and I've also found some great help on this group to answer some issues I had run into. I am basically trying to create the same as what has been detailed at http://users.tpg.com.au/j_birch/ric/ with an added extra. Basically, my menu is structured into sections, each with a subsection. The first link in a subsection is the same as the link of the top level li for that section. On hover of the
[jQuery] validate range/min/max not working
I'm using 1.5.1 with jquery 1.3.2. It doesn't look like range, min, max are working. Check out: http://docs.jquery.com/Plugins/Validation/Methods/range#range Eric
[jQuery] Cannot install
I tried all three methods of Joomla install of Superfish to no avail. Each time I get: Error! Could not find an XML setup file in the package. Any ideas? KS
Next Page