[jQuery] Re: jquery license - what do my company have to do

2009-08-20 Thread Stephan Beal
On Aug 20, 3:51 pm, Antoine Blanchard wrote: > Do we need to write a line in our docu saying: "use jquery,..., which > is under MIT license"? The MIT license is explained very briefly and clearly at: http://en.wikipedia.org/wiki/MIT_License You don't need to do anything special except accept t

[jQuery] Re: jQuery internals and exception handling

2009-08-20 Thread Stephan Beal
On Aug 20, 9:17 pm, Stephan Beal wrote: > that apply() will handle that special case. Also be aware that apply > takes a list of args, like foo.apply(this,arg1,arg2,arg3), whereas call > () takes the args as a single array: foo.call(this,[arg1,arg2,arg3]). Sorry, that's exa

[jQuery] Re: jQuery internals and exception handling

2009-08-20 Thread Stephan Beal
On Aug 19, 11:04 pm, ak732 wrote: >         ofn.apply(this, arguments); Be aware that the "arguments" object is-not-a Array (it's an object with a length property), and i don't think there's a guaranty that that apply() will handle that special case. Also be aware that apply takes a list of args

[jQuery] Re: I really hope this isn't a dumb syntax error

2009-08-17 Thread Stephan Beal
On Aug 15, 11:38 pm, n4rc1ssus <5n4rc1s...@gmail.com> wrote: > Webpage error details > > Message: Object doesn't support this property or method Man, oh, man, MSIE is useless. i STRONGLY recommend trying this in Firefox with Firebug enabled, because it will show you exactly what property is the p

[jQuery] Re: Could you give some advise on studying JQuery Code Source.

2009-08-17 Thread Stephan Beal
On Aug 17, 5:55 am, Jackwanzai wrote: > Hi all, > > I have been using JQuery for some time, finding it very interesting > and elegant. > > I want to study the code source. But found I was confused by many > code. To really understand what jQuery is and how it works, one must also understand: A)

[jQuery] Re: [attribute=value]

2009-08-15 Thread Stephan Beal
On Aug 15, 4:19 pm, Geir wrote: > This is fromhttp://docs.jquery.com/Selectors/attributeEquals#attributevalue: > >      Variables can be used using the following syntax: [name='" +MyVar > + "'] > << > > Is it right? > I can't seem to get it work properly.. Does MyVar contain any quotes or other

[jQuery] Re: Good Ajax Approach For Name List

2009-08-15 Thread Stephan Beal
On Aug 15, 5:42 pm, finneycanhelp wrote: > Some options are available here to meet these requirements. > > - For showing the list and hiding Add Names when list size = Count, > should one: > Store the Sample List into something globally accessible in the page > OR request the list each time somet

[jQuery] announce: jQuery.html and jQuery.createBogoMenu()

2009-08-14 Thread Stephan Beal
Hello, fellow scripters! Just uploaded: http://wanderinghorse.net/computing/javascript/jquery/html/ jQuery.html contains factory functions for generating DOM elements. Its intention is to help clean up script code by allowing us (well, me) to remove all inlined HTML from my script code (i HATE

[jQuery] Re: plugin problem with jQuery 1.3.2

2009-08-14 Thread Stephan Beal
On Aug 6, 9:22 am, "tom.nov...@googlemail.com" wrote: > I have still to support IE6 and developping applications means min-/ > max-width is often required. > Therefore I used actually the jQMinMax plugin to make this work in > IE6. Unfortunately this plugin > is not working anymore with jQuery >

[jQuery] Re: JSON how to transform an object into an array?

2009-08-12 Thread Stephan Beal
On Aug 12, 8:22 pm, "Michael Geary" wrote: > > on the server side, i personally recommend using the json2.js > > API (i.e. JSON.parse() and JSON.stringify()) over > > $.getJSON(). getJSON uses an HTTP GET, which is very rude > > vis-a-vis Apache logs (because all your JSON gets logged > > there i

[jQuery] Re: Old cookie data sent in AJAX request?

2009-08-12 Thread Stephan Beal
On Aug 12, 5:41 pm, "Michael Price" wrote: > If, however, I submit an AJAX post request to add a product to the shopping > cart on this site, it doesn't work. Investigating the AJAX behind this shows > that two copies of every cookie named above is being sent - the first copies > have older and n

[jQuery] Re: JSON how to transform an object into an array?

2009-08-12 Thread Stephan Beal
On Aug 12, 11:48 am, Mark wrote: > $event = json_encode($super_array); How about simply: $event = '['.$event.']'; on the server side, i personally recommend using the json2.js API (i.e. JSON.parse() and JSON.stringify()) over $.getJSON(). getJSON uses an HTTP GET, which is very rude vis-a-vis

[jQuery] Re: $ajax() question

2009-08-12 Thread Stephan Beal
On Aug 12, 12:03 am, yi wrote: > OK I will try "object of key/value pairs". > You mean i should use "data:{Arg:args2} ". is it right? Right :)

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Stephan Beal
On Aug 11, 6:14 am, Cam Spiers wrote: > I also recommend using json2.js for anything more then just a basic > key-value json string. Another nice feature of json2.js is that you can use it to deeply clone objects: var orig = {}; var clone = JSON.parse(JSON.stringify(orig)); i've found tha

