RE: [jQuery] Re: Why mootools animations is more smooth than jquery?

2010-01-06 Thread Jeffrey Kretz
They seem about the same to me as well, FF3.5.6 on Win7 -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Scott Sauyet Sent: Wednesday, January 06, 2010 1:29 PM To: jQuery (English) Subject: [jQuery] Re: Why mootools animations is more

RE: [jQuery] Re: Does anybody know when jquery 1.3.3 or 1.4 will be released?

2010-01-04 Thread Jeffrey Kretz
Have you tested the 1.4 nightly with your code? Any issues with it? -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Bruce Sent: Monday, January 04, 2010 1:28 PM To: jQuery (English) Subject: [jQuery] Re: Does anybody know when jquery

RE: [jQuery] Re: Create PDF from js

2009-11-09 Thread Jeffrey Kretz
The jsPDF project, while interesting, has a long way to go. Their demo page at http://jspdf.googlecode.com/svn/trunk/examples/basic.htm Worked fine in Safari for iPhone and Safari for Windows, but broke in Chrome and Firefox 3. And no IE support at this time. Seems a bit tricky to use a

RE: [jQuery] Re: Create PDF from js

2009-11-09 Thread Jeffrey Kretz
need to send keep in mind all the data the user has insert. I know is a strange user requirement to save every page as PDF... I wonder if is techincally possible. Thanks a lot. Massimo On 9 Nov, 18:15, Jeffrey Kretz jeffkr...@hotmail.com wrote: The jsPDF project, while interesting, has a long

RE: [jQuery] support for IE 5.*

2009-11-06 Thread Jeffrey Kretz
I concur. Recent stats have put IE 5.5 usage at less than 0.1 % of web traffic. That is a tremendous minority to worry about. From: Michel Belleville [mailto:michel.bellevi...@gmail.com] Sent: Thursday, November 05, 2009 11:27 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery]

RE: [jQuery] Preventing form submit

2009-10-29 Thread Jeffrey Kretz
I agree, although I would add one thing to that. If you're going to PREVENT the form from submitting, bind to the form's submit event. If you're trying to SUBMIT the form, and which button you clicked is important (for example, firing a .NET server-side event), then bind to the click event

RE: [jQuery] jQuery minified

2009-10-29 Thread Jeffrey Kretz
A common solution is to use the minified version and then gzip that file to the client. There are many gzip solutions, depending on the server you have. JSP, PHP, ASP, etc. The idea is that it compresses the minified file (sort of light a lightweight ZIP or RAR) and it is downloaded in

[jQuery] Re: How to address elements (id? name? class?)

2009-10-26 Thread Jeffrey Kretz
I suppose the solution depends largely on what you're trying to accomplish, as well as the event handlers. If you have an object on the page that performs search-type functions, and you need to bind events to it, you could use a class-based solution: div class=searchgrid ... Content /div

[jQuery] Re: Change row colors of table based on content

