Re: [jQuery] jQuery's build.xml. Question on target name=min?

2006-11-08 Thread Derrek
Aaaah, I was thinking that there was some magic within js.jar. I get it now. Thanks Mike.On 11/8/06, Mike Alsup 
[EMAIL PROTECTED] wrote:
 pretty much the same syntax but with different behavior.Look closer and you'll see that the 1st arg points to a js file thatperforms the magic.Mike___
jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/

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


Re: [jQuery] Writing documentation, jQuery style?

2006-11-07 Thread Derrek
Outstanding! I'll take a look at the jQuery Ant configuration and ping back if I get stuck. Thanks guys.On 11/6/06, Yehuda Katz 
[EMAIL PROTECTED] wrote:There's a bunch of tags:* name: the name of the method
* param: a parameter in the format Type name Description text here* option: an option for an options hash in the same format as param* see: a reference to another method
* author: the author of the method* cat: The category (mainly used for Visual jQuery); categories can be nested with /* descr: A description for the method* type: The return type of the method (
jQuery.fn functions are always of type jQuery)I'd be happy to help you use the Visual jQuery template for XML files exported using the jQuery parser for internal documentation
.-- Yehuda
On 11/6/06, Derrek [EMAIL PROTECTED] wrote:

Is there some documentation describing the metatags within the jQuery documentation? I want to write some documentation for a project at work but in the jQuery style. Also, are there any handy tools out there to turn this jQuery documentation into something more readable? It'd be nice to have some basic HTML pages or something that is the JavaDoc-style.
Thanks,Derrek

___jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/-- Yehuda KatzWeb Developer | Wycats Designs(ph)718.877.1325

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


Re: [jQuery] console for IE

2006-11-07 Thread Derrek
Mark,That console is great! Opening the seperate window is such an elegent solution.Keep up the good work.On 11/7/06, Mark Gibson
 [EMAIL PROTECTED] wrote:Hi,
this isn't directly jQuery related, but I thought you'd beinterested.I've adapted the console.js script originally found here:http://wish.hu/firebug-on-explorer
Added pretty dumps of objects, arrays, elements, etc.My new script can be fetched from here:http://jollytoad.googlepages.com/browsercompatibility
Hope you find it useful, I do!PS. Improvements are very welcome.Regards- Mark Gibson.___jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] What's the proper way?

2006-11-07 Thread Derrek
If you're familiar with Any, here's a (re-worked) piece of my Ant code. It takes all the specified .js files and concatenates them into bigFile.js.Just re-work this code to your needs and place within your target
!-- Concatenate seperate JS files into one --echo message=Concatenating _javascript_ ... /concat destfile=${_dist}/scripts/bigFile.js fileset dir=${_dist}/scripts
   include name=**/files-I-want-contatenated1.js /
   include name=**/files-I-want-contatenated2.js /
   include name=**/files-I-want-contatenated3.js /
   include name=**/files-I-want-contatenated4.js /
   include name=**/files-I-want-contatenated5.js /

   include name=**/contatenate-*.js /


   exclude name=**/non-contatenate-*.js / /fileset/concatDerrekOn 11/7/06, Klaus Hartl
 [EMAIL PROTECTED] wrote:Christopher Jordan schrieb:
 That's a good point. That probably is the best way. ChrisIf you can handle Ant, you can put the desired plugins into their ownfolders in the plugins folder from the checkout and then make your own
custom task to merge all the desired plugins with jquery and pack itafterwards...Some of the plugins are already contained in SVN, but you can add otherslocally.-- Klaus___
jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] What's the proper way?

2006-11-07 Thread Derrek
Chris, in case you get confused:http://ant.apache.org/manual/CoreTasks/concat.htmlOn 11/7/06, 
Christopher Jordan [EMAIL PROTECTED] wrote:



  


Sweet
Derrek! Thanks a lot! :o)

Chris

Derrek wrote:
If you're familiar with Any, here's a (re-worked) piece of
my Ant code. It takes all the specified .js files and concatenates
them into bigFile.js.
  
