[jQuery] Re: jquery.com incredibly slow for me

2008-09-19 Thread Michael Stuhr


Karl Swedberg schrieb:


Please take a look at this post, which provides links to a number of 
alternative resources for jQuery documentation, including an Adobe Air 
app for offline browsing:


http://www.learningjquery.com/2008/07/jquery-documentation-alternatives
Sorry, i missed that completely. Is that already linked on the Wiki / 
Help page (docs.jquery.com) ?

If not, i'd vote for it.
--
micha


[jQuery] Re: jQuery how to pronounce

2008-09-10 Thread Michael Stuhr


Reinaldo JuniorZ schrieb:

Hello guys,

I'm goigo to give a speech on the campus about jQuery and I'm
wondering what is the correct pronounce to jQuery...

Any Help?
  

best javascript framework EVAR!

:-)

--
micha


[jQuery] Re: EVENT BUBBLING - IE6 - ARRGGGHHH!!

2008-06-10 Thread Michael Stuhr

Joe schrieb:

// To prevent event bubbling, return false (right?)
return false;
  

shouldn't that be event.preventDefault();  like

$(form).*bind*(submit, function(event){
 event.preventDefault();
});

?

micha


[jQuery] Re: EVENT BUBBLING - IE6 - ARRGGGHHH!!

2008-06-10 Thread Michael Stuhr


Joe schrieb:

I am running Multiple IEs on one box and IE Tester on
another and neither will allow me to set the cookie in IE6.  IE7 is
fine.
  

afaik:
that's not a bug, that's a feature.

micha


[jQuery] Re: IE8

2008-03-06 Thread Michael Stuhr


timothytoe schrieb:

One thing I noticed is that the JavaScript is still painfully slow,
but perhaps there is a lot of debug stuff in there slowing it down.

What takes 7 seconds in Safari and 8 in Firefox 3b3 takes 25 seconds
in IE8! (28 seconds in IE6).

That's ~11% better in ~8 years
Not too bad. :-)

micha


[jQuery] ui-slider

2008-03-04 Thread Michael Stuhr


i know they're still in beta, but does anyone else see that setting the 
startValue is broken ?

As a workaround i tried:
$j('#slider').slider( moveTo, fontsize); where fontsize definately != 
undefined or worse.

So is it simply broken ?

micha



[jQuery] Re: Wordpress: Get post using Jquery

2008-02-05 Thread Michael Stuhr



http://extjswordpress.net/

no more needed :-)

micha


[jQuery] Re: jQuery UI Datepicker v3.0 Released! (Previously named jQuery Calendar)

2007-11-01 Thread Michael Stuhr


Graeme B. Davis schrieb:

Is there a way to apply a style it so that it looks a bit better?  Perhaps
like this calendar I've been using on my sites for ~6yrs:

http://www.ssw.com.au/ssw/Standards/DeveloperGeneral/Images/popupCalendar.gi
f
http://www.peterbe.com/plog/blogitem-20031017-1526/popwincal

I like the jquery calendar, but feel it doesn't look as good as it could...


no offense, but:
have you even looked at the example site ?

there's a tab that says Stylesheets. I guess that's (nearly) all you need.

micha


[jQuery] Re: [ANNOUNCE] Jquery spot on crysis

2007-10-25 Thread Michael Stuhr


Anthony Leboeuf(Worcester Wide Web) schrieb:

Hey was just looking at crysisdemo page and saw it used jquery
http://crysisdemo.com/

-Tony


maybe this is of interest for those looking for jquery use on pages:

http://www.sunsean.com/jquerydetect/

micha


[jQuery] Re: Demos of UI and IE7

2007-10-23 Thread Michael Stuhr


[EMAIL PROTECTED] schrieb:

Hi.  Just thought I'd let someone know that using IE7, none of the
examples for the UI work.  I can click away to my heart's content, and
nothing happens.  Anywhere.  :-)



i think you're safe to say they're still beta.

micha


[jQuery] Re: jQuery 1.2.1 and Interface/ui Sortable Bug?

2007-10-05 Thread Michael Stuhr


Suni schrieb:

Reproduced here with FF 2 on WinXP.