[jQuery] Re: AJAX and JSON

2009-08-11 Thread Stephan Beal
On Aug 11, 5:13 am, MorningZ wrote: > I'd also recommend against use of $.getJSON for a totally different > reason: > > There is no option to "catch" errors. You can: you have to set a global ajax error handler to catch it, though. Not pretty, but it's suitable for many simple cases (where a

[jQuery] Re: $ajax() question

2009-08-11 Thread Stephan Beal
On Aug 11, 11:53 am, Jules wrote: > After re-reading the original post, it seems json is not required > > just use > data:"Args="+args2 Don't do that. If args2 contains any invalid characters (i.e. a space) then this will fail, possibly in mysterious ways. Always send the data as an object of ke

[jQuery] Re: attr doesn't work in IE6 and Chromium

2009-08-11 Thread Stephan Beal
On Aug 11, 5:35 pm, Julijan Andjelic wrote: >

[jQuery] Code: a generic jQuery+plugin loader/packer

2009-08-11 Thread Stephan Beal
Hi, all! i threw the following together, have gotten good use out of it, and thought someone else out there might find it useful. It's used like this: As one can surmise, this script emits the JS code for jQuery and all requested plugins. If passed no 'version' parameter then it only returns t

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Stephan Beal
On Aug 11, 12:26 am, "Michael Geary" wrote: > Just use $.getJSON() or $.ajax() with the 'json' or 'jsonp' dataType as > needed. Speaking of: i recommend AGAINST using getJSON() because it muddles up my Apache logs horribly (the JSON gets encoded in the request, which gets logged as urlencoded ga

[jQuery] Re: Using ScrollTo, IE displays hidden info before it hides it — Any help/ideas?

2009-08-10 Thread Stephan Beal
On Aug 10, 6:26 pm, jen wrote: > Do you have any idea how to have the hidden video viewers hidden upon > page load in IE?  It's performing on Mac Safari & FF, and Windows FF, > but in Windows IE it's a lot slower to hide the info. You could try setting an explicit visibility on the element: ...

[jQuery] Re: AJAX and JSON

2009-08-10 Thread Stephan Beal
On Aug 10, 9:58 pm, Joey Derrico wrote: > I am a novice at AJAX and JSON (Ok, I am a novice at JavaScript.), and I am > brand new to jQuery. I wanted to use JSON in a project I am working on and I > read various tutorials on using JSON with jQuery however none of them > answered some of my questi

[jQuery] Re: Full jQuery website

2009-08-10 Thread Stephan Beal
On Aug 10, 7:19 pm, Cyril wrote: > Is there any project about a website using pure jQuery for rendering > the pages ? It's funny you mention that, because i'm working on exactly that right now: an application framework for writing apps in "pure JS", using HTML only to get the JS and CSS loaded,

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread Stephan Beal
On Aug 9, 7:38 pm, "andrew.croce" wrote: > What I was trying to do with  var current_section = $(this).attr > ("name"); was to create a variable that simply contained the "name" of > the particular subsection, which I could then attach to "_tab" to ... > idea, could that be screwing up the whole

[jQuery] Re: New to jquery, multiple .js files not running

2009-08-09 Thread Stephan Beal
On Aug 8, 7:25 pm, "andrew.croce" wrote: >                 var current_section = $(this).attr("name"); ... >                 $("#"+current_section+"_tab").addClass("current_tab"); This is wrong. The '#' searches by ID, not by name. Try (untested): > var current_section = $(this)

[jQuery] Re: Navigation and sub navigation plugin

2009-08-09 Thread Stephan Beal
On Aug 9, 5:59 am, bharani kumar wrote: > Assume if i have around 20 naviation means the i have to write > jquery navigation and sub navigation snippet all pages ? Every menu has to be populated, and if you've got 20 menus then you've got to populate 20 menus. However, if you have so many of the

[jQuery] Re: Selecting element where the href contains string

2009-08-09 Thread Stephan Beal
On Aug 7, 9:36 pm, gray8110 wrote: > $('li has(a[href$=".xls"])').addClass('excel'); Try: $("li:has(...)") Note the ":" before "has" http://docs.jquery.com/Selectors/has#selector :)

[jQuery] demo: hooking jQuery.ajax() in to Firebug Lite

2009-08-08 Thread Stephan Beal
Hi, all! A few days ago i came across: http://getfirebug.com/lite.html which is every bit as cool as jQuery itself (which places it in the top 5 bits of JS code on the planet). On their site they have a link which embeds firebug lite into the current web page. i had to hack on it a bit to make

[jQuery] jQuery.ajax(): reasons to prefer GET over POST?

2009-08-08 Thread Stephan Beal
Hi, all! i'm working on a JSON-based request/response dispatcher system and i've got a small question about jQuery.ajax(): Are there good reasons to prefer GET over POST, or vice versa? In case it makes a difference, my target uses are somewhere in the single- digit KB range (and normally very s

[jQuery] Slightly OT: another way to gzip javscript code

2007-10-01 Thread Stephan Beal
This just popped up on digg, and i thought it might interest some of you: http://code.trymbill.is/index.php/2007/10/01/compress-javascript-gzip/ It presents a different way of compressing javascript code.

[jQuery] Re: AJAX Grouping feature...

2007-09-24 Thread Stephan Beal
On Sep 24, 2:49 pm, John Farrar <[EMAIL PROTECTED]> wrote: > I would like to see a function (of course it might be there alleady and > I don't know it) like this added to jQuery. > > http://docs.mootools.net/Plugins/Group.js Hi, John! When posting to the list, please always start a NEW mail, and

[jQuery] Re: New Plugin: Picklists

2007-09-24 Thread Stephan Beal
On Sep 24, 4:12 pm, "george.gsgd" <[EMAIL PROTECTED]> wrote: > Can anyone help me come up with a better name for this? I struggled to > come up with 'Picklists', and I'm not sure it's particularly > descriptive or obvious... a) Linked Selection? b) Chained Selection? c) ... err... Natural Selecti

[jQuery] Re: OT: Combining JS files for production releases

2007-09-20 Thread Stephan Beal
On Sep 20, 5:23 pm, "Brook Davies" <[EMAIL PROTECTED]> wrote: > How do you keep your source files organized and the process of combining and > packing them to release any changes or bug fixes orderly? What i do is use a PHP file as an intermediary so that i can use gzip compression on them: js.p

[jQuery] Re: OT: PHP to read jQuery API XML

2007-09-19 Thread Stephan Beal
On Sep 19, 8:52 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > What I have so far > is:http://www.commadot.com/jquery/experiments/api/xmlReader.txt(code) > http://www.commadot.com/jquery/experiments/api/xmlReader.php(results) > > I will have to make more nested foreach loops to get grandchildren a

[jQuery] Re: PERFORMANCE TIP: removeClass()

2007-09-19 Thread Stephan Beal
On Sep 19, 6:55 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote: > I had 15 classes I had to remove and Firefox was a champ at chained > removeClass calls, IE was taking 760ms! If i'm not mistaken, IE takes so long in that case because it has to email the results of each function call to Microsoft

[jQuery] Re: Wild cards in id names, class names and element names

2007-09-19 Thread Stephan Beal
On Sep 19, 4:34 am, Pluthos <[EMAIL PROTECTED]> wrote: > I would like to write something like > $(/(id.*name)/) to be able to capture id_A_name, id_B_name and > id_C_name, or some other convenient form of using *, ^ and $. > > Would regular expressions work as arguments to $() ? Is there any way >

[jQuery] Re: jQuery plugins repo is a major traffic generator

2007-09-18 Thread Stephan Beal
On Sep 19, 12:28 am, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > plug>http://benjaminsterling.com/2007/09/13/jquery-jqalbumparser-plugin-pa... plug> Shouldn't that be ;)?

[jQuery] jQuery plugins repo is a major traffic generator

2007-09-18 Thread Stephan Beal
Hi, all! The past couple of days i've been looking through some web logs and found some really unexpected things... a) Though jQuery-related stuff is only a small part of my website, the vast majority of the recent traffic targets my jQuery plugins pages. (This is not to imply that my plugins ar

[jQuery] Re: select items with a class beginning with a given string?

2007-09-17 Thread Stephan Beal
On Sep 17, 2:34 pm, jazzle <[EMAIL PROTECTED]> wrote: > How do I select items with a class beginning with a given string? This might (indirectly) do what you're trying to do: http://docs.jquery.com/Selectors/attributeContains#attributevalue but that searches IN strings (not anchored to the begi

[jQuery] Re: idea to track plugin updates: myJquery.com

2007-09-17 Thread Stephan Beal
On Sep 17, 11:27 am, David Duymelinck <[EMAIL PROTECTED]> wrote: > I understand people want to use the latest version of jQuery and > plugins for all of their projects but i don't think it's possible. agreed 100%. > As far as jQuery is concerned i would rather see a table of methods and > sel

[jQuery] jQuery UI demos: minor bug in Tabs demo?

2007-09-17 Thread Stephan Beal
Hiya! http://ui.jquery.com/ i'm looking through the Tabs demo (nice stuff) and i noticed that the "Ajax tabs" demo appears to have a problem. When i click on any tab, i see a brief "loading..." text, then no content. Is this as designed? If so, i would recommend putting some dummy content in the

[jQuery] Re: Thanks for bringing back eq() in 1.2.1

2007-09-17 Thread Stephan Beal
On Sep 17, 12:46 pm, David Duymelinck <[EMAIL PROTECTED]> wrote: > As for your example couldn't you do something like > > var c = a+b; $("...:lt(c)"); > > Using a method you would have to do that so you save some bytes. Absolutely, but it's still inelegant, IMO. i find $("...").lt(a+b) to be cle

[jQuery] Re: Thanks for bringing back eq() in 1.2.1

2007-09-17 Thread Stephan Beal
On Sep 17, 10:23 am, David Duymelinck <[EMAIL PROTECTED]> wrote: > But why do you want to use eq/lt/gt as methods if you have them as > selectors? Can you give an example where a method can do more than a > selector? You can do more with a selector in SOME contexts, and only after converting yo

[jQuery] Re: Thanks for bringing back eq() in 1.2.1

2007-09-17 Thread Stephan Beal
On Sep 17, 9:36 am, Bernd Matzner <[EMAIL PROTECTED]> wrote: > It really makes things easier when selecting elements with variables. Amen! Is there any chance of getting gt/lt() back in? My main arguments are: a) the same as above: working with variables is easier than when using selectors. b) h

