Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-08 Thread R. Rajesh Jeba Anbiah
On Mar 7, 9:30 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
> On 3/7/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
>
> > After the page is loaded and if I set the breakpoint, it works like
> > I expected. But, if I set the breakpoint and reload the page, it
> > breaks at the breakpoint even while the page is loaded--this is
> > confusing as it looks the event or function is been called even when
> > the page is been getting loaded. Am I missing something? or Is this
> > the way the Firebug works on jQuery? TIA
>
> That's the way Firebug works in general. My understanding is that when it
> hits the breakpoint on page-load, the JS interpretor is processing the code,
> but hasn't gotten to the point where it begins to execute it yet. Firebug
> probably breaks whenever the JS interpretor hits that line, regardless of
> what it's actually doing with it.

   Your reasoning is quite logical. But, my testing suggests that
this behavior is happening only with jQuery.

> This is really something that you should
> ask Joe Hewitt (the creator of Firebug), though.

 Yes, but no helpful hints from the Firebug group:(

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-08 Thread R. Rajesh Jeba Anbiah
On Mar 7, 9:56 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
> >After the page is loaded and if I set the breakpoint, it works like
> > I expected. But, if I set the breakpoint and reload the page, it
> > breaks at the breakpoint even while the page is loaded--this is
> > confusing as it looks the event or function is been called even when
> > the page is been getting loaded. Am I missing something? or Is this
>
> Maybe it is being called.  Did you look at the callstack?

Yes, I did and find some variables and they're not readable for me
(this, options and validator). Can you be able to interpret them? TIA

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-07 Thread R. Rajesh Jeba Anbiah
On Mar 7, 12:51 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
> On 3/7/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
> >   Do you know in what line number I have to set the Firebug breakpoint
> > so that I'll get there when clicking the submit button? TIA
>
> Set a breakpoint on line 228 of jquery.validate.js.

   Wow! Amazing, finally someone to help me.

   After the page is loaded and if I set the breakpoint, it works like
I expected. But, if I set the breakpoint and reload the page, it
breaks at the breakpoint even while the page is loaded--this is
confusing as it looks the event or function is been called even when
the page is been getting loaded. Am I missing something? or Is this
the way the Firebug works on jQuery? TIA

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Firebug and validation plugin--revisted (Was Re: release: Validation plugin beta 1)

2007-03-06 Thread R. Rajesh Jeba Anbiah
On Mar 7, 2:27 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
   
> I've also update the demos:http://jquery.bassistance.de/validate/demo-test/

  I'm getting mad when I couldn't set breakpoint in Firebug so that I
can get to the function that is been called on clicking the submit
button. I have already posted here about that  ()

  Do you know in what line number I have to set the Firebug breakpoint
so that I'll get there when clicking the submit button? TIA

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Patch: jquery.rating.js

2007-02-28 Thread R. Rajesh Jeba Anbiah
Patch for svn://jquery.com/trunk/plugins/rating/js/jquery.rating.js
Bug: The slice(1) logic doesn't work -- at least in FF2

Index: jquery.rating.js
===
--- jquery.rating.js(revision 1436)
+++ jquery.rating.js(working copy)
@@ -65,7 +65,7 @@
 drain();

 jQuery.post(url,{
-rating: jQuery(this).find('a')[0].href.slice(1)
+rating: jQuery(this).find('a')
[0].href.slice(jQuery(this).find('a')[0].href.indexOf('#')+1)
 });

 return false;


--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery/Validation plugin on FireBug - Couldn't catch events

2007-02-28 Thread R. Rajesh Jeba Anbiah
On Mar 1, 12:00 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> R.RajeshJebaAnbiahschrieb:> I'm just trying to walk through the script
> >http://jquery.bassistance.de/validate/demo-test/validate-demo.html
> > with FireBug. FireBug breaks when loading the page; but not on any
> > events, say when submitting the form or when the error text is been
> > added. Is there anyway/workaround for it? TIA
>
> What Firebug version are you using?

1.01 (latest)

> What do you mean by "breaks"?
> Considering that it seems like that you can still use Firebug later,
> does only the debugging break?

I'm sorry, if "break" means something else. But, usually we use
this terminology from Turbo C days to mean breaking with debugger.
That is you set a breakpoint, and let the debugger pause at that line.
Say for example, you have a routine to be called on onClick, you set
the breakpoint there (click on the gutter line to show the red point),
the debugger will pause at the line once that event is called. This
way we can see the flow of the execution of the script.

I see FireBug works in many cases, you set the breakpoint in the
beginning of jQuery, it breaks--but not on any further events---as in
the case with validator plugin, it doesn't breaks when clicking the
submit button http://jquery.bassistance.de/validate/demo-test/validate-demo.html

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
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 R. Rajesh Jeba Anbiah
On Feb 20, 10:34 pm, harningt <[EMAIL PROTECTED]> wrote:
> Just wondering... does anyone know of any good source-code formatters for
> JavaScript.
   

   Possibly http://code.gosu.pl/dl/JsDecoder/demo/JsDecoder.html ?

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] jQuery/Validation plugin on FireBug - Couldn't catch events

