[jQuery] Re: Split button plugins (?)

2008-12-19 Thread R. Rajesh Jeba Anbiah

On Dec 19, 6:55 pm, Dave Methvin dave.meth...@gmail.com wrote:
 I haven't seen any myself. This page from YUI provides a good outline
 of the markup to use:

 http://developer.yahoo.com/yui/examples/button/btn_example08.html

   Thanks for your input.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Split button plugins (?)

2008-12-18 Thread R. Rajesh Jeba Anbiah

I'm just checking if there is any split button plugins/work
already done in jQuery community? Google returns none.

What is split button: 
http://vincenthomedev.files.wordpress.com/2008/04/image1.png
Other implementation: Yahoo! email reply button

TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Autocomplete with JSON contacting the server frequently

2008-12-09 Thread R. Rajesh Jeba Anbiah

On Dec 8, 9:30 pm, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
I have noted that the JSON 
 version/usagehttp://jquery.bassistance.de/autocomplete/demo/json.htmlis 
 contacting
 the server frequently. The standard version is not unnecessarily
 contacting the server. It's contacting the server whenever a key is
 pressed. What could be the reason and any solution? TIA

   Should I rephrase my question? Is it not clear?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] $.livequery.registerPlugin() doesn't work?

2008-12-08 Thread R. Rajesh Jeba Anbiah

   [Posted to jquery-dev 
http://groups.google.com/group/jquery-dev/msg/c33c84a2db495f88
and then realized that it may get better response here]

I'm trying to register a simple plugin with livequery, but it
doesn't work as expected.

Code snippet:

$.fn.confirm = function() {
this.click(function() {
return window.confirm(Are you sure you want to  +
this.innerHTML.toLowerCase() + ?);
});

};

if ($.livequery) {
$.livequery.registerPlugin('confirm');

}

Testing:

pa href=# class=deleteDelete/a/p
pa href=# class=ajaxAjax apend/a/p