[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Stephan Beal
On Sep 14, 4:46 pm, Rey Bango <[EMAIL PROTECTED]> wrote: > I think "underhanded" is a little harsh and I'm not sure John Resig, who > is the one who put that up there, was attempting to do anything wrong. Perhaps "misleading" is a better term than "underhanded", but only slighlty so. It would be

[jQuery] Re: Downloading 1.2 minified, getting 46kb instead of 14kb ??!?

2007-09-14 Thread Stephan Beal
On Sep 14, 4:30 pm, seedy <[EMAIL PROTECTED]> wrote: > I also had the same thing happen. > 14kb is only after it has been gzipped by your server. > The version you are downloading has been minified, Its up to you to do the > gzipping. This is correct. The webmaster/developers/whoever chose to be

[jQuery] Re: grabbing event.target & using it load - no longer works for me in 1.1.4+

2007-09-14 Thread Stephan Beal
On Sep 14, 3:22 pm, skatta <[EMAIL PROTECTED]> wrote: > $(".dataWin").hide().load(resultlink); > > this works ... > > $(".dataWin").hide().load(""+resultlink+""); resultlink is aparently a non-String object of some type which is not accepted by load(). Your second line (the one which works) is ca

[jQuery] Re: Compressing your js files with Ant

2007-09-13 Thread Stephan Beal
On Sep 13, 4:45 pm, "Priest, James (NIH/NIEHS) [C]" <[EMAIL PROTECTED]> wrote: > This seems like a great > solution to having editable scripts in your repository but deploying > minimized scripts to production. Be careful with that, though, because minimization is a change to the source, which me

[jQuery] Re: Vibrator Plugin

2007-09-13 Thread Stephan Beal
On Sep 13, 12:44 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Ben Nadel and I were playing with his latest experiment. Results: A fun > plugin, with very few real world use > cases.http://www.commadot.com/jquery/vibrateCompare.php Here's a real-world use case for you: the Oktoberfest starts i

[jQuery] Re: div show hide images

2007-09-13 Thread Stephan Beal
On Sep 13, 2:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > what i'd like to do is change the (x) link to an image which changes > when that div is hidden. > you can see it in action here:http://propertyireland.net > any ideas? One approach is not to use a text (x), but to use an image

[jQuery] Re: problem with spaces between html elements in ie

2007-09-13 Thread Stephan Beal
On Sep 13, 7:16 am, mrsheep <[EMAIL PROTECTED]> wrote: > yes, i tried that but i need to have "breakable" spaces so that the > text jumps to the next line if there is no enough horizontal space in > the div. This is a shot in the dark, but have you tried using multiple spaces? It might be that th

[jQuery] Re: YAAB - Yet Another API Browser

2007-09-13 Thread Stephan Beal
On Sep 13, 8:42 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Would love thoughts and advice. The code is pretty procedural and ugly. Hiya! Comment/bug: In FF 2.0.0.6, when clicking an entry (any entry), the text for the entry OVERLAYS the TODO list, making it essentially unreadable. If i expa

[jQuery] Re: jQuery 1.2 seems to break the Treeview plugin

2007-09-12 Thread Stephan Beal
On Sep 12, 6:07 pm, Alex <[EMAIL PROTECTED]> wrote: > New page with 1.2 min/gzip: > http://deadguy.reliccommunity.com/treeview_1.2.html This is beside the point, but i'd like to point out that the min/gzip label which is used on jquery.com is quite misleading. It implies that the code is alrea

[jQuery] Re: NEWBIE Question: children() skips first element?

2007-09-12 Thread Stephan Beal
On Sep 12, 10:52 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > as John pointed out, html() returns innerHTML, not outer, so id="panelPreview"...> should only be expected if $('#content').html() were > called. Doh, of course. /me smacks forehead.

[jQuery] Re: NEWBIE Question: children() skips first element?

2007-09-12 Thread Stephan Beal
On Sep 12, 9:20 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > .html() only gets the innerHTML for the first matched element. i think that's what the OP is saying: the element's HTML he's getting back is *not* that of the first child element: > > > > > >

[jQuery] Re: jQuery.dequeue is not a function

2007-09-12 Thread Stephan Beal
On Sep 12, 3:10 pm, Gordon <[EMAIL PROTECTED]> wrote: > However, I just got the error message jQuery.dequeue is not a > functionhttp://localhost/js/jquery/interface/interface_drag.js > Line 8 > > interface_drag.js is basically a barebones version of the jQuery > interface library with just the ba

[jQuery] Re: jquery 1.2 feedback

2007-09-11 Thread Stephan Beal
On Sep 12, 12:59 am, "Web Specialist" <[EMAIL PROTECTED]> wrote: > I'm using Jorn's Form Validation in a monster form. Using jQuery > 1.2minified version returns all validation in =~ 16 sec. Using > uncompressed > version returns in 6 sec. Comparing with an older version I don't have any > improve

[jQuery] Re: rounded border plugin?

2007-09-11 Thread Stephan Beal
On Sep 11, 11:14 pm, Matt <[EMAIL PROTECTED]> wrote: > Hi All, > I'm new to JQuery, and relatively new to JS. I noticed there are a few > plugins for doing "rounded" corners, but the ones I've seen seem to > work on background colors only. Perhaps this one: http://methvin.com/jquery/jq-corner.ht

[jQuery] Learning JQuery book typo: plugins repo URL is 404

2007-09-11 Thread Stephan Beal
Hiya! i'm not sure where to post bugs related to the Learning jQuery book, so i'll drop it here: Page 309 says: "The jquery.com Plugin Repository at http://jquery.com/Plugins/ is a great place to start when looking for documentation." That URL is a 404, though - "plugins" should be lower-case.

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-11 Thread Stephan Beal
On Sep 11, 11:18 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Only using shallow copy? You're definitely in a very, very, small > minority, then. What are the use cases for shallow copying a large DOM > structure, that has a ton of child elements? Shallow copying is useful, e.g., when copying im

[jQuery] Re: 1.2/1.1 slice() vs lt(): what is preferred way to handle both of these cases?

2007-09-11 Thread Stephan Beal
On Sep 11, 10:38 pm, Josh Bush <[EMAIL PROTECTED]> wrote: > You could add lt in at the top of your plugin if it's missing. > Something like: > > if(!jQuery.fn.lt){ >jQuery.fn.lt=function(n){ > return this.slice(0,n); >} > > } i don't feel right about "adjusting" the global jQuery AP

[jQuery] 1.2/1.1 slice() vs lt(): what is preferred way to handle both of these cases?

2007-09-11 Thread Stephan Beal
Hi, all! i'm going through my plugins and making sure they work in 1.1.{3,4} and 1.2, and i've come across an ugly case... i use lt(), which isn't available in 1.2. Of course, lt() can be replaced by slice(), but that isn't in 1.1.x. My plugin would work in both versions if it weren't for this t

[jQuery] Re: NEWS: jQuery 1.2 Released

2007-09-11 Thread Stephan Beal
On Sep 11, 6:06 am, "John Resig" <[EMAIL PROTECTED]> wrote: > Full release notes and download > information:http://docs.jquery.com/Release:jQuery_1.2 [grumble] 1) i've got a philosophical beef with the change in clone()'s behaviour. Calling clone(false) is not functionally the same as calling c

[jQuery] Re: Visual jQuery

2007-09-11 Thread Stephan Beal
On Sep 11, 12:27 pm, Dan Atkinson <[EMAIL PROTECTED]> wrote: > Hey all! > > Is there an update for Visual jQuery (http://visualjquery.com/ > 1.1.2.html), or is it always up to date with the latest version of > jQuery? Or has it merely been left to die? :-( If you're interested in up-to-date docs,

[jQuery] Re: licensing for distribution

2007-09-10 Thread Stephan Beal
On Sep 10, 6:36 pm, CodeMates <[EMAIL PROTECTED]> wrote: > Do you offer any license for distributing jQuery? > We have a community script in development and we wanted to add jQuery > for the tabs design. http://docs.jquery.com/Licensing :)

[jQuery] Re: textareas and contains()

2007-08-27 Thread Stephan Beal
On Aug 28, 12:51 am, MrNase <[EMAIL PROTECTED]> wrote: > What I was trying to do here was to make a mootools example in jQuery. > > In mootools, all you need is: > > if(txt.val().contains('hello')) txt.trigger('burn', 'hello world!'); It would seem that val() returns a String object and that moot

[jQuery] Re: textareas and contains()

2007-08-27 Thread Stephan Beal
On Aug 27, 3:20 pm, MrNase <[EMAIL PROTECTED]> wrote: > if ($('#myTextarea').val().indexOf('hello') != -1) { > log.empty().html('test'); > } > else if > ($('#myTextarea

[jQuery] Re: Order of execution with onclick and click

2007-08-27 Thread Stephan Beal
On Aug 27, 6:45 pm, Mike Miller <[EMAIL PROTECTED]> wrote: > I have an html element that has an onclick attribute set which calls a > couple of JS functions. Using jquery I am adding a click event to the > same element. Can anyone tell me what the expected execution of js > functions will be? T

[jQuery] Re: general JS Q: when to use the delete operator?

2007-08-27 Thread Stephan Beal
On Aug 27, 8:39 pm, traunic <[EMAIL PROTECTED]> wrote: > read > throughhttp://simon.incutio.com/slides/2006/etech/javascript/js-tutorial.001... > today and feel like I did not know anything; That's a nice overview, and i also learned/clarified a few things by reading it. > than designing!). I

[jQuery] Re: Problems to migrate from 1.1.2 to 1.1.4

2007-08-27 Thread Stephan Beal
On Aug 27, 12:43 pm, oscar esp <[EMAIL PROTECTED]> wrote: > Just to begining I got some error when I load some pluguins. All > errors are related with $... > When I try to execute the same code with 1.1.4 I get some errors: By > example loading jQeury-calendar.js > > Runtime error: $.fn is null or

[jQuery] Re: .min.js and .pack.js

2007-08-27 Thread Stephan Beal
On Aug 27, 2:51 pm, motob <[EMAIL PROTECTED]> wrote: > Besides file size, what is the difference between a .min and .pack > version of a js file? I see this a lot with the various plugins and > jquery library. A very brief overview of each can be seen here: http://wanderinghorse.net/computing/ja

[jQuery] Re: Why is the + being turned into a space?

2007-08-26 Thread Stephan Beal
On Aug 27, 6:34 am, barophobia <[EMAIL PROTECTED]> wrote: > It would seem that this is PHP's fault since Firebug reports the > correct data. But that's why this is so weird. When I take $.ajax out > of the loop PHP says that I have submitted "[EMAIL PROTECTED]". Our of curiousity, does the $.ajax

[jQuery] Re: attr({'type':'hidden'}) in IE6

2007-08-26 Thread Stephan Beal
On Aug 27, 5:49 am, Minh <[EMAIL PROTECTED]> wrote: > Getting an error when I tried to set a input attribute to hidden in > v1.1.2, v.1.1.3.1 and v1.1.4. Using $ > ("#inputID").attr({'type':'hidden'}) and $ > ("#inputID").attr("type","hidden"). Input elements are special cases in that their 'type

[jQuery] Re: Plugin Repository - Report New Bugs and Request New Features?

2007-08-26 Thread Stephan Beal
On Aug 26, 11:04 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote: > You can use Google Code just like jQuery does. And in contrast to > sourceforge.net, your project creation request isn't delayed or denied > on some random basis. Thanks for that tip. :) What services do they provide? i'm poking aro

[jQuery] Re: Adding a 'reset' feature to form

2007-08-26 Thread Stephan Beal
On Aug 26, 9:50 pm, Steve Finkelstein <[EMAIL PROTECTED]> wrote: > I was curious if there is a way to integrate a 'Reset All' button to > clear all the values to their original values if possible, using some > JQuery plugin? > > Something quick and hackish would work. No need for a hack - HTML ha

[jQuery] Re: Plugin Repository - Report New Bugs and Request New Features?

2007-08-26 Thread Stephan Beal
On Aug 26, 7:29 pm, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > What, i was trying to convey was, although my plugins are listed there, i am > not motivated to effectively use the plugin web site for issue tracking and > feature requests because, i don't have the actual code in the repo. Ah,

[jQuery] Re: Plugin Repository - Report New Bugs and Request New Features?

2007-08-26 Thread Stephan Beal
On Aug 26, 9:03 am, "Ganeshji Marwaha" <[EMAIL PROTECTED]> wrote: > For starters, i don't know if i have write access to the jquery svn > repository to checkin my plugin. You don't need it - anyone can submit a plugin to the plugin web site, which is independent of the svn tree. You just need to

[jQuery] Re: Plugin Repository - Report New Bugs and Request New Features?

2007-08-25 Thread Stephan Beal
On Aug 26, 5:23 am, Karl Swedberg <[EMAIL PROTECTED]> wrote: > Why is hardly anyone using > these on the plugin pages? "The path of least resistance." They all post here instead. And the developers here normally say either "won't fix that" or "I just posted an update," which means no long-term tr

[jQuery] Re: It is possible to do in js with jquery?

2007-08-25 Thread Stephan Beal
On Aug 25, 6:17 pm, gianiaz <[EMAIL PROTECTED]> wrote: > $vml = $('').appendTo(divStruttura); > But it seems it doesn't work, it is my fault or jquery can't handle > this type of elements? To create DOM elements, jQuery passes on the element string to your browser and lets the browser create the

[jQuery] Re: Very confused!

2007-08-25 Thread Stephan Beal
On Aug 24, 3:10 pm, Scott Sauyet <[EMAIL PROTECTED]> wrote: > var new_name = n.replace(/\[\d?\]/, '[' + OINDEX + ']'); For your code you don't need the \d?, because your template doesn't have a number in it. That said, your template code is incorrect: JQ(tpl).find('[EMAIL PROTECTED]').ea

[jQuery] Re: How to Inject style sheets/.CSS

2007-08-25 Thread Stephan Beal
On Aug 25, 8:58 am, "Erik Beeson" <[EMAIL PROTECTED]> wrote: > http://erikandcolleen.com/erik/projects/jquery/cssinject/cssinject3.html That is slick, Erik :). You know... in case you've got tons of extra energy and time... with a bit of hacking (well, a week or three of work), you could turn th

[jQuery] Re: general JS Q: when to use the delete operator?

2007-08-24 Thread Stephan Beal
On Aug 24, 11:09 pm, traunic <[EMAIL PROTECTED]> wrote: > wade = function(boo){ > bar = boo + 3; > if(bar < 10){...} > delete bar; > }; ... > if I am understanding correctly you are saying that 'wade' and 'bar' > would both be global variables in this instance. Yes. If you don't q

[jQuery] Re: Beginner not getting it.

2007-08-24 Thread Stephan Beal
On Aug 24, 9:16 pm, atomicnuke <[EMAIL PROTECTED]> wrote: > But I just get an error in firebug '$ is not defined" on line $ > (document).ready(function(){ As others have pointed out, the problem is almost certainly that your js file is not being found. Unfortunately, Firebug "hides" the error mes

[jQuery] Re: jqGalView (yet another image gallery)

2007-08-24 Thread Stephan Beal
On Aug 24, 8:24 pm, "Benjamin Sterling" <[EMAIL PROTECTED]> wrote: > Hello All, > Wanted to announce yet another image gallery! What is different between > this one and other million out there, well, I made it :). > > The url:http://benjaminsterling.com/2007/08/24/jquery-jqgalview-photo-gallery/

[jQuery] yuimin 1.1 released

2007-08-24 Thread Stephan Beal
Hi, all! We discussed yuimin a couple weeks ago. i just came across an updated version and thought this might interest some of you: http://www.julienlecomte.net/blog/2007/08/20/yui-compressor-version-11-now-available/ In my experience, yuimin compresses better than packer or jsmin in almost all

[jQuery] OT: building a CSS-only nav system

2007-08-23 Thread Stephan Beal
This showed up on digg today and i thought it might interest some of you, or inspire some of you to write a plugin: http://www.pupinc.com/browser/

[jQuery] Re: Place value of "navigator.cookieEnabled" into an object. Why won't this work?!?!?

2007-08-23 Thread Stephan Beal
On Aug 23, 5:53 pm, Stephan Beal <[EMAIL PROTECTED]> wrote: > While i see no particular problem with your code, are you SURE you > don't have a typo in your function body? Double-check the spelling of > 'cookieEnabled'. The last line of your post has a different sp

[jQuery] Re: Place value of "navigator.cookieEnabled" into an object. Why won't this work?!?!?

2007-08-23 Thread Stephan Beal
On Aug 23, 3:11 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote: > userInfo['v_cookies'] = navigator.cookieEnabled; > alert(navigator.cookieEnabled); ... > Does anyone know what I can do to get around this? Alternately, is there a > better, or more reliable way to check if the browser has co

[jQuery] Re: JSON MIME type?

2007-08-23 Thread Stephan Beal
On Aug 23, 5:33 pm, "Michael Randolph" <[EMAIL PROTECTED]> wrote: > I'm using the jQuery Form plugin to call an ASP.NET 2.0 page. The call > works just fine, but the response never comes back right. If the > Response.ContentType is set to "text/plain" the page gets forwarded to a > plain text JS

[jQuery] Re: OT: Is this a Javascript bug?

2007-08-23 Thread Stephan Beal
On Aug 23, 3:39 pm, Pops <[EMAIL PROTECTED]> wrote: > $("start").value -= 1*$("rows").value;// <- WORKS AS EXPECTED $('start').value is a STRING, but no -= operator is available for strings, so it converts the value to a number. > $("start").value += 1*$("rows").value; // <- BUG!!

[jQuery] Re: Get size for elements that don't exist yet

2007-08-22 Thread Stephan Beal
On Aug 22, 3:49 pm, duma <[EMAIL PROTECTED]> wrote: > If you're talking about accessing the included stylesheets, you certainly can > do that by accessing document.styleSheets. ... > document.styleSheets is part of the DOM Level 1 standard. The CSSStyleSheet > object is DOM Level 2. That may be,

[jQuery] Re: Get size for elements that don't exist yet

2007-08-22 Thread Stephan Beal
On Aug 22, 1:58 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Stephan Beal wrote: > > FYI: visibility:hidden is different than visibility:none. 'hidden', > > according to Eric Meyers' O'Reilly book, acts as if the element is ... > Do not mix up visibili

[jQuery] Re: $('#id').Pulsate(500, 100) .stop ??

2007-08-22 Thread Stephan Beal
On Aug 22, 10:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > These docs: > > >http://interface.eyecon.ro/docs/animate > > > detail a stop() method which might or might be able to stop the > > animation prematurely. > > ok. but how i can stop $('#id').Pulsate(500, 100); > > $('#id').Puls

[jQuery] Re: Get size for elements that don't exist yet

2007-08-22 Thread Stephan Beal
On Aug 22, 11:42 am, Gordon <[EMAIL PROTECTED]> wrote: > flickering occurs. You can mitigate the flickering problem by making > sure the elements you add to the dome have a css ('visibility', > 'hidden') but that still leaves the other problems. FYI: visibility:hidden is different than visibility

[jQuery] Re: Killing ajax calls

2007-08-21 Thread Stephan Beal
On Aug 22, 1:05 am, Tamm <[EMAIL PROTECTED]> wrote: > I'm working on a function that sends far too many ajax calls, an easy > way to take care of the problem would be to kill all ajax calls before > sending a new one (i.e. if it isn't done yet, nvm the result) > > the xhr object idea works for one

[jQuery] Re: Testing IE6 and IE7 with Virtual PC

2007-08-21 Thread Stephan Beal
On Aug 21, 11:26 pm, Bernd Matzner <[EMAIL PROTECTED]> wrote: > You need Virtual PC 2007 to run it, which is available for free > here:http://www.microsoft.com/windows/products/winfamily/virtualpc/default... > > The latter is also nice for creating a Linux test environment you can > run from with

[jQuery] Re: jCorner problem?

2007-08-21 Thread Stephan Beal
On Aug 21, 9:58 pm, Mark <[EMAIL PROTECTED]> wrote: > This is the result I am expecting > --http://www.augustine.com/images/test/expected.jpg > . This is what I get --http://www.augustine.com/images/test/actual.jpg > . I am using standard corner syntax, $(this).corner(); .. this > 'actual' res

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Stephan Beal
On Aug 21, 9:32 pm, Mitch <[EMAIL PROTECTED]> wrote: ... > I would like to point out something that I think would make your cycle > plugin much easier to use which is this. ... > > > > Speaking of improvement, here's my idea: It would be nice to be able to pass additional images

[jQuery] Re: $('#id').Pulsate(500, 100) .stop ??

2007-08-21 Thread Stephan Beal
On Aug 21, 9:58 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > i use $('#id').Pulsate(500, 100); but i cannot found where i can stop > my pulsate or how i can do this ? The docs: http://interface.eyecon.ro/docs/fx say that the arguments are (duration,times), which means that your pulsing

[jQuery] Re: Cycle Plugin Killing me

2007-08-21 Thread Stephan Beal
On Aug 21, 4:14 pm, Mitch <[EMAIL PROTECTED]> wrote: > Im going to do this from now on, its a really good idea. I wish there > was some kind of program that could scan the jQuery and correct braces > or at least tell you where they are wrong. Almost every modern text editor can do this for you. T

[jQuery] Re: Passing variables to a dynamically loaded script

2007-08-21 Thread Stephan Beal
On Aug 21, 2:15 pm, Christopher <[EMAIL PROTECTED]> wrote: > What I have ended up doing (and haven't tested beyond firefox2) is > using a regular $.get and doing an eval() in the callback. This seems > to allow me to use the variable I need within test.js, but it really > seems that there should

  1   2   3   4   >