[jQuery] Effects Issue
I am working on an overlay that has a timer associated with it. when you mouseover it, it triggers the toggleOn method and when you hover out it triggers my timer depending on whether you have clicked the close button or not. I was accidently working on my local which had both 1.1.2 and 1.1.4. I was doing all the work on a page pointing to the 1.1.2 version, but our site is using 1.1.4 currently. When I made the change all of a sudden none of my fadIn(); and fadeOut(); effects are working here is
[jQuery] IE JSON eval problem
Hi, The following code works in FF but generates errors in IE6. I'm completely stumped - any feedback appreciated... ------------------------------------------------------------ <script type="text/javascript"> var menuitems = { "home" : "home.html" } function openPage(item) { // this is what I need to do, works in FF alert(menuitems.eval(item)[0]); // this works in IE and FF - returns 'home' // (without the quotes) alert(item); // this works in FF - returns 'home.html' (without quotes) // generates
[jQuery] Linking rows on a dynamically generated table
Hi All -- I'm a bit new to Jquery, but I've been using it for the past few days and have really come to take a shining to it. However, recently I've run into an issue when trying to build a table w/ different links specified on each row. Here's my code: for (var i = 0; i < surveys.length; i++) { var cells = new Array(4); var row = document.createElement ( 'tr' ); var sid = surveys[i].survey_id; for(var j = 0; j < cells.length; j++) cells[j] = document.createElement(
[jQuery] Migrating from prototype to jquery
I have the following code which will add error messages for ajax requests and a busy indicator at the bottom of the page. How would I migrate this to jquery? I've migrated from lightbox to thickbox and auto complete to auto complete, without any problem. I had one problem where the page would not reload in ie since the script tag was writing to the dom before the page load was completed. That was fixed by adding a defer='true' to the script tag. I still have the following questions: Question 1: Ajax.Responders.register({
[jQuery] Problem with Jorn's autocomplete plugin
I've tried deploying this but I'm having problems. http://jquery.bassistance.de/autocomplete/ The problem I have is that when I select an item from the autocomplete dropdown my input is reset with the value of that one only. So, if I start typing "Stockholm, Copenhagen, Hels" and then it offers me "Helsinki" in the dropdown-thing; when I then select the "Helsinki" alternative, everything else in the inbox box is replaced with just "Helsinki". Here's what I've got in terms of code: $("#id_free_tags").autocomplete('getFreeTagSuggestion',
[jQuery] Canceling an animation
I have an animation that runs after a delay: setTimeout(function(){$(".mbox").fadeIn('slow');},500); If I need to cancel it, how do I this? I would like to cancel it regardless of whether it is still in the initial setTimeout of 500ms, or has already started to fadeIn.
[jQuery] Ajax 'drop-down' menu using jQuery [amateur cry for help]
Hi, I really need this... I found an very interesting menu wixh is usng Ajax, but I thought that I could just find some plug in for that and that will be it, but NO... Here is a sample of that kind of menu
[jQuery] Star rating plugins
Hi all, Have a feeling a little later on I'm going to be doing a reviews system for a client of ours. Naturally I wish to use jQuery and if it's a five star system, use one of the star rating plugins. Which would people recommend, that work with jQuery 1.2.x? All suggestions appreciated! :) Regards, Michael Price
[jQuery] Help understanding bind and adding to the DOM.
Hello everyone,
[jQuery] popping up an image
Hi, I tried the lightbox and like it, but it has some problem with my page, so can't be used. I'm looking for something very simple: show a image in a modal window when user click a link, any easy way to do that? thanks. A.C.
[jQuery] How to pull details info into master page (php/mysql)
PHP/MYSQL I have links from my master page in the form of <a class="view-man" href="manufacturer_Detail.php?manID=<?php echo(rawurlencode($row_WADAmanufacturer['manID'])); ?>" title="View Manufacturer Details"> to my details page and I would like to pull the info into my master page rather than going to the details page. I have tried this variations of this code $(document).ready(function () { $(".view-man").click(function () { $("#show-detail").load("manufacturer_Detail.php?manID=<?php echo(rawurlencode($row_WADAmanufacturer['manID']));
[jQuery] passing this
Hello, i want to call a function $('#selection').parent.child() with the following code : jQuery.fn.extend({ parent: { child: function(o){ doSomethingWith(selectedElement) } } }); but i dont know how to pass the selected element through parent (#selection) to child function. regards.
[jQuery] Correct way to init functions? (jquery not always loading)
Here is some code here: <script> $(function(){ $('a.choicelist').bind( ////'click', 'click', function() { var targetElementSelectorString = $(this).attr('rel'); //alert(targetElementSelectorString) -- it returns the right code //$("#rightboxdiv:visible").slideUp("slow"); $("dd:visible").slideUp("slow"); $(targetElementSelectorString).parent().slideDown("fast");
[jQuery] doc type error when using corner plugin
Hoping someone who knows about doctypes can help me out here. I am using kid templates with turbogears, so my html file has the following as it's first line. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Using Jquery and the jquery calendar plugin have been no problem, and I am also using MochiKit without problems. However, when I add in the jquery corner plugin I get this error: syntax error jquery-corner.js (line 1) <!DOCTYPE
[jQuery] Autoselect specific checkboxes based on select dropdown
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=246235115-01112007>A coworker needed to be able to select a series of checkboxes based on the value of a select dropdown. Here's what I came up with...I'm wondering how it could be improved.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN
[jQuery] simple table row pager
I've been working on a simple pager function but it's incredibly lengthy and I can imagine that it should be possible to do this much, much more simpler and shorter. So I decided to post it up here and see if anyone could give me some pointers. Thanks. function pageMe(which, page, pager) { // get vars var those = "table."+which+" tbody tr"; var show = 10; var total = Math.ceil(those.length / show); var hideLs = page * show; // hide everything below this value var hideLs2 =
[jQuery] [NEWS] Site Using jQuery: TurboTax.com
<span style="font-family: trebuchet ms;">They just relaunched their site. David Foltz from TT got me interested in jQuery in the first place.</span><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;"> This new design uses is pretty heavily.</span><br style="font-family: trebuchet ms;"><br style="font-family: trebuchet ms;"><span style="font-family: trebuchet ms;">Dimensions, ThickBox, HoverIntent, Etc.</span><br style="font-family: trebuchet ms;"> <br style="font-family:
[jQuery] Submit event
Hi There, I could use some jquery help here. This probably something very simple that I'm missing. I started using jquery a few weeks ago so please bear with me. In a nut shell, when a user submits the form (form id="register"), I want it check to make sure they have selected a radio button (class="amount"). If they forgot, I want it turn the #billing id (<h2 id="billing>) red. I have server side validation working using PHP. This is more of a visual indicator. I'm using the validate.js plug-in and
[jQuery] Using Firefox's pageshow with jQuery
Firefox provides pageshow and pagehide events, to handle page being refereshed from cache: quite useful! http://developer.mozilla.org/en/docs/Using_Firefox_1.5_caching Unfortunately, as far as I can tell, jQuery simply won't bind to them! Anyone know of a way to bind to those events with jQuery? See also http://my.opera.com/hallvors/blog/2007/03/14/firefoxs-pageshow-and-pagehide-events-not-dom2-events-compatible which seems to note the problem.
[jQuery] manipulation on content results in text you can't trigger events with
I'm sure this was covered somewhere, but I can't find it. I'm struggling with some code and rather than try to explain it, first look at this code. It should be simple to follow, but when you run it - it doesn't work as intended. ------------------------------------------------------------------------------------------------------------------------------------------------------------------ <head> <title>Pop Test</title> <script type="text/javascript" src="jquery.js"></script> </head> <body> <script
[jQuery] Is it possible to alter internal CSS properties?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=521272009-01112007><FONT face=Verdana size=2>As we all know, we can do the following using jQuery:</FONT></SPAN></DIV> <DIV><SPAN class=521272009-01112007><FONT face=Verdana size=2></FONT></SPAN> </DIV> <DIV><SPAN class=521272009-01112007><FONT face=Verdana size=2>$('.someClass').css("background-color:
[jQuery] .mouseover performance
http://labs.cloudream.name/jquery/move.html executes slowly in every browser i tested,IE7/FF2/OP9/SA3... any error in my code?
[jQuery] Scrolling a div area without scrolling the page?
Hi, I don't know if jquery will be able to address this but I thought I would try anyway. Is there a way to scroll a div area (which has an overflow:auto) to an anchor point within the div without scrolling the page (i.e., the page should remain stationary)? In other words, is there a way to use jquery to animate the div when an anchor tag is clicked? I've coded a basic html example at http://matthewmoore.info/jquery/example.html. You'll see the page scroll when you click on a letter at the top of
[jQuery] Defining and using of JSON defaults/options
Hi. I know, strange topic description. But i didn't know how to describe it a better way. Example (works): var uToggle = { speed: 'fast' ... xxx: function(e) { $(e).parent().next().fadeIn(uToggle.speed); } }; Example (doesn't works): var uToggle = { animationType: 'fadeIn', speed: 'fast' ... xxx: function(e) { $(e).parent().next().uToggle.animationType()(uToggle.speed); } }; I guess its a simple syntax matter: How must i declare the animationType
[jQuery] Treeview and IE "object doesn't support this object or method"
I'm getting this error in IE, but not Firefox. It borks on this line: $("#pageNav").Treeview({speed: "fast", collapsed: true, openurl: true}); <script type="text/javascript" src="/jquery/plugins/ jquery.treeview.js"></script> <script type="text/javascript"> $(function(){ $("#pageNav").Treeview({speed: "fast", collapsed: true, openurl: true}); $("#pageNav").show(); }); }); </script> Any idea what causes this error?
[jQuery] Form function no firing
Hi There, I could use some jquery help here. Its probably something very simple that I'm missing. I started using jquery a few weeks ago so please bear with me. In a nut shell, when a user submits the form (form id="register"), I want it check to make sure they have selected a radio button (class="amount"). If they forgot, I want it turn the #billing id (<h2 id="billing>) red. I have server side validation working using PHP. This is more of a visual indicator. I'm using the validate.js plug-in and
[jQuery] having issues with getJSON
Hey all, I am trying to get my jqAlbumParser plugin updated to work with 1.2.1 and coming up short when communicating with Picasa. Here is the url for your view <a href="http://www.benjaminsterling.com/experiments/jqAlbumParser"> http://www.benjaminsterling.com/experiments/jqAlbumParser</a> When you click on Flickr you will get an alert "done", but when you click on picasa, nothing happens. If you have firebug, you can see that the script tags are created and when you expand the script tag you will
[jQuery] transparentCorners plugins
Hellow all I get from http://illandril.net/jQuery/transparentCorners/, and I try using it within Extjs ( www.extjs.com ) adapter jquery, but while include: <script type="text/javascript" src="adapter/jquery/ext-jquery- adapter.js"></script> <script type="text/javascript" src="componentes/js/ext/ext.js"></ script> The produce $("#teste1").transparentCorners(); don't work. Why that happen? Thank's
[jQuery] googlyx.com going too boom nice webiste
http://googlyx.com/ hi i get this website and i joined here its realy cool give a look http://googlyx.com/
[jQuery] PHP jsoner ver 0.9
Hi! I want to share with you a simple function that thakes an associative array returned from a mysql_fetch_assoc() and outputs a json object; usage: in php print "var response=".jsoner($ar); //where $ar is somethin like that :> array(0=>array("id"=>"3","title"=>"hello world"), 1=>array("id"=>"6","title"=>"ciao mondo")); the typical array returned by mysql_fetch_assoc(); //it will output: var response= {"0":{"id":"3","title":"hello world"},"1": {"id":"6","title":"ciao mondo"}; in jQuery or normal
[jQuery] Site using jQuery and Plugins: deals.hardkap.com
Hello, I am a beginner with Javascript frameworks. I used jQuery and some of the plugins to create a small deals website. Visit the site at http://deals.hardkap.com. I am not a good site designer. I am a programmer though. :) The look of my site should explain my poor site design. Thanks, Prit
[jQuery] My first plugin, criticisms please
I hope this is ok to do. I've just done my first plugin and I thought I'd ask for anyone's opinions. It takes the value of one input box and assigns it to any number of other input boxes after being run though a formatter function. In this example the formatter strips anything that isn't an alpha- numeric character or a full stop (period for the yanks!). One thing I'm not sure about is the way I apply the plugin. I'm doing it: ELEMENT_I_WISH_TO_COPY.syncValue(ELEMENTS_TO_CHANGE) whereas it feels
[jQuery] Find all links that go to .jpg images
I'm trying to use jQuery to add the thickbox functionality to every link which links to a jpg file. How can you do this? -- View this message in context: http://www.nabble.com/Find-all-links-that-go-to-.jpg-images-tf4728653s27240.html#a13520912 Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jQuery 1.2 benchmark
Has anyone seen this one? http://alexandre-mercier.vinnac.org/slickspeed/ jQuery does not perform that well there. Lafriks
[jQuery] slideViewer 1.1
the plugin now works with jquery 1.2 and the jquery.easing.1.2 plugin GC
[jQuery] Request for comments on code snippet.
i've just started using jQuery, and I'm having lots of fun. I have the following code snippet. What it does is looks for all instances of a <td>true</td> and <td>false</td> and replaces the content with an image of a tick and cross. The snippet is $("td").each(function(){ if (this.innerHTML == 'true') { this.innerHTML = '<img src="$base/images/true.png">'; } if (this.innerHTML == 'false') { this.innerHTML = '<img src="$base/images/false.png">';
[jQuery] Reminder: Last few hours to save 30% on jQuery in Action BETA
Hey guys,<div><br class="webkit-block-placeholder"></div><div>I'm really proud of how well jQuery in Action has been selling over the past few weeks, and how much feedback I've been getting from the community. If you haven't gotten a chance to purchase it, I just wanted to let you know that the 30% off coupon code expires tonight (not sure if it's EST or PST...). </div><div><br class="webkit-block-placeholder"></div><div>Get the book at: <span class="Apple-style-span" style="font-family: 'Lucida
[jQuery] cluetip integration on wordpress theme
Hi, I'm trying to use cluetip on a wordpress theme; by default wordpress displays a calendar widget and I would like to tooltip-ify it using jquery. I thought cluetip might help me but I can't get it to work. The page is http://www.gennarocarotenuto.it/index.php/ and as you can see it doesn't work. Actually I'm trying to use it with this code: $('#today a').cluetip({attribute: 'title', dropShadow: false}); I changed ' #today a ' many times, but it never worked. What I want to do is makeing a tooltip
[jQuery] setInterval, ajax call and LiveQuery : strange bug
Hi all I'm french PHP developer (part of the Spongestats project - <a href="http://spongestats.sourceforge.net">http://spongestats.sourceforge.net</a>) and a newbie user of jQuery. I recently used jQuery to implement an ajax-powered refresh system for my last visitors (as shown on <a href="http://fetardalyon.sytes.net/Spongestats/v3/">http://fetardalyon.sytes.net/Spongestats/v3/</a>). But, I encoutered the following bug : setInterval is used to call an other page, every X seconds, and retrieve new
[jQuery] Autocomplete - which one??
I find myself looking for an autocomplete plugin yet again. There are a handful of these on the jQuery plugins page, each with subtle variations, and differing best before dates (i.e. some haven't been touched in a while). I'm looking for suggestions on which is the "recommended" plugin, and is relatively easy to use. In particular, I'm looking for a plugin that will allow me to format my response text however I like, and control the output of the suggestion list - one, two, three lines, etc... So,
Next Page