jQuery(document).ready(function($) {
$('a.delete').confirm();
$('a.ajax').click(function(){
$(this).parent().append('pa href=#
class=deleteDelete/
a/p');
return false;
});

});

 Any idea, why it's not working? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: $.livequery.registerPlugin() doesn't work?

2008-12-08 Thread R. Rajesh Jeba Anbiah

On Dec 8, 7:47 pm, ricardobeat [EMAIL PROTECTED] wrote:
 According to the LiveQuery documentation (http://brandonaaron.net/docs/
 livequery) the 'registerPlugin' functionality is for plug-ins that
 modify the DOM without the aid of jQuery, which is not your case. I
 believe you'd have to bind an event to the a.delete elements for that
 to work:

 function confirm() {
 return window.confirm(Are you sure you want to  +
 this.innerHTML.toLowerCase() + ?);

 };

 jQuery(document).ready(function($) {
 $('a.delete').livequery('click',confirm);
 $('a.ajax').click(function(){
 $(this).parent().append('pa href=#
 class=deleteDelete/
 a/p');
 return false;
 });

 });

 if you want to keep your confirm() as a plugin, this might work but is
 much more complicated and adds extra overhead:

 $.fn.confirm = function() {
$(this).data('confirm_plugin',true);
 this.click(function() {
 return window.confirm(Are you sure you want to  +
 this.innerHTML.toLowerCase() + ?);
 });

 };

 jQuery(document).ready(function($) {
 $('a.delete').livequery('mouseenter',function(){
if (!$(this).data('confirm_plugin')) $(this).confirm().click();
 });
 $('a.ajax').click(function(){
 $(this).parent().append('pa href=#
 class=deleteDelete/
 a/p');
 return false;
 });

 });

 Alternatively you could simply call confirm() after every append.

   Thanks a lot for your kind reply. I'm still hoping for a short
jQueryish approach for it. If anyone got any idea on this, kindly
share. TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Autocomplete with JSON contacting the server frequently

2008-12-08 Thread R. Rajesh Jeba Anbiah

   I have noted that the JSON version/usage
http://jquery.bassistance.de/autocomplete/demo/json.html is contacting
the server frequently. The standard version is not unnecessarily
contacting the server. It's contacting the server whenever a key is
pressed. What could be the reason and any solution? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Scrolling link menu - jQuery version?

2008-09-24 Thread R. Rajesh Jeba Anbiah

I vaguely remember that I have seen a jQuery version of this
http://web.archive.org/web/20030405135609/http://www.scriptbreaker.com/examples/scroll_menu.asp
(unobtrusive unordered list to menu transformation script) But, can't
get that by googling.

Has anyone bookmarked such plugin? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] thickbox, thickbox_reloaded, DOMWindow, thickbox-hacked?

2008-07-21 Thread R. Rajesh Jeba Anbiah

thickbox: http://jquery.com/demo/thickbox/
thickbox_reloaded: 
http://dev.jquery.com/browser/trunk/plugins/thickbox_reloaded?rev=2029
DOMWindow: http://swip.codylindley.com/DOMWindowDemo.html
thickbox-hacked: http://blogs.digitss.com/javascript/hacking-jquery-thickbox/

While I was looking for the option to override confirm/alert with
thickbox, I found other versions.

Personally, I find thickbox_reloaded (By Klaus Hartl) very useful;
however I thought of asking regulars to know if there is any history
of sort for the preferences.

TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] UI Tabs - closable tabs

2008-07-19 Thread R. Rajesh Jeba Anbiah

[FWIW, another follow up for
http://groups.google.com/group/jquery-en/browse_frm/thread/b8bd6f7913896b8f/0502d90518a6015f?#0502d90518a6015f]

Though the thread says the behavior is fixed, it's still buggy...

Steps to reproduce:
1. Add about 5 new tabs
2. Choose any one of Close me tab and click the x and close that.
3. Now, the x buttons in other Close me tabs are gone.

Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16)
Gecko/20080702 Firefox/2.0.0.16

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: jQuery.sheet thoughts, maybe UI compliant?

2008-06-21 Thread R. Rajesh Jeba Anbiah

On Jun 16, 9:29 pm, K-BL [EMAIL PROTECTED] wrote:
  snip
 Demo found 
 here:http://jqueryplugins.weebly.com/uploads/3/1/3/8/313814/jquery.sheet.html

   Nice and high hard work. But, before proceeding anything further, I
think, it's better to improve the theme/appearance (most of the times,
it's the UI get visibility than the functionality)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On May 25, 2:48 am, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
 I want to clone the jQuery object $ to $D; but it actually seems to be
 overwriting. Can anyone please suggest any solution?

 Here is the code:

 $D = $.extend($); // same result for $D = $;
 $D.fn.extend({
 click: function() {
 alert('overridden click');
 return this;
 }
 });

 $(document).ready(function(){
 $('body').click(); // this also triggers the 'overridden click' --
 which is what I want to avoid.
 $D('body').click();

 });

 As you see, $('body').click() triggers the 'overridden click', but I
 wanted it to trigger the original jQuery object's click.

Anyone? Or is it impossible (can someone please confirm)?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Combining other plugins with Intercept

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 12:03 pm, Lion29 [EMAIL PROTECTED] wrote:
 Hello!

 I have recently discovered the beauty of event delegation and the best
 option for me was Intercept plugin.
 It is cool to bind only once certain events and then you are care-
 free.

 But now I have more needs. I would like to permanently set some
 other behaviours to some kind of elements:

 clueTip, tooltip, thickbox, tabs

 for thickbox I managed, it was rather easy since TB uses an easy
 function:

 $(document).intercept(click, a.thickbox, area.thickbox,
 input.thickbox, function(){
 var t = this.title || this.name || null;
 var a = this.href || this.alt;
 var g = this.rel || false;
 tb_show(t,a,g);
 this.blur();
 return false;

 });

 but how can I use intercept for others? How can I convert this code
 to intercept?

 $('img.tips').cluetip({
 'attribute':'title',
 'dropShadowSteps':3,
 'width':'350px',
 'sticky':'true',
 'ajaxCache': true,
 'hoverIntent' : {
   sensitivity:  3,
   interval: 250,
   timeout:  0
 },
 showTitle:false,
 ajaxSettings: {
   dataType: 'html'
 }

 });

 I'm not an expert, but I don't think it's possible unless the
architecture is changed or a new plugin architecture is evolved to use
delegation/intercept.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

Lot of grids and so, I just thought of asking what is the preferred
grid by the experts?

I personally prefer the combination of http://makoomba.altervista.org/grid/
(for live loading), http://tablesorter.com/docs/ (for sorting),
http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/ (drag
drop ordering)

Also seen http://reconstrukt.com/ingrid/ which doesn't work in FF 2
and IE 7. Any comments are appreciated.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 2:43 pm, Rey Bango [EMAIL PROTECTED] wrote:
 For live data loading, jQGrid (http://www.trirand.com/blog/) is very
 advanced and well supported.
   snip

   Thanks for your comments. By live data loading, I meant that you
can keep scrolling and the grid automatically populates with data from
server--see http://makoomba.altervista.org/grid/ . Such a live data
loading, I can't find in http://trirand.com/jqgrid/jqgrid.html (it is
having a pager instead--which I don't want)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 3:18 pm, Rey Bango [EMAIL PROTECTED] wrote:
 Ah. I understand. I misunderstood what you meant by live data loading.

 Another implementation I've seen like this is here:

 http://www.webresourcesdepot.com/load-content-while-scrolling-with-jq...

   Thanks and I checked that already and not the one I prefer for grid
stuffs.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 3:32 pm, Samyak Bhuta [EMAIL PROTECTED] wrote:
 Hello All,

 I am using latest jQuery with UI lib as well for my new 
 websitewww.anvay.net/beta. Please let me know how it is looking ? I have 
 tried it
 on FF and Opera as well as IE 6. Some time it flickers.

 Do let me know your feedback. Do I adhering to the best practices ?

 NOTE: I have used custom JS code for PageLoader and EuDock for fisheye.

1. HTML errors
2. Do not hide info via JavaScript. Check tabs plugin for the
unobtrusiveness; otherwise the info will not be crawled by search
engines.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 2:23 pm, shapper [EMAIL PROTECTED] wrote:
 This one:http://webplicity.net/flexigrid/

   Thanks, but there is no live data loading like I mentioned above.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 4:11 pm, Samyak Bhuta [EMAIL PROTECTED] wrote:
 Thanks Rajesh,

 Unobtrusiveness was in mind, actually I am not even hiding it but loading it
 with ajax call. Wanted to load as much less as I could at first place.

You may use hijax as in tabs plugin.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Please review work with JQuery

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 18, 1:34 am, Samyak Bhuta [EMAIL PROTECTED] wrote:
 ThanksRajesh,

 I will check this out for sure ... Will it help in SEO front ?

   Yep. I actually meant, do not hide the link with #; just give the
link to  page (say, a href=page.html)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Which grid?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 10:27 pm, Ken Gregg [EMAIL PROTECTED] wrote:
 I was using Rico but dropped it for lack of development activity.
 Everything but the grid is available in jquery. I would love to see
 the dynamic data part of the grid incorporated into flexigrid. Think
 that would make a great combination.

 http://sourceforge.net/project/showfiles.php?group_id=140375

   Would be better if the UI team combine all stuffs together under a
single grid plugin.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-06-17 Thread R. Rajesh Jeba Anbiah

On Jun 17, 5:28 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
 $D.fn = $D.prototype;

   That doesn't even work; it overwrites $.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-06-15 Thread R. Rajesh Jeba Anbiah

On May 26, 2:14 am, Michael Geary [EMAIL PROTECTED] wrote:
   $.extend(foo) merely returns a reference to foo. It doesn't
   clone foo.

   $.extend( {}, foo ) creates a new object and copies all of foo's
   properties into it (doing a shallow copy).

   So in theory you may be able to use $.extend( {}, $ ) - or more
   properly, jQuery( {}, jQuery ) - to clone the jQuery constructor. I
   wouldn't promise that this would work, though - it depends on what
   assumptions the jQuery code makes.
 This also doesn't work. I have tried both $.extend({}, $)
  and $.extend(true, {}, $). This results in $D('body') is not
  a function error. Seems that it doesn't copy really.

 That's what I get for posting late at night. Of course that wouldn't work,
 because you need to clone the jQuery constructor function itself - which {}
 doesn't do.

 This would have a better chance of working:

   $D = eval( '' + jQuery );
   $D.prototype = jQuery.extend( {}, jQuery.prototype );

 A quick test seems to work - but I'm not sure about cross-browser support,
 and there could be issues because of assumptions made inside the jQuery
 code.
   snip

I'm sorry for the very late follow up. I was quite busy to try
this. And, it works for $D('body'), but I get error when trying to
extend:
$D.fn.extend({
click: function() {
alert('overridden click');
return this;
}
});

Throws $D.fn has no properties error like before.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah

On May 25, 7:59 am, Ariel Flesler [EMAIL PROTECTED] wrote:
 That's an exotic situation.
 I'll give you 2 options:

 1-

 var $D = $.extend( true, function( selector, context ) {
return new $D.fn.init( selector, context );

 }, $ );

 This MIGHT work, I never really tried something like this.

 This doesn't work; now 'overridden click' doesn't get trigger.

 2-
Maybe jQuery.Collection is what you need. It lets you create jQuery-
 like collections with your own methods, not only for DOM elements. You
 can create as many as you want and even use inheritance.

 HomePage:http://flesler.blogspot.com/2008/01/jquerycollection.html

Thanks, but this is not what I'm looking for.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah

On May 25, 8:26 am, Michael Geary [EMAIL PROTECTED] wrote:
 $.extend(foo) merely returns a reference to foo. It doesn't clone foo.

 $.extend( {}, foo ) creates a new object and copies all of foo's properties
 into it (doing a shallow copy).

 So in theory you may be able to use $.extend( {}, $ ) - or more properly,
 jQuery( {}, jQuery ) - to clone the jQuery constructor. I wouldn't promise
 that this would work, though - it depends on what assumptions the jQuery
 code makes.

   This also doesn't work. I have tried both $.extend({}, $) and
$.extend(true, {}, $). This results in $D('body') is not a function
error. Seems that it doesn't copy really.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah

On May 25, 9:03 am, Michael Geary [EMAIL PROTECTED] wrote:
 I meant to ask... What is the actual goal here? Can you give a little
 background? Maybe there is another way to accomplish what you want to do
 that doesn't rely on cloning the jQuery constructor.

I want to have both $ and $D; but in $D, I want to override some
functions like 'click', 'hover'. Till now, $ and $D gets overwritten
and so I couldn't use $ or couldn't override $D.click

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah

On May 25, 1:26 pm, Christof Donat [EMAIL PROTECTED] wrote:
   snip
  I want to have both $ and $D; but in $D, I want to override some
  functions like 'click', 'hover'. Till now, $ and $D gets overwritten
  and so I couldn't use $ or couldn't override $D.click

 Is it absolutelly necessary, that $D has all the other jQuery functionality?
 If not just hav the code you need in $D.

   Not necessary, but I want to have them chained with jQuery object

 Is it absolutelly necessary, that the functions have the name click() and
 hover()? Maybe you can simply add dclick() and dhover to jQuery.

   Yes, I want to override click

 If both are necessary I'd still stick to Michaels question: Why? Sometimes
 there are other solutions to a problem that one doesn't see untill someone
 else hits ones nose to it. Tell us why you need it that way and we can think
 about alternative solutions.

   I wrote a jQuery version of
http://rajeshanbiah.blogspot.com/2006/09/behaviorsjs-alternative-to-behaviourjs.html
which is actually event delegation based. The idea was to replace $
('foo').click() with $D('foo').click() whenever necessary to speed up
the pages. It was working fine, but I lost the code. Now, I'm trying
to rewrite the same and now can't do that with the idea that I had in
mind.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to clone jQuery object?

2008-05-25 Thread R. Rajesh Jeba Anbiah

On May 25, 8:06 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
 Load jQuery twice and use jQuery.noConflict().

   It doesn't seem to work for me. Are you sure that it works for you?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] How to clone jQuery object?

2008-05-24 Thread R. Rajesh Jeba Anbiah

I want to clone the jQuery object $ to $D; but it actually seems to be
overwriting. Can anyone please suggest any solution?

Here is the code:

$D = $.extend($); // same result for $D = $;
$D.fn.extend({
click: function() {
alert('overridden click');
return this;
}
});

$(document).ready(function(){
$('body').click(); // this also triggers the 'overridden click' --
which is what I want to avoid.
$D('body').click();
});

As you see, $('body').click() triggers the 'overridden click', but I
wanted it to trigger the original jQuery object's click.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: find table column's (td's) header (th) ?

2008-04-09 Thread R. Rajesh Jeba Anbiah

On Apr 8, 10:00 am, Hamish Campbell [EMAIL PROTECTED] wrote:
 Here is one way - it will find the header (th) for any cell (td) given
 that there are no merged cells and a single header row.

 $('td').click(function(){
var col = $(this).prevAll().length;
var headerObj = $(this).parents('table').find('th').eq(col);

// A quick test!
alert(My cell header is called:  + headerObj.text());

 });

This much neat, thanks.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] TableSorter - Multiple header handling?

2008-04-09 Thread R. Rajesh Jeba Anbiah

I'm little lost when setting up TableSorter on a table that with
multiple header:
table
 thead
  trth colspan=2Main/th/tr
  trthSub1/ththSub2/th/tr
 /thead
 tbody
  trtdS1/tdtdS2/td/tr
 /tbody
/table

   The sorter has to be applied only on the sub-header. Has anyone
come across similar situation and if so, please give me some hints.
TIA


--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] $().plugin.pluginMethod() ?

2008-04-09 Thread R. Rajesh Jeba Anbiah

I'm not sure if namespace is available in jQuery. If we can get
something like $().plugin.pluginMethod(), can anyone give me some
hints? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: find table column's (td's) header (th) ?