As soon as I let go of a draggable the error console goes mad.



yeah i should've mentioned that too:

i was on winXP FF2 too, but IE6 has Problems too.

the error seems to be this function:

1095 remove: function(a){
1096 if ( !a || jQuery.filter( a, [this] ).r.length ) {
1097 jQuery.removeData( this );
1098 this.parentNode.removeChild( this ); // error: this parent 
node has  	 no properties



micha


[jQuery] Re: IT Assistant

2007-09-24 Thread Michael Stuhr


Gordon schrieb:

Well it's finally ready enough to go live so now I can plug the big
jQuery-driven project I've been working on.  It's called IT Assistant
and is intended to make shopping to IT equipment easier (and more fun
from the comments I've had back on it so far :) ).

http://www.pcwb.com/assistants/



uhh ... i was just going mad for the prices, when i realized that it's 
british pounds :-)


nice. very nice.

feels like a flex-app.

micha


[jQuery] Re: Spolsky's Strategy Letter VI

2007-09-19 Thread Michael Stuhr


Bil Corry schrieb:

This is interesting in the context of jQuery's core optimization vs. larger, 
less-optimized libraries:
http://www.joelonsoftware.com/items/2007/09/18.html


Assembler programmers don’t have groupies.

xcellent!

micha



[jQuery] Re: [SITE SUBMISSION] wo2do.com

2007-09-19 Thread Michael Stuhr


Rey Bango schrieb:

Jonah at 64squar.es sent me this one:

http://wo2do.com/

An online community for sharing and caring about things to do around the 
world.




they need a new google-api-key :-)

micha


[jQuery] Re: Found a dodgy copy of your book

2007-09-10 Thread Michael Stuhr


Tane Piper schrieb:

Hey Karl,



Don't you think it would be more clever to directly mail him inistead of 
 ... well


micha


[jQuery] Re: jQuery getElementsByName Equivalent ?

2007-09-07 Thread Michael Stuhr


0xCAFE schrieb:

Is there a jQuery equivalent for getElementsByName that will return an
array ?

Thanks!
0xCAFE


well id's generally should be only used once per site. that's what they 
are made for. it's an identificator. what you look for is probably a class


so you'd do '$('.myclass')' and you'll get that elements who have a 
class of 'myclass' as an array.


additionally there are other ways to achieve this, eg. if there is no 
such class.


look here:
http://docs.jquery.com/DOM/Traversing

micha



[jQuery] Re: Image rollover plugin?

2007-09-06 Thread Michael Stuhr

howa schrieb:
 Something like what dreamweaver provide, are there such as plugin in
 jQuery?
 
 Thanks.
 
 
function onMouseOver ()
{
var file = $j(this).attr(src);
var filetype = file.substr(-4);
file = file.substr(0, file.length - 4);
$j(this).attr(src, file +'_OVER' + filetype);
}
function onMouseOut ()
{
var file = $j(this).attr(src);
var filetype = file.substr(-4);
file = file.substr(0, file.length - (4 + 5));
$j(this).attr(src, file + filetype);
}
$j('img.hoverImage').mouseover(onMouseOver);
$j('img.hoverImage').mouseout(onMouseOut);
$j('img.hoverImage').mousedown(onMouseOut);
$j('img.hoverImage').focus(onMouseOver);


now you just have to have 2 images where a Hover-State is needed. just
name the Hover-State-Image imagename+'_OVER' ...

no plugin needed.


but one quest: can't you use CSS ? is much faster than js + u can so
simply preload the images ...

micha


[jQuery] Re: Image rollover plugin?

2007-09-06 Thread Michael Stuhr


Glen Lipka schrieb:
This seems like massive overkill to me.  What's wrong with the hover 
function in the core API?


and how would that look like ?

as i already said: if you plan wisely i think all you need is css.
just wanted to give an understandable example.

micha


[jQuery] Re: jQuery 1.1.4: Faster, More Tests, Ready for 1.2

2007-08-24 Thread Michael Stuhr


Andy Matthews schrieb:
He might have misread the slice() function? 


that's a 2.0 feature (or better shall be) ...

micha


[jQuery] Re: Preview: Brand new tablesorter 2.0, multi-column sorting and more

2007-07-06 Thread Michael Stuhr


Christian Bach schrieb:

Hi,

I put together a demo/preview  for the upcoming release  tablesorter  
2.0 release.


The main features of the upcoming release will be:

- Multi-column sorting
- Robust support for adding new data to the table, provided with the new 
update method
- Support for custom filter (thinks zebra tables etc) and support for 
writing your own in the same manner as parsers.


However the upcoming release will NOT be back words compatible, as a 
have chosen to rewrite it from the ground up,

it will however be a smaller filesize than the old release.

Feedback and bug reports, is as always appreciated.

The demo/preview is located here:
http://lovepeacenukes.com/tablesorter/2.0/tests/demo.html


great news!

one question:
is paging supported ?

micha


[jQuery] Re: opacity in IE6.0 not works with jquery-1.1.3

2007-07-05 Thread Michael Stuhr


SeViR schrieb:

Michael Stuhr escribió:

Sam Collett schrieb:
is there a 'compiled' version too (of this fix)?

micha


I simply download the SVN version and I compiled with ant. I have 
attached the

new trunk version compiled (packed and source version of jquery.js)



thanks

micha



[jQuery] Re: opacity in IE6.0 not works with jquery-1.1.3

2007-07-04 Thread Michael Stuhr


Sam Collett schrieb:

While it is fixed in SVN, I would rather wait till the next release
(1.1.3.1 rather than 1.1.4). So for the time being, I am sticking with
1.1.2 (for work related sites).

On Jul 4, 11:33 am, Francisco José Rives [EMAIL PROTECTED] wrote:

Fixed in the latest trunk version :-D




is there a 'compiled' version too (of this fix)?

micha



[jQuery] library of common needed functions

2007-07-04 Thread Michael Stuhr


before using prototype or such frameworks (too big!) are there any other 
small libs with common functions (extending String, Array ... ) like 
escapeHTML() etc.


if i would have to use prototype:

i tried this simple thing:


script type=text/javascript 
src=prototype/prototype-1.5.1.1.js/script

script type=text/javascript src=jquery-1.1.2.js/script
script type=text/javascript
/**/
$j = jQuery.noConflict();
$j(document).ready(function(){
console.info (String(foo).escapeHTML());
/* throws error: there's no such function !*/
});

/script

what am i doing wrong ?

micha



[jQuery] Re: library of common needed functions

2007-07-04 Thread Michael Stuhr


Jörn Zaefferer schrieb:

Michael Stuhr wrote:
before using prototype or such frameworks (too big!) are there any 
other small libs with common functions (extending String, Array ... 
) like escapeHTML() etc.
You could give the methods plugin a try: 
http://dev.jquery.com/browser/trunk/plugins/methods/


that is definately a good try, unfortunately the String.js misses the 
funstions i needed. but i think it xould be easily enough extended.


thanks

btw. why is this not listed on the wiki-plugins ?

micha



[jQuery] Re: library of common needed functions

2007-07-04 Thread Michael Stuhr


Jörn Zaefferer schrieb:

Michael Stuhr wrote:

Jörn Zaefferer schrieb:

Michael Stuhr wrote:
before using prototype or such frameworks (too big!) are there any 
other small libs with common functions (extending String, Array 
... ) like escapeHTML() etc.
You could give the methods plugin a try: 
http://dev.jquery.com/browser/trunk/plugins/methods/


that is definately a good try, unfortunately the String.js misses the 
funstions i needed. but i think it xould be easily enough extended.
Oh, what are those functions you need? It wouldn't hurt to add them, 
would it?


right off my fingers i'd say: String().escapeHTML() and the 
counterpart for example. some replacement functions (search() for 
example) could make things easier, i think one could look at 
http://proto.layer51.com/ and find some of the good ol' flash protos 
useful. that's what i'd do, cuz this is where i come from. dunno if 
there's an equal system for js ...


i didn't do none of these yet, just in case you're asking yourself :-) 
but i think we could collect some.


