Re: [jQuery] Any regular expression gurus here?

2007-03-29 Thread Christof Donat
Hi, > The regular expression below works on just about everything except nested > parentheses: Regular Expressions are used to define regular (Type 3 in Chomsky Hirarchy) grammars. You can not express nested parentheses in regular grammar, you need a context free (Type 2) but not regular gramma

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-03-09 Thread Christof Donat
Hi, > $('[EMAIL PROTECTED]"my:elem"]') I guess, that that does not use getElementById() and thus is a lot slower than $('#my:elem'). I guess, that JSF might also have Problems with CSS, becaue there you use stuff like #my:hover, etc. To make the patch to jQuery as small as possible and let mos

Re: [jQuery] iterating over child elements

2007-03-05 Thread Christof Donat
Hi, > If I find a DIV, through a call > > var parentDiv = $(this).parents("div:first"); > > How do I iterate over the child elements of what I found? Better yet, is > there a way to print out the child elements and their ID's in one fell > swoop? parentDiv.children().each(function() { va

Re: [jQuery] JS Source code Formatter - Anyone know of any good ones

2007-02-28 Thread Christof Donat
Hi, > Chili, based on jquery > http://www.mondotondo.com/aercolino/noteslog/?page_id=79 I think, He is looking for something like indent for javaScript. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] JS Source code Formatter - Anyone know of any good ones

2007-02-28 Thread Christof Donat
Hi, > Just wondering... does anyone know of any good source-code formatters for > JavaScript. I see plenty that use the dirt-simple eval().tostring > trick but that doesn't work good/right. Kae Verens just has released one. I have not tried it, I just read about it: http://verens.com/archiv

Re: [jQuery] jQuery in server side language?

2007-02-24 Thread Christof Donat
Hi, > it would be a great tool for html parsing, > > e.g. how can I get the google search results by parsing the html? as > easy as that... > > > jQuery("a.l").each(function(){ > console.debug( this.href ); > }); Maybe this Link can help you: http://en.wikipedia.org/wiki/Serv

Re: [jQuery] Why isn't my Ajax call working?

2007-02-16 Thread Christof Donat
Hi, > var html = $.ajax({ > type: "POST", > url: "get_file_contents.php", > data: "mod_index=" + p_moduleIndex, > dataType: "html", > error: function(req, errorMsg) { > alert("An error occurred: " + errorMsg); > } > }).responseText; $.ajax() does

Re: [jQuery] Checking for a class?

2007-02-11 Thread Christof Donat
Hi, > You could also use one of the attribute selectors to filter a set of > matched elements. If you don't care where the particular value > appears within the class attribute, you could do this: > > $('[EMAIL PROTECTED]') Why not simply this $('#id.someClass') Christof ___

Re: [jQuery] Problem with IE (Ajax + XML fragments)

2007-02-09 Thread Christof Donat
Hi, > I thought the .html() function does not work on XML documents. Your example > does not work either. That is true, but there seems to be no other simple way do transfer some content from one document to another with IE. You really need to copy the nodes to get that: jQuery.fn.copyAppend =

Re: [jQuery] Problem with IE (Ajax + XML fragments)

2007-02-09 Thread Christof Donat
Hi, > Expected Result: The element should be append by a Test > element. Firefox: OK > IE 6: not OK (the Ajax request will return an error). The error is produced > in the .append command. Your span Element belongs to another DOM-document than your div. In that case jQuery should clone the Node

Re: [jQuery] display inline vs block

2007-02-06 Thread Christof Donat
Hi, > When using hide(), show, fadeIn() etc. jQuery make the elements > display:block, while I'm sure there is a good reason for this I wonder is > there anyway to get jQuery to set them as display:inline? try $('#myelem').show().css({display:'inline'}); Christof __

Re: [jQuery] IE PNG hack