2008-04-07 Thread R. Rajesh Jeba Anbiah

On Apr 8, 9:56 am, RobG [EMAIL PROTECTED] wrote:
 On Apr 8, 1:56 pm, R. Rajesh Jeba Anbiah

 [EMAIL PROTECTED] wrote:
  I'm just wondering if there is any easy way to find out the header
  (th) of the table column (td)?
  Say,
  --
  | head1 | head2 |
  --
  | r11 |  r12 |
  --
  | r21 |  r22 |
  --

   Here, r22's heading is head2

 You need to know what relationship that the header cell has with the
 table cell.  In a table with one tbody and the header cells are just
 the first row of the table (i.e. the header row is in the same
 tableSectionElement as the table cell), then if td is the cell:

 var headerCell =
   td.parentNode.parentNode.rows[0].cells[td.cellIndex];

 If however the header cell is in a thead (which is a different
 tableSectionElement), you will need an extra parentNode:

 var headerCell =
   td.parentNode.parentNode.parentNode.rows[0].cells[td.cellIndex];

Superb. Thanks.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] |Plugin| $('a').favicon()

2008-01-29 Thread R. Rajesh Jeba Anbiah

Just thought of sharing this snippet that adds favicon next to the
selected links:

/**
 * favicon - jQuery plugin for adding favicons next to the links
 *  To automate:
 *   a[href ^=http://jquery.com;] {
 *  background: url(http://jquery.com/favicon.ico) center right no-
repeat;
 *  padding-right: 16px;
 *  }
 *
 * January 30, 2008//R. Rajesh Jeba Anbiah//http://
rajeshanbiah.blogspot.com/
 *
 * Usage:
 *  - $('a').favicon(); - all links
 *  - $('[EMAIL PROTECTED]http]').favicon(); - all external links
 *  - $('a').favicon({paddingRight: '32px'}); - all links with
custom paddingRight
 * @todo Document at http://rajeshanbiah.blogspot.com/
 * jsmin
 * $.fn.favicon=function(cssOptions){return this.each(function(){var
m=/(http:\/\/([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z]
(([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))(:(\d+))?)(\/[a-
zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[;:@=])*)(\/((([a-zA-Z\d$\-_.+!
*'(),]|(%[a-fA-F\d]{2}))|[;:@=])*))*)(\?((([a-zA-Z\d$\-_.+!*'(),]|(%
[a-fA-F\d]{2}))|[;:@=])*))?)?)|(ftp:\/\/([a-zA-Z\d$\-_.+!*'(),]|(%
[a-fA-F\d]{2}))|[;?=])*)(:((([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|
[;?=])*))?@)?([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z]
(([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))(:(\d+))?))(\/
[a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[@=])*)(\/((([a-zA-Z\d$\-
_.+!*'(),]|(%[a-fA-F\d]{2}))|[@=])*))*)(;type=[AIDaid])?)?)|(news:
[a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[;\/=])+@[a-zA-Z\d]
(([a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z
\d])?))|((\d+)(\.(\d+)){3})))|([a-zA-Z]([a-zA-Z\d]|[_.+-])*)|\*))|
(nntp:\/\/([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z]
(([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))(:(\d+))?)\/([a-zA-
Z]([a-zA-Z\d]|[_.+-])*)(\/(\d+))?)|(telnet:\/\/([a-zA-Z\d$\-_.+!
*'(),]|(%[a-fA-F\d]{2}))|[;?=])*)(:((([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F
\d]{2}))|[;?=])*))?@)?([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)
\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))(:(\d
+))?))\/?)|(gopher:\/\/([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)
\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))(:(\d
+))?)(\/([a-zA-Z\d$\-_.+!*'(),;\/@=]|(%[a-fA-F\d]{2}))((([a-zA-Z\d$\-
_.+!*'(),;\/@=]|(%[a-fA-F\d]{2}))*)(%09((([a-zA-Z\d$\-_.+!*'(),]|(%[a-
fA-F\d]{2}))|[;:@=])*)(%09(([a-zA-Z\d$\-_.+!*'(),;\/@=]|(%[a-fA-F\d]
{2}))*))?)?)?)?)|(wais:\/\/([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)
\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))(:(\d
+))?)\/(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))*)((\/(([a-zA-Z\d$\-_.
+!*'(),]|(%[a-fA-F\d]{2}))*)\/(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]
{2}))*))|\?((([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[;:@=])*))?)|
(mailto:(([a-zA-Z\d$\-_.+!*'(),;\/@=]|(%[a-fA-F\d]{2}))+))|(file:\/\/
([a-zA-Z\d](([a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z](([a-zA-Z
\d]|-)*[a-zA-Z\d])?))|((\d+)(\.(\d+)){3}))|localhost)?\/[a-zA-Z\d$
\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[@=])*)(\/((([a-zA-Z\d$\-_.+!*'(),]|(%
[a-fA-F\d]{2}))|[@=])*))*))|(prospero:\/\/([a-zA-Z\d](([a-zA-Z
\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)
(\.(\d+)){3}))(:(\d+))?)\/[a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|
[@=])*)(\/((([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[@=])*))*)((;
((([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))|[@])*)=((([a-zA-Z\d$\-_.+!
*'(),]|(%[a-fA-F\d]{2}))|[@])*)))*)|(ldap:\/\/(([a-zA-Z\d](([a-zA-
Z\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)
(\.(\d+)){3}))(:(\d+))?))?\/((([a-zA-Z\d]|%(3\d|[46][a-fA-F\d]|[57]
[Aa\d]))|(%20))+|(OID|oid)\.((\d+)(\.(\d+))*))((%0[Aa])?
(%20)*)=((%0[Aa])?(%20)*))?(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]
{2}))*))(((%0[Aa])?(%20)*)\+((%0[Aa])?(%20)*)([a-zA-Z\d]|%(3\d|[46]
[a-fA-F\d]|[57][Aa\d]))|(%20))+|(OID|oid)\.((\d+)(\.(\d+))*))((%0[Aa])?
(%20)*)=((%0[Aa])?(%20)*))?(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]
{2}))*)))*)%0[Aa])?(%20)*)([;,])((%0[Aa])?(%20)*))(([a-zA-Z\d]|
%(3\d|[46][a-fA-F\d]|[57][Aa\d]))|(%20))+|(OID|oid)\.((\d+)(\.(\d+))*))
((%0[Aa])?(%20)*)=((%0[Aa])?(%20)*))?(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F
\d]{2}))*))(((%0[Aa])?(%20)*)\+((%0[Aa])?(%20)*)([a-zA-Z\d]|%(3\d|
[46][a-fA-F\d]|[57][Aa\d]))|(%20))+|(OID|oid)\.((\d+)(\.(\d+))*))
((%0[Aa])?(%20)*)=((%0[Aa])?(%20)*))?(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F
\d]{2}))*)))*))*(((%0[Aa])?(%20)*)([;,])((%0[Aa])?(%20)*))?)(\?[a-
zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))+)(,(([a-zA-Z\d$\-_.+!*'(),]|(%[a-
fA-F\d]{2}))+))*)?)(\?(base|one|sub)(\?((([a-zA-Z\d$\-_.+!*'(),;\/@=]|
(%[a-fA-F\d]{2}))+)))?)?)?)|((z39\.50[rs]):\/\/([a-zA-Z\d](([a-zA-Z
\d]|-)*[a-zA-Z\d])?)\.)*([a-zA-Z](([a-zA-Z\d]|-)*[a-zA-Z\d])?))|((\d+)
(\.(\d+)){3}))(:(\d+))?)(\/((([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))
+)(\+(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2}))+))*(\?(([a-zA-Z\d$\-_.
+!*'(),]|(%[a-fA-F\d]{2}))+))?)?(;esn=(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-
F\d]{2}))+))?(;rs=(([a-zA-Z\d$\-_.+!*'(),]|(%[a-fA-F\d]{2

[jQuery] $('#foo').css() - to return all styles of the element?

2008-01-08 Thread R. Rajesh Jeba Anbiah

My google search got to be vain; I was searching how to find style
rules for the element like:

$('#foo').css() to return something like:
background: red;
font: Arial

Is there anyway? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: jQueryish for Effect.CashRegister()

2007-12-22 Thread R. Rajesh Jeba Anbiah

On Dec 19, 5:53 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 Glen Lipka put together something that was similar (but way cooler) a
 while ago. Glen, do you still have that somewhere on your site?
   snip

   Thanks for the info, but I still don't find it anywhere in
http://www.commadot.com/jquery/

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com


[jQuery] Re: ui.datepicker causes IE operation aborted

2007-12-12 Thread R. Rajesh Jeba Anbiah

On Dec 12, 12:29 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
 On 8 Dez., 23:26, Charles Johnson [EMAIL PROTECTED] wrote:
   snip
 I had a similiar problem when using the ready event with scripts at
 the bottom of the page - in that case the ready event isn't necessary
 and I just forgot to remove it. After removal the error in IE was
 gone.
  snip

   For the sake of record, this wasn't the case with mine. I used
iframe.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Adding rounded corners to inline images? (not background)

2007-12-12 Thread R. Rajesh Jeba Anbiah

On Dec 13, 5:38 am, Action [EMAIL PROTECTED] wrote:
 I got the information about the image (height, width, src), removed
 it, then created a div of those dimensions in its place with that
 image set as the background.
   snip

   Thanks for sharing.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: ui.datepicker causes IE operation aborted

2007-12-12 Thread R. Rajesh Jeba Anbiah

On Dec 12, 7:56 pm, KidsKilla .grin! wuz here [EMAIL PROTECTED]
wrote:
 This problem caused in IE not because of jQuery bug, but because of IE bug.
 IE doesn't allow to work with DOM untill it's fully downloaded and be ready.
 This is why everything works fine inside $(document).ready()
 there is 2 ways to fix it:
 1. initialize everything in $(document).ready()
 2. paste your script tags in head or directly in body tag. (i mean
 there have to be no parent tags)
   snip

   This is not quite true. The ready() is keep on changing; I'm not
sure if one in svn is finalized.

   You'll get this error even if you follow the above 2 criteria in at
least one of the previous/current jQuery versions--especially if you
use jQuery from IFRAME.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Jaiku's jQuery plugs (http://jaiku.com/js/core.js)

2007-12-12 Thread R. Rajesh Jeba Anbiah

(I'm posting this as Google returns no result 
http://groups.google.com/groups?q=jquery+jaiku
)

FWIW, recently I've seen Jaiku's jQuery codes/plugins; they're quite
elegant http://jaiku.com/js/core.js

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: Adding rounded corners to inline images? (not background)

2007-12-11 Thread R. Rajesh Jeba Anbiah

On Dec 11, 11:41 pm, Action [EMAIL PROTECTED] wrote:
 Solved.

   Would you mind to share, how?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: ui.datepicker causes IE operation aborted

2007-12-11 Thread R. Rajesh Jeba Anbiah

On Dec 9, 3:26 am, Charles Johnson [EMAIL PROTECTED] wrote:
 I believe this bug was supposed to have been fixed in the move from
 jQuery Calendar to ui.datepicker, but I'm still seeing sporadic
 Operation Aborted errors in Internet Explorer, both 6 and 7, when
 the datepicker is initialized. Frustrating problem because it's very
 intermittent.
   snip

   I presume that it's a problem with the jQuery's ready(); switching
to some different versions of jQuery might help (that worked for me--I
didn't use datepicker though). Switching to svn version did help for
me--but that broke metadata plugin.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: How to toggle display value?

2007-12-11 Thread R. Rajesh Jeba Anbiah

On Dec 12, 8:42 am, Karl Swedberg [EMAIL PROTECTED] wrote:
   snip
 Dave, the .toggle() effect should work
   snip

   I presume, it's the problem that I pointed out couple of months
before
http://groups.google.com/group/jquery-en/msg/5bd84051624cc1b3

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


[jQuery] Re: New Plugin: SimpleModal

2007-10-25 Thread R. Rajesh Jeba Anbiah

On Oct 24, 9:28 pm, Eric Martin [EMAIL PROTECTED] wrote:
 I've been using jQuery for a couple months and recently had the need
 for a modal dialog. I tried other existing modal plugins, but decided
 to take a shot at creating my own plugin.

 SimpleModal is a lightweight jQuery plugin that provides a simple,
 cross-browser compatible interface to create a modal dialog.

 The plugin is extremely flexible and was written to allow a developer
 100% control of the style and functionality.

 I would appreciate any feedback on the plugin, as it's my first one =)

 Details:http://www.ericmmartin.com/projects/simplemodal

 Demo:http://www.ericmmartin.com/simplemodal

 Very nice. But, demo's responsive time is very low (click to
modal appearance takes long time)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: creating facebook ajax popups?

2007-10-11 Thread R. Rajesh Jeba Anbiah

On Oct 11, 11:26 am, PaulM [EMAIL PROTECTED] wrote:
 Have you seen how facebook nicely lets users edit their account by
 using those clever popups and after you perform the functionality you
 close the small window and go on with your browsing.

 How can someone achieve this with jquery?

   I don't use Facebook. But, I think, you can try this
http://dev.iceburg.net/jquery/jqModal/

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: n2Menu

2007-10-11 Thread R. Rajesh Jeba Anbiah

On Oct 11, 2:51 am, GrandNagel [EMAIL PROTECTED] wrote:
 I'm trying to make the n2menu hide all expanded submenus when you
 mouse out of the menu.  Does anyone have any experience with this
 menu?
   snip

   Can you post your HTML markup?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: JSS - New Plug-in

2007-10-10 Thread R. Rajesh Jeba Anbiah

On Oct 10, 12:17 am, hj [EMAIL PROTECTED] wrote:
 On Oct 9, 12:56 am, R. Rajesh Jeba Anbiah

 [EMAIL PROTECTED] wrote:
  On Oct 8, 3:42 pm, Andy Kent [EMAIL PROTECTED] wrote:
 snip Yep, absolutely. If you have any ideas on how we could test a 
  browsers
   support for a selector without maintaining a hard coded list then I
   would love to hear them.

 snip

  $(document).ready(function () {
  $('body').append(
  'div id=r_csstest   \
  style type=text/css \
  div#r_css{  \
  width: 0px; \}   \

 [and more like that]

 I hope you're aware of a couple of issues with this method:


   I had typed from my memory. I think, in the original version, I
didn't hard-code the selector here (used from bc_selectors or so)

   1) The style element is not a legal descendant of body.
Better to append it to the head.

   Since, it's only for the detection purpose, I think, this is good
(IMHO).

   2) The ECMAScript standard doesn't define the \ as a string
 continuation character.
Better to simply concatenate string literals.

   I didn't know that actually. Thanks for proving me with very useful
info.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: JSS - New Plug-in

2007-10-09 Thread R. Rajesh Jeba Anbiah

On Oct 8, 3:42 pm, Andy Kent [EMAIL PROTECTED] wrote:
   snip
 Yep, absolutely. If you have any ideas on how we could test a browsers
 support for a selector without maintaining a hard coded list then I
 would love to hear them.
   snip

$(document).ready(function () {
$('body').append(
'div id=r_csstest   \
style type=text/css \
div#r_css{  \
width: 0px; \
}   \
div[id=r_css]{\
height: 0px;\
}   \
div#r_css:nth-child(1){\
position: fixed;\
}   \
/style\
div id=r_css\
 div id=r_cssc  \
 /div \
/div  \
/div'
);
var bc_selectors = {
css1: 'div#r_css',
css2: 'div[id=r_css]',
css3: 'div#r_css:nth-child(1)'
};
var bc = {
css1: ($(bc_selectors.css1).css('width') == '0px'),
css2: ($(bc_selectors.css2).css('height')=='0px'),
css3: ($(bc_selectors.css3).css('position')=='fixed')
};
$('div#r_csstest').remove();
console.log(bc);
});

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: JSS - New Plug-in

2007-10-08 Thread R. Rajesh Jeba Anbiah

On Oct 7, 4:39 am, Andy Kent [EMAIL PROTECTED] wrote:
  snip
 http://andykent.bingodisk.com/bingo/public/jss/

I *exactly* wanted to do the same plugin. I also used similar idea in
some of the projects already (crude code without plugin). My ideas
were:

1. Common crossbrowser CSS in a file, say crossbrowser.css
2. CSS2 in css2.css. Not linked, but commented out (linking in non-
compliant browser has side effects for the selectors. So, just
commented)
3. CSS3 in css3.css. Not linked, but commented out

Plugin:
1. If FF (more other detection for capability)
   a. link the css2.css via script
   b. Don't link css3.css, but hack the rules and fix them via $.css()
  [Parse the comments, find css3.css and get the content with $.ajax,
parse the content and apply hacks)

2. If IE
   a. Don't link css2.css  css3.css, but hack the rules and fix them
via $.css()

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Code review: 1 problem each in IE and FF

2007-10-08 Thread R. Rajesh Jeba Anbiah

On Oct 8, 8:43 am, Andy Matthews [EMAIL PROTECTED] wrote:
 I was just working on a quick little project to utilize some gibberish
 text I've had laying around:http://www.commadelimited.com/code/fillertext/
   snip

Culprit is append(). You may try $text.text() instead. If you use
Firebug, you can see that it's appending to the wrong place.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] $() and many objects? - architecture related

2007-09-02 Thread R. Rajesh Jeba Anbiah

 I'm little confused with the architecture of jquery. I tried to
understand it with Firebug, but I'm lost as it's just showing this
tree.

As far as I understand, $() creates a new jQuery object. So, if we
use $() many times, will it create as many objects for it? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Rey Bango is now Ajaxian

2007-09-02 Thread R. Rajesh Jeba Anbiah

Usually, he'll be posting this sort of links/news; now for a
change, I'm doing;)

http://ajaxian.com/archives/introducing-the-latest-ajaxan-rey-bango

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: $() and many objects? - architecture related

2007-09-02 Thread R. Rajesh Jeba Anbiah

On Sep 2, 9:48 pm, Michael Geary [EMAIL PROTECTED] wrote:
  From: R. Rajesh Jeba Anbiah

   I'm little confused with the architecture of jquery. I
  tried to understand it with Firebug, but I'm lost as it's
  just showing this tree.

  As far as I understand, $() creates a new jQuery object.
  So, if we use $() many times, will it create as many objects
  for it? TIA

 Yes.
   snip
function MyObject() {
   if( this === window )
  return new MyObject();
}

 This one gets a little more interesting. You can call MyObject as a
 constructor:

var myObject = new MyObject();

 Or you can leave out the new and it will do the exact same thing:

var myObject = MyObject();

 The this === window test catches the case of calling the function without
 the new, and it does the new for you.

 If you look at the code for $()/jQuery(), you'll see that it calls new
 jQuery internally in this way, at line 19 of jquery-1.1.4.js.

   Many thanks for your great explanation. I think, I've got the idea.
I was thinking and had the opinion that creating many objects wouldn't
be a good idea. I also think, I've got the idea why the tinyMCE fails
with ready() 
http://groups.google.com/group/jquery-en/browse_thread/thread/6eb2442209953ebf

   Thanks again.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: $(document).ready() firing up later in 1.1.4?

2007-09-01 Thread R. Rajesh Jeba Anbiah

On Aug 30, 1:31 am, Renaud [EMAIL PROTECTED] wrote:
 I'm not sure how to trace that problem since it's happening under IE 6
 and 7, but here is what is happening to me since I switched to 1.1.4:

 The handler registered for the $(document).ready() event is triggered
 only after all the embedded items on the page have been loaded. When
 you load a page under IE you can see the (xxx items left ) in the
 status bar. If I try this page with jquery 1.1.3.1, the handler is
 triggered when there are still some items left. If I switch to 1.1.4,
 without no other change, it won't fire up until I reach the '(0 item
 left)' and that the page has been fully loaded. That is happening
 under IE 6 and IE 7.

 Has anyone seen this already? Could this be related to the fact that
 the page doesn't pass the validation test and has no doctype?

I'm not sure if we have any reply here. But, I have noticed the
same issue in 1.3.1.1 and now in 1.1.4.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Handling scope issues (jQuery with tinyMCE)

2007-08-24 Thread R. Rajesh Jeba Anbiah

$(document).ready(function () {
 tinyMCE.init(...);
});

Calls like this results in tinyMCE is not defined error from the
rest of the tinyMCE files.

So, I tried (to solve scope(?) issue):

$(document).ready(function () {
 tinyMCE.init(...);
 window.tinyMCE = '' + this.tinyMCE;
});

but, that resulted in tinyMCE.x() is not a function for all the
related functions from tinyMCE files.

So, does anyone know how to handle the scope(?) issue like this? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Karl, cluetip questions: Select IE6 bug ETA, and incorporating JTIP?

2007-08-24 Thread R. Rajesh Jeba Anbiah

On Aug 23, 10:16 pm, Karl Swedberg [EMAIL PROTECTED] wrote:
 On Aug 23, 2007, at 4:16 AM, R. Rajesh Jeba Anbiah wrote:
  On Aug 23, 1:03 am, Karl Swedberg [EMAIL PROTECTED] wrote:
  I like jTip for all the same reasons, I really like the arrow, and
  wish Karl's had it

  It does have it if you set the option for it. See my reply to Kim.
 snip

 FWIW, when I tried one of the svn version, the arrows option
  wasn't obeying; the arrow was coming only if we use jTip class. Not
  sure, if it's still applicable.

 Thanks for the note, Rajesh!

 The deal with the arrows option is that it dynamically sets the
 background-position property of the clueTip. You still have to
 include a reference to the arrow background images in the css.
   snip

   Thanks for the explanation. But, that wasn't the case with initial
versions, IIRC.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Karl, cluetip questions: Select IE6 bug ETA, and incorporating JTIP?

2007-08-23 Thread R. Rajesh Jeba Anbiah

On Aug 23, 1:03 am, Karl Swedberg [EMAIL PROTECTED] wrote:
  I like jTip for all the same reasons, I really like the arrow, and
  wish Karl's had it

 It does have it if you set the option for it. See my reply to Kim.
   snip

   FWIW, when I tried one of the svn version, the arrows option
wasn't obeying; the arrow was coming only if we use jTip class. Not
sure, if it's still applicable.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: jQuery Ajax Bugs?

2007-08-21 Thread R. Rajesh Jeba Anbiah

On Aug 20, 1:49 pm, F8R [EMAIL PROTECTED] wrote:
 I have use jQuery to send AJAX call to PHP script using POST.
 It's always execute error function callback.
  snip

   Check the param order. You're putting error function in another
param.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: .change() and IE bug

2007-08-21 Thread R. Rajesh Jeba Anbiah

On Aug 20, 6:13 pm, Eridius [EMAIL PROTECTED] wrote:
 I have now just tried

 destination.load('/lib/ajax/price_buster.php', {'get': 'destination'});
 destination.bind('change', function()
 {
   snip

   Add bind in load's callback, otherwise, you won't be having
elements to bind. Or use LiveQuery plugin.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Fwd: jQuery and UTF8

2007-08-21 Thread R. Rajesh Jeba Anbiah

On Aug 20, 11:11 pm, barophobia [EMAIL PROTECTED] wrote:
 On 8/20/07, Bil Corry [EMAIL PROTECTED] wrote:
  snip
 Based on your information I think my problems will be solved once I
 get the server to serve PHP as UTF-8 (I think I can do this via
 .htaccess).

Either:
1. Save the file in UTF-8
2. or send the UTF-8 charset header via header(); browser should
handle

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Fwd: jQuery and UTF8

2007-08-21 Thread R. Rajesh Jeba Anbiah

On Aug 21, 8:11 pm, barophobia [EMAIL PROTECTED] wrote:
 On 8/21/07, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote:
   snip
  2. or send the UTF-8 charset header via header(); browser should
  handle

 All the UTF-8 data is stored in a database.

 Regarding #2. I put header('Content-type: text/html; charset=UTF-8');
 right before the output of my file and Firebug now shows the correct
 content-type... but it still shows question marks.

   I had work with lot of UTF-8 and had no problem:
1. You don't have font?
2. or Your current charset is different from one that is been loaded?
3. or Do you have any link for me to check?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] |OT| Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-17 Thread R. Rajesh Jeba Anbiah

On Aug 16, 11:57 pm, Michael Geary [EMAIL PROTECTED] wrote:
$('#foo')[0]
   Will throw error if there is no match, IIRC.
   No, it won't. It is not an error to fetch a nonexistent
   array element
  Thanks for a nice explanation. I'm sorry for jumping
  without reading it properly.

 Glad to help - but no apology needed! You should see some of the bloopers
 I've posted myself... :-)

Thanks for a new word blooper (learning English in jQuery
list:-))

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: stupid dev tricks: marking current page links

2007-08-17 Thread R. Rajesh Jeba Anbiah

On Aug 16, 7:16 pm, Stephan Beal [EMAIL PROTECTED] wrote:
 We've all attempted several different ways of highlighting navigation
 links which point to the current page. Often times we mark the page
 via our PHP by adding a class (e.g. currentPage) to the navigation
 link which points to the current page, or some such. Here's a slightly
 different approach...
   snip

  FWIW, we have been using http://www.sitepoint.com/print/css-
anthology-tips-tricks-4 Figure 4.20 technique for a longtime and then
switched back to currentPage class technique for it's simplicity.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] jQuery is not defined in line 1400 in 1.3.1.1

2007-08-17 Thread R. Rajesh Jeba Anbiah

jQuery is not defined in line 1400

Now and then, I'm getting this error in FF.

The line is:
// Clean up added properties in IE to prevent memory leak
if (jQuery.browser.msie)

Is it a known issue or am I mistaken? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread R. Rajesh Jeba Anbiah

On Aug 15, 11:29 am, pd [EMAIL PROTECTED] wrote:
 I've been hacking with jQuery on and off lately and I've now hit the
 annoying problem of not being able to access simple DOM 0 properties
 unless, apparently, using either of the following syntaxes:

 $('#foo')[0]

   Will throw error if there is no match, IIRC.

 $('#foo').get(0)
  snip

   Use $('#foo:nth(0)') instead. For just first match, you could use $
('#foo:first')


--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Documentation on $('#foo')[0] or $('#foo').get(0) ??

2007-08-16 Thread R. Rajesh Jeba Anbiah

On Aug 16, 8:55 pm, Michael Geary [EMAIL PROTECTED] wrote:
   I've been hacking with jQuery on and off lately and I've
   now hit the annoying problem of not being able to access
   simple DOM 0 properties unless, apparently, using either
   of the following syntaxes:

   $('#foo')[0]
 Will throw error if there is no match, IIRC.

 No, it won't. It is not an error to fetch a nonexistent array element. It
 returns undefined.

 You could even do $('#foo')[12345] and it wouldn't throw an error.

 Of course, if there is no element with id 'foo', this will throw an error:

$('#foo')[0].whatever

 Because $('#foo')[0] returned undefined, so you are trying to access the
 'whatever' property of... undefined.
  snip

  Thanks for a nice explanation. I'm sorry for jumping without reading
it properly.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: New Yahoo Minifier - YUI Compressor

2007-08-14 Thread R. Rajesh Jeba Anbiah

On Aug 14, 3:45 pm, Tane Piper [EMAIL PROTECTED]
wrote:
 Today I came across this article via DZone:

 http://www.julienlecomte.net/blog/2007/08/13/introducing-the-yui-comp...

 The YUI Compressor is a new JavaScript minifier.
  snip

  FWIW, I still think, ESC http://www.saltstorm.net/depo/esc/ is
better.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: fancy menu - tell me what you guys think

2007-08-14 Thread R. Rajesh Jeba Anbiah

On Aug 14, 8:31 pm, Ganeshji Marwaha [EMAIL PROTECTED] wrote:
 I have ported this fancy menu over from mootools to jquery. You can take a
 look at ithttp://www.gmarwaha.com/jquery/jfancymenu/test/test.html
  snip

   I think, the hoverintent is slowing down the speed. Sometimes it
lags the pointer; sometimes it is wrongly positioned.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Override $.tooltip.update()?

2007-07-31 Thread R. Rajesh Jeba Anbiah

I have already checked this thread http://groups.google.com/group/
jquery-en/msg/c1ccc42639128398 to see if a plugin can be extended?
(but it doesn't seem to be). I'm just jumping here to see if any hack
or way is invented in the meantime.

I just want to override the update() method of jquery.tooltip plugin--
so that I'll have different positioning scheme for the title
(currently the title is appearing by the mouse position, but I'd like
it to appear based on the element -- as it's overlapping/partially
hiding the element). I also found that it's enough to touch update()
method. Is there anyway to extend it without affecting the plugin
itself? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: |OT| craigslist parsing (Was Re: SITE SUBMISSION: Please add gsalr.com to the list of sites)

2007-07-27 Thread R. Rajesh Jeba Anbiah

On Jul 27, 12:31 pm, nate [EMAIL PROTECTED] wrote:
 On Jul 26, 11:42 pm, R. Rajesh Jeba Anbiah
 [EMAIL PROTECTED] wrote:
   To phrase to question better, how were you able to parse the addresses if
   you're getting the data from craigslist directly? Or which web service are
   you using if you're using one?

 Obviously, batch web scraping. For address, look at the yahoo maps
  link, easy to parse, say http://minneapolis.craigslist.org/apa/
  382334294.html

 Except the garage sale listings don't have map links, so parsing the
 address out of those is a lot more difficult.  It's done with some
 custom perl parsing routines, using Google and Yahoo geocoding to
 verify results.

   So, you were the programmer?

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] |OT| craigslist parsing (Was Re: SITE SUBMISSION: Please add gsalr.com to the list of sites)

2007-07-26 Thread R. Rajesh Jeba Anbiah

On Jul 27, 2:02 am, Michael E. Carluen [EMAIL PROTECTED]
wrote:
 To phrase to question better, how were you able to parse the addresses if
 you're getting the data from craigslist directly? Or which web service are
 you using if you're using one?

   Obviously, batch web scraping. For address, look at the yahoo maps
link, easy to parse, say http://minneapolis.craigslist.org/apa/
382334294.html


--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: ANNOUNCE: Call for Articles for Visual jQuery Magazine

2007-07-15 Thread R. Rajesh Jeba Anbiah

On Jul 12, 2:02 am, John Resig [EMAIL PROTECTED] wrote:
 Try sending it directly to Yehuda:
 wycats at gmail.com
  snip

   E-mail address works, but no receipt.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Release: Tooltip plugin 1.1

2007-07-14 Thread R. Rajesh Jeba Anbiah

On Jul 10, 11:33 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 R.RajeshJebaAnbiahwrote:
   snip
 http://jquery.bassistance.de/tooltip/jquery.tooltip.zip/
  jquery.tooltip.css

  This file has the style for the demo/site too. I'd rather prefer it
  contain only the tooltip related styles and can possibly add another
  style say demo.css for demo related styles.
  snip
  Another thing, the id=tooltip is quite common thing, so it could
  have been jqtooltip or so.

 Good points, thanks a lot!

 I'll seperate the demo and the plugin related styles into their own files.

 Changing the default id would break existing code. Its used only in a
 single place, to making it an option would be easy. I find it convinient
 to just define styles for #tooltip.

 What do you think?

   Apologies for the late reply. I also think the option to configure
id would be a nice idea.

   Another thing, the pretty fancy popup gets weird because of tooltip
edges. Might need different route to show the tip edge like http://
www.google.com/intl/en_ALL/mapfiles/iw2.png Oh, you have a competitor
http://examples.learningjquery.com/62/ now:-)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Release: Tooltip plugin 1.1

2007-07-10 Thread R. Rajesh Jeba Anbiah

On Jul 9, 2:33 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 R.RajeshJebaAnbiahwrote:   Another thing, you're bundling your site's style 
 in zip file.

 Are you referring to the demo files? If so, that is intentional. If not,
 could you clarify that?

http://jquery.bassistance.de/tooltip/jquery.tooltip.zip /
jquery.tooltip.css

This file has the style for the demo/site too. I'd rather prefer it
contain only the tooltip related styles and can possibly add another
style say demo.css for demo related styles.

FWIW, I hate Arial font like anything; when I added
jquery.tooltip.css, I have noticed that all the fonts have changed to
Arial. With FireBug, I have noticed that the jquery.tooltip.css's
style takes precedence for body tag.

Another thing, the id=tooltip is quite common thing, so it could
have been jqtooltip or so.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] display: block forcing blocks to jump in FF

2007-07-10 Thread R. Rajesh Jeba Anbiah

Say like (note the display: inline):
div id=barspan id=foo style=display: inlinefoo/span./
div

Do animation on $('#foo'), can notice a jump in FF. This is because,
jQuery is toggling with display none to block and vice-versa; but
doesn't apply display: inline. Is there any workarounds? or advices?
TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Release: Tooltip plugin 1.1

2007-07-06 Thread R. Rajesh Jeba Anbiah

On Jul 5, 12:57 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 This update to the jQuery Tooltip plugin brings a few minor yet very
 useful features and some very important bug fixes.

   Most often, I'm getting this error (FF  IE)

$(window).scrollLeft is not a function

jquery.tooltip.js
Line 319

   Still couldn't figure out the reason.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Release: Tooltip plugin 1.1

2007-07-06 Thread R. Rajesh Jeba Anbiah

  Another thing, you're bundling your site's style in zip file.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: ANNOUNCE: Call for Articles for Visual jQuery Magazine

2007-07-04 Thread R. Rajesh Jeba Anbiah

On Jun 30, 1:34 am, Rey Bango [EMAIL PROTECTED] wrote:
   snip
 For more details please visit the jQuery blog entry here:

 http://jquery.com/blog/2007/06/28/163/

   The contact e-mail editor AT visualjquery DOT com is not
reachable.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: ANNOUNCE: Call for Articles for Visual jQuery Magazine

2007-07-04 Thread R. Rajesh Jeba Anbiah

On Jul 4, 4:15 pm, Armand Datema [EMAIL PROTECTED] wrote:
 how about jquery and google gears, there is allready a google gears and jsext
  snip

   Hmm... Why hijacking thread? Start a new thread.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: ANNOUNCE: Call for Articles for Visual jQuery Magazine

2007-07-04 Thread R. Rajesh Jeba Anbiah

On Jul 4, 5:10 pm, Armand Datema [EMAIL PROTECTED] wrote:
 no hijacking i was suggesting an article

  Oh, cool. Ok

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Loading Klaus Hartl's Plugin? Tabs...

2007-07-03 Thread R. Rajesh Jeba Anbiah



On Jul 3, 2:26 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
 snip
 Maybe the id (container), e.g. the selector in use just isn't correct.
 Make sure that it actually matches the element that contains the markup
 required for tabs.

   Sorry to jump in here. Just a quick suggestion on tabs: you could
add some way to prevent ajax loading of first tab, when remote=true
and first tab is already loaded (a typical degrades gracefully setup).
Currently, it loads first tab, even if it's there.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: How to wait or freeze between 2 statements

2007-06-29 Thread R. Rajesh Jeba Anbiah

On Jun 29, 12:20 pm, G[N]Urpreet Singh [EMAIL PROTECTED] wrote:
 What I want to achieve is that the user click Build and the Preview
 links gets updated with the new link. Before the link is updated, it is
 replaced by a Loading... msg. This is working perfectly.

  What I cant figure out is that can I make the browser wait for half a
 second after loading so that the user sees something changing and gets a cue
 that the link has been updated. Right now everything is happening in a split
 second and the link gets update quicker that the user can notice.
   snip

   Something like this should work:
$('#foo').html('pLoading.../p').fadeOut('slow', function () {
$(this).html('pDone/p').fadeIn('slow');
}
);

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] jQuery CakePHP (Was Re: Validate RC2 Preview: Remember The Milk Signup)

2007-06-16 Thread R. Rajesh Jeba Anbiah

On Jun 16, 7:20 pm, Tane Piper [EMAIL PROTECTED]
wrote:
 This is fantastic.  A few of us in #cakephp are strong jQuery
 advocates and we discussed this very thing as we want 'DRY'
 conventions.  We were thinking of a helper, but if it can be done as a
 helper, or at the core that would be fantastic.

 Can't wait to see this in action.
  snip

   Having been trolling about this https://trac.cakephp.org/ticket/
2359 for time in IRC and group http://groups.google.com/group/cake-
php/msg/c2440d15eae3d91f, I found no interest for it.

   I still prefer it to be unobtrusive (instead of helpers or
something) but with a option to dump JSON validation rules. My patch
is quite simple--it dumps the validation array from form helper.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Printer Friendly Form Field Replacements

2007-06-16 Thread R. Rajesh Jeba Anbiah

On Jun 16, 2:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Here you go:

 http://rcs-comp.com/code_examples/jquery_form_print/
  snip

   Code is nice, but I'm wondering--why not doing it with CSS (form
fields with flat look)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Validate RC2 Preview: Remember The Milk Signup

2007-06-13 Thread R. Rajesh Jeba Anbiah

On Jun 13, 12:48 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 Fabien Meghazi wrote:
  Maybe what I want to do is pointless or too complicated.
  I'm curious to know how do you manage double client/server side
  validation in your applications ?

 No, its no pointless at all. Its a very important issue, something I'd
 like to deal with on a more long term issue. So far I've concentrated on
 the client side.

 So far I'm using the validation plugin in one application, using JSF as
 the serverside MVC framework. Defining basic validation rules looks like
 this:
   snip

   FWIW, it's no way related to the plugin, but I have patched CakePHP
to dump the validation rules in JSON https://trac.cakephp.org/ticket/
2359; I think, this will help to have only one rule.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Google AdSense slowing down jQuery (1.1.2) rules in IE6

2007-06-13 Thread R. Rajesh Jeba Anbiah

On Jun 12, 9:27 pm, I, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
 I just find some weird problem with Google AdSense. It's specific to
 IE6 (IE7 not tested), in FF 2 working fine.

 Google AdSense slows down jQuery rules matching--i.e., it's wait for
 all the ad images to get loaded. I suppose, ready fails here.

 While googling, I came across similar discussion 
 http://groups.google.com/group/jquery-en/msg/1f547d30f05141b2 that suggests
 that it's fixed now.
   snip

   A GG user voted me 4/5, but still no comments:-/

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Validate RC2 Preview: Remember The Milk Signup

2007-06-13 Thread R. Rajesh Jeba Anbiah

On Jun 13, 9:45 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 R.RajeshJebaAnbiahwrote:FWIW, it's no way related to the plugin, but I 
 have patched CakePHP
  to dump the validation rules in JSON https://trac.cakephp.org/ticket/2359;
  I think, this will help to have only one rule.

 Thanks. With that it shouldn't be difficult to dump rules that work with
 the validation plugin.

   The idea was impressed by validation plugin. But, I found that the
validation rules of CakePHP differs to the one of validation plugin;
with the JSON dumping, it would be easier to achieve the same result
in jQuery.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: @Glen Lipka: jQuery to Prototype? (Was Re: jQuery dimScreen)

2007-06-12 Thread R. Rajesh Jeba Anbiah

On Jun 11, 7:36 pm, Glen Lipka [EMAIL PROTECTED] wrote:
 No, I was really annoyed to have to put that in.
 The guy I helped produce the site insisted on switching.

 I was going to put in the jQuery version of lightbox, but it has an issue
 with FF for the Mac (which of course my friend uses).
 My original plan was to try and fix the jQuery one, but I ran out of time.
  snip

   Thanks for your reply. Thanks again for letting me know the issue
that I'm not aware of.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Google AdSense slowing down jQuery (1.1.2) rules in IE6

2007-06-12 Thread R. Rajesh Jeba Anbiah

I just find some weird problem with Google AdSense. It's specific to
IE6 (IE7 not tested), in FF 2 working fine.

Google AdSense slows down jQuery rules matching--i.e., it's wait for
all the ad images to get loaded. I suppose, ready fails here.

While googling, I came across similar discussion http://
groups.google.com/group/jquery-en/msg/1f547d30f05141b2 that suggests
that it's fixed now. Do I have any comments? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] @Glen Lipka: jQuery to Prototype? (Was Re: jQuery dimScreen)

2007-06-11 Thread R. Rajesh Jeba Anbiah

On May 29, 12:41 am, Glen Lipka [EMAIL PROTECTED] wrote:
 You could just make
 div id=overlay style=width: 100%; height: 100%; position: absolute; top:
 0px; left: 0px; z-index: 100; background-color: #00;
 display:none/DIV
 at the end of your page.

 Then call $(overlay).fadeTo(slow,0.5)

 This will fade it on over your whole screen. Make sure body and html have
 height: 100%.
 I did this yesterday here:http://www.sparkt.com/index.htm
 (Click the first image (top-left) to see the fade In
   snip

   I see only prototype based code there. Did you move from jQuery to
Prototype? Just curious. TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Selector Help - hover and dblclick

2007-06-10 Thread R. Rajesh Jeba Anbiah

On Jun 11, 12:06 am, Brad Perkins [EMAIL PROTECTED] wrote:
   snip
 Ultimately, I'd also like to prevent the double clicked row from
 running code if previously double clicked.

   I suppose, you could do something like:

   if (this.done) return;
   and this.done=true; accordingly in the function. (Not tested)

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Bug? $('#foo #bar')

2007-06-05 Thread R. Rajesh Jeba Anbiah

On Jun 5, 9:54 pm, Sean Catchpole [EMAIL PROTECTED] wrote:
 I suppose I can see a few applications of using multiple id's, but I'm
 still curious why using classes instead is not a better option.
  snip

1. CSS designers don't have to scratch their heads forming the
selectors.
   It's simple, login.php will have login as id, signup.php will have
signup as id. So, bending the design is quite easy--when you already
have formed the global selectors

2. See my point #2 above in other thread.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Bug? $('#foo #bar')

2007-06-04 Thread R. Rajesh Jeba Anbiah

jQuery 1.1.2

Selectors such as this $('#foo #bar') throwing error when it can't
find any matches. Is it a known bug? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Bug? $('#foo #bar')

2007-06-04 Thread R. Rajesh Jeba Anbiah

On Jun 4, 4:52 pm, SeViR [EMAIL PROTECTED] wrote:
 The bug is repaired in 1.1.3a
   snip

   Oh, cool. Thanks

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] apply selector on ajax content?

2007-05-31 Thread R. Rajesh Jeba Anbiah

It doesn't seem to work:

$('#foo').click(function() {
   $.get($(this).find('a:first').attr('href'), function(data){
  alert($('table#bar', data).html()); // doesn't work. Can't apply
selector on data
}
   );
}
);

Is anyone know of any hack to get it working? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: apply selector on ajax content?

2007-05-31 Thread R. Rajesh Jeba Anbiah

On May 31, 7:38 pm, R. Rajesh Jeba Anbiah
[EMAIL PROTECTED] wrote:
 It doesn't seem to work:

 $('#foo').click(function() {
$.get($(this).find('a:first').attr('href'), function(data){
   alert($('table#bar', data).html()); // doesn't work. Can't apply
 selector on data
 }
);}

 );

 Is anyone know of any hack to get it working? TIA

   I'm getting close (stuffing to this.data and using it), but still
would love to get better hack:

$('#foo').click(function () {
$.get($(this).find('a:first').attr('href'), function (data) {
this.data = data;
alert($(this).find('table#bar').html());
}
);
}
);

 Still there is a problem, couldn't reuse this.data (caching so
that I don't have to $.get() again). Thanks for any input.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: 15 second delay with IE

2007-05-28 Thread R. Rajesh Jeba Anbiah

On May 25, 9:46 pm, Bil Corry [EMAIL PROTECTED] wrote:
 R.RajeshJebaAnbiahwrote on 5/25/2007 6:26 AM:

 Mostly the problem is with the packed version. Try using the
  original version. At least for me, the packed version is extremely
  quirky.

 Is there a reason to use the packed version if JavaScript files are 
 compressed and served via mod_gzip?

   I personally feel that anything other than packed version would be
much better. And, I prefer ESC crunched.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Improved timePicker, time/datePicker demo

2007-05-28 Thread R. Rajesh Jeba Anbiah

On May 27, 11:00 pm, Anders [EMAIL PROTECTED] wrote:
 I've been working on improving Sam Collet's original timePicker.

 Here is the result:http://labs.perifer.se/timedatepicker/

 The demo is a Google Calendar-like time/datePicker. It's far from
 perfect, most of the issues are with the datePicker though, which for
 example not yet have support for focus/blur. Kelvin? ;)

   This is indeed much better, kudos. But, I think, it's still missing
unobtrusiveness of http://www.frequency-decoder.com/2006/10/02/
unobtrusive-date-picker-widgit-update/ and other nice features like
setting start of the week by clicking on the column.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: 15 second delay with IE

2007-05-25 Thread R. Rajesh Jeba Anbiah

On Apr 5, 12:09 am, mike [EMAIL PROTECTED] wrote:
 An example is at:http://www.green-welly.co.uk/rcc/basic-example.html

 It takes me 15 seconds to load this page in IE, Firefox  Opera are
 immediate.  Well puzzled.

   Mostly the problem is with the packed version. Try using the
original version. At least for me, the packed version is extremely
quirky.

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] Re: Countdown plugin?

2007-05-25 Thread R. Rajesh Jeba Anbiah

On May 23, 4:24 pm, RedAlert [EMAIL PROTECTED] wrote:
 Greetings all,

 Does anyone know if there is a countdown plugin made all ready? If
 not, how difficult would it be to create one?
  snip

   FWIW...

span class=timer15/span
span class=timer600/span
span class=timer150/span
span class=timer800/span

and:
$(document).ready(function () {
var interval = 1; //sec
setInterval(function () {
$('span.timer').each(function () {
var t = parseInt($(this).text(), 10) -  interval;
$(this).text((t  0) ? '' + t : 'Done');
}
);
}
, interval * 1000);
}
);


--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



[jQuery] packed jquery hiccups in FF2?

2007-05-17 Thread R. Rajesh Jeba Anbiah

Ever since I upgraded to FF2 from FF1.5, I have noticed sometimes the
browser hangs and not responding for couple of minutes. I'd thought it
might be the problem with FF2. But, yesterday when I dared to hit the
Debug script option, it was stopping me at the jquery.pack.js (I was
browsing sf.net)

Is it a known issue? If not, anyone facing the same and know of any
workaround? TIA

--
  ?php echo 'Just another PHP saint'; ?
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/



  1   2   >