2007-02-28 Thread R. Rajesh Jeba Anbiah
I'm just trying to walk through the script
http://jquery.bassistance.de/validate/demo-test/validate-demo.html
with FireBug. FireBug breaks when loading the page; but not on any
events, say when submitting the form or when the error text is been
added. Is there anyway/workaround for it? TIA

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] ANNOUNCEMENT: jQuery & Ext Partner to Deliver Integrated JavaScript & UI, Features

2007-02-20 Thread R. Rajesh Jeba Anbiah
On Feb 20, 5:30 am, Rey Bango <[EMAIL PROTECTED]> wrote:
> Today, we're proud to announce that the jQuery Project and Jack Slocum's
> Ext Project, have partnered to integrate the amazingly lightweight and
> powerful jQuery framework with Ext's awesome UI library.
   

   I previously asked about DOM Query support [*]. And asking the same
question:)

[*] 
(  )

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jqModal updated

2007-02-14 Thread R. Rajesh Jeba Anbiah
On Feb 15, 2:16 am, Brice Burgess <[EMAIL PROTECTED]> wrote:
> I've updated jqModal to revision 6. Changes include;
   
> + Fixed ajax "attribute selector". This allows the for dynamic
> definition of remote content. e.g.;
>
> 
> Page1
> Page2
> Page3
> 
>
> $('#ex5a').jqm({trigger: '.remote', ajax: '@href'});
>
> A demonstration is given in example 5.
   

Now Ok. But, previous content presists for a while and no loader
image for the other links. IMHO, the modal dialog's div order should
be changed.

   I see the @title I have proposed is implemented in different
manner. IIRC, previously itself similar @title, @name was working.
But, I was talking about unobtrusive modal dialog whose Title (title
of the modal dialog) should be controlled with the title attribute.
So, I was actually proposing:
ajax: '@href',
title: '@title' // title of the dialog could be injected via ...

Some more proposes:
1. Provision for prefetch. And again the attribute could be injected
with say  ( http://
groups.google.com/group/jquery-discuss/msg/05b9d00b02d6fda6 )

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] possible bug with jqModal (Was Re: Miniscule (<1k) Drag'n'Resize for jqModal via jqDnR)

2007-02-14 Thread R. Rajesh Jeba Anbiah
On Feb 14, 2:52 pm, Brice Burgess <[EMAIL PROTECTED]> wrote:
> R. Rajesh Jeba Anbiah wrote:
>
> >I think, there is a possible bug with jqModal. When a class is used
> > for trigger, different links open same ajax URL.
>
> > Foo1
> > Foo2
> > ..
> > trigger: '.remote',
> > ajax: '@href'
> > ...
>
> > Expected behavior: Clicking on Foo1 should open 'foo1.php' and
> > Foo2 should open 'foo2.php'. Actual behavior: First clicked link is
> > open always.
>
> Thanks for pointing this out. I admit to not testing the @attribute
> selector ;)
>
> Anyhow, a fix is available 
> @http://dev.iceburg.net/jquery/jqModal/jqModal.fix.js
>
> Let me know if the above works as expected now.
   

   Now, something looks broken; URL doesn't load in modal; quickly
refreshes the window.

   BTW, is there any plan to add title for the modal? say,
title: 'foo' or '@title'
   So, that foo
  can effectively be used?

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Some jQuery tips and tricks