what do you and the others think ?

micha



[jQuery] how to catch a scroll event for the document ...

2007-06-28 Thread Michael Stuhr


i tried:

$j('body').scroll(
function() {
console.info ('scrolling ...');
// do sth   
});


but it doesn't work ...

Maybe the selector is wrong, but what is the correctr one ?

micha


[jQuery] Re: John Resig Wikipedia Article

2007-06-26 Thread Michael Stuhr


Glen Lipka schrieb:

Not alot of pages or content for web developers.

[...]
http://en.wikipedia.org/wiki/Dean_Edwards 
http://en.wikipedia.org/wiki/Dean_Edwards (Who knew he was so funny?

that must have been after he played football, right ?

micha




[jQuery] Re: DisableHeader tablesorter

2007-06-19 Thread Michael Stuhr


David schrieb:

How can disable 3 header ? not one.



do you mean the tablesorter from http://motherrussia.polyester.se; ?

if so:

i've had the same 'problem' and patched my tablesorter by adding some ifs:
- should be around line 125


if(defaults.addHeaderLink) {
$(oCell).wrapInner({element: 'a href=#', name: 'a', className: 
'sorter'});
if ($(oCell).attr('class').indexOf('nosort') == -1)
{
$(.sorter,oCell).click(
function(e) {
sortOnColumn( $(this).parent(), 
((defaults.lockedSortDir) ? defaults.lockedSortDir : 
$(this).parent()[0].count++) % 2, $(this).parent()[0].index );
return false;
});
}
} else {
if ($(oCell).attr('class').indexOf('nosort') == -1)
{
$(oCell).click(
function(e) {
sortOnColumn( $(this), ((defaults.lockedSortDir) ? 
defaults.lockedSortDir : $(this)[0].count++) % 2, $(this)[0].index );
return false;
});
}
}



