[jQuery] Re: id or class

2007-04-02 Thread Erik Beeson
ID is found by using document.getElementById(), which is probably about as fast a DOM operation as can be had. Use ID for sure. Also, if I'm not mistaken, it helps class searches a lot if you also include the tag that you're looking for: $('div.someClass') instead of just $('.someClass').

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
TB_remove() closes the thickbox, but you need to call it from the context of the top window, not the inner iframe window. So you probably want to do something like parent.TB_remove() on the last page. Or, if you want to remove the thickbox and update the underlying page, you might want to just

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
Depending on your setup, you could instead just set the target of your links to _parent or _top. --Erik On 4/4/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: I use this in my iframe code : $(document).ready(function() { $('a').click(function(){

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
to the parent no javascript --- the iframe load like a normal pahe --- there is no parent so the link should behave normally what do u think ? Erik Beeson wrote: Depending on your setup, you could instead just set the target of your links to _parent or _top. --Erik On 4/4/07, Olivier Percebois-Garve

[jQuery] Re: How do I handle form submission within ThickBox?

2007-04-04 Thread Erik Beeson
-With request header to XmlHttpRequest for ajax requests, so you could just check for that on the server and return JSON if you find it and your regular HTML if you don't. Good luck with it. --Erik On 4/4/07, Chris W. Parker [EMAIL PROTECTED] wrote: On Wednesday, April 04, 2007 11:05 AM Erik Beeson said

[jQuery] Re: What does this do - transport.setRequestHeader(connection, close)

2007-04-10 Thread Erik Beeson
Also - how can I re-compress my source with this modification included? I don't know about your first question, but to answer your second question, google search for javascript packer. You'll find this: http://dean.edwards.name/packer/ Good luck. --Erik

[jQuery] Re: Determining when an image is fully loaded

2007-04-28 Thread Erik Beeson
Maybe $('#pictures').html(...).children().bind(...) But I think you're trying to hard to use jQuery. How about this (tested on FF2/Mac): var img = new Image(); img.onload = function() { img_width = this.width; img_height = this.height; }; img.src = '...'; $('#pictures').html(img); Or if you

[jQuery] Re: stay at top div

2007-04-29 Thread Erik Beeson
You want the css property position: fixed, but it doesn't work in IE6. There are a few different workarounds for IE6 (google IE6 position fixed), but the all come with various idiosyncrasies. Any javascript/jQuery based solution (other than just using it to set CSS properties) is going to

[jQuery] Re: jqModal via POST ?

2007-04-30 Thread Erik Beeson
Sure, just use ajax, load the result into a div, and show the div with jqModal. --Erik On 4/30/07, Brian Cherne [EMAIL PROTECTED] wrote: Has anyone implemented jqModal (or something like it) via the POST method? I really enjoy how simple jqModal is for calling modal dialogs and I want to

[jQuery] Re: serialize() output in key/value pairs

2007-04-30 Thread Erik Beeson
How about (untested): $.get(page.php? + $(input).serialize()); --Erik On 4/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Is there a way to easily convert a string of parameters [name=Johnlocation=Boston] into key/value pairs [{name: John, location: Boston}]? I found the FastSerialize

[jQuery] Re: Multiple draggable (interface) drag/drop question

2007-04-30 Thread Erik Beeson
I don't get what the problem is. Are you wanting different settings on the draggables? If the issues is just how to apply Draggable to bunch of elements, just do $('.dropaccept').Draggable(...) Your droppable settings appear to be identical except for the function parameter name, which is an

[jQuery] Re: Dropdown div functionality

2007-05-03 Thread Erik Beeson
The OP example was a little bit more complex, since the iframe spanned the entire width of the table even through there were multiple columns. Would be cool to see what you could come up with for a multi-column example. Check out the multicol versions at the same page as before:

[jQuery] Re: Dropdown div functionality

2007-05-03 Thread Erik Beeson
:[EMAIL PROTECTED] On Behalf Of Erik Beeson Sent: Thursday, May 03, 2007 3:55 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Dropdown div functionality The OP example was a little bit more complex, since the iframe spanned the entire width of the table even through there were multiple

[jQuery] Re: prevent parent behaviour

2007-05-04 Thread Erik Beeson
Offhand I'm not certain, so instead of giving you mediocre advice, I suggest you check out: http://www.google.com/search?q=javascript+event+bubbling I think the first link addresses your issue. --Erik On 5/4/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hello friends, i have this

[jQuery] Re: jquery.com - hacked?

2007-05-06 Thread Erik Beeson
PPPS. I could go on, but my kid is screaming , I WANT MACARONI AND CHEESE right in my ear. I haven't seen that movie yet... --Erik

[jQuery] Re: NEW jQuery plugin - tableFilter() Beta 1. Auto-paging, filtering and sorting on multiple columns.

2007-05-07 Thread Erik Beeson
Seems to work great in Safari! Multi-column sorting seems a little wonk, but it seems a little wonk in FF too, so maybe it's an OS X thing. Modifier keys don't work well in OS X. --Erik On 5/7/07, Daemach [EMAIL PROTECTED] wrote: I just uploaded my latest plugin, tableFilter(). It's an

[jQuery] Re: NEW jQuery plugin - tableFilter() Beta 1. Auto-paging, filtering and sorting on multiple columns.

2007-05-07 Thread Erik Beeson
Sorting is a little off. Filter CompanyName with che and sort by Amount: 21 414.2 41.65 317.85 --Erik On 5/7/07, Daemach [EMAIL PROTECTED] wrote: I just uploaded my latest plugin, tableFilter(). It's an early beta with ugly, less than optimal code, but it works pretty well. Feed it a

[jQuery] Re: attr(style vs css(

2007-05-09 Thread Erik Beeson
Not sure about expected behavior, but the CSS version certainly seems more correct to me. It could be shortened to: $(.pics).css({borderStyle:solid, borderWidth:1px, borderColor:white}); Or really, in that specific case: $(.pics).css(border, 1px solid white); If you find yourself adding (and

[jQuery] Re: Disable an input element

2007-05-10 Thread Erik Beeson
To disable an input: $('#kontakt_senden').attr('disabled', 'disabled'); To re-enable it: $('#kontakt_senden').removeAttr('disabled'); --Erik On 5/10/07, wyo [EMAIL PROTECTED] wrote: I'd like to disable a button (input element) after an action. So far I can hide it

[jQuery] Re: toggleClass and {required:true}

2007-05-10 Thread Erik Beeson
Luc, Did you not see this reply from Jörn? --Erik On 5/9/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Luc, there are two possible solutions: Hack the metadata plugin by setting metaDone on the toggled element to false. That causes the metadata to be read again. I recommend a different

[jQuery] Re: toggleClass and {required:true}

2007-05-10 Thread Erik Beeson
@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erik Beeson Sent: 10 May 2007 10:39 To: jquery-en@googlegroups.com Subject: [jQuery] Re: toggleClass and {required:true} Luc, Did you not see this reply from Jörn? --Erik On 5/9/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Luc

[jQuery] Re: grabbing all href attribute values on the page - how?

2007-05-10 Thread Erik Beeson
Untested (and I haven't slept in a while): $('[EMAIL PROTECTED]http://;]').addClass('external'); Or more along the lines of what you were doing before: $('a').filter(function() { return this.href.indexOf('http://') == 0; }).addClass('external'); --Erik On 5/10/07, stef [EMAIL PROTECTED]

[jQuery] Re: grabbing all href attribute values on the page - how?

2007-05-10 Thread Erik Beeson
The first one is probably more correct. It's all a tags whose href attribute starts with http://;, which is exactly what you asked for. --Erik On 5/10/07, stef [EMAIL PROTECTED] wrote: your second solution worked perfectly, didnt try the first one. thanks!! On May 10, 3:10 pm, Erik Beeson

[jQuery] Re: Changing type input on IE

2007-05-10 Thread Erik Beeson
Right. $(#test).insertAfter(input type='button' id='test' value='submit'); Is the same as: $(input type='button' id='test' value='submit').after(#test); Which is insert #test after a newly created but not in the DOM input node, which doesn't do anything unless you go on to add it the DOM

[jQuery] Re: Storing extra information about objects

2007-05-11 Thread Erik Beeson
I'd say one of: metadata plugin metaobjects plugin expandos a variable --Erik On 5/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, I'm looking for a way to store information about a class, like the current page it's on (for ajax paging) and such. Essentially I would like to do

[jQuery] Re: remove() callback

2007-05-14 Thread Erik Beeson
The empty() function is synchronis (sp?). It won't return until it's finished. --Erik On 5/14/07, Equand [EMAIL PROTECTED] wrote: is there any way to make a remove function with callback? so after removing an element a callback function starts?

[jQuery] Re: remove() callback

2007-05-14 Thread Erik Beeson
err, you said remove, not empty. But the same thing is true. --Erik On 5/14/07, Erik Beeson [EMAIL PROTECTED] wrote: The empty() function is synchronis (sp?). It won't return until it's finished. --Erik On 5/14/07, Equand [EMAIL PROTECTED] wrote: is there any way to make a remove function

[jQuery] Re: binding to two events (resize and onload)

2007-05-15 Thread Erik Beeson
Maybe try: $(document).ready(resizeCols); $(window).bind('load', resizeCols); Or maybe you're getting a javascript error in one of the lines before the alert that's causing it to halt. Check the firebug console or try adding an alert at the top of the function. --Erik On 5/15/07, willwade

[jQuery] Re: help! imagebox disaster - website crashes safari

2007-05-15 Thread Erik Beeson
I don't have a suggestion on why it happens, but I can confirm that it kills Safari. I see you're using an old version of jQuery (rev 1460, current is 1465). Maybe try updating? Or maybe try the current SVN version? Also, you might want to move that animating that you're doing at the top of

[jQuery] Re: remove() callback

2007-05-15 Thread Erik Beeson
Like I said before, when you call remove, execution won't continue until remove is finished. There's no need for a callback. Could you maybe clarify the problem that you are having? I don't understand what this means: on appending a span to a div the previous span removes, but now the div jumps

[jQuery] Re: return a variable after an ajax call

2007-05-15 Thread Erik Beeson
The easy answer is no, it doesn't work like that. I assume you mean you want validateField to return based on the result of the $.get callback? The whole point of the callback stuff is that the validate function has long since finished executing by the time your code in the callback function

[jQuery] Re: JQuery Shopping Cart

2007-05-15 Thread Erik Beeson
The revert behavior appears (to me anyways) to indicate that the item wasn't dropped on a valid drop target, so I don't like it that dropping an item on the basket area still shows the item reverting. Here's a handy little trick to make it not revert when dropped on a droppable:

[jQuery] Re: Getting a checkbox value

2007-05-16 Thread Erik Beeson
I prefer to use the is() function for this type of thing because I think it reads really well: if($(this).is(':checked')) { ... } else { ... } It reads if this is checked..., which I like. --Erik On 5/16/07, Skilip [EMAIL PROTECTED] wrote: Thanks a lot for helping me out! I've figured

[jQuery] Re: Getting a checkbox value

2007-05-16 Thread Erik Beeson
of everything :) --Erik On 5/16/07, RobG [EMAIL PROTECTED] wrote: On May 16, 6:45 pm, Erik Beeson [EMAIL PROTECTED] wrote: I prefer to use the is() function for this type of thing because I think it reads really well: if($(this).is(':checked')) { Somewhat more convoluted than

[jQuery] Re: Simple RSS Headlines

2007-05-17 Thread Erik Beeson
Assuming you don't have cross-domain ajax problems, you could just load the feed as XML data and parse it and display it however you want: http://erikandcolleen.com/erik/projects/jquery/rss/ --Erik On 5/17/07, Glen Lipka [EMAIL PROTECTED] wrote: Working on my company site:

[jQuery] Re: question about a javascript syntax

2007-05-18 Thread Erik Beeson
Imagine this: var sayHello = function(name) { alert('Hello, ' + name); } sayHello('World'); If we don't need to call sayHello more than once, we could make the function anonymous (not give it a name) and call it directly by replacing sayHello in the second line with the function... part from

[jQuery] Re: $(document).ready fires endlessly in firefox, opera

2007-05-18 Thread Erik Beeson
I've never heard of that happening. Could you provide a test page that shows the problem? --Erik On 5/18/07, Gordon [EMAIL PROTECTED] wrote: The title pretty much says it all. I can't find for sure what's causing it but I suspect that other scripts that mine has to work alongside are

[jQuery] Re: jquery.us

2007-05-18 Thread Erik Beeson
I still see google ads... --Erik On 5/18/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: It seems they have leeched the html of the original jquery.com code. there are no more google ads. That was quick! Do you think there is any correlation to the hacking and now this attempt at

[jQuery] Re: Compatibility (jQ + Libraries) + (Prototype + Libraries)

2007-05-18 Thread Erik Beeson
jQuery plugins are designed to deal with this situation. See this section of the plugin authoring page: http://docs.jquery.com/Plugins/Authoring#Custom_Alias_in_plugin_code Also, this this thread from earlier this evening:

[jQuery] Re: jquery.us

2007-05-18 Thread Erik Beeson
I just put something like: The contents of this site are copied from http://jquery.com/ without permission. --Erik On 5/18/07, Chris W. Parker [EMAIL PROTECTED] wrote: On Friday, May 18, 2007 9:48 AM Chris W. Parker said: On Friday, May 18, 2007 12:37 AM John Resig said: Here's what

[jQuery] tip: jQueryify Bookmarklet

2007-05-19 Thread Erik Beeson
Hello jQuerians, Thought I'd share a neat little tip I use on a fairly regular basis. It's a bookmarklet that adds jQuery to the current page. Just make a bookmark with this URL: javascript:(function(){document.body.appendChild(document.createElement

[jQuery] Re: Finding a parent element

2007-05-21 Thread Erik Beeson
$(e1).parents(p1).find(e2).hide(); Substitute your actually selectors as necessary. --Erik On 5/21/07, SamCKayak [EMAIL PROTECTED] wrote: I have an element (call it e1) with an onclick handler nested a variable length from a parent element (call it p1). I need to go up to the parent (p1),

[jQuery] Re: RSS Feed trouble in IE (bug?)

2007-05-21 Thread Erik Beeson
226 b a r / 040 t e s t \n / r o o t \n 04e but 226 is an ascii value, not a utf-8 value. On 5/21/07, Erik Beeson [EMAIL PROTECTED] wrote: The problem seems to be that IE (IE6 on XP anyways) is choking on a character in your

[jQuery] Re: tip: jQueryify Bookmarklet

2007-05-22 Thread Erik Beeson
hah. Awesome. You made her day. :) --Erik On 5/22/07, agent2026 [EMAIL PROTECTED] wrote: Yeah, but you don't have any pictures of Colleen ;) Adam

[jQuery] Re: A problem with interfaces draggables

2007-05-22 Thread Erik Beeson
An actual example online would help. Your ascii graphics are a nice try, but don't really communicate your issue very well. --Erik On 5/22/07, chrs [EMAIL PROTECTED] wrote: Hello, I am new to the jquery library (used prototype before) and this group, so if I am not posting this question at

[jQuery] Re: Dynamic content rendering anomaly

2007-05-22 Thread Erik Beeson
The problem is with .show(). The show function doesn't work on tables because it sets the CSS property display to block, and for tables you want display to be table. Instead of doing .show(), do .css(display, table). Or if you want to have the animated show effect, you could do:

[jQuery] Re: [ANN] jQuery Media Plugin

2007-05-23 Thread Erik Beeson
Awesome Mike. This is really slick! --Erik On 5/23/07, Mike Alsup [EMAIL PROTECTED] wrote: I've been working on consolidating and refactoring my media plugins. The result is a single plugin that handles virtually any media type. Supported Media Players: - Flash - Quicktime - Real

[jQuery] Re: Detecting Mouse Paste

2007-05-23 Thread Erik Beeson
Maybe some combination of click, focus, and/or change? Google javascript paste event. --Erik On 5/23/07, Glen Lipka [EMAIL PROTECTED] wrote: I have an input and I want to detect if the user drags a value into it or if they right-click and then click paste. Is there an event that fires in

[jQuery] Re: Keypress on a div

2007-05-24 Thread Erik Beeson
At least on FF, the mousedown event has a boolean property called ctrlKey: $(...).bind('mousedown', function(event) { if(event.ctrlKey) { /* ctrl was down */ } else { /* ctrl wasn't down */ } }); Not sure if that's cross browser or not. Be careful about using the ctrl key as

[jQuery] Re: Keypress on a div

2007-05-24 Thread Erik Beeson
applicazioni web dinamiche (LAMP+Ajax) Telefono: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: [EMAIL PROTECTED] 2007/5/24, Erik

[jQuery] Re: Feature/Plugin request - Animation queue

2007-05-24 Thread Erik Beeson
I'm sorry you didn't like my response. I'm all for not antagonizing people and not being condescending and not inciting a flame war, and I didn't do any of those things. Given that I 1) didn't call him any names or put him down or anything like that, 2) explained how he could implement a

[jQuery] Re: What is up with the Coach Wei slam of jQuery?

2007-05-24 Thread Erik Beeson
He really does not explain why he feels this way. Frankly, I feel the exact opposite, putting a better interface on DOM manipulation and simplifying the JS has made my code easier to read and follow. Just ask the Java developers I work with who are not asking what does this do again? nearly

[jQuery] Re: Keypress on a div

2007-05-24 Thread Erik Beeson
is better and faster? bind or the click,mouseover, etc On 5/24/07, Erik Beeson [EMAIL PROTECTED] wrote: Because the API for it is more consistent. Functionally it's the same as what you had. --Erik On 5/24/07, zio budda [EMAIL PROTECTED] wrote: bind. Why bind ? M. -- Michel 'ZioBudda

[jQuery] Re: Effect Queueing Plugin

2007-05-25 Thread Erik Beeson
. Is it possible to do this with your plugin? Because, if so, then you've come up with pretty much the perfect solution. :) On May 25, 4:08 pm, Erik Beeson [EMAIL PROTECTED] wrote: Hello all, In response to a thread yesterday, I put together a little framework for effect queueing. My version

[jQuery] Re: Getting two animations together on an element

2007-05-26 Thread Erik Beeson
How about: $(#transbox).animate({height:0,opacity:0.1},1000); --Erik On 5/25/07, joomlafreak [EMAIL PROTECTED] wrote: Most of the time I want to have two animations after one aother and I can fet it by using call back. But for something I am writing I want two animation namely height and

[jQuery] Re: Help with jquery form

2007-05-26 Thread Erik Beeson
Sounds like the issue is on your server. Neither javascript nor ajax have an inherent knowledge of sessions. You can do your usual session checks on the server and return some json that communicates that the session is expired, like {status: session_expired} or something. Good luck with it.

[jQuery] Re: How do i remove an event?

2007-05-28 Thread Erik Beeson
How about: $('div#topLineHover').one('mouseover', function() { $('#topLine').slideDown('slow'); }); Or: $('div#topLineHover').bind('mouseover', function() { $('#topLine').slideDown('slow'); }); And: $('div#topLineHover').unbind('mouseover'); --Erik On 5/28/07, [EMAIL

[jQuery] Re: How do i remove an event?

2007-05-29 Thread Erik Beeson
, But how do i rebind something which has been unbound? Erik Beeson wrote: How about: $('div#topLineHover').one('mouseover', function() { $('#topLine').slideDown('slow'); }); Or: $('div#topLineHover').bind('mouseover', function() { $('#topLine').slideDown('slow

[jQuery] Gears Plugin Ideas was: [jQuery] Re: Announce Google gears , dojo partners with them

2007-05-31 Thread Erik Beeson
Although, this sounds like a great opportunity to write a plugin around Google Gears. This was my first thought too, but after working with the API a little bit, I don't really see what functionality a jQuery plugin would add... Maybe in dealing with result sets: Before: // Get the 3 most

[jQuery] Really nice Ext Grid

2007-05-31 Thread Erik Beeson
Maybe this isn't news, but these are the sweetest grids I've ever seen, even for Ext: http://extjs.com/playpen/ext-2.0/examples/grid/grid3.html --Erik

[jQuery] Re: Altering the inner content of a link

2007-06-01 Thread Erik Beeson
.html only breaks chaining if you dont pass an argument, so try this out: $(a).html(span+$(a).html()+/span); Except $('a').html() will always return the content of the first link, so that will set all links to have the same text as the first link. You need to wrap it in each() like the OP

[jQuery] Re: jQuery css properties

2007-06-02 Thread Erik Beeson
background is an official property. See here: http://www.w3schools.com/css/pr_background.asp To access background-color, use backgroundColor. The same is true for any property with - in the name. --Erik On 6/2/07, SamCKayak [EMAIL PROTECTED] wrote: .css( {background: navy} ) is a great

[jQuery] Re: finding span with title

2007-06-02 Thread Erik Beeson
http://docs.jquery.com/DOM/Traversing/Selectors#Supported.2C_but_different $('[EMAIL PROTECTED]...]') --Erik On 6/2/07, SamCKayak [EMAIL PROTECTED] wrote: Is there a way to find all spans with a title=... using a single $ ('span:title') or similar construct? Sam

[jQuery] Re: PNG hack that works for repeated background images?

2007-06-04 Thread Erik Beeson
Pretty sure you don't get repeating transparent png backgrounds in IE6. Use a GIF, or a really big repeating background image, or use layers without backgrounds. Personally, I just use a GIF and have a little upgrade to make it not look like ass banner. A GIF version is easy to add with

[jQuery] Re: PNG hack that works for repeated background images?

2007-06-04 Thread Erik Beeson
but with IE6 still making up a substantial market share, I'd like to cater for it as well as possible I know. Were it not for that, I'd suggest you just forget it all together. Falling back to a GIF *is* catering it IE6 given that it officially doesn't support PNG at all. But if you really

[jQuery] Re: Can JQuery do this?

2007-06-04 Thread Erik Beeson
: $('#files_list').after($.get('generate.cfm')); Must be something small... On Jun 4, 1:03 am, Erik Beeson [EMAIL PROTECTED] wrote: Hard to say for sure without seeing the code. Sounds like you're appending a new image element? You could instead just update the src attribute of the image tag in question

[jQuery] Re: Can JQuery do this?

2007-06-04 Thread Erik Beeson
return the name of the image and then use jquery to actually add the img tag? I think I am getting close. On Jun 4, 1:44 am, Erik Beeson [EMAIL PROTECTED] wrote: Your syntax for $.get is wrong. What exactly does generate.cfm return? --Erik On 6/4/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote

[jQuery] Re: jqBrowser and, why no email?

2007-06-04 Thread Erik Beeson
I'm not sure about list emails. It's working for me... Have you tried this plugin: http://www.alterform.com/resources/jqbrowser-2 --Erik On 6/4/07, JoshN [EMAIL PROTECTED] wrote: Hey all, First off I stopped receiving emails from the list a while back. I have unsubscribed/re-subscribed

[jQuery] Re: Delete a table row with JQuery

2007-06-04 Thread Erik Beeson
Except he is removing the row from the DOM. Here's an example of the problem: http://erikandcolleen.com/erik/projects/jquery/trdelete/content_table.html Something about the fade out is breaking it. Check out the same thing without the fade:

[jQuery] Re: Delete a table row with JQuery

2007-06-04 Thread Erik Beeson
On 6/4/07, Erik Beeson [EMAIL PROTECTED] wrote: Except he is removing the row from the DOM. Here's an example of the problem: http://erikandcolleen.com/erik/projects/jquery/trdelete/content_table.html Something about the fade out is breaking it. Check out the same thing without the fade: http

[jQuery] Re: Question about jQuery effects and append method

2007-06-04 Thread Erik Beeson
What about it isn't working? This simple example works fine for me: $(document).ready(function() { $('body').append('div id=testThis is the test./div'); $('#test').bind('click', function() { alert('This is from a test event'); }); }); --Erik On 6/4/07, radzio [EMAIL PROTECTED] wrote:

[jQuery] Re: animating with unit '%'

2007-06-04 Thread Erik Beeson
I think your syntax for animate is a little off. It should be like: $('#wrap').animate({width: 770}, 'slow'); To get the effect you're looking for, do the animation in pixels, then change it to percent when it finishes: $('#wrap').animate({width: $(document).width()}, 'slow', function() {

[jQuery] Re: Animations breaking in Safari 2.0.4 - elements randomly disappear

2007-06-04 Thread Erik Beeson
This looks like pretty straight forward navigation menus. You might want to consider looking into already existing menu implementations instead of rolling your own. I'm not sure why the links are disappearing, but I have some other suggestions, any of which might help clean up strange behavior.

[jQuery] Re: Get the checked status from radio button?

2007-06-05 Thread Erik Beeson
Also: if($('#type_1').is(':checked')) ... --Erik On 6/5/07, howard chen [EMAIL PROTECTED] wrote: Using the traditional method, it worka console.debug ( document.getElementById(type_1).checked ); But this one failed... console.debug( $(#type_1).checked ); any method to get using

[jQuery] Re: animating with unit '%'

2007-06-05 Thread Erik Beeson
the documents width. There was a missed closed bracket in: $('#wrap').css({width: $(document).width()}).animate({width: 770, 'slow'); It's after 770, but it didn't take long to find. After fixing that and testing it out, it worked like a charm! Thanks for the feedback. On Jun 4, 7:41 pm, Erik

[jQuery] Re: security advice

2007-06-06 Thread Erik Beeson
Yargh! Unless you've omitted something, or I'm misunderstanding, I think you still have a leak in your design. To the OP: that's a fairly big question, but here are some thoughts. Apologies in advance for the length of this. Here's the big thing about web security: *any* webpage that a user

[jQuery] Re: Returning XML from AJAX

2007-06-06 Thread Erik Beeson
Make sure the content-type response header is text/xml. Is your success callback getting called at all? --Erik On 6/6/07, Tom Holder [EMAIL PROTECTED] wrote: Hi Guys, I'm having real trouble accessing some content from XML back from an AJAX request. My code is like this:

[jQuery] Re: processData:false in ajax calls?

2007-06-06 Thread Erik Beeson
You can already do that now: encodeURIComponent = function(s) { // your own encoding }; But, you know, good luck with that :) --Erik On 6/6/07, Mike Alsup [EMAIL PROTECTED] wrote: All the encoding is done in $.param using encodeURIComponent. I agree that it makes sense to modularize that

[jQuery] Re: How to manipulate with new class name?

2007-06-08 Thread Erik Beeson
Or have one click handler and check for edit/save. Maybe like this (untested): $(document).ready(function() { $('a').bind('click', function() { if($(this).is('.edit')) { alert('Edit'); return false; } else if($(this).is('.save')) { alert('Save'); return false; }

[jQuery] Re: Getting the window/frame size with JQuery .. help

2007-06-08 Thread Erik Beeson
Sounds like Cookbook type information: http://docs.jquery.com/Cookbook Hey, that page even exists already. Someone should add common stuff to it. Maybe, How do I check if a jQuery object has a particular class too. --Erik On 6/8/07, Matt Stith [EMAIL PROTECTED] wrote: Hmmm.. I think we need

[jQuery] Re: Append Area to Map

2007-06-08 Thread Erik Beeson
Well, you create a map with ID thisMap2, then you select something with id thisMap. Also, it may be redundant to change the usemap attribute at the beginning of the function, but if you are going to do that, you may want to use $('#s7Image').removeAttr('usemap'). --Erik On 6/8/07, Jimmy Glass

[jQuery] Re: Append Area to Map

2007-06-08 Thread Erik Beeson
*: Erik Beeson [EMAIL PROTECTED] *Sent*: Friday, June 08, 2007 4:23 PM *To*: jquery-en@googlegroups.com *Subject*: [jQuery] Re: Append Area to Map Well, you create a map with ID thisMap2, then you select something with id thisMap. Also, it may be redundant to change the usemap attribute

[jQuery] Re: Another Superfish release already? I'm calling it v1.2b

2007-06-11 Thread Erik Beeson
That's great! I haven't really been paying too close attention to this until now. It's really nice. The only other thing I'd really like to see is to be able to have it change on click instead of hover. --Erik On 6/11/07, Joel Birch [EMAIL PROTECTED] wrote: Hi all, Due to overwhelming

[jQuery] Re: Another Superfish release already? I'm calling it v1.2b

2007-06-11 Thread Erik Beeson
really fit into what you're doing. --Erik On 6/11/07, Joel Birch [EMAIL PROTECTED] wrote: On 11/06/2007, at 8:23 PM, Erik Beeson wrote: The only other thing I'd really like to see is to be able to have it change on click instead of hover. --Erik I'll think about the 'change on click

[jQuery] Re: Noob here, please help

2007-06-11 Thread Erik Beeson
they look the same to me. I don't see what the problem is... --Erik On 6/11/07, Terry B [EMAIL PROTECTED] wrote: Ok, so here is the page: http://www.tcbader.com/conf/ Why us my content to the right and not below the tabs like the example page here:

[jQuery] Re: Noob here, please help

2007-06-11 Thread Erik Beeson
Ah yes. Should say, I'm using FF2/Mac and it looks fine. --Erik On 6/11/07, Erik Beeson [EMAIL PROTECTED] wrote: they look the same to me. I don't see what the problem is... --Erik On 6/11/07, Terry B [EMAIL PROTECTED] wrote: Ok, so here is the page: http://www.tcbader.com/conf

[jQuery] Re: :contains - a bit more specific?

2007-06-11 Thread Erik Beeson
You could always use a filter function (untested): $('div.commentfooter span').filter(function() { return $(this).html() == 'test'; }).append('class'); But you may find it easier to give the spans in question a class so you can select them by class instead. SGML type markups seem to generally

[jQuery] Re: find is finding what?

2007-06-11 Thread Erik Beeson
jQuery always returns a jQuery object, regardless of whether it finds anything or not. To see if anything has been selected, use last.length or last.size() being greater than 0. This is by design so chaining won't break if nothing is selected: $('.someSelector').addClass('highlighted'); Will

[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-11 Thread Erik Beeson
Sounds like you haven't switched yet. Some of us know the PC in the corner scenario well :) Seriously, I got a Mac because I needed it to test code on, and it's now my only computer. I'm not a mac user, I'm still a diehard PC user, but my brand of hardware has changed (same Intel processor

[jQuery] jEditable on blank field

2007-06-11 Thread Erik Beeson
I'm using Mika Tuupola' great jEditable plugin to replace my homegrown edit-in-place implementation. I've run into a snag when editing blank fields. When I have a field (a div, not a form field) that's blank, I stick a nbsp; in it so the div will still show up. In my implementation, I made the

[jQuery] Re: jEditable on blank field

2007-06-11 Thread Erik Beeson
I figured it out. If a function is given for the data option, it will be called when creating the input field, and the return from that will be used to fill the field. So I just did this: data: function(value) { return (value == 'nbsp;') ? '' : value; } Works great! --Erik On 6/11/07, Erik

[jQuery] Re: INSPIRE: eyeos.org

2007-06-13 Thread Erik Beeson
I watched the demo video and thought, Gee, that's slick, but it would be amazing if they could do it without flash. Then I logged in to the demo and found it isn't using flash. That's by far the richest javascript only app I've ever seen. I can't imagine the work that goes into building something

[jQuery] Re: [jQuery][de] German Support Forum? intrested?

2007-06-13 Thread Erik Beeson
And there's always: http://www.google.com/translate?u=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fjquery-en%2Fmsg%2Fca4314bba5481fa0langpair=de%7Cenhl=enie=UTF8 --Erik On 6/13/07, Olaf Bosch [EMAIL PROTECTED] wrote: cfreak schrieb: I would like to make a german Support forum for jQuery,

[jQuery] Re: Safari for Windows Support Questions

2007-06-13 Thread Erik Beeson
Is anyone supporting Safari for Windows on their projects? Not yet. Will jQuery include Safari for Windows in testing? Eventually I assume it will. In other words, are they identical in rendering? I think firefox is fairly consistent between OSX on Windows. I hope Safari will be too

[jQuery] Re: AVG - Trojan Horse JS/Uniz.B ?

2007-06-13 Thread Erik Beeson
Looks like AVG is complaining about prototype and cssQuery aswell. It's definitely a false positive that you can safely ignore. Keep AVG updated. It looks like they either already fixed, or hopefully will soon. --Erik On 6/13/07, Liam Byrne [EMAIL PROTECTED] wrote: AVG is currently

[jQuery] Re: link's $(this) in MSIE6

2007-06-13 Thread Erik Beeson
I think you maybe want this.blur() instead of $(this).blur() --Erik On 6/13/07, Sergei [EMAIL PROTECTED] wrote: Hello, I have a problem in MSIE 6 using such code: a href=... onclick=myaction(); return false; JS: function myaction() { $(this).blur(); // blurs a whole window in MSIE6!

[jQuery] Re: link's $(this) in MSIE6

2007-06-13 Thread Erik Beeson
for later use. function myaction(that) { $(that).blur(); // blurs that which was this ...some animation and another actions... } On 6/13/07, Erik Beeson [EMAIL PROTECTED] wrote: I think you maybe want this.blur() instead of $(this).blur() --Erik On 6/13/07, Sergei [EMAIL PROTECTED

[jQuery] Re: how do i wait for the images to be fully downloaded?

2007-06-14 Thread Erik Beeson
There is a window.load event, and that's what you want to use: http://docs.jquery.com/Events#load.28_fn_.29 So you want: $(window).load(function() { // My stuff to do once all images are loaded... }); --Erik On 6/14/07, GianCarlo Mingati [EMAIL PROTECTED] wrote: Hi, the question may not

[jQuery] Re: Accessing elements in a Table

2007-06-14 Thread Erik Beeson
Maybe (untested): $('select.amount').bind('change', function() { var $parent = $(this).parent(); var $price = $parent.siblings('.price'); var $total = $parent.siblings('.total'); $total.html(parseInt($(this).val())*parseInt($price.html()); }); Or if you're really paranoid that your markup

[jQuery] Re: Reading a querystring to determine an action - possible?

2007-06-16 Thread Erik Beeson
You can access the current URL from javascript via window.location Maybe try parsing window.location.href or window.location.search ? --Erik On 6/16/07, Bruce MacKay [EMAIL PROTECTED] wrote: Hi folks, I'm working on a site that, by default, has a RHS sidebar. I want to be able to

  1   2   3   4   >