2007-02-14 Thread R. Rajesh Jeba Anbiah
On Feb 13, 10:47 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Feb 13, 2007, at 11:22 AM, R. Rajesh Jeba Anbiah wrote:
>
> > For #1, what about:
> > $(document).ready(function() {
> >$("#wrapper p").hide(); //hide initially
> >$("#wrapper h2").click (function() {
> >$("p", $(this).parent()).slideToggle("slow");
> >});
> > });
>
> Looks good to me. Also, instead of this...
>
> > $("p", $(this).parent()).slideToggle("slow");
>
> ...you could do this:
>$(this).siblings('p').slideToggle('slow');
   

   Oh cool, thanks for pointing it.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Design Decisions? Comparison to MooTools?

2007-02-14 Thread R. Rajesh Jeba Anbiah
   Yesterday, I posted a follow-up via GG; not sure what had happened--
probably a GG bug or word filter in jQuery mailing list? Anyway,
FWIW...


On Feb 13, 11:58 am, "John Resig" <[EMAIL PROTECTED]> wrote:
   
> 3) Attaching properties to DOM elements is really really slow. Doing
> speed tests comparing this technique against storing elements in an
> array, and iterating over them on a case-by-case basis, the array
> (jQuery) way is always faster.

   I'm just trying to understand:
jQuery source:
// And bind the global event handler to the element
element["on" + type] = this.handle;

   It looks to me that the event is been really attached. Am I wrong?

   
> > 4) Any chance of a jQuery-lite, without all the css selector logic? Or is
> > that kind of Sonny without Cher?
>
> We've been considering it - however, it's hard to gauge what's open
> for removal, and what's not. Instead, we're probably going to try and
> provide a really-strong download page that'll let you add/remove
> particular sub-features that you want (for example, if you didn't want
> basic XPath support, you could remove it.) That's in the works right
> now.

Any plan to merge/borrow selector code from DOMQuery? or a
providing the option via plugin?

  
> we're looking to alleviate this in a number of ways:
>  - A solid plugin repository
>  - The ability to rate, and comment on, plugins
>  - Effective multi-category categorization of plugins
>  - Finding, and recommending, similar plugins
  

   This is *exactly* I was thinking after looking at the current
repository:-) and even thought of asking for svn account:-)
What about?
+plugins\foo\foo.jquery.js
+\docs\README
+ \demo\demo1.html demo2.html  No jquery.js inside

And tagging whenever jQuery version is released?

Personally I'm not for categorising of plugins in svn repository;
may be in community pages it could be done.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] possible bug with jqModal (Was Re: Miniscule (<1k) Drag'n'Resize for jqModal via jqDnR)

2007-02-13 Thread R. Rajesh Jeba Anbiah
On Feb 10, 1:01 pm, Brice Burgess <[EMAIL PROTECTED]> wrote:
   
> The jqModal plugin page (http://dev.iceburg.net/jquery/jqModal) has
> been updated with an example demonstrating DnR on a notice (example 4b).
   

   I think, there is a possible bug with jqModal. When a class is used
for trigger, different links open same ajax URL.

Foo1
Foo2
..
trigger: '.remote',
ajax: '@href'
...

Expected behavior: Clicking on Foo1 should open 'foo1.php' and
Foo2 should open 'foo2.php'. Actual behavior: First clicked link is
open always.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Some jQuery tips and tricks

2007-02-13 Thread R. Rajesh Jeba Anbiah
On Feb 13, 2:23 pm, "Dmitrii Dimandt" <[EMAIL PROTECTED]> wrote:
> I've started collecting some examples I've come across while solving
> problems using jQuery. I guess they could be interesting to the
> community as a whole.
>
> These (sort of) tricks are available here:http://dmitriid.com/jquery/en/
  

  For #1, what about:
$(document).ready(function() {
$("#wrapper p").hide(); //hide initially
$("#wrapper h2").click (function() {
$("p", $(this).parent()).slideToggle("slow");
});
});

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Replace alert dialog with jqModel (Was Re: Miniscule (<1k) Drag'n'Resize for jqModal via jqDnR)

2007-02-12 Thread R. Rajesh Jeba Anbiah
On Feb 12, 12:44 am, Brice Burgess <[EMAIL PROTECTED]> wrote:
   
> Here is my version (which works);
> ---
> Show Last Alert
> 
>
> 
> function alert(i) {
> $('#alert').html(i);
> $('#alertTrigger').click();
>
> }
>
> $().ready(function(){
> $('#alert').jqm({trigger: '#alertTrigger'});
> alert('This is a test');});
>
> 
> ---
>
> I guess it's time to start styling a alert dialog ;)

   Nice. I think, it would be nice if you could minimize the config or
tweak the doc. Current configurations as shown here http://
dev.iceburg.net/jquery/jqModal/#ex2atrigger looks little scary at
first sight, IMHO.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] TableSorter changes in svn (Was Re: JQuery Star ratings - New version?)