i've added the if ($(oCell).attr('class').indexOf('nosort') == -1) 
lines, so if your table-headers have a class nosort they are not sortable.


cheers

micha


[jQuery] german umlauts

2007-06-19 Thread Michael Stuhr


hi list,

i'm having a utf-8 encoded html document, where i'm adding some elements 
 with jquery. i'm updating some selectboxes with this plugin 
http://www.texotela.co.uk/code/jquery/select/ but i'm having 
difficulties adding values to selectboxes where i'm getting unknown 
characters like �. my guess is that the plugin is causing this.

cause when i'm doing a simple:
$j('body').prepend('p style=color:#FF;auml;ÖÜß/p');
i'm getting �� so i guess i have to encode those, which would be ok.

weird, it's always the encoding of strings that cause me so much 
trouble! dang!


micha



[jQuery] Re: german umlauts

2007-06-19 Thread Michael Stuhr


Ⓙⓐⓚⓔ schrieb:
it looks like your page is not being served as utf-8 or if it is, 
it's not valid utf-8.


If your html editing program doesn't do utf... you have to encode it 
yourself.


On 6/19/07, *Michael Stuhr* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


well the page is ok, afaict. i'm using php with smarty to bake my page, 
and as far as i'm only using this i'm getting an ä for an ä, if you know 
what i mean :-) .


my js file is sent through php by using .htaccess and:
?php
header ('Content-type: text/javascript');
?
in my js.

when i'm directly calling my js i see the correct encoding.

any ideas ?

micha



[jQuery] Re: german umlauts

2007-06-19 Thread Michael Stuhr


Ⓙⓐⓚⓔ schrieb:
I don't see a charset there 


what do you mean ?


what is the server putting in for it???


if i use the ä it's in there when looking at my js directly. but in the 
brwoser there's a � (a black diamond with a questionmark in it, just 
in case this doesn't come through) ...




php isn't very clever with utf, so you have to be very careful!


well i don't use php to get those umlauts in there. it's in my js.



a live link would help to see the headers and the encoding!!



i'll see what i can do there, at the moment it's pw-secured, cause it's 
a backend i'm working on.


i'll have a closer look now at php, cause i guess you're right php 
screws my js up.


greets

micha



[jQuery] Re: What's the best way to document my javascript?

2007-06-14 Thread Michael Stuhr


Tom Holder schrieb:

Hi Guys,