2009-10-19 Thread Jeffrey Kretz
Put together a hashtable of colors based on the customer name. Something like this (untested): var hash = {}; $('#tableid tr').each(function(i){ var tr = $(this); var customer = $.trim(tr.children('td:eq(1)').html()); var color = hash[customer]; if (!color) {

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Jeffrey Kretz
This would be one way of doing that with jQuery: $.ajax({ url:https://ondemand.abc.com/xyz/sessionServlet;, success:function(results){$(#time).val(results);} }); -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nits Sent: Friday,

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Jeffrey Kretz
of the link on the page...how can I do it... On Oct 9, 3:35 pm, Jeffrey Kretz jeffkr...@hotmail.com wrote: This would be one way of doing that with jQuery: $.ajax({    url:https://ondemand.abc.com/xyz/sessionServlet;,    success:function(results){$(#time).val(results

[jQuery] Re: Accessing functions inside $(document).ready()

2009-09-21 Thread Jeffrey Kretz
It isn't necessary to define the functions inside the document.ready. Just code which is being executed. Example: function Do_Something() { /// } function Do_Something_Else() { /// } $(document).ready(function(){ Do_Something(); }); JK -Original Message- From:

[jQuery] Re: jQuery PDF Viewer?

2009-09-16 Thread Jeffrey Kretz
Are you trying to have the browser render a PDF document WITHOUT the client having the PDF reader installed? It seems to me you would need to rely on some sort of server-side technology that would convert the PDF document into straight HTML or perhaps a SWF. JK -Original Message- From:

[jQuery] Re: IE8 Selector Bug?

2009-08-12 Thread Jeffrey Kretz
My guess is its related to a problem I ran into with the Sizzle child selectors in 1.3.x I opened a ticket about a month ago http://dev.jquery.com/ticket/4917 But it hasn't been reviewed yet. JK -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]

[jQuery] Re: Get vars from one event function to another

2009-08-12 Thread Jeffrey Kretz
If both events are bound to the same object, you can use the .data method: var obj = $('#element') .data('info',val) .bind('click',do_something) .bind('blur',something_else); function do_something(e) { var el = $(this); var info = el.data('info'); ...

[jQuery] Re: $.browser returning 'wrong' browser version - anyone seen this UA string before?

2009-07-15 Thread Jeffrey Kretz
Firstly, your original UA is probably IE7/Vista. This is a proper msie6 browser detection script: $.browser.msie6 = $.browser.msie /MSIE 6\.0/i.test(window.navigator.userAgent) !/MSIE 7\.0/i.test(window.navigator.userAgent); Secondly, the whole idea behind feature detection is to remove the

[jQuery] Re: Calling ASMX from JQuery

2009-05-18 Thread Jeffrey Kretz
Correct. Try visiting your asmx page in a browser. http: //localhost/BoATransformation/Survey.asmx?op=GetSurvey You will be shown the exact format needed to make your request. JK From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Joseph Le

[jQuery] Re: regex backreference with text()?

2009-05-11 Thread Jeffrey Kretz
Untested, but you may need to use the non-greedy form of .* to make this work: /.*?(\d+).*/ JK -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Ricardo Sent: Monday, May 11, 2009 1:09 PM To: jQuery (English) Subject: [jQuery] Re:

[jQuery] Re: Selector help needed

2009-04-28 Thread Jeffrey Kretz
You can also create a closure: $(document).ready(function(){ $('#menulinks a').hover(function(){ var fn = function(el){ return function(){ $(el).stop().animate({ top : '40px', paddingTop : '40px' }); el = null;

[jQuery] Re: With IE8 out, how do you test for IE6?

2009-03-23 Thread Jeffrey Kretz
+1. I found Multiple IE to be inaccurate for certain types of CSS and Javascript. I've used VPC for my compatibility testing for some time now and swear by it. JK -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Dhana Sent: Monday,

[jQuery] Re: Implementing a Knob Control

2009-01-26 Thread Jeffrey Kretz
If I could second this from a usability perspective. I've used a flash-based interface that had a rotating knob. Moving that with a mouse was counter-intuitive. Dragging a straight slider (horizontal or vertical) just felt a lot better. JK -Original Message- From:

[jQuery] Re: Is there a problem with Child selectors in Safari with 1.3?

2009-01-22 Thread Jeffrey Kretz
One question, if you're referring to your elements by id, can't you just do: $('#elmId'); Directly? Rather than by a parent/child relationship? If the problem is that you have multiple elements on the same page with the same id (which is NOT recommended HTML), then I suggest using a class

[jQuery] Re: In a pickle -- JavaScript Pagination vs. PHP/MySQL Pagination

2009-01-06 Thread Jeffrey Kretz
I solved this for my own project in this way: 1. Server-side code renders the first page of the grid, also passing a value of total results. 2. If the total results are few enough (season to taste), fire an ajax call that immediately loads the entire result set into memory. 3. As the user

[jQuery] Re: Hovering the mouse through multiple div's that intersect?

2008-12-15 Thread Jeffrey Kretz
You could put all 4 boxes inside a containing div, and apply the hover event to that parent div. When you move from one child div to another, it will not fire the mouseleave event. JK -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of

[jQuery] Re: Trouble setting Select object in browsers != IE 7

2008-12-14 Thread Jeffrey Kretz
There shouldn't be an issue, so long as existingCase.records.Spin_Off__c has a correct value. Do your option elements have explicitly defined values? Like this: option value=YesYes/option option value=NoNo/option option value=nbsp;/option If not, try changing your markup and see if that

[jQuery] Re: Trouble setting Select object in browsers != IE 7

2008-12-14 Thread Jeffrey Kretz
Well, if you are able to post a test case online, I'd be happy to step through the code and see if I can see what's up. If you do want to do this, an unminified copy of jquery would be preferable. JK -Original Message- From: jquery-en@googlegroups.com

[jQuery] Re: [treeview] Brief flash of expanded tree

2008-12-14 Thread Jeffrey Kretz
AFAIK, no SEO bots will ever execute javascript or read hidden (display:none, visibility:hidden, etc.) HTML for SEO purposes. This is as a result of some developers front loading hidden content that was not really part of the website to fool the search engine to giving it higher rankings.

[jQuery] Re: passing args to a delegate

2008-12-13 Thread Jeffrey Kretz
Mike's suggestion involves creating a javascript closure. There are a number of good articles on closues. http://www.google.com/search?hl=enq=javascript+closuresrlz=1W1GGLL_en But essentially, when you create a function that has a reference to a value outside of its scope, that function is

[jQuery] Re: Very weird and frustrating IE problems

2008-12-08 Thread Jeffrey Kretz
It is unfortunately the default behavior for IE. There are different ways you can handle this, depending on what you're trying to accomplish. You can do a lot of stuff with regex, such as stripping out the domain, making the path relative to the current page, etc. What is it that you want to

[jQuery] Re: IE 7 Issue with Tab with left: -10000px

2008-12-06 Thread Jeffrey Kretz
Is there any reason why you aren't just hiding the tab with a display:none? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ashish Sent: Saturday, December 06, 2008 3:47 PM To: jQuery (English) Subject: [jQuery] IE 7 Issue with Tab with left:

[jQuery] Re: IE 7 Issue with Tab with left: -10000px

2008-12-06 Thread Jeffrey Kretz
tabs and YUI data table column sizes go all weird with display: none any solutions? On Dec 6, 4:03 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: Is there any reason why you aren't just hiding the tab with a display:none? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL

[jQuery] Re: IE 7 Issue with Tab with left: -10000px

2008-12-06 Thread Jeffrey Kretz
by dragging the bottom right corner of browser) the content in tables resize very nicely in browser window. could not get the same without tables. On Dec 6, 5:29 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: You could post a test case page and I could take a look at it, but if there is any way so do

[jQuery] Re: How to animate frameset properties?

2008-12-04 Thread Jeffrey Kretz
I'm going to toss this out there, though you may not want the effort. You could sort of roll your own animation that uses the attribute, rather than the CSS. It would involve a setTimeout, and use the $(el).attr('cols',val); Again, that's a lot of plumbing to tackle, but any attribute that can

[jQuery] Re: How beneficial is chaining methods?

2008-12-03 Thread Jeffrey Kretz
That is half correct. Obj.method1().method2().method3() method1 return the modified original object, not a brand-new object. You could do this: var obj = $('#elementid'); obj.method1(); obj.method2(); obj.method3(); And it would be the same (with the same performance) of:

[jQuery] Re: Targetting .class-0 .class-1 .class-2 .class-3

2008-12-03 Thread Jeffrey Kretz
I would recommend your elements having two classes. One which stays the same, and the second one which changes. e.g. div class=jcalendar calendar0/div div class=jcalendar calendar1/div div class=jcalendar calendar2/div div class=jcalendar calendar3/div Then you could grab it with

[jQuery] Re: Is there a createElement equivalent in jQuery?

2008-12-03 Thread Jeffrey Kretz
You can do it this way: var div = $('div/div') .appendTo(document.body) .attr('property',value) .css({prop:val}) .bind('click',fn); JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yansky Sent: Wednesday, December 03, 2008 9:21 PM

[jQuery] Re: Is there a createElement equivalent in jQuery?

2008-12-03 Thread Jeffrey Kretz
To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is there a createElement equivalent in jQuery? Thanks, I didn't know that you could bind an event handler like that. :) BTW, does the var div now reference the new element, or does it represent the event handler? Jeffrey Kretz wrote: You

[jQuery] Re: finding script tags in remote HTML

2008-12-02 Thread Jeffrey Kretz
geek Before I answer, I've gotta ask (I've been wondering for MONTHS), have you read the Starrigger series? /geek Now that that's out of the way, I can think of a couple of approaches. #1. Parse the links with regex $.get(link,{},function(html){ var r_links =

[jQuery] Re: Has jQuery development halted?

2008-12-01 Thread Jeffrey Kretz
Ariel, I'm sure this isn't said enough, but I wanted to thank you for the work you've done on the system. I've been working overtime (like 90 hour a week) for the last 2 months on a major project with a killer deadline, and I would be completely screwed without the work you (and the rest of the

[jQuery] Re: Using jquery to construct menus like nbc.com

2008-12-01 Thread Jeffrey Kretz
- Ted Jeffrey Kretz wrote: I made a few changes and reposted it here: http://test1.scorpiondesign.com/LocalTest7.htm Changes: menu1 through menu5 were moved underneath their respective LIs. When the menus were NOT children of the LIs, the mouseenter mouseleave kept firing. #nav

[jQuery] Re: Simple way to suppress display of title attribute on hover?

2008-12-01 Thread Jeffrey Kretz
A CSS-compliant browser will render the title attribute -- it's probably not the best way to store data. You can use the jQuery.data method instead: http://docs.jquery.com/Core/data#name JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of René

[jQuery] Re: Problem with prev() in IE

2008-11-30 Thread Jeffrey Kretz
in the HTML necessary to make this work. On Nov 29, 11:21 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: Okay, so I stepped through the code.  I'm going to hazard a guess that you didn't want the previous element but the parent element. $('#LHNav ul').prev() returns an H1 and an array of A elements

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread Jeffrey Kretz
If I might make a suggestion. Right-click context menus are inherently not cross-platform compatible, as Opera will not cancel the default right click popup. Any any Mac users without a right mouse button are screwed. I personally suggest using CTRL-Click. This works on a Mac testing for the

[jQuery] Re: [autocomplete] Problem with Scrolling IE 7

2008-11-30 Thread Jeffrey Kretz
Not sure what's happening on the javascript end, but CSS-wise, the FF list has an attribute of overflow:auto and the same list has an attribute of overflow:hidden. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Code Daemon Sent: Sunday,

[jQuery] Re: jQuery loop help

2008-11-30 Thread Jeffrey Kretz
One way you could do this is have give the links in question a specific ID, class or attribute. For example: div id=myLinks a href=# id=link1link 1/a a href=# id=link2link 2/a a href=# id=link3link 3/a /div $('#myLinks a').click(doSomething); function doSomething(e){ switch

[jQuery] Re: Double right-click, anyone?

2008-11-30 Thread Jeffrey Kretz
cancel the context menu on Opera and other browsers. And apparently on Macs the event for a Ctrl +click carries the 'right-click' identifier (e.button = 2). cheers, - ricardo On Nov 30, 4:07 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: If I might make a suggestion. Right-click context menus

[jQuery] Re: Problem with prev() in IE

2008-11-29 Thread Jeffrey Kretz
I've used something very similar to that in IE6 without any problems. Could you post a demo page? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flycast Sent: Saturday, November 29, 2008 3:57 PM To: jQuery (English) Subject: [jQuery]

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
Can you post a sample url? The code below looks fine, don't see why it would fail. It would be easy to step through it with an IE script debugger to see what's up. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Andrews Sent:

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
Well, it was a bit of a pain to step through, as it was minimized jquery -- the full uncompressed version is much better for debugging. But as I stepped through, the success method did actually fire. The problem was that $(xml).find('file') did not return any results. I've never used jQuery to

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
debugger :) Thanks again Dave -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Kretz Sent: 30 November 2008 03:40 To: jquery-en@googlegroups.com Subject: [jQuery] Re: .ajax and ie7? Well, it was a bit of a pain to step through

[jQuery] Re: .ajax and ie7?

2008-11-29 Thread Jeffrey Kretz
] On Behalf Of Uwe C. Schroeder Sent: Saturday, November 29, 2008 8:04 PM To: jquery-en@googlegroups.com Cc: Jeffrey Kretz Subject: [jQuery] Re: .ajax and ie7? On Saturday 29 November 2008, Jeffrey Kretz wrote: This may be overkill for your needs, but it is free: http://www.microsoft.com/express/vwd

[jQuery] Re: Problem with prev() in IE

2008-11-29 Thread Jeffrey Kretz
] On Behalf Of flycast Sent: Saturday, November 29, 2008 8:29 PM To: jQuery (English) Subject: [jQuery] Re: Problem with prev() in IE Yes... http://www.trinityacademy.org/testNavigation/ On Nov 29, 6:22 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I've used something very similar to that in IE6 without

[jQuery] Re: quote standards

2008-11-28 Thread Jeffrey Kretz
Same here. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Geary Sent: Friday, November 28, 2008 2:20 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: quote standards I've posted messages here quite a few times recommending

[jQuery] Re: Adding IMG attributes

2008-11-28 Thread Jeffrey Kretz
Not exactly. The $(document).ready function fires when the DOM has been fully built, so not all the images will be loaded at that time. You could bind to the images load method as well. function fixDimensions() { var img = $(this); img.attr('width',img.width());

[jQuery] Re: animate problem with IE7

2008-11-27 Thread Jeffrey Kretz
but not exactly what I need, therefore I have to start tweaking them and 'often' it would take less time doing it from scratch... often... ;-) On Nov 24, 12:09 am, Anyulled [EMAIL PROTECTED] wrote: why don´t you use Jquery Cycle plugin? On Nov 22, 10:17 pm, Jeffrey Kretz [EMAIL

[jQuery] Re: scope issues in safari

2008-11-26 Thread Jeffrey Kretz
for the suggestion. It didn't work though. I'm at a loss. Is this a jQuery bug, or am I doing something wrong? On Nov 25, 3:53 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: You could try this:     jQuery('div.clause').each(function(){       var width = 0;       var words = jQuery(this).children

[jQuery] Re: Using jquery to construct menus like nbc.com

2008-11-25 Thread Jeffrey Kretz
If you have a sample url of your code, that would be helpful. But at a guess, the flyout div is probably not a child of the main menu element, so the mouseenter and mouseleave won't work properly. If this is the case, it will require a minor change to the hover plumbing. The z-index with flash

[jQuery] Re: Using jquery to construct menus like nbc.com

2008-11-25 Thread Jeffrey Kretz
. The mouseenter/mouseleave events helped, but I'm seeing some strangeness on the first menu item, and then some flickering on the others. http://dl.getdropbox.com/u/21984/menu_test.html Jeffrey Kretz wrote: If you have a sample url of your code, that would be helpful. But at a guess, the flyout

[jQuery] Re: dynamic tree / treeview

2008-11-25 Thread Jeffrey Kretz
that whatever data I am showing on the page is updated one and latest? Please advice. Thanks, Bhavin On Nov 22, 3:29 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I'm not 100% I understood your question, but I'll give it a shot. I have a dynamically rendered TreeView that is showing a page hierarchy

[jQuery] Re: scope issues in safari

2008-11-25 Thread Jeffrey Kretz
You could try this: jQuery('div.clause').each(function(){ var width = 0; var words = jQuery(this).children('div.word'); for (var i=0;iwords.length;i++) { var word = words.eq(i); var thiswidth = word.width(); var padding =

[jQuery] Re: animate problem with IE7

2008-11-24 Thread Jeffrey Kretz
and 'often' it would take less time doing it from scratch... often... ;-) On Nov 24, 12:09 am, Anyulled [EMAIL PROTECTED] wrote: why don´t you use Jquery Cycle plugin? On Nov 22, 10:17 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I'm not an expert in the animation sytem -- you should open a ticket

[jQuery] Re: How can i do Image rollover with simple gamma change?

2008-11-24 Thread Jeffrey Kretz
Opacity would fade in the image as a whole, rather than adjusting its brightness/contrast (which is more what gamma would adjust). I don't know how fancy you want to get, but you could absolutely position a div in front of the image, set for white (or black) and adjust its opacity from 0 to some

[jQuery] Re: how to capture error 500/404 ?

2008-11-23 Thread Jeffrey Kretz
The best way would be to use the $.ajax call directly (both the post and the get function call $.ajax internally). $.ajax({ type:'GET', url:'somepath.php', dataType:'json', success:do_something, error:do_something_else }); function do_something(results) { /// } function

[jQuery] Re: event delegation - great, but how does one trigger the handlers through code?

2008-11-22 Thread Jeffrey Kretz
I pretty sure it won't, because click() will fire trigger(), which will use data() to lookup the bound event of the selected element, and not find anything. Haven't tested this though. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[jQuery] Re: dynamic tree / treeview

2008-11-22 Thread Jeffrey Kretz
I'm not 100% I understood your question, but I'll give it a shot. I have a dynamically rendered TreeView that is showing a page hierarchy, parent and child. There is an option to add/remove pages, as well as drag them around. Because I need the id of the page and its parent, I render it in the

[jQuery] Re: animate problem with IE7

2008-11-22 Thread Jeffrey Kretz
I watched the animation with the IE developer toolbar, and noticed a couple of oddities. Firstly, the CSS for the divs are set to both position:absolute and float:left. This is not the source of the problem (I overwrite to float:none and tried it), but float:left is unnecessary if with absolute

[jQuery] Re: animate problem with IE7

2008-11-22 Thread Jeffrey Kretz
. I uploaded jQuery unpacked... if you still want to have a look... ;-) BTW, there could be something wrong with animate('left','+=50%'); but that would mean a bug... :-| Thanks, Andrea On Nov 22, 11:51 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I watched the animation with the IE developer

[jQuery] Re: event delegation - great, but how does one trigger the handlers through code?

2008-11-22 Thread Jeffrey Kretz
://code.google.com/p/nwevents/ It's an event manager and it can fire/propagate 'fake' events. - ricardo On Nov 22, 7:32 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I pretty sure it won't, because click() will fire trigger(), which will use data() to lookup the bound event of the selected element, and not find

[jQuery] Re: event delegation - great, but how does one trigger the handlers through code?

2008-11-21 Thread Jeffrey Kretz
I've used a pattern like this: var table = $('table.class') .bind('click',selectCell); function selectCell(e) { var cell = e.target; do_something(); } var cell = table.find('td.eq(8)'); selectCell.apply(table[0],[{target:cell[0]}]); JK -Original Message- From:

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-19 Thread Jeffrey Kretz
Personally I find debugging jQuery a snap -- even on my current project which is in excess of 25,000 lines of js code. I will say that I stay away from the ASP.NET ajax system completely, all of my hooks between jQuery and .NET are my own and I have had no problems. The original AJAX.NET

[jQuery] Re: Pause between each()

2008-11-19 Thread Jeffrey Kretz
Off the top of my head (untested, sorry) var things = $('things'); var index = 0; things.eq(0).doStuff(); var fn = function() { index++; things.eq(index).doStuff(); setTimeout(fn,1000); }; setTimeout(fn,1000); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL

[jQuery] Re: jQuery css opacity and 2nd level suckerfish menus...

2008-11-18 Thread Jeffrey Kretz
The problem you have is due to the terrible IE implementation of opacity. IE actually uses DirectX 2D filters to render opacity, along with a whole bevy of completely proprietary filters and transitions. See this page for reference: http://msdn.microsoft.com/en-us/library/ms532847(VS.85).aspx

[jQuery] Re: flexbox - makes no mention of server-side coding

2008-11-18 Thread Jeffrey Kretz
I might be misunderstanding your question, but javascript plug-ins seldom describe the associated server-side code, as it really depends on your platform. PHP, ColdFusion, PERL/CGI, Java, .NET, all will have very different implementations of server-side solutions, along with their Database

[jQuery] Re: asp.net and jquery - reactions to this letter

2008-11-18 Thread Jeffrey Kretz
I wish I had some specific developer's blogs/resources to give you, but I can't think of any off the top of my head. However, for the last couple of years, all my software development has been C#/SQL backend with jQuery frontend, and it's been a perfect marriage as far as I'm concerned. If you

[jQuery] Re: Visual Studio Intellisense Issues

2008-11-12 Thread Jeffrey Kretz
Here are a couple of articles on it: http://brennan.offwhite.net/blog/2008/02/01/intellisense-for-jquery-in-visua l-studio-2008/ http://blogs.ipona.com/james/archive/2008/02/15/JQuery-IntelliSense-in-Visua l-Studio-2008.aspx

[jQuery] Re: [ANNOUNCEMENT] jquery.timepickr.js: first official release

2008-11-11 Thread Jeffrey Kretz
I think it’s a great idea --it's a zillion times friendlier than an alert validator in ensuring properly formatted data. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Liam Potter Sent: Tuesday, November 11, 2008 7:16 AM To:

[jQuery] Re: [ANNOUNCEMENT] jquery.timepickr.js: first official release

2008-11-11 Thread Jeffrey Kretz
Look terrific in FF, but it's seriously broken in IE7. I get a script error on line 8007 whenever I click on the page, which seems to prevent anything from working. // hide all levels hide: function() { self = this; Right here. setTimeout(function() {

[jQuery] Re: get the class that starts with ...

2008-11-11 Thread Jeffrey Kretz
Try $('[class^=rate]'); -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of debussy007 Sent: Tuesday, November 11, 2008 3:15 PM To: jquery-en@googlegroups.com Subject: [jQuery] get the class that starts with ... Hi, How is it possible to get

[jQuery] Re: JSON parser?

2008-11-10 Thread Jeffrey Kretz
Is there a problem with using the eval function? I'm curious why you would need an alternative that would add overhead. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Monday, November 10, 2008 9:05 AM To: jQuery (English)

[jQuery] Re: JSON parser?

2008-11-10 Thread Jeffrey Kretz
I just answered my own question. Are you trying to parse JSON provided from another source? I.e. not one of your own server pages? JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Alsup Sent: Monday, November 10, 2008 9:05 AM To:

[jQuery] Re: Is anyone from London?

2008-11-08 Thread Jeffrey Kretz
Well I never been to England But I kinda like the Beatles Well I headed for Las Vegas Only made it out to Needles -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of weepy Sent: Saturday, November 08, 2008 8:45 AM To: jQuery (English) Subject:

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-07 Thread Jeffrey Kretz
(English) Subject: [jQuery] Re: Scrolling inside a div with mousemove Ah ok, So does that mean I need to calctulate how far up or down it can scroll? On Nov 7, 7:34 am, Jeffrey Kretz [EMAIL PROTECTED] wrote: Ah, This part of the code: // Use the e.clientX and e.clientY vs this.tempPosition

[jQuery] Re: animated robot cartoon with jquery

2008-11-07 Thread Jeffrey Kretz
It's actually workable to use Flash as a basis for the sound. It's easier with ActionScript 3.0, but it can still be done in earlier versions. You have to bind a flash method to an external interface (look up ExternalInterface in the docs). Then you can find the object by ID, and call the

[jQuery] Re: How to solve this

2008-11-06 Thread Jeffrey Kretz
Mostly like your last question just got overlooked, as it came in at 4:30am. ;-) There are two types of progress bar indicators you can use. The first is a fake one, with an animated picture that doesn't really mean anything. However, when you post the page most browsers will pause gif

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-06 Thread Jeffrey Kretz
getting an error that says setTop is not defined Any idea why this is? On Nov 6, 1:15 am, Jeffrey Kretz [EMAIL PROTECTED] wrote: Well, you could do something like this (completely untested, sorry). The hover events bind and unbind the mousemove to prevent resource drain. $('#thisdiv').hover

[jQuery] Re: Can I make jquery not fail silently??

2008-11-05 Thread Jeffrey Kretz
Richard is exactly correct IMO. The separation of HTML and Javascript allows you do write more general javascript in attached scripts that can be applied to any page. $('img.ihover').hover( /* Do stuff */ ); Any pages with image class=ihover will get the hover function. Nothing will happen on

[jQuery] Re: Trying to grasp basics of scrolling a TBODY

2008-11-05 Thread Jeffrey Kretz
Cool, Glad you got it sorted out. JK From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Downs Sent: Wednesday, November 05, 2008 5:06 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Trying to grasp basics of scrolling a TBODY Jeffrey Kretz wrote

[jQuery] Re: Advice on sIEve/Drip?

2008-11-05 Thread Jeffrey Kretz
:20 am, Jeffrey Kretz [EMAIL PROTECTED] wrote: OUCH. With over 25,000 lines of javascript code (full featured CMS) that's a nightmare to track down. Am I out of luck?  Are there no other alternative tools like sIEve that are still in development? Hi, there is another tool by microsoft, you

[jQuery] Re: Can I make jquery not fail silently??

2008-11-05 Thread Jeffrey Kretz
Heh. I like that -- the Code Jihad. I agree 100% about failing silently being a BAD THING(tm). However, our disagreement involves what constitutes a fail. The only thing we've been trying to say is, an empty result set is only a fail under certain circumstances. To define an empty result set

[jQuery] Re: Problems with the JSON return from the jQuery.ajax() method

2008-11-05 Thread Jeffrey Kretz
Your second documentos array (the empty one), has a comma after it, which is not followed by another property. When I tried to eval your original json, I got an error. After removing that comma, it eval'ed correctly. Hope this helps. JK -Original Message- From:

[jQuery] Re: Scrolling inside a div with mousemove

2008-11-05 Thread Jeffrey Kretz
Well, you could do something like this (completely untested, sorry). The hover events bind and unbind the mousemove to prevent resource drain. $('#thisdiv').hover(startScroll,stopScroll); function startScroll(e) { var div = $(this).bind('mousemove',scrollThis); var o = div.offset();

[jQuery] Re: Check if remote file exists.

2008-11-05 Thread Jeffrey Kretz
That's pretty interesting -- I never thought of that. So I imagine an $.ajax({url:'somefile.dat',type:'HEAD',error:do_something}) would be enough to check for a 404. Nifty. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Karl Rudd Sent:

[jQuery] Re: Slide out sidebars

2008-11-05 Thread Jeffrey Kretz
Try something like this: div.toolbox{ position:absolute; top:0px; right:0px; width:220px; height:99%; border-left:solid 1px #00; overflow:hidden overflow-x:hidden; overflow-y:hidden; } Monitor the resize event. window.lastWidth =

[jQuery] Re: order of script not right (explained inside)

2008-11-05 Thread Jeffrey Kretz
My guess is it's an absolutely positioned element, which won't respond well to auto margins. If this is the case, one option would be to measure the width of the window at the time of drop-down, calculate and set the css left appropriately. If it is a static/relatively positioned element, and

[jQuery] Re: Bug in IE7 - Complains about Opera bindReady code in jquery

2008-11-05 Thread Jeffrey Kretz
flagging it as a potential issue. On Nov 4, 10:25 am, Jeffrey Kretz [EMAIL PROTECTED] wrote: This is a bit confusing.  Is IE7 running that block of code, even though its earmarked for Opera? Like is the browser detection is failing? Or is IE7 failing when that code is there even though it never

[jQuery] Re: Advice on sIEve/Drip?

2008-11-03 Thread Jeffrey Kretz
I figured I'd bring this up again - I'm really hoping someone here has some advice for me on this. Buehler? JK From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Kretz Sent: Friday, October 31, 2008 4:56 PM To: jquery-en@googlegroups.com Subject: [jQuery

[jQuery] Re: Advice on sIEve/Drip?

2008-11-03 Thread Jeffrey Kretz
own leaks by running suspect functions 1,000s of times. --matt On Nov 3, 3:38 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: I figured I'd bring this up again - I'm really hoping someone here has some advice for me on this. Buehler? JK From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED

[jQuery] Re: Bug in IE7 - Complains about Opera bindReady code in jquery

2008-11-03 Thread Jeffrey Kretz
This is a bit confusing. Is IE7 running that block of code, even though its earmarked for Opera? Like is the browser detection is failing? Or is IE7 failing when that code is there even though it never runs it? Meaning, the bug went away when you commented out code that is never reached? JK

[jQuery] Re: Trying to grasp basics of scrolling a TBODY

2008-11-02 Thread Jeffrey Kretz
Ken, Do you have a test case page online somewhere I could take a look at? I've successfully implemented a scrollTo-type function using offsets and rows, and if I can see the page you're working with I might be able to suggest something. JK From: jquery-en@googlegroups.com

[jQuery] Re: Advice on sIEve/Drip?

2008-11-01 Thread Jeffrey Kretz
*bump* From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeffrey Kretz Sent: Friday, October 31, 2008 4:56 PM To: jquery-en@googlegroups.com Subject: [jQuery] Advice on sIEve/Drip While debugging my application (which makes heavy use of jQuery), after several hours IE

  1   2   3   >