Just re-work this code to your needs and place within your
target
  
  
!-- Concatenate seperate JS files into one --
echo message=Concatenating _javascript_ ... /
concat destfile=${_dist}/scripts/bigFile.js
 fileset dir=${_dist}/scripts
  
   include name=**/files-I-want-contatenated1.js /
   include name=**/files-I-want-contatenated2.js /
   include name=**/files-I-want-contatenated3.js /
   include name=**/files-I-want-contatenated4.js /
   include name=**/files-I-want-contatenated5.js /
   include name=**/contatenate-*.js /
   exclude name=**/non-contatenate-*.js /
 /fileset
/concat
  
Derrek
  
  
  
  On 11/7/06, Klaus Hartl
   [EMAIL PROTECTED]
wrote:
  Christopher
Jordan schrieb:

 That's a good point. That probably is the best way.

 Chris

If you can handle Ant, you can put the desired plugins into their own
folders in the plugins folder from the checkout and then make your own

custom task to merge all the desired plugins with jquery and pack it
afterwards...

Some of the plugins are already contained in SVN, but you can add others
locally.


-- Klaus

___

jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
  
  
  
  
___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
  




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


[jQuery] Writing documentation, jQuery style?

2006-11-06 Thread Derrek
Is there some documentation describing the metatags within the jQuery documentation? I want to write some documentation for a project at work but in the jQuery style. Also, are there any handy tools out there to turn this jQuery documentation into something more readable? It'd be nice to have some basic HTML pages or something that is the JavaDoc-style.
Thanks,Derrek
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Writing documentation, jQuery style?

2006-11-06 Thread Derrek
John? Yehuda? Anyone?On 11/6/06, Derrek [EMAIL PROTECTED] wrote:
Is there some documentation describing the metatags within the jQuery documentation? I want to write some documentation for a project at work but in the jQuery style. Also, are there any handy tools out there to turn this jQuery documentation into something more readable? It'd be nice to have some basic HTML pages or something that is the JavaDoc-style.
Thanks,Derrek


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


[jQuery] parent()

2006-10-18 Thread Derrek
I want to insert a row above an element.Imagine that I have:tabletrtdinput type=text id=myElement //td/tr/table
I want to creat a new structure that looks like this:table

tr class=errorCell colspan=100 tdspan
class=errorPlease correct the error/spanbr
//td

/tr
tr tdinput type=text id=myElement //td
/tr
/tableHowever, this produces no visual effect:

$('#myElement').parent('tr').before('trtd class=errorCell colspan=100span class=errorPlease correct the error/spanbr //td/tr');
If I change the code, I see my new row: $('#myElement').parent().parent()
.before('trtd class=errorCell colspan=100span
class=errorPlease correct the error/spanbr
//td/tr');I don't like this since it's bound to a specific table arrangement.Does anyone have any hints or different solutions?Thanks,Derrek[Long time lurker, first time poster :)]


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


Re: [jQuery] parent()

2006-10-18 Thread Derrek
Hey John,Unfortunately, I don't have an example up.But, to my mind, it makes sense to do $('#myElement').parent().parent() because the parent of the input is a td and the parent of the td is the tr. Or is that wrong?
DerrekOn 10/18/06, John Resig [EMAIL PROTECTED] wrote:
 However, this produces no visual effect:$('#myElement').parent('tr') .before('trtd class=errorCell colspan=100span class=errorPlease correct the error/spanbr //td/tr');
 If I change the code, I see my new row: $('#myElement').parent().parent().before('trtd class=errorCell colspan=100span class=errorPlease
 correct the error/spanbr //td/tr'); I don't like this since it's bound to a specific table arrangement. Does anyone have any hints or different solutions?
What happens if you just do:$('#myElement').parent().before('tr.../tr');It seems like something like that should work just fine. (The factthat .parent().parent() works kind of makes me suspicious) Do you have
an example up anywhere of the problem in action?--John___jQuery mailing listdiscuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] parent()

2006-10-18 Thread Derrek
I'm consfused about the difference between parents() and ancestors(). The documentation on visualjquery.com isn't very clear as to the difference and the behavior seems to be the same.
On 10/18/06, Dave Methvin [EMAIL PROTECTED] wrote:
 But, to my mind, it makes sense to do $('#myElement').parent().parent() because the parent of the input is a td and the parent of the td is the tr.Or is that wrong?
 No, you're right - On first glance I thought it was td id=myElement... /td sorry about that. Not sure why .parent('tr') didn't work, though.Doesn't .parent() only look up one level? I thought you'd use .ancestors().
___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] parent()

