[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Karl Rudd
It's already built in. For your example: var inputBox = $('input').attr(type, text).attr(id, someText); Or even: var inputBox = $('input type=text id=someText'); Karl Rudd On 8/17/07, Anurag [EMAIL PROTECTED] wrote: Hi, I am a jQuery beginner. I am working on an application for which

[jQuery] pngfix and css background images problem

2007-08-17 Thread rortelli
Hi all, check the background of this page on FF and in IE: http://www.ortelli.net/temp/woo/ The footer background works well in IE: it's a background image, not repeated. For the header and the main content the background is vertically repeated and the transparency/background is not applied...

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Erik Beeson
The jQuery function $() can parse HTML, as can the various DOM functions (append, prepend, appendTo, etc): $('input id=foo type=text/').appendTo('#myForm'); --Erik On 8/16/07, Anurag [EMAIL PROTECTED] wrote: Hi, I am a jQuery beginner. I am working on an application for which I need to

[jQuery] |OT| Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-17 Thread R. Rajesh Jeba Anbiah
On Aug 16, 11:57 pm, Michael Geary [EMAIL PROTECTED] wrote: $('#foo')[0] Will throw error if there is no match, IIRC. No, it won't. It is not an error to fetch a nonexistent array element Thanks for a nice explanation. I'm sorry for jumping without reading it properly.

[jQuery] Re: stupid dev tricks: marking current page links

2007-08-17 Thread R. Rajesh Jeba Anbiah
On Aug 16, 7:16 pm, Stephan Beal [EMAIL PROTECTED] wrote: We've all attempted several different ways of highlighting navigation links which point to the current page. Often times we mark the page via our PHP by adding a class (e.g. currentPage) to the navigation link which points to the

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Pops
On Aug 17, 2:10 am, Karl Rudd [EMAIL PROTECTED] wrote: It's already built in. For your example: var inputBox = $('input').attr(type, text).attr(id, someText); Karl, Question, I've still learning jQuery, so please forgive me as I am not 100% sure if I will poise the question correctly.

[jQuery] Re: Jquery cant manipulate inline TinyMCE. Why?

2007-08-17 Thread Olive
Mário, As I far as I remember this is because your element having the ID MyIdOnInlineDOM is duplicated when loading the inline page ant thus $j('#MyIdOnInlineDOM') fails to reach your element. HTH, Olive

[jQuery] Re: Dynamic Form Validation?

2007-08-17 Thread SeViR
I suppose that you need a custom rule due to validation plugin don't support relations between fields. With jQuery.YAV (http://jquery.com/plugins/project/jquery_yav) I can do: input id=t1 name=t1 type=text class=equal alt={params:'some_value', require: 'pre-condition', condition:

[jQuery] .reset() methods for forms

2007-08-17 Thread Dave Cardwell
Hello there. As I mentioned in my comment at http://www.learningjquery.com/2007/08/clearing-form-data#comment-9943 I think it would be useful to have a reset method in the core, along the lines of: $.fn.extend({ reset: function() { return this.each(function() { $(this).is('form')

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread SeViR
Stephan Beal escribió: On Aug 16, 7:39 pm, Mitch [EMAIL PROTECTED] wrote: An interesting point - don't recommend jQ IF the point of your work is teaching JavaScript. In my courses, I teach using Web Services with JavaScript, AJAX techniques, and others HTML Rich Application techniques

[jQuery] Re: pngfix and css background images problem

2007-08-17 Thread Shaft
As far as I know ALL png fixes out there utilize the AlphaImageLoader tag found only in IE. This also means that you can't use a background-repeat tag... a limitation of all png fixes I know of Note: you'll use a png fix, if you have images with alpha transparency. Try excluding the

[jQuery] Totally new to this...

2007-08-17 Thread Shaft
Totally new to this and code ignorant but I did try to build a template webpage with the functions I want to have, so http://www.qbox.gr/test_asxeto/sitetest.html here it is... (I did use 2 different/irrelavent scripts but I think that I could add in terms of content and fx and lose on KBytes

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Dragan Krstic
2007/8/16, Glen Lipka [EMAIL PROTECTED]: As a non-programmer, (HTML/CSS only) I understand lt() and gt() mainly because of lt; and gt;. I think those are very easy. The place I get confused a little is when you can say $(p:gt(4)) and $(p).gt(4) and get the same thing. Why both? I suppose

[jQuery] Re: pngfix and css background images problem

2007-08-17 Thread Roberto Ortelli
Hello, As far as I know ALL png fixes out there utilize the AlphaImageLoader tag found only in IE. This also means that you can't use a background-repeat Argh ok... thanks for your answer -- Roberto

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Erik Beeson
$(p:gt(4)).show().gt(10).css(color,red); Or, if you need to operate multiple time on same collection: var my_coll = $(p); my_coll.gt(3).css(color,red); my_coll.lt(3).css(color,blue); This stuff cannot be done by solely in selector expression. I'm pretty sure this can be done with

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Pops
On Aug 17, 2:49 am, Karl Rudd [EMAIL PROTECTED] wrote: In the examples I gave the new element is saved to the variable inputBox. So to add it to the DOM you will do something like what Erik wrote, that is: inputBox.appendTo('#myForm'); The above appends it (that is, adds it as the last

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Michael Geary
Meaning, is this following valid? var inputBox = $('input').attr(type, text).attr(id, someText); . . inputBox.appendTo('#myForm'); inputBox.appendTo('#myForm'); inputBox.appendTo('#myForm'); In my testing, that doen't work. It only adds the first one. A single node

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Erik Beeson
You don't really want multiple fields with the same ID though, do you? I think .clone() will help you: function MakeEmailField(n) { var inputBox = $('input').attr(type, text); for (i =0; i n; i++) { inputBox.clone().attr(id,email+i).appendTo('#myForm'); } } The initial

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Erik Beeson
Actually, technically, what I suggested wastes the original node since it never gets inserted, just cloned. Maybe this would be slightly better: function MakeEmailField(n) { var $inputBox = $('input').attr(type, text); for(var i = 1; i n; i++) {

[jQuery] Re: ORing selectors

2007-08-17 Thread Rob Desbois
Does anyone know offhand how much overhead using .add() instead of the comma incurs? Is it just the additional function call? I've always used comma in selectors but using .add() instead is much clearer as it separates the selectors in an obvious manner. --rob On 8/15/07, Matt Stith [EMAIL

[jQuery] Switching the Content of the Carousel on Click

2007-08-17 Thread jenny28
Hi Board, the last 8hours i spent trying to work out a way to switch the Content of the List on click. (ie. Tabs) I started out with the Javascript Array Example where it loads external Content. Then i wrote a onClick Function which assigns mycarousel_itemList a new set of Data. This works

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Pops
Michael replied: A single node can't appear twice in the DOM. But you can easily clone a node. http://docs.jquery.com/DOM/Manipulation#clone.28_deep_.29 Ok, thanks. One thing I partially disagree with that Simon fella and his excellent jQuery writeup, was the idea that if you can separate

[jQuery] Re: ColdFusion tag for Tabs

2007-08-17 Thread Klaus Hartl
Klaus Hartl wrote: jQuerians and ColdFusionistas! Andrea Campolonghi wrote me an email the other day: I played a bit with your plug-in ( very nice ) and I made up a ColdFusion Custom Tag for an easy implemntation of your plg-in in CF. I am a CF developer learning jQuery ( really impressed

[jQuery] Re: ajax - tabs plugin question: proper anchor tags

2007-08-17 Thread Klaus Hartl
Geert Baven wrote: Hi I am using the ajax version of klaus hartl tabs plugin. I try to do crosslinking between the files which are called ahah_1.html etc by using a href=ahah_2.htmllink/a this does not render properly. So what is the proper html to put in the anchor tag? Geert, what do

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-17 Thread Pops
On Aug 16, 6:40 pm, Blair Mitchelmore [EMAIL PROTECTED] wrote: http://jquery.offput.ca/js/jquery.timers.js I am seeing this: You don't have permission to access /js/jquery.timers.js on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Erik Beeson
I have to remember that a variable is a node in the DOM tree. Does that mean that when it initially created, it is hidden? Not quite. When you create a DOM node from scratch, it exists in memory, but not as a part of the DOM (that is, the collection of DOM nodes that make up the page), and

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Erik Beeson
If you find yourself doing this kind of thing a lot, it might be handy to turn it into a plugin (totally off the top of my head and untested): (function($) { var _appendTo = $.fn.appendTo; $.fn.appendTo = function(parent, n) { if(n) { var id = this.attr('id');

[jQuery] Re: ajax - tabs plugin question: proper anchor tags

2007-08-17 Thread Geert Baven
Hi Klaus at http://www.sriverm.net/gallery.html you can an example that I am working on now. The link and in the content section is what I am referring to in the previous mail. Geert 2007/8/17, Klaus Hartl [EMAIL PROTECTED]: Geert Baven wrote: Hi I am using the ajax version of klaus hartl

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Erik Beeson
Yes, the 'window' object is the global object that everything is a part of. The DOM for the page is under window.document (on FireFox anyways, starting to get into details that I don't know a lot about). If you were to do window.$someVar (no quotes) in your FireBug console, you'll find your new

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Dragan Krstic
Of course, but I'm in favor of lt gt eq. Maybe 'cause I learned FORTRAN on college ;) 2007/8/17, Erik Beeson [EMAIL PROTECTED]: $(p:gt(4)).show().gt(10).css(color,red); Or, if you need to operate multiple time on same collection: var my_coll = $(p); my_coll.gt(3).css(color,red);

[jQuery] Re: Dynamic Form Validation?

2007-08-17 Thread Mario Moura
Hi take a look http://dnaide.blogspot.com/2007/05/validationaide-easy-as-client-side-form.html BrowserSide validation. Very good. Regards Mario 2007/8/17, SeViR [EMAIL PROTECTED]: I suppose that you need a custom rule due to validation plugin don't support relations between fields.

[jQuery] Re: Superfish - huge issue with IE6

2007-08-17 Thread muskokee
Hi Joel, I sent you a response with the url, but in the mean time I fixed it! I also use different html to make my menu function across browsers. This turned out to be the problem. Made the html look like yours and BOOOM! the menu works perfectly. If you could email me, I would like to talk

[jQuery] Re: stupid dev tricks: marking current page links

2007-08-17 Thread Stephan Beal
Regexes are definitely worth learning. Once you know them, you can use them in many different programming languages (and even non-programming tools) and you'll be SO happy that you know how to use them. Brief follow-up: http://xkcd.com/208/ That's based on a true story.

[jQuery] Re: Superfish - huge issue with IE6

2007-08-17 Thread Joel Birch
On 8/17/07, muskokee [EMAIL PROTECTED] wrote: Hi Joel, I sent you a response with the url, but in the mean time I fixed it! I also use different html to make my menu function across browsers. This turned out to be the problem. Made the html look like yours and BOOOM! the menu works

[jQuery] Re: [OT] A Good Cause: AIR (Accessibility Internet Rally)

2007-08-17 Thread Andy Matthews
You should consider a new acronym for your group. Adobe just release a piece of software called AIR (Adobe Integrated Runtime) and they're putting lots of marketing dollars towards it. _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Sent: Thursday,

[jQuery] Re: ColdFusion tag for Tabs

2007-08-17 Thread Andy Matthews
I got it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Friday, August 17, 2007 4:10 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ColdFusion tag for Tabs Klaus Hartl wrote: jQuerians and ColdFusionistas!

[jQuery] event bubbling - checking for the right element

2007-08-17 Thread Jones
Hi, I've got a problem with event bubbling. That works fine: $(function() { $(body).click(function(e) { if ($(e.target).is(h2)) { alert(Test); } }); }); But now I want something like that: $(function() {

[jQuery] Search for a parent element

2007-08-17 Thread Michael Schwarz [MVP]
Hi, is it possible to find a parent element? See following example: div _prop=test1 div2 div3 div4 /div /div /div /div $([EMAIL PROTECTED]).bind(click, function(ev) { alert($(ev.srcElement).html()); }); If you run this you will always get

[jQuery] Re: Do my emails make it to the list?

2007-08-17 Thread Giovanni Battista Lenoci
Jonathan Sharp ha scritto: The reason there's a delay is that new members posts are moderated to fight spam. After x number of valid posts the moderation restriction is removed. I've removed this restriction for your account. Cheers, -js How much is X? I wrote a few post (like 5 o 6)

[jQuery] Interface.js Exception: Access to Restricted URI denied

2007-08-17 Thread G[N]Urpreet Singh
Hi, Was trying to make a horizontal accordion with nice ease-in effects etc. I first made the widget separately in an HTML file (which worked fine) and then tried to embed it in my main HTML file. I got a funny exception. Error: uncaught exception: [Exception... Access to restricted URI denied

[jQuery] Re: How i can replace?

2007-08-17 Thread fatihturan
Oh it's worked!!! xD Thank you!

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Byron
I guess this is probably just a bit late (and will be even later due google not posting my replies until after 24-48 hours ) but if your interested i wrote a plugin for creating dom elements from json templates have a look at it here : http://jquery.com/plugins/project/appendDom --Byron

[jQuery] Hover Delay

2007-08-17 Thread b0bd0gz
Hi, I have a image which underneath has a p tag which contains some text, when the image is loaded the p tag is hidden until the cursor hovers over the image, then the p tag is shown. What I want to know is, is there a way I can only show the p tag if the cursor is held over the image for a set

[jQuery] Re: Hover Delay

2007-08-17 Thread Stephan Beal
On Aug 17, 3:43 pm, b0bd0gz [EMAIL PROTECTED] wrote: I have a image which underneath has a p tag which contains some text, when the image is loaded the p tag is hidden until the cursor hovers over the image, then the p tag is shown. What I want to know is, is there a way I can only show the

[jQuery] Re: Hover Delay

2007-08-17 Thread b0bd0gz
Awesome thanks, that is exactly what I needed :D -- View this message in context: http://www.nabble.com/Hover-Delay-tf4285726s15494.html#a12199959 Sent from the JQuery mailing list archive at Nabble.com.

[jQuery] Re: Modals don't mask whole page with Ext and jQuery

2007-08-17 Thread Brandon Aaron
I've fixed the issue and I'm posting a new release right now. -- Brandon Aaron On 8/15/07, Brandon Aaron [EMAIL PROTECTED] wrote: Ahh thanks Wizzud, I'll dig a little deeper. Thanks. -- Brandon Aaron On 8/15/07, Wizzud [EMAIL PROTECTED] wrote: Brandon, There is actually a

[jQuery] Re: Do my emails make it to the list?

2007-08-17 Thread Jonathan Sharp
I did some more research into google groups and there isn't a threshold or a way to set after x time period user is allowed to post. Please be patient as the group has grown to over 3100 members. We'll be approving new accounts as posts are made. I understand how frustrating it can be to have your

[jQuery] Re: new Plugin every: jQuery-oriented setTimeout and setInterval

2007-08-17 Thread Blair Mitchelmore
That's an .htaccess thing. There are some people hotlinking my scripts and I'm trying to discourage it. But fine, I'll remove the restriction and make it more fine-grained to the sites cheating me. It should work now. -blair On Aug 17, 5:32 am, Pops [EMAIL PROTECTED] wrote: On Aug 16, 6:40 pm,

[jQuery] Jquery and IE problem

2007-08-17 Thread [EMAIL PROTECTED]
Hi All! I have a problem with my jquery code in IE browser. See bellow: I have two select: first - brand auto, second - model of auto. select with models is generated depending of brand using jquery instruments brand.js $(document).ready(function() { $('select#id_brand').change(function()

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
Hi Michael I thought that since 'match' is a ID (div id=#match) that means it is NOT a string, so I do I have the whole wrong idea about IDs? They are just plain old strings? Using the debugger is just what I need. I added the line to my code $(div).click(function(event) { debugger; if

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mike Alsup
I wish Firebug had some documentation. It does. http://getfirebug.com/

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Mitch
Is this topic changing to the need for removing stuff from jQ? My intention was to just get opinions about the comment Thor made. On Aug 17, 1:04 am, Erik Beeson [EMAIL PROTECTED] wrote: $(p:gt(4)).show().gt(10).css(color,red); Or, if you need to operate multiple time on same collection:

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Mitch
Thank you John - from you that means a lot. Speaking of meaning, are you suggesting I better get moving on this? When you say move it to the wiki do you mean I can go and set this up on the jq site? On Aug 16, 8:45 pm, John Resig [EMAIL PROTECTED] wrote: Great work Mitch - if someone wants to

[jQuery] Re: Search for a parent element

2007-08-17 Thread Estevão Lucas
HI, Try to use the parent method, like this: $([EMAIL PROTECTED]).bind(click, function(ev) { alert( $( this ).parent().html() ); }); 2007/8/17, Michael Schwarz [MVP] [EMAIL PROTECTED]: Hi, is it possible to find a parent element? See following example: div _prop=test1

[jQuery] Re: ColdFusion tag for Tabs

2007-08-17 Thread Web Specialist
Thanks Klaus. 2007/8/17, Andy Matthews [EMAIL PROTECTED]: I got it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Friday, August 17, 2007 4:10 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: ColdFusion tag

[jQuery] jQuery Validation plugin and Tabs plugin

2007-08-17 Thread webs86
Hi... Anybody can tell me about how can I use jQuery Plugin Validation and Tabs plugin, because they can't work... this is my javascript source code: script type=text/javascript src=/js/jquery.pack.js/script script type=text/javascript src=/js/validate/jquery.validate.js/ script script

[jQuery] Re: columnize large text ...

2007-08-17 Thread duma
Charles, Thanks!! :-) I like this script a lot, of course, so it's nice to hear that others do as well. Regarding HTML markup affecting column-ization (columnarization?): My script checks the total rendered width of your element, so technically anything should be allowed. However, right now

[jQuery] Re: Modals don't mask whole page with Ext and jQuery

2007-08-17 Thread Brandon Aaron
The new Dimensions 1.1.1 release is up on the project page. http://jquery.com/plugins/project/dimensions/ -- Brandon Aaron On 8/17/07, Brandon Aaron [EMAIL PROTECTED] wrote: I've fixed the issue and I'm posting a new release right now. -- Brandon Aaron On 8/15/07, Brandon Aaron [EMAIL

[jQuery] Re: ColdFusion tag for Tabs

2007-08-17 Thread [EMAIL PROTECTED]
Hi, if someone has some problem or suggestion with the CF Ctag for the tab plug-in please e-mail me. [EMAIL PROTECTED] Bye Andrea Campolonghi On Aug 17, 9:31 am, Web Specialist [EMAIL PROTECTED] wrote: Thanks Klaus. 2007/8/17, Andy Matthews [EMAIL PROTECTED]: I got it.

[jQuery] toggle all

2007-08-17 Thread Anthony Leboeuf(Worcester Wide Web)
Hello, is it possible to toggle all once a new toggle has been made? I have this function function opendiv(div){ var show = div; $(show).slideToggle(slow); } But I want to add something before the $(show).slideToggle(slow); that closes all opened toggles. Is this possible? Thanks -Tony

[jQuery] Re: columnize large text ...

2007-08-17 Thread xavier
Looks promising... Other feature ideas I find interesting are: - Allowing users to specify the height of their element, or the columns, and then paginate the text (I'd include links/buttons that allow you to page through the text). This would be good so that your columns don't get so tall

[jQuery] Re: columnize large text ...

2007-08-17 Thread duma
Oh, that's very interesting! Thank you, Xavier! Hum... maybe I will have a jQuery-only version after all! ;-) Sean xavier dutoit wrote: Looks promising... Other feature ideas I find interesting are: - Allowing users to specify the height of their element, or the columns, and

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
Have you looked at the documentation? They have a one page FAQ, console reference, keyboard reference and jQuery Lite. I dont see anything like how to use Firebug to debug. http://getfirebug.com/docs.html Maybe there is another link to a tutorial? On Aug 17, 7:22 am, Mike Alsup [EMAIL

[jQuery] Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
Assigning event functions like click() require an anonymous function for what is often a very small snippet of code. These anonymous functions are confusing to inexperienced javascript coders and make the code less readable, IMO. I think it would be great to be able to pass a string to these

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Andy Matthews
The only concern I have is that this could be yet another mysterious method that someone might not know what it does. Will it work just lke javascript's slice method? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benjamin Sterling Sent: Friday, August 17, 2007

[jQuery] Re: toggle all

2007-08-17 Thread Alexandre Magno Teles Zimerer
Yeah, you can use each to iterate to divs that you want to close... Date: Fri, 17 Aug 2007 11:24:36 -0400 From: [EMAIL PROTECTED] To: jquery-en@googlegroups.com Subject: [jQuery] toggle all Hello, is it possible to toggle all once a new toggle has been made? I have this function function

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread John Resig
I'm all in favor of removing gt/lt/eq in favor of the selector version with filter. That was the original goal, but I actually decided to introduce an array method into jQuery to solve that problem: .slice(). Now gt/lt/eq will become: gt: .slice(Num) lt: .slice(0,Num) eq: .slice(Num,1) Plus

[jQuery] Re: Creating DOM elements on the fly

2007-08-17 Thread Sam Collett
There are also a few others: http://jquery.com/plugins/project/FlyDOM Easy DOM creation (which technically does not require jQuery, just the presence of $ in the global namespace): http://mg.to/2006/02/27/easy-dom-creation-for-jquery-and-prototype jquery-dom.js

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Benjamin Sterling
I like that, I like that alot! On 8/17/07, John Resig [EMAIL PROTECTED] wrote: I'm all in favor of removing gt/lt/eq in favor of the selector version with filter. That was the original goal, but I actually decided to introduce an array method into jQuery to solve that problem: .slice().

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mitch
I found something http://www.evotech.net/blog/2007/06/introduction-to-firebug/ On Aug 17, 7:22 am, Mike Alsup [EMAIL PROTECTED] wrote: I wish Firebug had some documentation. It does. http://getfirebug.com/

[jQuery] Re: Question about event.StopPropagation()

2007-08-17 Thread Mike Alsup
Look at all the Learn More links on the main page. There is some good stuff. Maybe not exactly what you're looking for, but there is some useful info. Have you looked at the documentation? They have a one page FAQ, console reference, keyboard reference and jQuery Lite. I dont see anything

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread John Resig
The only concern I have is that this could be yet another mysterious method that someone might not know what it does. Will it work just lke javascript's slice method? Yes, of course - that's the only reason why I'm making this change. --John

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Stephan Beal
On Aug 17, 5:51 pm, Matt Kruse [EMAIL PROTECTED] wrote: Assigning event functions like click() require an anonymous function for what is often a very small snippet of code. These anonymous functions are confusing to inexperienced javascript coders and make the code less readable, IMO. People

[jQuery] Select 2 types of elements

2007-08-17 Thread Giovanni Battista Lenoci
Hi, I did not find in doc, can I select 2 types of elements in only one instruction? My purpose is to capture values from input and select elements in a form to serialize it. Thank you

[jQuery] Re: jCarousel Lite - version 1.0

2007-08-17 Thread [EMAIL PROTECTED]
Hi Ganeshji, Thanks for your plugin. Its easy to use, and the true circular function is a great benefit! I am utilizing your plugin in the design for a food company website: http://www.comittechnologies.com/designs/brucefoods/test.html You can see the carousel on the left side, where the

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Glen Lipka
I cant comment on the merits of the technical aspects, but I do appreciate Matt's desire to simplify and to suggest possible alternatives. This isn't a love-it-or-leave-it community. We actively discuss ideas for changing the base code. I think slamming ideas is a bad practice. It might not

[jQuery] Autocomplete problem

2007-08-17 Thread ars_oguz
Hi, I have a textarea and i will write news related to mobile phones in it. But i want each phone must match the name in my database and be a link to its description page like journal form in last.fm In order to do this autocomplete should start to search whenever i type [phone] and when i find

[jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for both function calls and method names

2007-08-17 Thread Andy Matthews
Then by all means...have at it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Friday, August 17, 2007 10:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: jQuery negatives: dual/triple/quadruple special-case uses for

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Jonathan Sharp
On 8/17/07, John Resig [EMAIL PROTECTED] wrote: I've thought of this, as well. I also wanted to add a hook to allow: $(...).click(.toggle()) However, I'm currently leaning away from it (embedding code in strings is messy) in favor of another solution that I'm working on:

[jQuery] flicker on tooltips fix ?

2007-08-17 Thread alexfoxy
On a website I am making I'm having a problem with some tooltips. If you have a look ( http://www.rockbandlogo.com/test_index.html ), you'll see three icons, which when you hover over them you'll get a tooltip type pop up. The problem occurs when you hover over both tooltip and icon underneath,

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread John Resig
I've thought of this, as well. I also wanted to add a hook to allow: $(...).click(.toggle()) However, I'm currently leaning away from it (embedding code in strings is messy) in favor of another solution that I'm working on: $(...).onclick().toggle().end(); Removing the need for anonymous

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Stephan Beal
On Aug 17, 6:49 pm, Stephan Beal [EMAIL PROTECTED] wrote: According to the rhino book: ... One more follow-up here and i'll shut up: Also according to the rhino book: The Function() constructor parses the function body and creates a new function object each time it is called. ... By contrast,

[jQuery] jQuery is not defined in line 1400 in 1.3.1.1

2007-08-17 Thread R. Rajesh Jeba Anbiah
jQuery is not defined in line 1400 Now and then, I'm getting this error in FF. The line is: // Clean up added properties in IE to prevent memory leak if (jQuery.browser.msie) Is it a known issue or am I mistaken? TIA -- ?php echo 'Just another PHP saint'; ? Email: rrjanbiah-at-Y!com

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
On Aug 17, 11:11 am, Stephan Beal [EMAIL PROTECTED] wrote: People who are unwilling to become comfortable with the language they're working in (e.g., by using its available features, such as anonymous functions) shouldn't be working in the language. Perhaps. I'm comfortable with the language,

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Stephan Beal
On Aug 17, 6:25 pm, Glen Lipka [EMAIL PROTECTED] wrote: the base code. I think slamming ideas is a bad practice. It might not make it into the code, but all ideas should have the benefit of the doubt that the suggestion is thoughtful. Saying i personally see no benefit is a statement of

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Stephan Beal
On Aug 17, 6:33 pm, Matt Kruse [EMAIL PROTECTED] wrote: On Aug 17, 11:11 am, Stephan Beal [EMAIL PROTECTED] wrote: i think this would be counter-intuitive. If i pass a string to a function and know that it will be executed, i would expect the string to be eval()'d, not run in a Function

[jQuery] Re: Select 2 types of elements

2007-08-17 Thread John Resig
$(input, select) to select them both --John On 8/17/07, Giovanni Battista Lenoci [EMAIL PROTECTED] wrote: Hi, I did not find in doc, can I select 2 types of elements in only one instruction? My purpose is to capture values from input and select elements in a form to serialize it. Thank

[jQuery] fadeTo fades up in Safari and FF, down in IE

2007-08-17 Thread Aaron Scott
I have an element with this style associated with it: filter:alpha(opacity=0); -moz-opacity: 0; opacity: 0; Now, I fade it in: $(object).fadeTo(1000, 0.8); In FF and Safari, this results in the object fading from 0% to 80% opacity. But in IE, it makes the object pop in

[jQuery] Re: Jquery can show Images from file:///C:?

2007-08-17 Thread Joan Piedra
Hey Mario, I had the same idea some time ago, but after trying some workarounds and reading a lot of browser docs I noticed this was an horrible and really bad practice in web development. So we actually can't make an image preview before sending data to the server. We will have to stick to the

[jQuery] Re: flicker on tooltips fix ?

2007-08-17 Thread alexfoxy
I don't think that's why that happens? It's because when you hover over the tooltip, you are no longer hovering on the icon, so the tooltip disappears. but as it disappears you are then hovering over the icon again, thus the tooltip appears again.. rinse and repeat, hence the flickering? Al

[jQuery] Re: fadeTo fades up in Safari and FF, down in IE

2007-08-17 Thread Aaron Scott
For me, I like having the opacity setting in the CSS, so i set it there and set display:none. Then I use fadeIn instead of fadeTo. Not a solution, but a possible alternative. I'm sure someone else will have a real solution. The problem with fadeIn is that it brings the element to 100%

[jQuery] Re: Jquery can show Images from file:///C:?

2007-08-17 Thread Andy Matthews
That's not true at all. I've got a JS file that allows for live previews. The JS file is attached, and here's the code needed to trigger it: form name=myForm input type=file name=photo_filebr input type=button name=button class=smaller value=Preview Image

[jQuery] Re: problem with selector in IE

2007-08-17 Thread Stephan Beal
On Aug 17, 7:36 pm, Potluri [EMAIL PROTECTED] wrote: table id=srTable tbody tra1 /tr tra2 /tr tra3 /tr tra4 /tr /tbody /table This isn't legal HTML. TR elements can only contain TD elements, not text. Try replacing each row with: trtda1/td/tr

[jQuery] Re: flicker on tooltips fix ?

2007-08-17 Thread Stephan Beal
alexfoxy wrote: The problem occurs when you hover over both tooltip and icon underneath, it begins to flicker. I know why this happens, but I don't know how to solve it. If you mean the quickly toggling on and off when your mouse is near the right side of the item, this happens because the

[jQuery] Re: How to show Updating container

2007-08-17 Thread Stephan Beal
On Aug 17, 6:36 pm, Potluri [EMAIL PROTECTED] wrote: function() { $(#rs_loading).show(); someFuncTORefine(); $(#rs_loading).hide(); } ... I dont know where it's breaking it rs_loading container is shown after the someFuncTORefine() is executed. So it appears once the refinement function

[jQuery] Re: fadeTo fades up in Safari and FF, down in IE

2007-08-17 Thread Justin Sepulveda
Yah I had an issue with this as well. I use a work around. For me, I like having the opacity setting in the CSS, so i set it there and set display:none. Then I use fadeIn instead of fadeTo. Not a solution, but a possible alternative. I'm sure someone else will have a real solution. On Aug 17,

[jQuery] problem with selector in IE

2007-08-17 Thread Potluri
Hi, I face this selector problem only in IE(that sucks). What I'm trying to do is select rows of a table by looping through them like I've table with id srTable as table id=srTable tbody tra1 /tr tra2 /tr tra3 /tr tra4 /tr /tbody /table I'm trying to loop through rows of table as $(

[jQuery] Focus Disappears After Effect Ends

2007-08-17 Thread Cliff Spence
I have a login box that slides down when the 'login' link is clicked. It also is set to automatically focus on the first input in the login box when it slides down. The problem is that the focus only happens for a brief second until the toggle effect is complete. Then the focus is gone. Here's

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
On Aug 17, 12:32 pm, Stephan Beal [EMAIL PROTECTED] wrote: a) scoping rules are different (more eval()-like, no lexical scoping) for Function, as opposed to lexical scoping for anonymous functions. Exactly, which is the caveat I put in my original post. This does have an advantage, though, in

[jQuery] Re: Avoiding anonymous functions - enhancement suggestion

2007-08-17 Thread Matt Kruse
On Aug 17, 11:50 am, John Resig [EMAIL PROTECTED] wrote: However, I'm currently leaning away from it (embedding code in strings is messy) in favor of another solution that I'm working on: $(...).onclick().toggle().end(); Removing the need for anonymous functions entirely. Only if your entire

  1   2   >