[jQuery] new GridTable-Plugin

2008-07-17 Thread h0tzen
I just put a new GridTable-Plugin online: http://plugins.jquery.com/project/GridTable Any comment appreciated, Kai

[jQuery] Re: callbacks calling callbacks calling callbacks ....

2008-03-10 Thread h0tzen
hi, i have similar problems like shawn: im requesting a service to return internet-sources for a specific media-type, e.g. video - amazon.de, amazon.com, imdb, ofdb, etc... then i trigger a service for each source, reading and parsing the source has a duration from 3-30 seconds so there is no

[jQuery] Re: wracking my brains on how to get error messages inline

2008-03-06 Thread h0tzen
I think you have to display: block and float: left the labels in a div container div style=clear:both label style=display: block; float:left; input ... /div

[jQuery] Re: optimization in jquery

2008-03-06 Thread h0tzen
// store selector-results in variables and reuse $sel = $('.foo-class') $sel.click $sel.find('.bar') $sel.somePlugin // specify selectors as hard as possible $('body div.foo div.bar a.foobar') is more specific and significantly faster than $('a.foobar') // use the scope

[jQuery] Re: jQuery AJAX Dynamic File Download

2008-03-06 Thread h0tzen
no, do a window.open() on the excel.php-url ... XHR is not meant to involve user-interaction (open/save) on unknown mime-types.

[jQuery] callbacks calling callbacks calling callbacks ....

2008-03-05 Thread h0tzen
Hello, as everything Ajax-related is (mostly) asynchronous every response is handled using callbacks. I often have the problem that to do action A I have to initialize multiple components on the page (if not initialized yet), then fire 1- n ajax calls, waiting for the callback and so on. this

[jQuery] Re: callbacks calling callbacks calling callbacks ....

2008-03-05 Thread h0tzen
On 5 Mrz., 15:40, J Moore [EMAIL PROTECTED] wrote: wouldn't nesting the methods work? e.g. unfortunately not as some methods have to be invoked in parallel. generally exactly this nesting looks fine with no real code behind but it is just cruel if you imagine having error-handling, rollbacks

[jQuery] Re: help with a strategy?

2008-03-05 Thread h0tzen
Much like how jquery keeps the javascript out of the HTML, it's so much cleaner to keep PHP out of the HTML as well. Have a look at the Smarty templating system for PHP. It's awesome. that's absolutely pointless, to start a new templating-engine-for-php- rant ... ;) php itself is a

[jQuery] Re: Execute JavaScript that is added to the page by AJAX?

2008-03-05 Thread h0tzen
On 5 Mrz., 16:51, Jonny [EMAIL PROTECTED] wrote: I know that the people who are asking this question (through me) are not wanting to load a heavy js library (Jquery), so the advice below won't really work :( quite dangerous to call jquery heavy in this group, as it's one of the biggest

[jQuery] Re: Evaluation ajax response data

2008-03-05 Thread h0tzen
On 5 Mrz., 04:47, jquertil [EMAIL PROTECTED] wrote: probably wont work though - maybe better to have the PHP script return a boolean true or false or 1 and 0 and then making sure your response type is value. i'm also using a boolean identifier like ACK = true, or ACK = false in the

[jQuery] Re: .html() callback?

2008-03-05 Thread h0tzen
I think the OP is adding elements to the dom, and then wondering why the events for the new elements aren't working. you're looking for the fabulous livequery plugin: http://brandonaaron.net/docs/livequery/ so long, kai

[jQuery] Re: Customized user page?

2008-01-31 Thread h0tzen
On 31 Jan., 13:17, howa [EMAIL PROTECTED] wrote: Let's say I have to make a user customizable front page, e.g. There are multiple blocks within a page (e.g. sports, news, finance, game etc), users would be able to choose their preferences (Something similar to Yahoo or iGoogle), they might

[jQuery] howto properly rebind hover

2008-01-25 Thread h0tzen
hello, i am having problems to rebind the hover event on table-rows, the unbinding works just fine but the hovering does not work anymore, the hover does not get bound again. snippet: code // hover this.table.find('tbody

[jQuery] Re: howto properly rebind hover

2008-01-25 Thread h0tzen
in the current jquery-version 1.2 you have to unbind mouseenter and mouseleave. code this.table.find(' tbody tr').unbind('hover').unbind('mouseenter').unbind('mouseleave').removeClass('gt- hover') /code

[jQuery] Re: howto properly rebind hover

2008-01-25 Thread h0tzen
anyone any hint please? at least a comment if this *should* work?

[jQuery] Re: How to detect the cursor's relative position in a textarea element???

2008-01-24 Thread h0tzen
http://plugins.jquery.com/project/fieldselection hth, kai

[jQuery] Re: Add a callback to any method

2008-01-23 Thread h0tzen
i think encapsulating your whole code with parantheses wont work ( $('*').livequery(function(){ . } ).andThen you may use a plugin like this: div class=rating1/div div class=rating2/div div class=rating3/div $.fn.andThen = function(cb) { cb.call(this); return this; }

[jQuery] Re: Add a callback to any method

2008-01-23 Thread h0tzen
i forgot,with an normal each (not using livequery) and a jquery- plugin, it works $.fn.andThen = function(cb) { cb.call(this); return this; } $(document).ready(function() { $('div.rating').each(function() { $('#log').append(li + $(this).text() +

[jQuery] Re: Livequery Toggle for newly added row

2008-01-23 Thread h0tzen
read the livequery-docs, there is no signature like livequery(String type, Function handler, Function anotherHandler) quick untested: var init = function() { $(this).toggle(function(e) { $(this).attr(src,images/btnReactivate.gif) }, function(e) { $(this).attr(src,images/btnDeactivate.gif)

[jQuery] Re: Barcode reader with jQuery

2008-01-23 Thread h0tzen
if the scanner inputs its data into a textarea or something form id=frminput type=text id=barcode value=scanner-input / /form intercept form-submit, usually triggered by enter on an text-input $('#frm').submit(function(e) { alert( 'barcode: ' + $('#barcode').text() ); return false;

[jQuery] Re: Poor Firefox performance (animations) - with link

2008-01-22 Thread h0tzen
i cant see any difference in smoothness ...

[jQuery] Re: Add a callback to any method

2008-01-22 Thread h0tzen
this is pretty smart. why not just use prototyping? thats what jscript is all about and personally i think, its *the* best idea to add that feature.

[jQuery] Re: Q: on handling GET JSON

2008-01-22 Thread h0tzen
i think the key-check is this: !s.url.indexOf(http) file://foo/bar cant be requested via XHR, so script-tag is used... On 22 Jan., 23:20, Kynn Jones [EMAIL PROTECTED] wrote: I understand what the test at the top is testing for, but I don't understand the policy implemented by the code that