2007-02-04 Thread Christof Donat
Hi, Sorry, I forgot something: Without background: > jQuery.fn.IEPNGHack = function() { > if (!$.browser.msie) return this; > return this.each(function() { > [...] > }); > }; With background: > jQuery.fn.IEPNGHack = function() { > if (!$.browser.msie) retu

Re: [jQuery] IE PNG hack

2007-02-04 Thread Christof Donat
Hi, > I've wrote very simple JQuery IE PNG hack plugin. > Would like to know your professional opinion, to make it better Great idea. Generally you can set the filter for the img tag as well, you just need a fully transparent gif (or png) for the src. jQuery.fn.IEPNGHack = function() {

Re: [jQuery] Timer

2007-02-02 Thread Christof Donat
Hi, > Christof Donat wrote: > > $(function() { > > var loadMyContent = function() { > > $('loadItHere').load('/content/url.xml'); > > } > > setTimeout(loadMyContent,3); > > loadMyContent(); > > }) >

Re: [jQuery] Timer

2007-02-02 Thread Christof Donat
Hi, > über load() blende ich eine Datei innerhalb einer PHP-Seite ein. Diesen > eingebundenen Bereich würde ich gerne alle 30 Sekunden aktualisieren. Die Mailingliste ist in englisch. Deshalb bitte in Zukunft englisch. Dann können auch diejenigen Antworten, die der deutschen Sprache nicht mächti

Re: [jQuery] Really Ugly?

2007-02-01 Thread Christof Donat
Hi, > Steve, on the other hand, even if you use the standard methods to create > elements, you will not get content and structure separated of course. Yes of course. If that is the goal, use load() to get some template-content or clone it from the page and fill it with your dynamic data: $('#sh

Re: [jQuery] Really Ugly?

2007-02-01 Thread Christof Donat
Hi, > Hence 7 lines instead of 4. Nope. Without a DOM-builder plugin I would write this > >> $('#show-alert').click(function() { > >> var oDIV = document.createElement('div'); > >> oDiv.className = 'quick-alert'; > >> oText = document.createTextNode("Alert! Watch me before it's too late!"); > >

Re: [jQuery] Why won't this code work?

2007-01-25 Thread Christof Donat
Hi, > $(document).ready(function() { > // hides the slickbox as soon as the DOM is ready > // (a little sooner than page load) > $('#slickbox').hide(); > >}); > > // toggles the slickbox on clicking the noted link > $('a#slick-toggle').click(function() { > $('#slickbox').toggl

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-22 Thread Christof Donat
Hi, > > > Maybe it has to do with your security-setings in IE. You need to allow > > > scripts > > > to access "secure" ActiveX-Controls, as you need for all ajax stuff. > > > Otherwise there will of course not be any chance to get an > > > XMLHttpRequest object. > > > > But that cannot be the cas

Re: [jQuery] Remote Scripts

2007-01-18 Thread Christof Donat
Hi, > > I just assumed $.getScript() would deal with it. Functionally, is > > there a difference between adding the script to body vs head? Thanks > > for all the info. > > getScript provides a callback for when the script is loaded, adding a > script tag to the DOM doesn't provide that. Well, th

Re: [jQuery] Remote Scripts

2007-01-18 Thread Christof Donat
Hi, > By "remote", I meant different domain, so XHR doesn't work. Ah, I see. > I'm working in > a very controlled environment, and don't need the callback (actually, the > remote script calls the callback). How controlled is the environment? Many browsers can be configured that scripts from a

Re: [jQuery] Remote Scripts

2007-01-18 Thread Christof Donat
Hi, > Am I missing something or is there no "jQuery way" to load remote > javascript? Looks like $.getScript() uses XHR, so it doesn't work. Why does that not work? Do you have Problems with XMLHttpRequests? You can create a script tag using DOM, set its src attribute and insert it into the DOM

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-18 Thread Christof Donat
Hi, > > Maybe it has to do with your security-setings in IE. You need to allow > > scripts > > to access "secure" ActiveX-Controls, as you need for all ajax stuff. > > Otherwise there will of course not be any chance to get an XMLHttpRequest > > object. > > But that cannot be the case because I te

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-18 Thread Christof Donat
Hi, > I'm getting something similar in IE7 as well (FF and Opera seem fine). A > "View Source" reveals this: > > Hm, that is nothing that could have been created with jsPax. I don't use deferred scripts and there is no "__ie_init" anywhere in jsPax as well. I'm not shure what happens there. It

Re: [jQuery] Proper OOP paradigm / please be friendly

2007-01-17 Thread Christof Donat
Hi, > as you probably have noticed, there is an abysmal proportion of 1% of women > in Open Source (compared to 10% in commercial software development). We > need to think about how we communicate if we want to help this change. > > Please be friendly and try not to antagonize people who could be

Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Christof Donat
Hi, Of course my code was ineficient. Here we go: femalePatient = ( $user == 'Dan' ) ? function(shoesize) {         femalePatientBase.apply(this,[shoesize]); var oldgetage = this.getAge; this.getAge = function() { var a = oldgetage.apply(this,[]); r

Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Christof Donat
Hi, > Sorry, still not right. Any impementation of femalePatient that does not > use Math.random for logic is flawed. OK. function Patient(age) { this.getAge = function() { return age; }; this.setAge = function(newage) { age = newage; }; this.and = function(first,second)

Re: [jQuery] Proper OOP paradigm

2007-01-17 Thread Christof Donat
Hi, > > var myObject = new femalePatient(37); > > > > alert(myObject.age); // alerts 42 > > This shows the OOP limitations of Javascript. In a real-world femalePatient > object, the age property would be unavailable. ;-) OK, Dave, Jörn and Dan to sattisfy all your needs: function Patient(age) {

Re: [jQuery] Proper OOP paradigm using jquery - examples for $.extend() ?

2007-01-17 Thread Christof Donat
Hi, > var myObject = new myDerivedClass(37); sorry, this should be var myObject = new femalePatient(37); of course. > alert(myObject.age); // alerts 42 > alert(myObject.shoesize); // alerts 37 Christof ___ jQuery mailing list discuss@jquery.com ht

Re: [jQuery] Proper OOP paradigm using jquery - examples for $.extend() ?

2007-01-16 Thread Christof Donat
Hi, > I'm trying to understand the use of OOP with jQuery. In creating > a fairly complex web application I have made extensive use of the class > attribute. Further, I've been successful in binding events to the classes, > setting styles, and that sort of thing. > What I have not had

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-16 Thread Christof Donat
Hi, > > I have no problems with a relative package path > > This is very strange... Did you use the exact files/directories in the zip > I submitted? Yes, I just changed packageBase to the path at my computer. Everything else is exactly the files in the zip. Maybe it has to do with your securit

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-16 Thread Christof Donat
Hi, > > But I still have the same problem... > > Here is a zip file. After unzipping, there will be a new "chili" folder > > with a test page and a subfolder. It works in FF1.5.0.9 but does not in > > IE7. http://www.nabble.com/file/5620/chili.zip chili.zip > > Currrently I don't have IE7 at hand -

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-13 Thread Christof Donat
Hi, > Your test page works now :-) Great :-) > But I still have the same problem... > Here is a zip file. After unzipping, there will be a new "chili" folder > with a test page and a subfolder. It works in FF1.5.0.9 but does not in > IE7. http://www.nabble.com/file/5620/chili.zip chili.zip Cur

Re: [jQuery] Can this be written better (newbie alert)

2007-01-13 Thread Christof Donat
Hi, > My problem now is how to get the value of text which is between > of the clicked link, - now the scope of $(this) is different. > > In the first case it work because $(this) was [a.taglink > cheeseCake...] but with the above $(this) becomes [Window > addphoto.html] Hm, this sounds strange

Re: [jQuery] Can this be written better (newbie alert)

2007-01-13 Thread Christof Donat
Hi, > This fails Your parentheses are wrong. I just reformated your code and here is the result: $(document).ready(function() { $('#getTags').click(function() { $('#taglist').load('http://tarique.sanisoft.com/cheesecake/tags/taglist', function() { $('a.taglink').click(tagSelect);

Re: [jQuery] Can this be written better (newbie alert)

2007-01-12 Thread Christof Donat
Hi, > Just about getting feet wet with jQuery, wrote a simple function which > fills an input field with text of the link clicked after sorting the > comma separated values. It is working as expected but would like to > know if it can be made more comprehensive. Your code is really good for a jQu

Re: [jQuery] domain redirection vs same content - Was: dynamic loading of jquery.js into my web page

2007-01-12 Thread Christof Donat
Hi, > I know this is completely off topic (and I apologize for it), but, IIRC, > it's really bad for SEO (Search Engine Optimization) to have identical > content at multiple URLs because then they begin competing with each other > for rankings. Unless each domain has a separate purpose, (like mirr

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-12 Thread Christof Donat
Hi, > >>> http://www.jspax.org/test/ > >> > >> FF, OK. > >> IE, KO: > > > > Hm, It workes for me. I'll see if I can find something strange around the > > point, the error message suggests. > > > > Christof > > For me on IE 6 it pops up a message saying "This page is accessing > information that is

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-12 Thread Christof Donat
Hi, > > http://www.jspax.org/test/ > > FF, OK. > IE, KO: Hm, It workes for me. I'll see if I can find something strange around the point, the error message suggests. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-12 Thread Christof Donat
Hi, > Which testsuite? What URL? Look at http://www.jspax.org/test/ Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-12 Thread Christof Donat
Hi, > > Just a guess: Have you tried to use an absolute URL, or at leas an > > absolute > > path here? Maybe Firefox interprets that relative to the current HTML > > page and IE interprets it relative to the js. Then IE tries to > > load "packages/packages/jquery.js" where Firefox loads > > "packa

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-11 Thread Christof Donat
Hi, > 2.I've wrapped the content of the standard chili.js file inside this: > $using( 'jquery', function() { > ... > $package( 'chili', {} ); > } ); Since you don't load chili.js via jsPax you don't necessarily need the $package()-call, but it doesn't hurt. > 3.I

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-11 Thread Christof Donat
Hi, > >> Yes, I downloaded it short before. > >> Please, tell me when I can download the fixed version, and I'll test > >> again > > > > I just have uploaded the current version again. Please try again. > > I've just downloaded and tried again but... nothing changed :( Have you tried the testsuit

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-06 Thread Christof Donat
Hi, > Yes, I downloaded it short before. > Please, tell me when I can download the fixed version, and I'll test again I just have uploaded the current version again. Please try again. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.c

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-05 Thread Christof Donat
Hi, > > Well, I don't know about any guarantees, but it works in all test I did > > (with > > the loaded script delayed, etc.) > > I'm trying to apply your jsPAX to my Chili setup, but it works in FF1.5 and > not in IE7, which does not return any error and does not show the page, > just keeps load

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Christof Donat
Hi, > > As you might know scripts are evaluated in the > > order they are in the HTML code, that is that script will be > > evaluated before script2 is. > > Interesting - is that guaranteed even when the scripts are added > dynamically? Well, I don't know about any guarantees, but it works in all

Re: [jQuery] Dynamically removing an inline script block

2007-01-04 Thread Christof Donat
Hi, > I'm seeking help in dynamically REMOVING an inline script block > within the head tags. I guess you whant to remove values in a variable. You should not do that by removing script-tags, because that does not remove the variables in it. Send your data as JSON and write a refresh function f

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Christof Donat
Hi, > That looks really dodgy, sorry. > > What if the browser downloads script and script2 at the same time, and > script2 finishes first? It doesn't. script2 is not downloaded at all, it is like a inline script. As you might know scripts are evaluated in the order they are in the HTML code, th

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-04 Thread Christof Donat
Hi, > I'm afraid that I simply don't take Safari users into account. Hardly a > great thing, but I focus on three browsers: Firefox and IE7, and then IE6. > In that order. The work I do is targetted at corporate users who run > Windows 2000 and Firefox, and all the JS work I do is for those users.

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-03 Thread Christof Donat
Hi, >function addScript( url ) { > var script = document.createElement( 'script' ); > script.type = 'text/javascript'; > script.charset = 'utf-8'; > script.src = url; > document.getElementsByTagName('head')[0].appendChild( script ); >}; There are safari-versi

Re: [jQuery] jQBrowser²

2006-12-29 Thread Christof Donat
Hi, > http://www.alterform.com/resources/jqbrowser-2 Very nice. I really like it, but I don't understand why you keep values like e.g. 'safari' in a private object and copy it to the public one. As far as I can see you only set the values in the private object during initialization and never t

Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Christof Donat
Hi, > function addScript( url, doc ) { > doc = doc || document; > var script = doc.createElement( 'script' ); > script.type = 'text/javascript'; > script.charset = 'utf-8'; > script.src = url; > doc.getElementsByTagName('head')[0].appendChild( sc

Re: [jQuery] dynamic plugin loading

2006-12-28 Thread Christof Donat
Hi, > I'm trying to develope a small piece for dynamic loading in jquery, wich > loads the .js and .css source files on the fly without any special markup > in the html page. For .js files you can use jspax (www.jspax.org). I use it to load jQuery and plugins on demand (actually I made it for th

Re: [jQuery] jQuery heat maps

2006-12-22 Thread Christof Donat
Hi, > Would it be possible to aggregate this data client side, and then > every X seconds or clicks? Can we store state across page refreshes? Look here: http://verens.com/archives/2006/08/29/kaejax/ In the case of Heat Maps it might also be acceptable to send the data as a Bulk on unload. va

Re: [jQuery] Fast way to remove duplicate array entries?

2006-12-20 Thread Christof Donat
Hi, > > Anyone know of a fast way to remove dups in an array? > > The Perl way to do this is to convert the array entries into hash keys > and then extract the keys back into an array. This is faster than > searching the array and it should work with javascript. The speed of such solutions very m

Re: [jQuery] Fast way to remove duplicate array entries?

2006-12-20 Thread Christof Donat
Hi, > Anyone know of a fast way to remove dups in an array? Is the array sorted? Then you can do function arrayUniq(a) { var rval = [a[0]]; var o = a[0]; for( var i = 1; i < a.length; i++ ) if( a[i] != o ) { rval.push(a[i]); o = a[i];

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, > If you want to keep performance, maybe it's better to do: > > if( $("#myid").is('div.myclass')) alert("YEAH, WE GOT IT"); > else alert("Ha, my ID is misused!!"); Yes, of course. If I whant to use jQuery methods I could also use filter(): $('#myid').filter('div.myclass').addClass('hereWeGo'

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, > I think what Christof is getting at is this: [...] Yes, exactly. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, > > > ID should be uniqe over the page, so div#myid is redundant. > > [...] > > I know that. My point is that there should not be two elements with same id > on the page. At least, I'm developing like that. But that doesn't make the expression div#myid redundant. Of course the id should be

Re: [jQuery] (no subject)

2006-12-19 Thread Christof Donat
Hi > $(function(){ > $(".y").ready(function() { > var today = new Date(); > var year = today.getFullYear(); > document.write(year); > }); > }); $(function() { $('.y').html((new Date()).getFullYear()); }); Christof ___ jQuery mailing li

Re: [jQuery] More DOM Query Speed Tests

2006-12-19 Thread Christof Donat
Hi, > ID should be uniqe over the page, so div#myid is redundant. No, it isn't. It should return an empty jQuery-Object in case the Element with the id "myid" is not a div. That is usefull when you produce your Content dynamically (e.g. with PHP). The same is true for .myclass#myid, or even d

Re: [jQuery] More DOM Query Speed Tests

2006-12-18 Thread Christof Donat
Hi, > $(.dialog) does 815 function calls () > $('#speech28') does 6 function calls That is not very surprizing. $('#speech28') only needs to call getElementById() and make a jQuery Object from it. $('.dialog') gets all elements, puts them into an array and filters that array for the classna

Re: [jQuery] More DOM Query Speed Tests

2006-12-18 Thread Christof Donat
Hi, > looking for an ID (which should be unique) after getting the tags is > worthless. Well, it shouldn't be. I might whant to hide an Element with the id "myid" only if it is an image. Then I'd try first $('img#myid').hide() and expect it to work like $('#myid').filter('img').hide(). Christo

Re: [jQuery] setTimeout in jquery function

2006-12-17 Thread Christof Donat
Hi, > timeout = setTimeout(arguments.callee,5000); > works well for me too. Do you have this set correctly in the callback then? Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] setTimeout in jquery function

2006-12-16 Thread Christof Donat
Hi, > I'm not sure how to change the line: > setTimeout("zoom_in()",time_length) > to that the function can call itself. Help appreciated. I'd suggest to split it in two functions as many parts of jQuery itsself do: jQuery.zoom_in = function(elm,time,step,callback) { var e = $(elm);

Re: [jQuery] this verus (this)

2006-12-12 Thread Christof Donat
Hi, > Why do I need to wrap the this with $(this) - (when using $('#...').each) - > why isnt' that done automatically? Most of the time you use each(), because you want to access the DOM Objects. That is exactly what you get as this. In most cases you need a jQuery Object you can do your work o

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Christof Donat
Hi, > Conditional Compilation is my first choice too, but it cannot be used if > you want to compress the script. Thats why I switched that in my plugins > a while ago. Hm, good point. I could try and change JSquash to detect conditional compilation. We'll see. Christof _

Re: [jQuery] Why the old school browser detection

2006-12-11 Thread Christof Donat
Hi, > Mozilla added document.all if I remember correctly. And so on... You can use document.all with Mozilla, but if(document.all) ... else ... still choses the else path. It is opera that has problems with it - I trapped into it. To detect IE (which is >90% of what I need) I now use condition

Re: [jQuery] Designing for reuse

2006-12-02 Thread Christof Donat
Hi, > // imagine yourself some code in these functions. > [...] > > Event.observe($("#switch"), 'click', switchViews) I like that. In jQuery-style it could be something like this: jQuery('#switch').bind('click',function() { var showme = jQuery.treeView('#mytree'); var hideme = jQ

Re: [jQuery] Designing for reuse

2006-12-01 Thread Christof Donat
Hi, > > $('#grid').grid({data:data}).show().gridController().scrollToRow(6); > > An perhaps have a method that returns you back to jQuery object? > Calling it 'end' (or any other jQuery method name) may be confusing, > something like 'endGrid'. I don't think that is necessary. You could compare

Re: [jQuery] Designing for reuse

2006-12-01 Thread Christof Donat
Hi, > Controller set of methods is returned.. > > $('#grid').grid().data(data).drig().show() > $('#grid').grid().scrollToRow(6).drig().css("border", "1px") > > A controller object is returned.. > > var grid = null > $("grid").grid({ > data: data, > onComplete: function(controller) { grid

Re: [jQuery] beginner's problem

2006-11-30 Thread Christof Donat
Hi, > Sounds to me like your using absolute URLs in your AJAX requests. If your > trying to call http://localhost/something.php, just type 'something.php' as > the url. Firefox doesnt like anything starting with http:// . Well, Firefox has no Problems with absolute URLs in a XMLHttpRequest, but y

Re: [jQuery] New Plugin: modalContent

2006-11-29 Thread Christof Donat
Hi, > I find the jQ src is compressed. could you tell me what tools can compress > the js myself ? AFAIK John uses this: http://dean.edwards.name/packer/ You can also try http://sourceforge.net/projects/jsquash Very early stage of development, but in the most cases if works for me. JSquash

Re: [jQuery] .css works not correct for me

2006-11-29 Thread Christof Donat
Hi, > it's textAlign! Both should work. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] OT: mail delivery

2006-11-28 Thread Christof Donat
Hi, > Well... I did notice the same thing with a mail I sent to the list a few > days ago. Arrived in my inbox approx 8 hours after I sent it. Me too. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] .css works not correct for me

2006-11-28 Thread Christof Donat
Hi, > Hi @all, > i will a DIV appand to ID test and give test a little bit of CSS, this > works fine > > $("#test").css({overflow:"hidden"}).append(" > This fails: > > $("#test").css({text-align:"center"}).append(" > what is to do? $("#test").css({"text-align":"center"}).append("http://jquery.com

Re: [jQuery] filter refactored with the engine of Chili

2006-11-28 Thread Christof Donat
Hi, > > You can not be shure that a JavaScript Engine is not threaded. This code > > is not threadsave. > > Is there an implementation of javascript that supports context switching? The engine itsself usually does no contextswitch, but it may start multiple threads to handle multiple Events simu

Re: [jQuery] filter refactored with the engine of Chili

2006-11-28 Thread Christof Donat
Hi, > Yes, but if it's not 0 it's ok I guess. I have not analyzed your code deeply. It was just something I sumbled across. > There is a preprocessing step that > sets parse2RE, and if it's not 0 isn't it safe to suppose it holds the > correct RegExp object set during preprocessing? Ah, I und

Re: [jQuery] filter refactored with the engine of Chili

2006-11-28 Thread Christof Donat
Hi > if( jQuery.parse2RE == 0 ) { > // this is the first call to filter_opt, so > // replace S and T macros in the parse2 regexps > var S = "([a-z*_-][\\w-]*)"; You can not be shure that a JavaScript Engine is not th

Re: [jQuery] Working on a getScripts plugin

2006-11-26 Thread Christof Donat
Hi, > The thread I was referring to is this one: > http://www.nabble.com/getScript-error-tf2652417.html OK, It leads to the same solution. I simply added this to my code: if( ! window.execScript ) window.execScript= function(src) { eval.call(window,src); }; > One of my last messages > (

Re: [jQuery] Working on a getScripts plugin

2006-11-25 Thread Christof Donat
Hi, > > I've looked at your package.js, and I've found that you use the > > setTimeout method for evaluating the loaded script in the global scope, > > with a delay of 1 millisecond. Don't you have any problems with that? No, I have not experienced any problems with that up to now. I guess, that

Re: [jQuery] Working on a getScripts plugin

2006-11-25 Thread Christof Donat
Hi, > In another thread > (getScript error), we were discussing alternatives because it seems not to > work as expected, at least for a delay of 0 milliseconds. Are you talking about this thread? http://www.nabble.com/eval.call(-window,jscode)-does-not-work-in-IE-tf2202851.html#a6099563 The sol

Re: [jQuery] Working on a getScripts plugin

2006-11-24 Thread Christof Donat
Hi, > An alternative could be to inspect any loaded script and see if it requires > more scripts (recursively). I think that that would be too complicated. In jsPax I simpy expect the scripts to generate a specific Object which depends on the name of the script. If that object exists after the

Re: [jQuery] Working on a getScripts plugin

2006-11-24 Thread Christof Donat
Hi, > > No, the order could be doA() doC() doB(). That is because doA() is called > > as > > soon as b.js is loaded but before c.js is loaded. The call to > > $.getScript() > > in b.js returns immediatelly and loads c.js assynchonously. Then b.js is > > finished and doA() is called while c.js is s

Re: [jQuery] Working on a getScripts plugin

2006-11-24 Thread Christof Donat
Hi, > > That does not help, if your loaded script needs to load another script. > > For example: > > file "a.js" is [ $.getScript( "b.js", function() { doA(); } ); ] > file "b.js" is [ $.getScript( "c.js", function() { doB(); } ); ] > file "c.js" is [ doC(); ] > the page has: [ script src=jquery.j

Re: [jQuery] Working on a getScripts plugin

2006-11-24 Thread Christof Donat
Hi, > > $.getScript() is assynchonous. That means, that it returns before the > > script is loaded. > > Yes, but if I put all my code into the callback? That does not help, if your loaded script needs to load another script. Christof ___ jQuery mailin

Re: [jQuery] Working on a getScripts plugin

2006-11-24 Thread Christof Donat
Hi, > But I don't understand the drawback. If the loaded scripts are evaluated as > soon as they are loaded, before calling the callback in $.getScript AFAIK, > there should be no problem, except that getScript does not support library > registration, so there is a risk for looping indefinitely.

Re: [jQuery] Working on a getScripts plugin

2006-11-24 Thread Christof Donat
Hi, > Some days ago I wrote this getScripts plugin, as a macro for shrinking this > > $.getScript( "f1.js", function() { > $.getScript( "f2.js", function() { > $.getScript( "f3.js", function() { > do_it(); > } ); > } ); > } ); > > to this > >

Re: [jQuery] CPAN Modul for jQuery ?

2006-11-23 Thread Christof Donat
Hi, > Why isn't there a CPAN modul for jQuery? I guess, because jQuery is not written in Perl. Christof ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] jQuery namespacing your code

2006-11-17 Thread Christof Donat
Hi, > > var dragan = {}; > > What this mean? I suppose it creates an object? Yes. The fiew lines could also be written like this: var dragan = { debug: function(info) {     // do all sorts of fancy stuff } }; Christof ___ jQue

Re: [jQuery] jQuery namespacing your code

2006-11-17 Thread Christof Donat
Hi, > $.namespace("org.jquery.utils") You can use jsPax (http://jspax.cdonat.de/). Then you call it $package("org.jquery.utils", { HelloWorld = function() {alert(this.blabla);} }); org.jquery.utils.blabla = 'Hi'; $package("org.jquery.test", {}); org.jquery.test.wow = function() {alert

Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-16 Thread Christof Donat
Hi, > * jQuery.find recursively collects every node in the document > tree and copies that list into a second array; > * jQuery.filter builds/compiles a regexp to get the class name, > then builds/compiles a function to check the class name; > * jQuery.grep calls that function once for

Re: [jQuery] Next generation WYSIWYG editor... m aybe? am I missing something?

2006-11-16 Thread Christof Donat
Hi, > Actually it would be nice to have a temporary state saved. You can edit > your document and stop and continue whenever you like. When you are > finished or want to release a draft, you make the "real" save. I think, versioning and releasing should be done by the CMS, not the editor. For th

Re: [jQuery] Next generation WYSIWYG editor... maybe? am I missing something?

2006-11-16 Thread Christof Donat
Hi, >- Integrate in to our sites without requiring CSS tweaks to get it >looking correct - this means no iframes. IIRC gecko can only edit full documents. You need to create an iframe to have an area in a page editable. >- Produce strict XHTML every time without fail. FCKeditor doe

Re: [jQuery] Next generation WYSIWYG editor... maybe? am I missing something?

2006-11-16 Thread Christof Donat
Hi, > I do not know if anybody has viewed this new project, > http://www.wymeditor.org/en/ which aims to produce nice clean code AND will > be using jquery to power the application. Ah, this looks good. Lets see if I find some time to help them. Christof

Re: [jQuery] jQuery sites

2006-11-14 Thread Christof Donat
Hi, > 1. http://www.payroll.com. Used jQuery for manipulating the icons on the > local nav and creating some visual effects. Works fine with Firefox, but in Konqueror (3.5.5) I don't even see the content. The tab-widget with its contents is simply not there. Christof _

Re: [jQuery] if/then equivalents in jQuery

2006-11-12 Thread Christof Donat
Hi, I don't have much time to help you now, but better formated code might help others: > $.fn.ajaxSubmitEmail = function(e) { > this.submit(function(){ > var params = {}; > $(this).find("[EMAIL PROTECTED], [EMAIL PROTECTED]'text'], > [EMAIL PROTECTED]'hidden'

Re: [jQuery] New way of animating

2006-11-07 Thread Christof Donat
Hi, > The problem is on all css properties that have a string as property. Colors can also be strings ('red', 'white', etc.). But I guess that can easily be resolved by a simple table: var colorstrings = { red: [255,0,0], white: [255,255,255], black: [0,0,0], ..

Re: [jQuery] New way of animating

2006-11-07 Thread Christof Donat
Hi, > > To do that you at least need to define a point in time when these > > attributes will be changed during the Animation - I'd suggest in the > > middle. > > Or you could go crazy and layer an identical element over the top of the > original one and as one element fades out the other one fade

Re: [jQuery] New way of animating

2006-11-07 Thread Christof Donat
Hi > Sure Christof, this is the limitation. from solid to dotted is just not > possible :) If you have an animate-function that takes CSS-code you can simply define that it won't work with these attributes, but if you have an animate-Function that takes a class name, you'd expect the result to

  1   2   >