[jQuery] how can I register an event handler as the first one to be executed for that event?
Hi, I'm looking for a way to register an event handler for the submit event of a form as the first one to be executed. nyroModal, a lightbox like plugin I'm using registered its event handler on this form already but I need my custom one to be executed before the one from nyromodal. Is there anyway I can do that?
[jQuery] Loading google maps dynamically
Hey guys! I just startet using jQuery a couple days ago - it totally rocks! Now, I want to give people who write in my blog the opportunity to add some google maps stuff. So I have a <div> - element which can be shown or hidden by pressing a button. I want google maps to load ONLY when the button is being clicked. I tried $.getscript(), but apparently he tries to redirect me. What am I doing wrong? Help would very much be appreciated! :) This is the code: http://pastebin.org/44444 What's wrong about
[jQuery] Using Dimensions Library
I apologize if this is a dupe- but would this be the way to use the dimensions library. I am having a tough time positioning elements and I can't seem to find too many online demos. $("#insertLink").click(function(){ $("#insertDiv").offset($(this).offset()); $("#insertDiv").toggle(); });
[jQuery] JS Loader w/ Plugin Support??
With JSLoader being around and the recent announcement by Google to load JS libraries is there any word on plugin support? I would definitely be interested in this as well as others I am sure. Just curious. Regards, Seth
[jQuery] Quick question about dimensions
I've recently been exploring the jquery library and I apologize if this is a silly question. But could someone post a simple example of using the dimension library to position a div directly below a link. I have tried something like this: $("#insertLink").click(function(){ $("#insertDiv").offset($(this).offset()); $("#insertDiv").toggle(); }); but it doesn't seem to work. Am I missing something?
[jQuery] About events and memory
Hi, I've been using jQuery for a couple of projects and I love it, it really quells the pain of traversing the HTML. However, I wonder if jQuery unbinds the events on page unload, to avoid memory leaks. I don't see it being mentioned anywhere on the main site. Thanks in advance.
[jQuery] Access multiple URLs with ajax
I am wondering if it is possible to use the jQuery .ajax() call to access multiple URLs right after another. When I am wanting to do, is have a list of items, each of which has a check box which is an option to delete the item. If the box is checked, and the submit button clicked, I would like ajax to access each URL that pertains to the checked item, and send the query string ? action=delete.
[jQuery] Back button functionality?
I've been trying to solve the back button problem with jQuery. I've run into a couple of .history libraries, but nothing that seems to work with jQuery 1.2.x. Any suggestions or approaches to fixing this would be welcome.
[jQuery] jQuery Auto Unescapes Data
Greetings, I have come across an issue which I have not been able to solve directly. The situation I have is that I have an xml file stored in a backend database which I would like to retrieve and display the contents -exactly- as it is stored in the database. The text comes back correctly from the request (i'll use the example: %lt;cookie), however jQuery gives it back to me unescaped (ex: <cookie ) (Try using %lt; on http://15daysofjquery.com/examples/jqueryEditInPlace/divEdit.php ... it exhibits
[jQuery] [Tooltip] - Hovering on <tr>
I'm using the tooltip plugin by Mr. Zaefferer and trying to get it to appear on the hover event of a table row. It works absolutely fine in Firefox, but of course IE won't display the tooltip. I know the plugin is setup correctly because when I move it to another element, it works fine in both browsers. Has anyone tried to get this working before or have some possible solutions?
[jQuery] Jcarousel and Thickbox
Hello and sorry for my poor English. I'm using the plugin Jcarousel (http://sorgalla.com/jcarousel/) for a Gallery with more than 100 images;so I've decided to load the items with Ajax, using the author's 'best pratice' example. Now I must use the plugin Thickbox to open the bigger sizes images; in the downloadable script there are some examples but I can't understand how they works;in fact, usually, I just add the thickbox class on a href tag;unfortunately with Jcarousel the class work in different
[jQuery] jqGrid save on leave
hi is there any way to save the edited data without when user leaves the edit mode by selecting other row? i can't save last row on every onSelectRow, because it'd be called even when user clicked Escape last time
[jQuery] onRighClick method?
Is there now, or are there any plans to have, an onRightClick method in jQuery? I found a ContextMenu plugin but it was last updated almost a year ago. Alternately, are there any other plugins out there that would offer ContextMenu support for right clicking?
[jQuery] Opera 9.5 freaking out with Cycle Plugin
I have a product gallery that uses the cycle plugin to go through some products. It has worked fine in all browsers but I tried the site today with Opera 9.5 and the images that are normally cycled through are being added to another div (that is created with jquery to bring in some stats with an ajax request). http://www2.yoursole.com/ -- with the product gallery http://www2.yoursole.com/js/product-gallery.js -- js for the for the gallery Any help / suggestions would be appreciated.
[jQuery] <h1>length required</h1> response when using .post
Has anyone else noticed this response? What's going on here? Below is the code that I use to report javascript errors to me. And, occasionally, I'll notice this response in Firebug for the post to the /javascript/emailError.cfm page. <script type="text/javascript"> onerror = function(msg,url,l) { var error=""; error+="Error: " + msg + "\n"; error+="URL: " + url + "\n"; error+="Line: " + l + "\n\n"; $.post("/javascript/emailError.cfm",{error
[jQuery] Adding the dialog function dynamically to each li element
I have a list like: <li class="editable"><h3>TITLE</h3></li> and I want to add the content "Open" after TITLE in the h3 tags that will open a dialog corresponding to this li, but do this to every other element just like it. $(".editable").each(function(){ //get each editable li element var title = $(this h3).val(); //get the content in the h3 tag $(this h3).append( "<span title='" + title + "' class='edit'>OPEN</ span>" ); //add the open content with a marker so the right dialog is opened
[jQuery] Basic newbie question - ''Object doesn't support this property or method"
Hi All, I'm just starting out trying to learn JQuery and I have a very Newbie question. I've tried to use the following code to get the link to change the span text red but get an 'Object doesn't support this property or method' error when I click the link: --code-- <script language="javascript"> $(document).ready(function() { $("a[rel='redlink']").bind('click', function() { $('span').addclass('red'); }); }); </script> <style type="text/css"> .red { color: red; } </style>
[jQuery] focus doesn't seem to be working in FF3
I have the following line in a login form. Focus doesn't seem to be working at all. It worked previously before upgrading to FF3. And it appears to be working in IE 7. I suppose it could be FF3, but just wanted to let you guys know, just in case. $("#UserEmailAddress").focus();
[jQuery] Which grid?
Lot of grids and so, I just thought of asking what is the preferred grid by the experts? I personally prefer the combination of http://makoomba.altervista.org/grid/ (for live loading), http://tablesorter.com/docs/ (for sorting), http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/ (drag drop ordering) Also seen http://reconstrukt.com/ingrid/ which doesn't work in FF 2 and IE 7. Any comments are appreciated. -- <?php echo 'Just another PHP saint'; ?> Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
Load script file dynamically
Hi there! This is my first post in this forum, and, since I just started with JQuery, definitely not my last Here's my current problem: When I try to load google maps dynamically with $.getscript() with a click on a button, the script tries to redirect me for some reason. What am I doing wrong? Please help, I've been stuck on this for hours Here comes the code: http://pastebin.org/44481 Cheers, lamy.
[jQuery] Sorting table which consists two sets of data
Hi, I have a table with two sets of data i.e. first 5 rows are active and the rest of the rows are inactive. When I am sorting I need to sort active records (5 records) and display as the first five records and sort the inactive records and start displaying from 6th record. Does JQuery help in this regard. Thanks in advance for the reply. Thanks, Srini
[jQuery] Add script dynamically?
Hey there! This might be a double post, but I can't find my recent entry regarding the same topic! So, once again :) When I try to load google maps dynamically with $.getscript() with a click on a button, the script tries to redirect me for some reason. What am I doing wrong? Please help, I've been stuck on this for hours : ( This is my code: http://pastebin.org/44444 Cheers guys :) lamy.
[jQuery] CYCLE PLUGIN -- Creating a Realtime Status/Progress Bar
I am using Mike Alsup's Cycle Plugin, but am running into a snag. Here is what I'm trying to accomplish: I have 4 <div> tags each with an image inside that is a link to that image: <div id="slides" class="pics"> <div> <a href="img/1.jpg"><img src="img/1.jpg" width="200" height="200" /></a> </div> <div> <a href="img/2.jpg"><img src="img/2.jpg" width="200" height="200" /></a> </div> <div> <a href="img/3.jpg"><img src="img/3.jpg" width="200" height="200" /></a> </div> <div> <a href="img/4.jpg"><img
[jQuery] File operation...
Hi Friends, I am very new to JQuery, infact Iam checking if we can use JQuery for our requirements. In regards to that I have couple of queries. 1. Can we do file operations using JQuery ? For instance if I make some modifications to DOM/HTML, can I save it back to the disk? 2. Can I use Jquery for search/replace text in non html/XML files(like JS files)? Any inputs on this will be very helpful. Thanks in advance
[jQuery] UI - Uploader
Hi, I found a discussion about this site and demos : http://uploader.webunity.nl/jQuery/demo3/ http://docs.jquery.com/UI/Uploader I really like it.. But i can't find any docs on the php file behind the scene.. Neither a link to download this plugin.. If this is a plugin.. ? or a part of jquery UI ? But i didn't see any mention of it, on the jquery UI site.. Anybody has informations about .. ? thanks
[jQuery] cluetip question: is it possible to have tabs inside a cluetip?
here's what i'm trying to achieve, a tooltip that looks like this <http://wa5190.fv15.de/transfer/tips/> and stays open until closed (no close button there atm). is this possible, and if so -- how? i tried to rebuild this into the page from where the tooltip is called but i couldn't get it to work at all. any help on how to proceed here is highly appreciated!
[jQuery] Autocomplete: Multi-dim JSON array and Custom format
Tried to post this question once before but didn't seem to work... I'm needing to get a multi-dim JSON array to work for my autocomplete, in an effort to mimic the Spotlight design. My JSON currently looks like this: [ {"key":"names", "values":[ bunch of values]}, {"key":"emails","values": [ bunch of email values ]} ] I am wanting to put into an HTML structure like this: <dl> <dt>Names</dt> <dd><a href="#">name</dd> <dd><a href="#">name</dd> <dt>Emails</dt> <dd><a href="#">email</dd> <dd><a href="#">email</dd>
[jQuery] [validate] addWrapper bug
Hi, I'm currently using the validation plugin. However I ran into some problems. When I use "div" (or even "ul") as a wrapper, if there is a validation error and I correct it, the whole form disappear, in fact the whole "body" element is marked as "display: none". I did a search on Google and found out that this has been briefly discussed at : http://bassistance.de/jquery-plugins/jquery-plugin-validation/#comment-50074 (read the comment of Michiel Thalen) , and Jorn also said that the fix will be
[jQuery] li:gt(...) keeps counting to the next list
Using two ul lists: <ul> <li>alpha</li> <li>beta</li> </ul> <ul> <li>gamma</li> <li>delta</li> </ul> In jQuery, I am trying to select all li's *except* the first one: $("ul li:gt(0)").hide(); and then on hover, reveal them: $("ul:first-child").hover( function() { $("#preferences ul li:gt(0)").show(); }, function() { $("#preferences ul li:gt(0)").hide(); } ); The problem is, that the selector "ul li:gt(0)", goes on and hides the
[jQuery] Please review work with JQuery
Hello All, I am using latest jQuery with UI lib as well for my new website <a href="http://www.anvay.net/beta">www.anvay.net/beta</a>. Please let me know how it is looking ? I have tried it on FF and Opera as well as IE 6. Some time it flickers. Do let me know your feedback. Do I adhering to the best practices ? NOTE: I have used custom JS code for PageLoader and EuDock for fisheye. Thanks & Regards, Samyak Anvay - node to node
[jQuery] Advice on ajax links
I just wanted to get some advice, and maybe some best practices from those who have done this. I am wanting to use ajax, to load content into a div. I am wanting the link to be more than just a line of text. It will be a box with an image, and multiple lines of text in it. I had wished I could just use a div, with p tags inside, but I know this won't work since I need to use an anchor tag with a href attribute. So, would the best way to do this be, just make the anchor the container, and add my content
[jQuery] Layout manager
During my search for a layout manager as the extjs, I came across with this http://www.seprol.com.br/test/layout/page2.htm, (dependent on mootools) i would like to know if is possible to convert to jquery, with all the options, since the layout currently in jqueryUI, still lacks some options. ( ou better, inprove the splitpane to do the same things that this do.) Thanks in advance, for the time.
[jQuery] How to clone jQuery object?
I want to clone the jQuery object $ to $D; but it actually seems to be overwriting. Can anyone please suggest any solution? Here is the code: $D = $.extend($); // same result for $D = $; $D.fn.extend({ click: function() { alert('overridden click'); return this; } }); $(document).ready(function(){ $('body').click(); // this also triggers the 'overridden click' -- which is what I want to avoid. $D('body').click(); }); As you see, $('body').click() triggers the 'overridden
[jQuery] Help fading images with jquery.
Hey guys, im brand new to jquery, but have used other javascript frameworks like mootools before. all im trying to do is come up with a good way to fade images in and out. for example <ul> <li>image 1.jpg</li> <li>image 2.jpg</li> <li>image 3.jpg</li> </ul> would fade the above images in and out between each other
[jQuery] scope of jquery functions?
Hello all, New to this list and working on my first site with jQuery. So far so good, for the most part. I've run into one problem that i can't put my mouse on. I have a simple slide-out 'cart'. After you add an item via an ajax post, the slide out shows the cart with the new items in it. My problem lies in the scope of the 'close' window. I'm using the following functions: $(document).ready(function() { /* Slide down mini cart when user clicks "Add to Cart" button */ $(".add-to-cart a").click(function
Sevaral slidingpanels problem
Hallo, I am trying to make my portfolio using some jQuery effects. It looks very good but i am having some troubles making it work. I am trying to make sevaral sliding panels(http://www.webdesignerwall.com/demo/jqu ... panel.html), but i can't figure it out. How do i run this function for each image/id. $(document).ready(function(){ $(".btn-slide").click(function(){ $("#info").slideToggle("slow"); $(this).toggleClass("active"); return false; }); }); HTML: <p class="slide"><a href="#" class="btn-slide"> </a></p>
[jQuery] $.("anc desc").text() returns all text, not descendant
Hi all, Feel free to refer me to a FAQ if I've missed one. Where 'a' is a jquery object representing a div element, I have a.("#" + a.attr('id') + " .personal").text() in my code. I would expect that this would return only the text of the descendant node with the class "personal," but I receive back the text of the '#id' node. Am I doing something incorrectly? Also, I've got that self-referential selector because I have been unable to find either 1) a jquery method that allows me to grab all
[jQuery] Cycle Plugin - Change Slides and Pause on Hover (existing Pager)
Is it possible to both use existing elements for the pager, and to change as well as pause on hover? Currently the slides change on hover as expected, but the slideshow continues to run. Here's my code: $('#front-image').cycle({ speed: 1, timeout: 2000, pager: '#homenav', pagerEvent: 'mouseover', pagerAnchorBuilder: function(idx, slide) { // return sel string for existing anchor return '#homenav li:eq(' + (idx) + ') a'; } }); }); Thanks in advance!
[jQuery] Cycle Plugin - Change Slides and Pause on Hover (existing Pager)
Is it possible to both change slides and pause the running slideshow onmouseover with existing markup used as a pager? I tried to add a "pause" action before running the slideshow, but that seems to break the whole thing. Here's my code: $('#front-image').cycle({ speed: 1, timeout: 2000, pager: '#homenav', pagerEvent: 'mouseover', pagerAnchorBuilder: function(idx, slide) { // return sel string for existing anchor return '#homenav li:eq(' + (idx) + ') a'; } }); });
[jQuery] $.("anc desc").text() returns all text, not descendant's text
Hi all, Feel free to refer me to a FAQ if I've missed one. Where 'a' is a jquery object representing a div element, I have a.("#" + a.attr('id') + " .personal").text() in my code. I would expect that this would return only the text of the descendant node with the class "personal," but I receive back the text of the '#id' node. Am I doing something incorrectly? Also, I've got that self-referential selector because I have been unable to find either 1) a jquery method that allows me to grab all
Next Page