2006-10-18 Thread Derrek
Yeah, but if I have a table embedded within a table (ugh, I know) then I find both the trs. I tried parents('tr').get(0), but that's not right either.Suggestions?
On 10/18/06, John Resig [EMAIL PROTECTED] wrote:
 Doesn't .parent() only look up one level? I thought you'd use .ancestors().Oh yeah... man, I'm totally out of it today. Derrek - you should beusing .parents(tr) or .ancestors(tr) (they're synonymous).
--John___jQuery mailing listdiscuss@jquery.comhttp://jquery.com/discuss/

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


Re: [jQuery] parent()

2006-10-18 Thread Derrek
Hi John,Say I have:table id=tbl_atr id=tr_xtd/td/trtr id=tr_ytd/td/trtr id=tr_ztd/td/tr
tr id=tr_atd id=td_a table id=tbl_b tr id=tr_b td id=td_b
input id=myInput type=text / /td /tr /table/td/tr/tableIf I do $('#myInput').parents('tr:last').before('tr ... /tr')
Then the the new row appears between tr id=tr_z and tr id=tr_a and not between table id=tbl_b and tr id=tr_b like I would expect.
Did I screw up something?On 10/18/06, John Resig 
[EMAIL PROTECTED] wrote:
 Yeah, but if I have a table embedded within a table (ugh, I know) then I find both the trs.I tried parents('tr').get(0), but that's not right
 either.The issue is that that the trs are returned in the order in whichthey're in the document. So the highest tr in the document isreturned first. So the best way to do this is by doing:
$(...).parents(tr:last)Which will give you the last tr found (but the one closest to yourstarting element).--John___jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

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


Re: [jQuery] parent()

2006-10-18 Thread Derrek
Hey Blair,That did the trick. Thanks for the help.But I must (regretfully) say that the documentation on this point is lacking.It seems to me that parents() and ancestors() are the same except for the order of objects returned.
parents() = parent[0], grandparent[1]ancestors() = grandparent[0], parent[1]Perhaps the someone could add this simple explanation to the documentation.I appreciate everyone's help,Derrek
On 10/18/06, Blair McKenzie [EMAIL PROTECTED] wrote:
Try :first. I think parents() actually works differently from the other filters, in that the elements are in reverse order (parent is [0], grandparent is [1]).Blair
On 10/19/06, 
Derrek [EMAIL PROTECTED] wrote:

Hi John,Say I have:table id=tbl_atr id=tr_xtd/td/trtr id=tr_ytd/td/trtr id=tr_ztd/td/tr
tr id=tr_atd id=td_a table id=tbl_b tr id=tr_b td id=td_b
input id=myInput type=text / /td /tr /table/td/tr/tableIf I do $('#myInput').parents('tr:last').before('tr ... /tr')
Then the the new row appears between tr id=tr_z and tr id=tr_a and not between table id=tbl_b and tr id=tr_b like I would expect.


Did I screw up something?On 10/18/06, John Resig 


[EMAIL PROTECTED] wrote:
 Yeah, but if I have a table embedded within a table (ugh, I know) then I
 find both the trs.I tried parents('tr').get(0), but that's not right
 either.The issue is that that the trs are returned in the order in whichthey're in the document. So the highest tr in the document isreturned first. So the best way to do this is by doing:
$(...).parents(tr:last)Which will give you the last tr found (but the one closest to yourstarting element).--John___jQuery mailing list
discuss@jquery.com


http://jquery.com/discuss/


___jQuery mailing listdiscuss@jquery.com

http://jquery.com/discuss/

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