[jQuery] disable buttons till .load finishes
I'm looking for a way to be able to disable a <button> generated with the dialog extension of jquery ui until the .load function finishes filling the dialog with an ajax request. When I put in display:none/ display:block for the parent element... after the .load... it still hasn't loaded while the buttons have appeared. No good! How can I keep folks from pushing these buttons until after the information loads? ~Andrew Gearhart
[jQuery] Navigate away after ajax call?
My code: ---in the script--- $('a').click(function() { $.get('/long_running_page'); return true; } ---on the page--- <a href="http://www.otherserver.com">click here</a. This appears to work. The long running page finishes (writes a file on the server) even though I've navigated to otherserver.com by the time it's done. Is this documented behavior or am I getting lucky? Thanks!
[jQuery] javascript analogue of php serialize()
Hello! I need javascript function analogue of php serialize(). So far, use serialize function from: http://javascript.ru/php/serialize , which not work with Internet Explorer, and opera, with Firefox there is no problem. I`m using this function to serialize an array data, or objects.
[jQuery] How to center text (sweet mother of mary can it be this hard?)
I really did not want to post here and ask for help on centering text. But I have created the simplest possible JQuery sample page, used Firebug, and still can't figure it out. Can anyone say what it would take to center text on this page: http://dev.hdgreetings.com/test.htm Any help would be so appreciated. regards, ltg
[jQuery] IE7 doesn't properly download images for jQuery cycle?
Could anyone please take a look at this: http://www.snyvo.com/site/item.html When I open this page with IE7, the window status bar states that not all of images of the cycle are downloaded. Even if I wait a little longer, the images don't seem to load properly - according to the status bar, that is. The message doesn't disappear until all images in the cycle have been clicked on. Everything seems to work fine in Firefox. Anyone got a clue?
[jQuery] New plugin: jquery.onfontresize.js
I've just released a new plugin that exposes an "onfontresize" event on the document object. It's based heavily on a technique created (AFAIK) by Hedger Wang which you can read about here: http://www.hedgerwow.com/360/dhtml/js-onfontresize.html I made some minor tweaks and packaged it up as a simple to use jquery plugin which you can find here: http://tomdeater.com/jquery/onfontresize/
[jQuery] strange problem with cluetip
I am using cluetip on a section of my left menu. Each ajax call returns a small amount of text and possibly a picture. Sometimes it's the wrong picture. Is it possible that if someone moves the mouse over several menu items rather quickly such that several ajax calls are made in quick succession that the text for the second call gets matched with the picture from the first call? Looking at my log file, the sequence of entries supports this thesis. If that is the case, how can I prevent it? The website
[jQuery] JQuery Cycle Previous / Next Question
I'm using JQuery's Cycle plugin to assemble a slide show and enable next / previous operations. This is all working fine, my question is this ... Is there a way to set the previous and next transition effect differently from the slide shows main transition effect? Currently my slide show slides the images in from the left ( scrollRight ), this works good for the normal function and the 'next' function ... however the 'previous' slide should scroll in from the right ( scrollLeft ) to give the effect
[jQuery] Noob question about accessing element contents
Hi: I'm a noob, so please be kind. I am using jquery to parse some xml. I'm looking for the best practice to access an elements text contents. Let's say my xml looks like this: <items> <item> Hello world! </item <item> Goodnight moon! </item> <items> I can get a wrapped set of the elements this way: $('items > item', xml) And I can get the text of element 1 this way: $('items > item:eq(1)', xml).text() But how do I get the contents once I am directly accessing the element instead of the jquery object?
[jQuery] $("#dsp1").load(url) not working in IE7?
I am testing jQuery. This simple code does not work in IE. This image link in the returned html segment is not shown in IE. Just a blank. This is the code: $("#dsp1").load("abc.html"); where abc.html has this contents: <a href="*"><img src="reddot.gif" border="0" alt="bbbb bbb" title=""><a> some text IE only shows "some text". Firefox shows everything correctly. (some text and an image that can be clicked on). Thanks. Bruce
[jQuery] I need
I need a component/widget that works as follows: 1. Collapsible/Expandable 2. When Expanded a tabbed list appears. 3. Upon mouse entry into the tab list the div content is revealed. 4. Upon mouse leave from the tab list the div content disappears. 5. Div content is a list of forms that open in a lightbox Any ideas? mootools has a mouse entry demo and jquery has all other pieces; but when I mash it up, I get no love. is their a event chain UI that I can custom style easily. I saw the theme roller
[jQuery] Passing a variable into the $('selector') function
Hi all, I have a problem that I can't crack. I have a function similar to this.. $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); The data that gets passed back to the function from some.php is a string which is the id of the div that I want to manipulate in the callback function e.g. "#myDiv". My question is how can I get that div from the callback function using the msg variable because $(msg); doesn't work and
[jQuery] is it possible define how much color 32bit or 24bit or 16bit?
jQuery can define browser $(.browser.msie) $(.browser.safari) $(.browser.mozilla) can define version of browser $(.browser.version) But maybe be define resolution and how much color is it?
[jQuery] Modifying Plugins
I'd like to modify just 1 function in a ui plugin to add an extra ability it doesn't have but I'd rather not put my code in the ui code file. I've done this in other frameworks and projects by just doing something similar to this: prototype.targetobjt.method = function() {}; I'm sure everyone gets this but I just wanted to make it clear that I do understand how the prototype system works. What I'm not understanding is how $.widget() works and how I can accomplish this in the jquery system.
How to reference jquery-1.2.6.min.js when zipped with gzip
I am about to use jQuery on an embedded webserver where every kb counts. So i would like to how to reference jquery.js if it is zipped up? Could I just reference the gzipped file as external javascript file? I gzipped the jquery-1.2.6.min.js myself and referenced it this way: <script src="lib/jquery/jquery-1.2.6.min.js.gz" type="text/javascript"></script> But then the browser tries to parse it as text file and gives an illegal character error. I tested with firefox and ie on winxp. Thanks in advance.
[jQuery] Proper Memory Cleanup?
Can someone point me to or give me some advice in what the best coding practices would be for cleaning up after myself while using jquery? Specifically I'm thinking about using the ajax functions like load(), if my loaded page has tabs or something like that in it and I remove that loaded section will I have a bunch of orphaned JS objects sitting around from the tabs? Am I making any sense?
[jQuery] How to pull a "#" URL value into a jquery variable?
Hey People, I am building a FAQ that sits in an accordion structure. Everything is closed when you first open the page, but we want the ability to link directly to a specific question, so if someone inputs "www.mydomain.com/faq#question35" into the address bar, jQuery can pull the value of "question35" into a variable and then I can reference it in the code and open the corresponding question. I'm sure this is possible, but I'm just a newb, so I need some help. Thanks! -Steve
What version of Jquery should I be using?
Hi I am new to Jquery and I am unsure what version of Jquery should I be using. I see 3 versions and I really don't know what the differences are to each one. jQuery 1.2.6 (16kb, Minified and Gzipped) - good for production enviroment jQuery 1.2.6 (97kb, Uncompressed) Great for testing, learning and development. jQuery 1.2.6 (30kb, Packed) For those that can't Gzip their JavaScript. So other then that little description I really don't understand what the difference is for each one. Like what are the
[jQuery] contradictory between jquery and pure javascript
Hi all, my site is jquery based but i used a javascript code in a separate file to create a marquee, my problem now is that they don't work together, if i called only the jquery, it works, and if i called only my own javascript file it works, but calling the both together, only the last one called works, do such a contradictory problems appear frequently, solution please.
[jQuery] Element's inner/children
I have the following HTML structure: <div id="new-msgs"> <div class="msg">...</div> <div class="msg">...</div> </div> I have the following code: $('#new-msgs') .appendTo('#prev-msgs') .wrap('<div id="p'+pCurrent+'"></div>'); I want everything inside #new-msgs to be appended to #prev-msgs, and not #new-msgs as well. Using a selector of "#new-msgs *" loses the hierarchical structure that I want to maintain (div.msg has children). Also using .html() on #new-msgs and then appending +wrapping
[jQuery] jQuery mouseover don't work(others do)
Ok, here is my problem i have these to code "Snippets". The one on the Bottom works as intended, the top one instead doesn't work. as you'll see, say are nearly the same, except for the id. I don't get the difference, why the one works and the other not .... Hope somebody can help:) PROBLEM CODE: //------------------------------------------------------- // the openSubs cell //------------------------------------------------------- var resultHeaderTableDashOpenSubs = resultHeaderTableRow.insertCell(-1);
[jQuery] Help with livequery logic
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> I am trying livequery to solve this problem. I have a youth mentoring site that has profiles. They want to filter the profiles. I have a div that I use to stuff the filtered data into (#FilteredProfiles). The filtered data has pagination links at the bottom that I do not have control over. I want to bind a function to those links that does a post and gets new data. The problem
[jQuery] How to display a Dialog Box (with confirmation buttons) when external link is clicked
jQuery Newbie question. I work for a state government and need to display a message letting the user know a link is to an external site. In the past I have obviously used a javascript alert() but would rather use something nicer which could hopefully allow the use of a background image and readable text. I have been playing around with the dialog piece of the jquery ui but find that it is beyond my skill level at this point. If you have some code (or can point me to some code) that would a. Display
[jQuery] [autocomplete] Show autocompletelist when image is clicked
Hi, I would like to emulate an editable selectbox. There is an inputbox that has autocomplete and next to it is an image. I would like to show the (complete) autocompletelist of the inputbox if you click on the image. Is this possible? I could not find a solution on http://docs.jquery.com/Plugins/Autocomplete#API_Documentation Here is a short testscript: <head> <link rel="stylesheet" type="text/css" href="jquery.autocomplete.css" /> <script type="text/javascript" src="jquery.js"></script> <script
[jQuery] Shadowbox 2.0rc1
If you're using the Shadowbox jQuery plugin, it has been updated. The new version features increased flexibility and stability for various media types. It also includes much better support for i18n and skinning. Just wanted to let you know in case you are using it.
[jQuery] unsubscribe me
Hi, How can i unsubscribe from this forum so i will not get more mails from this forum. I forgot my username and password. please help me thanks Rohit
[jQuery] How to pull a "#" URL value into a jquery variable?
Hey People, I am building a FAQ that sits in an accordion structure. Everything is closed when you first open the page, but we want the ability to link directly to a specific question, so if someone inputs "www.mydomain.com/faq#question35" into the address bar, jQuery can pull the value of "question35" into a variable and then I can reference it in the code and open the corresponding question. I'm sure this is possible, but I'm just a newb, so I need some help. Thanks! -Steve
[jQuery] How to pull a "#" URL value into a jquery variable?
Hey People, I am building a FAQ that sits in an accordion structure. Everything is closed when you first open the page, but we want the ability to link directly to a specific question, so if someone inputs "www.mydomain.com/faq#question35" into the address bar, jQuery can pull the value of "question35" into a variable and then I can reference it in the code and open the corresponding question. I'm sure this is possible, but I'm just a newb, so I need some help. Thanks! -Steve
[jQuery] [autocomplete] changing data when clicking on an entry
thanks for anybody that may help, I have in my DB several results that may have characters like ', ", <,
[jQuery] Moving mouse fast causes mouseout not to fire
Hello All - I have the problem where for an image rollover, moving the mouse very quickly can leave my roll over 'on' because the mouseout (mouseleave seems to do the same thing) doesn't always fire reliably. I wrote a solution to the problem but I don't like it. I've posted the example here: http://psd2cssonline.com/tutorials/nav/index.html The important code is this: var mouseX, mouseY; $('*').mousemove( function(e) { mouseX = e.pageX; mouseY = e.pageY; }); setInterval( function () { $('.defHide:visible').each(
[jQuery] Check if window exists before opening
<html> <body> Hello folks, I can't find the answer I need in the archives (Nabble), so my question is how do I check to see if a window exists before I open it? When a user of my application clicks on a help link, I want the help file to load into a new window. I'm doing that via... <tt> $("a.openW").click( function() { window.open(this.href); return false; }); </tt>But I want to first make sure that a window containing the help file isn't already open before
[jQuery] Replicating frame interface with jquery?
We're looking to replicate the traditional email client interface without using frames, much the same way that Yahoo Mail beta has done. Has anyone written a plugin or tutorial for this? If not, can anyone give me a rough idea of how the resizing part of it all works? Thanks
[jQuery] tutorial: how to convert from thickbox to jqModal + how to load external url in jqModal
I hope that my little blurb will be useful to some of you: in this article i explain how to use jqModal with anchors pointing to external url, or in "iframe" mode, to put it differently. I also describe how to convert an old thickbox implementation into a jqModal implementation without touching the html. http://www.pixeline.be/blog/2008/javascript-loading-external-urls-in-jqmodal-jquery-plugin/ Let me know if you have any comments, questions, ok ? -- Alexandre Plennevaux LAb[au]
[jQuery] jqModal dialog closes when clicked on
I have a form in a jqModal dialog. When it is opened, if I click on the dialog background or any of the form elements the modal window closes. I cannot seem to figure out what's going on. The page can be seen at http://www.roundscapes.com/clients. Once you arrive click the link labelled: Click here to apply for access to the full private tour A jqModal dialog pops up but when you click anywhere on it the window closes. Does anyone have any insights on this? JS code: var cfLoad = function(hash) {
[jQuery] Problem with .load
I have the following code: $(document).ready(function(){ $("#FilterSubmit").click(function(){ var $pagename="http://www.agreatyouthmentoringorganization.net/includes/publicProfiles"+$("#gender option:selected").val()+$("#location option:selected").val(); $("#FilteredProfiles").html('<img src="http://www.agreatyouthmentoringorganization.net/images/text-fetching data.gif" alt="Fetching data">'); $("#FilteredProfiles").load($pagename, {limit: 25}, function(data){ alert(data); $("#FilteredProfiles").html(data);
[jQuery] Insert lines in form from server side
I have a form(with jQuery ajaxForm Form Plugin) when user inserts a path to directory with several zip files. My server side ColdFusion routines search that directory, looping and extract all zip files to related client directory. After all display a message to user. What I'm looking for? After every zip file complete processing I wanna to display a message in submit page. The problem is: how to insert(asyncronously) lines from server side? submit form -> server side routine start in submit form
[jQuery] jqModal - How to close the modal box from an iframe
Hello, I'm just discovering the wonderful world of jQuery and jqModal, but I'm already stuck on a little problem for which I did not find the answer in this mailing : I have a jqModal <div> which contains an <iframe> with a <form> inside. The <iframe> allows me to show messages (error messages and success confirmation) back after the submission of the form. But I can't manage to close the modal dialog with a button or link inside the <iframe>. How do I do that ? If it's possible and rather simple,
[jQuery] Targeting an element with multiple classes
How do I target a specific class when elements may belong to multiple classes? For example: <p class="big red">blah blah blah <p class="big green">blah blah blah <p class="small green">blah blah blah How would I select the elements with the class of "green"? I know that 'p[class="big green"]' & 'p[class="small green"]' would work, but I cannot work out how I can just specify wherever there is a class of "green", and not have to include the other classes also. Thanks in advance.
[jQuery] Firefox/css/jquery..
Hi I just noticed that firefox dosen't support the z-index what can I do to get around this so many web browsers would be able to the same effect that z-index has. Can jquery do such a thing that would work on many web browsers??? I need to overlap an image over another image. I have picture that is supposed to be over an art image I made that resembles a table which I want the image to be on top of.
[jQuery] jCarousel intergration
Hi there, I'm trying to implement the jCarousel at: . My carousel has multiple <ul> containers. When a user presses a button the main <ul> container gets swapped with another one. Is there a way to clear the main <ul> container and reload the carousel? Something like this: var main_List = [ Pictures ] var tab1 = [Pictures] var tab2 = [picutres] <button onClick="main_List = tab2;">tab2 The main_List gets loaded correctly. jQuery('#mycarousel').jcarousel({ wrap: 'circular', itemVisibleInCallback: {onBeforeAnimation:
Next Page