Thanks for your replies. I was kinda meaning a tool that would
automatically parse my JS files and produce documentation (and link
function calls).



doesn'tAptana do this ?
http://www.aptana.com

micha



[jQuery] Re: SlickSpeed CSS Selector TestSuite

2007-06-12 Thread Michael Stuhr


Andy Matthews schrieb:

It's by the people who won the testing, so that makes it just a little
suspect. This is probably just like the testing from about 6 months back in
which the jQuery library was several versions older than the most recent.
That said, here's what I got:

IE 7.0.57/PC
-
prototype 1.5.1 - 1879
jQuery 1.1.2dev - 3409
MooTools 1.2dev - 1623
ext 1.1b1 - 1206
cssQuery 2.02 - 8057


FF 2.0.0.4/PC
-
prototype 1.5.1 - 267 
jQuery 1.1.2dev - 6940 
MooTools 1.2dev - 278 
ext 1.1b1 - 1725 
cssQuery 2.02 - 9514 




my results:
FF 2.0.0.4 WinXP-SP2
http://onenterframe.de/temp/

micha


[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-12 Thread Michael Stuhr


Klaus Hartl schrieb:

Shelane Enos wrote:

Actually, I did manage to install Safari 3 and maintain Safari 2.  To do
this, you have to copy Safari 2 into another folder in the applications


when i'm not totally wrong: safari 3 adds some basic libs to your OSX so 
keeping them side by side is probably the same danger than keeping a 
sidebyside IE on WIN.


micha


[jQuery] Re: ANNOUNCE: Open Source Project Tracker Using jQuery

2007-06-11 Thread Michael Stuhr


Rey Bango schrieb:
Yep. It looks very similar. The good thing about it, though, is that its 
leveraging jQuery, its open source and you can use it to manage as many 
projects are you need.


isn't it based on cf ?

micha


[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-11 Thread Michael Stuhr


Howard Jones schrieb:

Ⓙⓐⓚⓔ wrote:
  

did you try it on any jQuery pages?

Well, my own work-in-progress works as well as it does on Firefox. The 
Interface demos seem to be fine, and even pretty quick.
  
to me it's more an alpha. i surfed some more serious sites and it 
crashed repeatedly.

but it's definately better than swift now is.

but i wouldn't expect too much from this, since quicktime is so slow on 
windowze.

plus: it doesn't fit into the gui.
it will make debugging css and js a little bit easier.
just my 0.2€

micha



[jQuery] Re: Macrumors running live udpates of WWDC

2007-06-11 Thread Michael Stuhr


Jonathan Freeman schrieb:

This should expand Safari market share dramatically.
  


especially the iphone will boost it :-)

micha


[jQuery] Re: textNodes Plugin 0.1

2007-06-11 Thread Michael Stuhr


Ⓙⓐⓚⓔ schrieb:

a set of plugins to work with textNodes inside the dom.


  textNodes()  replace()  split()  span()  acronyms()  more!



get it here: http://jqueryjs.googlecode.com/svn/trunk/plugins/textNodes/

see it here: http://cigar.dynalias.org/plugins/textNodes/textNodes.html

great idea, i ever wondered if there are more like this e.g. to 
maipulate array etc.


micha


[jQuery] Re: textNodes Plugin 0.1

2007-06-11 Thread Michael Stuhr


Jörn Zaefferer schrieb:
Have you checked these? 
http://dev.jquery.com/browser/trunk/plugins/methods/

obviously not :-)

thanks. i never liked the trac interface, maybe thats why i never looked 
there.
are these in release state? i couldn't see any version numbers in the 
files, just the trac ones.

that makes it somewhat difficult to keep trac ...

micha



[jQuery] security advice

2007-06-05 Thread Michael Stuhr


hi list,

i'd like to have some opinions on how one should/can secure an ajax 
application/backend (preferred server language PHP).


every hint/link appreciated

micha


[jQuery] Re: security advice

2007-06-05 Thread Michael Stuhr


Alexandre Plennevaux schrieb:


That's a rather vague question, hence my vague answer :)


i know :-) thanks anyway.

Michael Price schrieb:

Hi Michael,
[...]


thanks for your detailed answer.

i think what i really was after, was a small 'framework' that does the 
thing for me. i can include it everywhere i need/want and check a 
isLoggedIn or sth like that.


micha


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

2007-06-04 Thread Michael Stuhr


pd schrieb:

Hello

I've been trying to implement this 'plugin' 'hack':

http://khurshid.com/jquery/iepnghack/

to get a repeated background effect in IE6 and decent browsers.

It appears this plugin does not work with repeated background PNG
images. Instead the image is shown just once.

Can anybody confirm this as a limitation/bug?

Does anyone have an alternative hack (preferably jQuery based) that
can achieve repeated background PNG images?



as i understand this it's a limitation of the hack / IE-workaround

micha


[jQuery] plugin tablesorter - sort date

2007-06-04 Thread Michael Stuhr


is this plugin capable of sorting other date formats than uk / us ?

i tried 'de_DE' (01.01.2000) but it (seems to) fallback to string sorting.

micha


[jQuery] Re: OT: Run PHP code inline on a Coldfusion page

2007-06-04 Thread Michael Stuhr


I don't know what the speed is (probably not as fast as the native zend 
interpreter, but still...PHP code mixed in with CF code is pretty kick 
ass. I read that someone else has done the same thing for Ruby.
 


it sure is a big mess in the end :-)

micha


[jQuery] Re: Slideshow with unknown amount of images

2007-06-04 Thread Michael Stuhr


Ⓙⓐⓚⓔ schrieb:

My dog does that!

Actually we do it for him... he just sits for pictures... I wrote a plugin
http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/ 
http://jqueryjs.googlecode.com/svn/trunk/plugins/traverseDir/


that I use all over his site http://jpassoc.com/junior


omg !

micha




[jQuery] Re: Really nice Ext Grid

2007-05-31 Thread Michael Stuhr


Erik Beeson schrieb:

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



is this a beta ?

micha


[jQuery] Re: plugin blockUI what do i do wrong ?

2007-05-26 Thread Michael Stuhr


Mike Alsup schrieb:

Glad to hear that you've got it working, Micha.  Maybe you can post a
link to your code instead of  sending it all?

  

sure, i can do that.

http://onenterframe.de/ajax/

micha


[jQuery] Re: plugin blockUI what do i do wrong ?

2007-05-25 Thread Michael Stuhr


Mike Alsup schrieb:

You need to change this:

$j.unblockUI;

to this:

$j.unblockUI();

Mike