2007-02-12 Thread R. Rajesh Jeba Anbiah
  
> >   Another issue is that the svn version of TableSorter 
> > svn://jquery.com/trunk/plugins/
> > tablesorter looks different compared to the one at the site
> >http://motherrussia.polyester.se/pub/jquery/tablesorter/
>
> Yes this is correct, the file on my site is no longer being actively
> developed. All development has moved to the jQuery svn.

   Thanks, any idea about the new changes? Looks like disableHeader is
broken now?

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Miniscule (<1k) Drag'n'Resize for jqModal via jqDnR

2007-02-11 Thread R. Rajesh Jeba Anbiah
On Feb 10, 3:02 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> Well, i used to disable alert like this:
>
> function alert() {}

   Oh, thanks.

> But i guess you could tweak it to launch a modal window instead. I'll give
> it a try

   Just curious, was your try success?

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Miniscule (<1k) Drag'n'Resize for jqModal via jqDnR

2007-02-10 Thread R. Rajesh Jeba Anbiah
On Feb 10, 1:01 pm, Brice Burgess <[EMAIL PROTECTED]> wrote:
   
> The jqModal plugin page (http://dev.iceburg.net/jquery/jqModal) has
> been updated with an example demonstrating DnR on a notice (example 4b).
   

   I'm not sure if it's possible in JavaScript to hijack the native
alert() call so that it will be handled by this plug (as this is
possible in Delphi or so, called hooking). Even it's not available, it
would be nice to add some helper function--say alertAdv(), so that all
native occurances of alert() could easily be replaced with alertAdv().

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery Validation 1.0 Alpha

2007-02-09 Thread R. Rajesh Jeba Anbiah
On Feb 9, 2:58 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> there were some questions about my very first version of the validation
> plugin (it's still on the plugin page). If you are interested in form
> validation, you may want to take a look at the current state of the
> plugin:http://bassistance.de/jquery-plugins/jquery-plugin-validation/
   

   Very nice. I'm wondering if class="{email:true}" is ok. Yes, I have
checked with the W3C validation service; but still not sure about it.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Already synched with GG (Was Re: sync with Google Groups?)

2007-02-09 Thread R. Rajesh Jeba Anbiah
On Feb 10, 10:45 am, "R. Rajesh Jeba Anbiah"
<[EMAIL PROTECTED]> wrote:
>As I see the mailing list is not synched with the GG. Could it be synched 
> so that it will be easier to post from GG? (Nabble doesn't look impressive)

   My mistake, it's already got synched with GG. Just noticed.

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] sync with Google Groups?

2007-02-09 Thread R. Rajesh Jeba Anbiah
   As I see the mailing list is not synched with the GG. Could it be synched so 
that it will be easier to post from GG? (Nabble doesn't look impressive)  

-- 
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] JQuery Star ratings - New version?

2007-02-09 Thread R. Rajesh Jeba Anbiah
On Fri, 09 Feb 2007 Kim Johnson wrote :
>I wrote the creator a few days ago and never heard
>back. No, I don't think it's working with 1.1. I even
>did so much as to copy the test page directly (while
>changing the paths to the library) and it still gives
>an error.
   

   Yes, it's bugging at .title(), but even changing to .attr('title'), it 
doesn't work (now no error though). 
svn://jquery.com/trunk/plugins/compat-1.0/jquery.compat-1.0.js isn't even 
helpful.

   Another issue is that the svn version of TableSorter 
svn://jquery.com/trunk/plugins/tablesorter looks different compared to the one 
at the site http://motherrussia.polyester.se/pub/jquery/tablesorter/

-- 
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] Testing.. Posting via GG

2007-02-09 Thread R. Rajesh Jeba Anbiah
Testing.. please ignore

--
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] JQuery Star ratings - New version?

2007-02-09 Thread R. Rajesh Jeba Anbiah
  Anyone have the updated JQuery Star ratings 
 for the new JQuery version? TIA


-- 
  
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/