JQuerySprint slider gallery bug
When using the slider demo, I noticed that when you click (instead of hold down the slider), it does not scroll to the appropriate item, but the scroller image does move. Also, should the images be changed as it is a straight copy (or looks like) from the Apple site? -Sam
domManip is not always respecting script execution order on IE7 (+proposed patch)
Hello, I just created a ticket for this issue. When you append several script element in one go, if those scripts refer to remote src's, IE7 will not respect the synchronous and ordered execution of the scripts. I added a proposed patch but please be tolerant, because I am not very familiar with jQuery's internals. <http://dev.jquery.com/ticket/2612>
Only last binded event can be really unbind ?
Hi jQuery team! I've been working of markItUp! and i found a strange behavior on unbind function. It seems that only last binded event can be really unbind forever. Code: <script src="jquery.pack.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $("#on").click(function() { $ ("#textarea").click(aClick).keydown(aKeyIsDown).keyup(aKeyIsUp).css("border", "1px solid red"); }); $("#off").click(function() { $("#textarea").unbind();
jQuery version dependancy in plugins
Hi, I know this subject has been discussed from the point of view that plugins depend on other plugins ( http://tinyurl.com/3tbvnv ), but what I'm suggesting is an intermediate step. The jQuery UI was upgraded to 1.5b2 and inadvertently it now depends on jQuery 1.2.4a. It took me some time to work out this was the cause of the problem. What are people's thoughts on including a dependancy on N version of jQuery (or greater than) to plugins? I've mocked together the code: http://codedumper.com/jquery-requires
Dimensions + $(document).ready() + Safari 3.1 == misery (Brandon?)
Hi guys, while building a plugin, I came upon a few nasty bugs in Safari 3.1. The elements which were used were the following: <style> #contentLayer { position: absolute; margin: auto; overflow: hidden; left: 0; top: 114px; bottom: 41px; width: 100%; text-align: center; } .content{ width: 888px; margin: auto; text-align: left; } </style> <div id="contentLayer"><div><div class="content"> <!-- content stuff --> </div></div></div> Now on $(document).ready
$(document).ready() ready seems to fail in IE 6 when embedding flash
I don't think this is related to the other discussions that have focused on $(document).ready(). Correct me if I am wrong. I have windows.js file that is loaded onto every page. I use it to change the behavior of external links on my site. The top of the file has a couple of global objects that are used to identify external links by URLs or domains. I use $(document).ready() to iterate over the links on the pages and set link targets and/or onclick events to call window openers depending on the global
Making the event object cross platform
When attaching an event, e.g. keydown, to an element using bind or keydown, the event object that gets passed in at trigger time is not cross browser. Notably, the timeStamp object does not have a value in IE 5/6, and is 0 in Opera 9.27. Is there a concensus on making the event object cross platform, or leaving it as is? The timeStamp feature is very convenient for certain purposes, and should be reliable. A possible fix would be to give it value e.timeStamp = e.timeStamp || Number(new Date()) before
closeable dialog
I suggest to have a closeable property of dialog, explicit to login puporse: +------------------ a diff from my changes... 51a52,54
extend deeper
Hi, I've just discovered that $.extend(true, a, b) will extend a & b "recursivly" this is a nice feature, but why not extend really in a recurse way but just with only 1 more level? In Jquery 1.2.3 source @ line 597: // Recurse if we're merging object values if ( deep && options[ name ] && typeof options[ name ] == "object" && target[ name ] && !options[ name ].nodeType ) target[ name ] = jQuery.extend( target[ name ], options[ name ] ); -> this extends "recursivly" on the next level only But
whole matching :contains
I can across a situation where I was selecting based on content, but :contains was returning anything with a partial match. I wrote this quick selector to exact matches. jQuery.extend(jQuery.expr[":"], { content: "(a.textContent||a.innerText||'') == m[3]" });<br clear="all"> -- <a href="http://morglog.alleycatracing.com">http://morglog.alleycatracing.com</a> Lets make up more accronyms! <a href="http://www.alleycatracing.com">http://www.alleycatracing.com</a> LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming
.not and .filter functions are the same
Hello, I think the .not function should be modified to return those elements that are NOT meeting the specified expression, because now it returns those that meet the expression, but the filter function does the same thing. I think we have more like a logical error here. If i write $ ('p').not('.red') then I expect it to return those elements that are not .red But If I write $('p').filter('.red') then I expect it to remove those elements that are .red Currently the 2 functions does the same thing.
$.fn.hover: use shortcut for adding/removing a class
Hi everyOne, Just my 2 coins about $.fn.hover function: As i often use this function to add & remove class (basically, due to ie lack of css2 support), I thought it could be usefull to add a shortcut version of the $.fn.hover function. My hacked version: $.fn.hover = function(over, out) { var class = typeof over == 'string' && over || over == undefined && 'hover'; return this.bind('mouseenter', class && function(){$(this).addClass(class);} || over ) .bind('mouseleave', class
Possible Bug with stopping default action in Safari 2.0.2
I've run into an issue in Safari 2.0.2 were I can not stop a link from going to its href using jquery events. I know that this is possible to do when assigning a function to the onclick and returning false, but with jquery my code fires and I return false and the user still goes to the link. http://www.cronochrome.com/jquery/click.html
possible bug. (this.each is not a function)
hi. please help me understand and solve the following conflict. this code: <html> <head> <title>title</title> <script type="text/javascript" src="http://www.livejournal.com/ js/??core.js,dom.js"></script> <script type="text/javascript" src="http://code.jquery.com/ jquery-1.2.3.js"></script> </head> <body> body </body> </html> fires up Error: this.each is not a function Source File: http://code.jquery.com/jquery-1.2.3.js Line: 1332 as i understand, an arbitrary script ( http://www.livejournal.com/js/??core.js,dom.js
Offset problem ?
Hey jQuery team I got a report of scrollTo working inaccurately when scrolling a tbody to different trs, I checked the demo for a while, and if I'm not wrong, I think Firefox (the only browser this demo was working on) added the scrollTop of the tbody, to its offsetTop, or something like that. The first scroll was ok, but further calls seemed to always add to the actual offset, even when scrolling to the same tr as before. The demo was just a table, the tbody had height defined and overflow:auto,
jsquery conflict on lightbox
i got implemented a lightbox on this site http://app6-clients.thedesignpeople.com/aic/roseandchang.com/stage/property-details.php?status=1&property_ID=6 also i implemented a jsquery drop down menu you can see if you go to other page like this http://app6-clients.thedesignpeople.com/aic/roseandchang.com/stage/contact.php?p=1.1.3.1 you can it by clicking any menu like LISTING , ABOUT or CONTACT the problem is when i use the lightbox on the this http://app6-clients.thedesignpeople.com/aic/roseandchang.com/stage/property-details.php?status=1&property_ID=1
Auto complete Text Box
Hi,, I have a TestBox(city TextBox ) . When I type a character "R" it should get the city name starting with R from data base and show them in the TextBox as a List so that the user can select one City . Can any one has got any example with struts and Jquery please share with me, Thanks in advance. Konda
IE Ajax Bug: "The data necessary to complete this operation is not yet available"
Using IE6, when a .load() is called and a timeout handler occurs before the response is received, an error occurs in IE in this line (jQuery 1.2.3) in the "complete" method of the jQuery.ajax call: self.each( callback, [res.responseText, status, res] ); At this point, the 'res' object exists and has a responseText attribute, but reading this attribute causes the exception: "The data necessary to complete this operation is not yet available" In IE, the typeof res.responseText will be "unknown" at
Flot Canvas and IE6
Hi ! I recently discovered the Flot Plugin, wich work very well in every browsers but IE, this page (http://palleas.com/~palleas/labo/Flot/) doesn't show me any diagramm (I also have a strange error msg), and I tried to use a behavior or a js hack, without success... Could anybody help me ? Thx a lot ! Palleas ps: I'm french, sorry for my english ;) -- View this message in context: http://www.nabble.com/Flot-Canvas-and-IE6-tp16594246s27240p16594246.html Sent from the jQuery Dev List mailing list
Remove script
I have added a js file in my html file. <script src="test.js" language="JavaScript"></script> I want to remove the script from my file using jQuery. I have tried using the following jQuery('script[src="test.js"]').remove(); But the script is not getting removed. Please suggest some way for removing the script using jQuery.
offset() somewhat slow
I've been working on some dynamic functionality that requires me to test the position and dimensions of an element on every mouse move event. I've found that offset() is somewhat slow, especially due to all the calls to curCSS. I did some research and found a much faster way to determine the offset - I tested in IE6, FF2, Safari2, and it works fine there - not sure about older browsers tho - maybe you guys can determine whether this has method has problems ... Number.prototype.NaN0=function(){return
greasemonkey xmlhttpRequest
[New to the list apologies if this is a stupid question] Could jQuery's ajax do a check for the presence of GreaseMonkey (GM_xmlhttpRequest) ? It is one of the most powerful features of GM as it allows cross- domain scripting. Thank you for jQuery - I love it. - Eamon
binding multiple custom name-spaced events
I am trying to bind multiple custom name-spaced events with one handler and it seems that only the final event gets added... This feels like a bug to me, but maybe there is some logical reason for it? $(window) .bind( "test.one test.two", function(ev){ console.log(ev.type+'.'+ev.handler.type); }) .trigger("test.one").trigger('test.two'); The same result happens if I try it this way... var fn = function(ev){ console.log(ev.type+'.'+ev.handler.type); } $(window) .bind( "test.one",fn).bind("test.two",fn)
Obj Image -> Attribute -> complete (return true or false)
Friends Good Afternoon, I searching on jquery and not found a function that I know when an image to complete. Thus used the DOM with the same attribute complete. Should we include in jquery a function of the type complete? Tnks and regards. (sorry my ingles not good i am Brazil).
memory leak using html() method
Hi everyone, I'm experiencing memory leak in my extranet application. I perform an ajax call every couple of seconds to retrieve an xml document which I then transform into an html table using xsl (client-side) and I put the result into a div. Otherwise I'm not doing anything fancy. I've included some sample code below. The memory leak occurs on the code line "$ ("#tableHere").html(transform);" in both Firefox 2.0.0.13 and IE 6.0.2900. I am using the latest version of jquery (1.2.3). I read Fabien
XUL and jQuery
Hi, i've tried to use $('...').html('foo') on an xul-element and see a problem here. The element does not show 'foo'. After a little of search i saw a problem with "this.empty().append( value );" in the html function of jquery. In my js file i
Binding LOAD event to a SCRIPT tag may not work
Hello, I'm trying to display a message when a SCRIPT tag is loaded to know when an external script has been loaded. I am trying to do it as follow: --------------- var script = $('<script><\/script>') .bind('load', function(e) { // attach onload event handler alert('Script loaded: ' + this.src); }) .attr('src', url); // a valid url of a javascript file: ie: http://jqueryjs.googlecode.com/files/jquery-1.2.3.js --------------- Then, I add my script to the HEAD tag: --------------- script.appendTo($('head'));
[Ticket #1806] interface sortable broken on IE (can drag an element only one time)
[Ticket #1806] Hi, I created a ticket for that, but do you have a patch to solve this annoying problem ? Many thanks, Sylvain
JQuery not starting up
Hey all, I've just started using jquery and somehow I can't get it to start up at all. I've downloaded the "starterkit" from more than one sites, changed file extensions, written and re-written the start up code but whichever browser I use, it doesn't work. IE says "Object not expected". I'm not a newbie at javascript, css or web design/development at all but I just don't see what's wrong here. Any help? Thanks!
show/hide events?
Hi, I'm creating some absolute positioned, free floating divs, potentially with lots of text inside which makes them span the entire width of a page. I want to avoid that so I need to force a width, but only if they are rendered wider than said width by default. Now, I started by using max-width which works great, except I also make them resizable which will not work without removing the max-width style. I can remove it at every resize drag event, but that's an extra effort on the client that could
weird jQuery tabs behavior on IE 7
Perhaps this is a css issue in IE 7 but I tried many different workarounds but I cannot resolve it. Here's the problem: this page looks fine in FF and IE 6 but not IE 7 http://regretless.com/work/AvivaDesign/layout.php?section=EContracting&page=ECTabs in IE 7 the first tab "distributions" show up in the upper left corner instead of its expected place. However it goes back to its correct location as soon as you click on another tab. But on page reload if you had distributions selected, the problem
jQuery and XUL
<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> can jquery be used with XUL and if not what would need to be developed to be able to? <div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform:
Disable anchor tag which is dynamically created
Hi All, Is there any way to bind events to dynamic html content. e.g I have a div tag and button <div id="outerdiv" style="z-index:1;"></div> <button id="btn">Click</button> when the page loads. On click of button a registered event gets fired creating a anchor tag <a> in the <div> tag $(document).ready(function(){ $("#btn").click(function () { $("#outerdiv").html('<a href="www.yahoo.com">click me</a>'); }); $("a").click(function(){ alert('in here'); return false; }); });
Firebug keep reporting an error...
Hi, We are using jQuery and love it. So first of all, thanks a lot to the community ! Nevertheless, I wanted to ask a question about an error Firebug keeps reporting: a is undefined e()jquery-1.2.3.pack... (line 11) e()jquery-1.2.3.pack... (line 11) e()jquery-1.2.3.pack... (line 11) e()jquery-1.2.3.pack... (line 11) [Break on this error] eval(function(p,a,c,k,e,r){e=function(c) {return(c<a?'':e(parseInt(c/a)))+((c=c%a... at jquery-1.2.3.pack... (line 11) Well, this does not prevent things to work,
ajax and event binding confusion
I'm getting moderately confused while trying to use ajax for rendering a page... In short, the docs says that: "html": Returns HTML as plain text; included script tags are evaluated when inserted in the DOM. [1] 1. Is there any method or trick that could be used that can be used so that the returned html data can be later used for, say, binding an event to a subsequent function ? Thus, any calls such as: $('#' + 'fooId').bind('click', function() { // handle the click event return false; }); would
JSONP timestamp
I've written a Picasa Webalbum integration script that uses the JSONP calls for collecting the necessary data from the Picasa API feeds. I had to adapt jQuery (v.1.2.3) to NOT include the timestamp (&_=12345678) to the request because this results in a "Invalid Query Param" from the API. I might make it a jQuery plugin, but the above has to change for that. Can this param be made optional in some way so that I can use the original jQuery.js (and even the jquery.pack.js) and other users don't need
New Feature?
Cheers jQueriers, I'm a new member here. Our company is thinking about standardizing on jQuery as our core JS platform and I've been doing some extensive analysis on the library to make sure it meets our needs. I have to say I'm really really impressed with the performance and ease of use - you guys have done really stellar work! One of our JS requirements is to encourage use of OO code as we create our dynamic portal elements. After using jQuery for a while I found that using bind to signal methods
Hey guys...
I was playing with some XML data returned by an API in FireFox 3. I haven't used jQuery too much in conjunction with namespaced XML or XHTML. In FF2 and all other tested browsers, given the following data, the date child is easily retrieved doing something like jQuery('date', item). Item is a JavaScript reference to the item node below and date is the name of the node that is highlighted below. In all previous browsers date matches dc:date where in FF3 it fails. Any ideas? <b><font size="1"><span
jQuery.extend: Make overridden functions available to "Subclass"
Hey guys I've added a little enhancement to jQuery on my local computer. Maybe you consider it as usefull and integrate it in next jQuery release? Anyways... it's just the ability to access overriden functions by jQuery.extend. I've updated the jQuery.extend function with following 3 lines of code: // Make overridden functions available to "Subclass" if ( typeof( target[ name ] ) == "function" ) target[ "__super_" + name ] = target[ name ]; And here the full function with the added code: jQuery.extend
extending with null values
Why does jQuery.extend() ignore null values?
Next Page