[jQuery] Small jQuery demo
Hi folks, while I hardly get the chance to use jQuery at work (or even update my blog to use jQuery), I implemented a small script for a page of a friend. I implemented it to work with only one picture, but in FF it already works with two of em. You can see it here: http://www.erdeanthomas.de/ Just wait some seconds, then the pictures on the right should change. You may even spot myself on some of the pictures :-) The interesting code: var img = $('#images'); var loadThumbs = function() { $('<div>').hide().appendTo('body').load('/wp-content/themes/3c-black-letterhead/bilder.php',
[jQuery] extending functions?
Hi all, Glaring newbie here, please be gentle. I'm working on some UI widgets built using jQuery. I started by extending the simple accordion code found on the plugins page (http://fmarcia.info/jquery/accordion.html), and so far I've got this: http://redmonk.net/files/tmp/js/accordion2.html I've added some things like being able to pass in callbacks (onToggle, onActive, onBackground, shouldBackground). Based on this code, I need to build a wizard model (must select in order - eventually based on
[jQuery] jQuery Plugin question
--
[jQuery] jQuery Plugin question
Is there a way to set a variable in an each that will be stored separately for each instance of the plugin (for example, if I am performing an action on all <input>s, is there a way to store the input type and reuse it later?). Maybe I'm not being clear, so here's the example: <span style="font-family: courier new,monospace;"> $(".slider").each(function() {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> rangeEl
[jQuery] Chainable if/else - hot or not?
> As an aside, or perhaps a branch, to this conversation...
[jQuery] position: fixed with
Bonjour: Has anybody successfully used 'position: fixed;' with Interface FX? http://interface.eyecon.ro/demos/ifxslide.html In particular, the 'slide toggle down' function. I'm using... html>body #footer { position:fixed; bottom:0; z-index:10; } // jquery layer html>body #toggled { position: fixed; bottom: 0; z-index: 9; background: #fff20d; width: 100%; height: 200px; } The #footer works as it should. #toggled loads fine as well. But when the function is enacted it ends up operating from the upper
[jQuery] New Plugin: bgiframe
I went ahead and added my bgiframe plugin into SVN here: http://svn.brandonaaron.net/svn/jquery_plugins/bgiframe.js A big thanks goes out to Mark Gibson for pointing me in the right direction with using the expression in the CSS! -- Brandon Aaron _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] hover, Firefox, uncaught exception
Hi all. There has been some recent posts on this mailing list about a bug in Firefox related to jQuery`s `hover` functionality. (Subjects "Uncaught exception (Autocomplete / jQuery 1.0.1)", "bug: hover over table cells containing form elements" and "Input text hover error".) Theoretically, this bug was resolved in Rev 375. Unfortunately, the solution doesn't work quite well :( Let me describe the situation: HTML: <div id="test"> <form ...> <input type="text" ... /> </form> </div> CSS: #test { background:
[jQuery] New JTicker version - multiple tickers on a single page
Works great for me in IE6/PC. This is an excellent plugin Jason. Great job. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com 615.370.1530 x737 --------------//---------> -----Original Message----- From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com]On Behalf Of Jason Levine Sent: Tuesday, October 03, 2006 2:34 PM To: jQuery Discussion Subject: [jQuery] New JTicker version - multiple tickers on a single page
[jQuery] New tableSorter demo, custom text extraction and more.
Hi, I put together a small demo of some new improved features in the upcoming 1.1 release. More info and live demo: http://motherrussia.polyester.se/pub/jquery/demos/extraction/ Best regards christian _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Grazr effect
Hi, Anyone knows how to do the effect in the Grazr app ? IE: http://grazr.com/gzpanel?font=Tahoma,sans-serif&fontsize=8pt&file=http://tagjag.com/all/javascript/opml The effect that on click loads content that comes from the right and looks like infinite. Anyone ? Thanks _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] NEWS: JQuery being used for Bookmarklets
Another mention of JQuery, this time in a bookmarklet. http://blogs.pathf.com/agileajax/2006/10/using_bookmarkl.html Rey... _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] Third stab
It seems I might be able to get this to work if I can get access to the element being slid inside the onSlide function of Interface's slider. It doesn't seem trivial. Any ideas? -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Single Value Attributes
Hey everyone - I stumbled across a point of optimization today, all of the following attributes (and probably more - let me know) can only have a single value. checked="checked" multiple="multiple" disabled="disabled" readonly="readonly" disabled="disabled" selected="selected" I'd like to add in methods like: .checked( true | false ) Which does this in the background (but for each attribute): $.fn.checked = function(b) { if ( b ) this.attr( "checked", "checked" ); else this.removeAttr( "checked"
[jQuery] Interface Sortables - Slow Performance in IE
I just update an application that uses the Sortables plug-in-in with the current code. It works, however the speed is much slower than the previous version that I was using from 6-8 weeks ago. The slow part happens immediately when you click on an item to drag begin dragging it. Any idea what changed that is causing the speed problem? My list is only 40 items long. The problem seems to be in idrop.js - highlight : function (elm) Thanks, Matt -- View this message in context: http://www.nabble.com/Interface-Sortables---Slow-Performance-in-IE-tf2382900.html#a6641308
[jQuery] Object cloning
Is there a way to clone an object so that I can hold onto the data but still rename the original variable (without assigning it to a new variable... I need to do this an arbitrary amount of times, so doing it anonymously would be best). <br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325 _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] extending functions?
Hi Franck (et al), You know, I had a whole post written as to how I needed to be able to extend the accordion object somehow, but in the process realized that it would be easier to explain what it is I'm trying to do. I've been asked to create a wizard version of the accordion, such that: 1) each section contains some group of form elements, and a next button. The form must validate before the next button can be clicked (and indeed, the next button is not even active until the form validates). Following
[jQuery] Bug?
Hi, I'm using JQuery to dynamically load a table when the user clicks a button. The code is this: <span style="font-family: courier new,monospace;"><table class="properties"></span><br style="font-family: courier new,monospace;"> <span style="font-family: courier new,monospace;"> <tr></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <th>Id</th></span><br style="font-family: courier new,monospace;"> <span style="font-family: courier new,monospace;">
[jQuery] jQuery stylesheets
Recently I've been playing with loading of HTML into pages dynamically, which lead to my script evaluation plugin, that I posted yesterday. Now I've hit another problem: I'd like to apply a common set of operations (ie. applying plugins) to all elements on a page, whether they were there from the start, or loaded dynamically. The first part is easily handled by $(document).ready(), but loaded content can only be processed by supplying a callback every time. The solution I've considered is to register
[jQuery] fadeIn/fadeOut in Firefox?
Hello everybody, I have a problem with fadeIn/fadeOut in Firefox 1.5/2.0. I tried to program a simple drop-down menu with jQuery und use the fadeIn animation to show the sub-menu. The sub-menu is not completely faded in, though. A small part is faded and the rest unfolds as in the Interface Unfold Effect. Yet, it does work on the same page on a simple p... Does somebody know this behaviour and can help? Here my test-page: [code] <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD
[jQuery] Full featured form validation library in jQuery?
Brian... Good points. I hesitated before sending my "request" because I don't want to be one of those people that just asks for things without giving back. Unfortunately I'm just not all that good at Javascript so any contribution I make in that arena will be nearly worthless. What I can offer back to the community is testing and proofing. I'm running IE/PC which seems to be the minority in this crowd. I'm a mature professional programmer (just use a different language is all) who does have valuable
[jQuery] jq corner.js
> Hi I am using the jq-corner.js written by Dave Methvin. > I was wondering how I could add a option for color > when calling the corner. > > $("#content").corner("round tl 10px color"); How would the color be used? _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] slashing
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>I 've found that addresses like <A href="http://jquery.com/dev/">http://jquery.com/dev/</A> don't work if the last slash is stripped off. I think they should be mapped to the slash version in the server configuration.</DIV> <DIV> </DIV> <DIV> </DIV></div> </body></html>_______________________________________________ jQuery mailing list
[jQuery] jQuery stylesheets
Recently I've been playing with loading of HTML into pages dynamically, which lead to my script evaluation plugin, that I posted yesterday. Now I've hit another problem: I'd like to apply a common set of operations (ie. applying plugins) to all elements on a page, whether they were there from the start, or loaded dynamically. The first part is easily handled by $(document).ready(), but loaded content can only be processed by supplying a callback every time. The solution I've considered is to register
[jQuery] jq corner.js
Hi I am using the jq-corner.js written by Dave Methvin. I was wondering how I could add a option for color when calling the corner. $("#content").corner("round tl 10px color"); Heres the script // // jq-corner.js - JQuery method for creating corner effects // // If this works, it was written by Dave Methvin (dave.methvin@gmail.com). // If its broken, please fix it and send me a working copy. // $.fn.corner = function(o) { function hex2(s) { var s = parseInt(s).toString(16); if
[jQuery] jQuery + Atlas (ASP.NET AJAX) or $ conflict
I rooted around in some Atlas stuff I found on the web and saw some uses, but not a definition, of their $() function. Do you know where it is defined?
[jQuery] NEWS: JQuery being used for Bookmarklets
>That's cool. How does this get around the "no opening content from
[jQuery] Full featured form validation library in jQuery?
One thing I'd also like to request is a complete form widgets plugin. At the moment there are a plethora of form widgets, each of them single plugins. That's not very useful for someone that wants something that gets included once and called multiple times. Ideally, someone would come out with a forms plugin that includes basic validation and error display along with form widgets. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. andy@icglink.com
[jQuery] Getting the element inside a jQuery function call
Say I have something like this: $("p").attr("rel", "someRel") But instead of setting it as static, I want to set it based upon the attributes of the <span style="font-style: italic;"> p</span>'s in question. For instance, say I want to set the rel to be the same as the class. Is there any way to get access to the DOM element being worked on while inside a function call? <span style="font-style: italic;"> this</span> doesn't seem to work...<br clear="all"> -- Yehuda Katz Web Developer | Wycats Designs
[jQuery] Parsing XML responses from AJAX calls
I was under the impression that the following code should work, but I'm having no luck at all. I have a PHP script that returns a simple XML string and I need to get the value of the one and only element. $.get('/path/to/script', function(xml) { // xml variable is '<?xml version="1.0"?><result>1</result>' // r variable is [] var r = $('result', xml); // t variable is "" var t = r.text(); }); I know that the "context" parameter of the $ function is supposed to be a DOM object or document, but I thought
[jQuery] Chainable if/else - hot or not?
Hi folks, the thread about showing and hiding DDs when clicking DTs gave me an idea for a chainable if/else construct. I have implemented and tested it and now I'd like to know if this is useful enough to be released as a plugin or even adding to the core. Basically I extended the current is(String expression) method. It now accepts one or two functions. If one is given, it will be executed for every element that fits the expression. If the second function is given, it will be executed for every
[jQuery] FastSerialize plugin posted in wiki
FYI, I posted the FastSerialize plugin in the jQuery wiki: http://jquery.com/docs/Plugins/FastSerialize/ Thought it would be more useful on the website until it was decided whether it might be included with the form plugin. Mike (Alsup), is it ultimately your call how this gets incorporated? I liked Brian's idea to use a boolean argument for semantic order, and it should be trivial to add that to each of the form plugin's methods... what do you think? m. _______________________________________________
[jQuery] Sortable Puzzle?
<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hello,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Is it possible to create a Sortable Puzzle with jQuery (probably using Interface) to create something like this: <FONT class="Apple-style-span" face="Helvetica"><A href="http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo">http://wiki.script.aculo.us/scriptaculous/page/print/SortableFloatsDemo</A></FONT></DIV><DIV><FONT
[jQuery] A few questions (bugs?)
Hello, I'm using jQuery since a few days, switched totally from prototyp.js to jQuery and there a now a few questions: 1) This is never working: $(window).unload(function() { $.get(url); }); I simply don't get it to work. How to add an unload-event for document/window? 2) I have a <div id="nr" class="example"></div> The class is at startup invisible (display: none). Now this happens: $('#nr').show('slow').load(url). The problem: Only the first line of the loaded content (url) is displayed, nothing
[jQuery] [PATCH] use datePicker without IDs
The datePicker plugin[1] won't work for multiple date inputs unless you add an id attribute to each input tag (though this restriction does not seem to be mentioned anywhere). I didn't want to have to generate ids for each date input on my page, so I patched datePicker to get rid of the id requirement. I don't see anywhere on the author's page to submit patches, so I've attached it here for anyone interested. -- Matt Good [1] http://kelvinluck.com/assets/jquery/datePicker/ _______________________________________________
[jQuery] NEWS: JQuery Digg Spy Updated
I saw this on Ajaxian and I'm not sure if its been posted here but this JQuery Digg Spy has been updated: http://leftlogic.com/info/articles/jquery_spy2 Rey.. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] jquery is not defined error
I continue to get "jQuery is not defined" on each page load. According to http://jquery.com/dev/bugs/bug/64/, this is coming from the interface plugins not being used with the latest version of jquery. I've made sure that I have the latest stable versions of both jquery & interface, yet this error persists. From what I can see, the callstack in Firebug doesn't give me much to go on. Is anyone else experiencing this? -g _______________________________________________ jQuery mailing list discuss@jquery.com
[jQuery] Single Value Attributes
--
[jQuery] Single Value Attributes
> > $.fn.checked = function(b) {
[jQuery] Rev: 259, where is now?
<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">thanks John! That's what I was after.<BR><BR></DIV> <DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: John Resig <jeresig@gmail.com><BR>To: jQuery Discussion. <discuss@jquery.com><BR>Sent:
Next Page