thanks for that hint,
i changed that and in my sample it will do the job (documentation should 
be updated, see: http://malsup.com/jquery/block/#dialog ) ...


however i changed my sample to hide the prompt and show the loader: 
$.blockUI.defaults.pageMessage = 'h3 class=warningAnfrage wird 
bearbeitet/h3pbitte warten .../p';


but this never gets shown. instead the prompt stays til ajaxStop() is 
reached.


i now have: (beware the linebreaks)

/* -- */
$j = jQuery.noConflict();
$j(document).ready(function()
{   
	$Ajaxian = 
http://localhost/__kunden_a_bis_z/mEAD/tool/surveyor/admin/Ajaxian.php;;

$.extend($.blockUI.defaults.overlayCSS, {backgroundColor: '#D4E7F8' });
$.extend($.blockUI.defaults.pageMessageCSS, {border:'none' });
	$.blockUI.defaults.pageMessage = 'h3 class=warningAnfrage wird 
bearbeitet/h3pbitte warten .../p';

$j().ajaxStart($j.blockUI).ajaxStop($j.unblockUI);
$j('.confirm').click (
function ()
{
		$prompt = 'div id=Modalh3Wollen Sie diese Frage wirklich 
löschen?/h3pAlle zugehörigrn Antworten gehen somit auch 
verloren!/pinput type=button id=ModalYes value=Ja /input 
type=button id=ModalNo value=Nein //div';

$j(body).append($prompt);
$j.blockUI($j(#Modal), { width: '300px' });
//
$j(#ModalYes).click(
function() {
// hide the prompt
console.info ('ajax unblocking UI');
$j.unblockUI(); // never gets executed ?
$str = test;
//console.info(you clicked yes);
$j.ajax({
type: POST,
url: $Ajaxian,
data: action=test,
async: false,
link: $str,
success: function (data) {
$link = $j(# + 
this.link);//$j(div).find(# + this.link);
//console.info ($j($link));
$j($link).append (data);
$j($link).fadeIn(slow);
},
error: function (XHRo, errType, errMsg) 
{},
beforeSend: function (XHRo) {},
complete: function (XHRo) {},
timeout: 30
});
return false;
}
);

$j('#ModalNo').click(
function (){
$j.unblockUI();
//console.info(you clicked NO);
return false;
}
);

return false;
});
$j('#test').hide();
});
/* -- */
without linebreaks but you need to replace the  's ...
/* -- */



$j = jQuery.noConflict();
$j(document).ready(function()
{   
$Ajaxian = 
http://localhost/__kunden_a_bis_z/mEAD/tool/surveyor/admin/Ajaxian.php;;
$.extend($.blockUI.defaults.overlayCSS, {backgroundColor: '#D4E7F8' });
$.extend($.blockUI.defaults.pageMessageCSS, {border:'none' });
$.blockUI.defaults.pageMessage = 'h3 class=warningAnfrage wird 
bearbeitet/h3pbitte warten .../p';
$j().ajaxStart($j.blockUI).ajaxStop($j.unblockUI);
$j('.confirm').click (
function ()
{
$prompt = 'div id=Modalh3Wollen Sie diese Frage wirklich löschen?/h3pAlle zugehörigrn Antworten gehen somit auch 
verloren!/pinput type=button id=ModalYes value=Ja /input type=button id=ModalNo value=Nein 
//div';
$j(body).append($prompt);
$j.blockUI($j(#Modal), { width: '300px' });
//
$j(#ModalYes).click(
function() {
// hide the prompt
console.info ('ajax unblocking UI');
$j.unblockUI(); // never gets executed ?
$str = test;
//console.info(you clicked yes);
$j.ajax({
	type: POST, 
	url: $Ajaxian, 
	data: action=test, 
	async: false, 
	link: 

[jQuery] Re: plugin blockUI what do i do wrong ?

2007-05-25 Thread Michael Stuhr


Mike Alsup schrieb:

thanks for that hint,
i changed that and in my sample it will do the job (documentation should
be updated, see: http://malsup.com/jquery/block/#dialog ) ...


The documentation is correct.  Use $.unblockUI() when invoking the
function directly.  Use $.unblockUI when passing the function as an
argument.


ok, that was unclear to me.





however i changed my sample to hide the prompt and show the loader:
$.blockUI.defaults.pageMessage = 'h3 class=warningAnfrage wird
bearbeitet/h3pbitte warten .../p';


It works fine if you make two changes.  First, do not set async to
false.  There is no reason to do that.  Second, remove the 30ms
timeout.  That's causing things to abort before you can even see the
message.
oops, i thought the timeout was there to end the waiting / pending 
status of the ajax call after given time ... (note to myself: RTFM!)


that really caused a lot of trouble: if you set timeout and use async = 
true, you always get an undefined error. bah!




Also, in your case you don't even need the unblock call in your yes
handler because you're immediately invoking an ajax call and the
blocking message will simply be replaced.


i know, i just wanted to make sure, cause in my implementation (not the 
example) i had the case where two modals where there in IE6. i mixed up 
the code a bit. sorry if this is confusing.


it might be a little bit lame for most of the subscribers on this list, 
but i would like to post the working example here, in case anyone else 
is having problems with this :-)


i would like to here some opinions on that before, cause it's really a 
high traffic list, and i don't want to spam this list with my code

...


micha


[jQuery] Re: Text Button

2007-05-22 Thread Michael Stuhr


james_027 schrieb:

Hi,

Is this the best way to make a text button?

a href=#Click Me!/a

It's nice that even with using a href=# jquery could make almost
any tag to have click event, but the problem is the cursor doesn't
indicate that it's clickable.



what do you mean by the cursor doesn't indicate that it's clickable 
... btw:  it's called a link.


micha