Re: [jQuery] jQuery namespacing your code

2006-11-25 Thread Aloyzas Rimeika
jQuery.package = function(ns, obj) { ns = ns.split('.'); var cur = window, i; while ( i = ns.shift() ) cur = cur[i] || ( cur[i] = {} ); if ( obj ) jQuery.extend(cur, obj); }; $.package('example.ns', { example: function(){ // Some stuff... } }); On 11/20/06,

Re: [jQuery] I hate coding! (was:Star Rating Plugin?)

2006-11-05 Thread Aloyzas Rimeika
h1 _javascript_ required to rate!/h1Thank you!thanks for rating!On 11/5/06, Klaus Hartl [EMAIL PROTECTED] wrote:Ⓙⓐⓚⓔ schrieb: I hate coding HTML... it's for the kids in the industry, So it's for the kids, no? So it should be very easy to do? A quickglance at your source revealed this to me:?xml

Re: [jQuery] reaplying rules to returned data

2006-11-05 Thread Aloyzas Rimeika
of rules on ajax execution. Like it's working in event:selectors.Yehuda told me to try setting click event hadler globally. Now I'm thinking of how to do it 05.11.06, Aloyzas Rimeika [EMAIL PROTECTED] написал(а): $(function(){ $('.content').load('site.php?page=1start'); $('.content').click

Re: [jQuery] reaplying rules to returned data

2006-11-04 Thread Aloyzas Rimeika
$(function(){ $('.content').load('site.php?page=1start'); $('.content').click(function(e){ if (e.target.id == loadeddata) $(e.target).color('red'); }); $(.menu li).click(function() { $(.content).load('site.php',{page: $(this).attr('name')}, function(){ $(this).show(slow); }); });});On

Re: [jQuery] Dom creation

2006-08-16 Thread Aloyzas Rimeika
I think i am getting a tad closer i am trying to find out how i can make multi rows with a for loop then insert them in to the table or just put them in a var in the deleration of the table it self. I have been looking at this callender.js and i am a tad confused :( var days = []; for (var

Re: [jQuery] regexp selector

2006-08-11 Thread Aloyzas Rimeika
Add these lines in your javascript file: jQuery.parse[0] = [ \\[ *(@)S *([\\/!*$^=]*) *Q\\], 1 ];trace(m[4]); jQuery.expr['@']['/='] = new RegExp(m[4]).test(z); then you be able to do following: $([EMAIL PROTECTED]/='\\.(jpg|gif)(\\?.*|$)']) On 8/11/06, Fil [EMAIL PROTECTED] wrote: @ Aloyzas