[jQuery] Jquery can learn from Mootools for distribution its code

2007-03-22 Thread Scottus
  Mootools distribution allows you to build a custom distribution with
just the functionality
you need.

http://mootools.net/download

I would love it if we could do this with jquery.

95% of what I use jquery for is Unobtrusive Scripting.

i.e.

$(span#closeppk).click(function()

The other 5%  is the Ajax functionally  and ready function

$(span#bigppk).load(file.txt)

$(document).ready(function(){




for almost everything else i just write my javascript code.

I know a lot of functionality is packed into the 20k download but I don't use
more the 3k or 4k of it and would like to have an auto build like mootools'
so i don't carry around more code then I need.

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


[jQuery] Jquery and XSLT

2007-03-03 Thread Scottus
I this weekend I have been play with xsl (xslt)  and I was concerned using
javascript with it. Is the document load event sent when the xml doc
is loaded, or when transformed xml is created by xsl  style sheet.

I worried about it for a while. But is seems that jquery's  .ready
works just fine
with style sheets.

http://www.scottwickham.com/xml/nv2.xml

I know I  getting to excited with xslt, especially since there in no
standard way of using
xsl to modify documents that have already been rendered. But The separations
of date from display alone is worth the price of admission.

There are very few detailed articles on browsers and xsl. One thing i
wonder are .xsl files cached like javascript and image files are. Is
so there could be a real performance boost.

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


[jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
I was playing with a script that  had used innerhtml or .load()  to fill in a
div tag.

The code placed inside the tag was

the is info placed in the orginal tag div  id=newcode Please
click me/div

Now I have a script  in the header,


$(div#newcode).click(function(){alert('this works');});

of course this alert box never gets activated.


I assume it doesn't work because the code is not truely part of the pages' dom.

So how do I get this to work and have it part of the dom.

thanks in advance
How can I make this work and have this new code p



 
Everyone is equal and everyone is the best at everything.  ---
Principal Skinner

Success is a lousy teacher. It seduces smart people into thinking
they can't lose.   -Bill Gates

99% of the time, in my experience, the hard part about creativity
isn't coming up with something no one has ever thought of before. The
hard part is actually executing the thing you've thought of.  -- seth
godin




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


Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
they were orginally in the ready function and didn't work.

or is the  ready function suppose to reset after a dynamic change of the dom.
it is possible that I didn't have the code in the ready function but I
thought i did.


On 2/27/07, Brice Burgess [EMAIL PROTECTED] wrote:
 Scottus wrote:
  thanks you answer didn't exactly answer my question but it got me thinking
  in the correct way. IE i needed to reload the script AFTER the new
  html/dom is added.  So I put script tag and fuctions at the bottom of
  the page i was loading into the div. And it was all good.
 

 Scottus,

   Wrap the the click assignment in $().ready(function() {  });  like
 I said  it doesn't matter where you put it!

 ~ Brice
  On 2/27/07, Brice Burgess [EMAIL PROTECTED] wrote:
 
  Scottus wrote:
 
  Now I have a script  in the header,
 
 
  $(div#newcode).click(function(){alert('this works');});
 
 
  Scottus;
 
  For starters; There is never a need to use to scope a selector when
  selecting by the ID. All it does is decrease performance of the
  selector. E.g. $(div#newcode)...  should be $(#newcode).
 
  Besides that, your function looks fine. I presume that it is not firing
  becuase it is executing before the DOM is ready and div#newcode
  available to assign the click event to. Most jQuery code is encased in
  the $(document).ready() function, which is a 10 times more flexible
   accurate than window.onload. So use;
 
  $().ready(function() {
  $(#newcode).click(function(){alert('this works');});
  });
 
  in the header.
 
  Hope this helps,
 
  ~ Brice

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



-- 
Scott Wickham


Everyone is equal and everyone is the best at everything.  ---
Principal Skinner

Success is a lousy teacher. It seduces smart people into thinking
they can't lose.   -Bill Gates

99% of the time, in my experience, the hard part about creativity
isn't coming up with something no one has ever thought of before. The
hard part is actually executing the thing you've thought of.  -- seth
godin




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


Re: [jQuery] Scripting HTML created with innerhtml or .load

2007-02-27 Thread Scottus
Or do i have to call the ready fuction again ?



On 2/27/07, Scottus [EMAIL PROTECTED] wrote:
 they were orginally in the ready function and didn't work.

 or is the  ready function suppose to reset after a dynamic change of the dom.
 it is possible that I didn't have the code in the ready function but I
 thought i did.


 On 2/27/07, Brice Burgess [EMAIL PROTECTED] wrote:
  Scottus wrote:
   thanks you answer didn't exactly answer my question but it got me thinking
   in the correct way. IE i needed to reload the script AFTER the new
   html/dom is added.  So I put script tag and fuctions at the bottom of
   the page i was loading into the div. And it was all good.
  
 
  Scottus,
 
Wrap the the click assignment in $().ready(function() {  });  like
  I said  it doesn't matter where you put it!
 
  ~ Brice
   On 2/27/07, Brice Burgess [EMAIL PROTECTED] wrote:
  
   Scottus wrote:
  
   Now I have a script  in the header,
  
  
   $(div#newcode).click(function(){alert('this works');});
  
  
   Scottus;
  
   For starters; There is never a need to use to scope a selector when
   selecting by the ID. All it does is decrease performance of the
   selector. E.g. $(div#newcode)...  should be $(#newcode).
  
   Besides that, your function looks fine. I presume that it is not firing
   becuase it is executing before the DOM is ready and div#newcode
   available to assign the click event to. Most jQuery code is encased in
   the $(document).ready() function, which is a 10 times more flexible
accurate than window.onload. So use;
  
   $().ready(function() {
   $(#newcode).click(function(){alert('this works');});
   });
  
   in the header.
  
   Hope this helps,
  
   ~ Brice
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 


 --
 Scott Wickham

 
 Everyone is equal and everyone is the best at everything.  ---
 Principal Skinner

 Success is a lousy teacher. It seduces smart people into thinking
 they can't lose.   -Bill Gates

 99% of the time, in my experience, the hard part about creativity
 isn't coming up with something no one has ever thought of before. The
 hard part is actually executing the thing you've thought of.  -- seth
 godin


 



-- 
Scott Wickham


Everyone is equal and everyone is the best at everything.  ---
Principal Skinner

Success is a lousy teacher. It seduces smart people into thinking
they can't lose.   -Bill Gates

99% of the time, in my experience, the hard part about creativity
isn't coming up with something no one has ever thought of before. The
hard part is actually executing the thing you've thought of.  -- seth
godin




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


[jQuery] Thanks -- Jquery for a great tool in 2006

2006-12-31 Thread Scottus
  Jquery is the first Javascript library that I found useful so I
actually use it.

Great job everyone who helped.

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


Re: [jQuery] Using JQuery to manipulate href (URL params)

2006-12-13 Thread Scottus
On 12/12/06, Robert James [EMAIL PROTECTED] wrote:

 2. How do I use JQuery to manipulate hrefs?

there  are a number of security locks on modern browsers that don't
allow dynamic manipulation of href.  I haven't looked at your example
in detail so I am not sure you will run into it, but a lot of basic
code that would work with even 4.0 browsers no longer work to avoid
spoofing attackes etc.  This includes changing the href and status
text dynamically.

So be warned about odd behavior, with dom and href's.

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


Re: [jQuery] Efforts to Convert Folks to jQuery

2006-12-12 Thread Scottus
 http://www.openajax.org/about.html

anyone interested in joinging the opn ajax alliance.

I think the fact that jquery can run with prototype shows that it
is willing to work well with others.

and every little bit of press helps

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


Re: [jQuery] Jobs and tasks at getJquery.org

2006-12-11 Thread Scottus
Hi I am new to the list, and this open source promotion thing but
shouldn't the first
thing on a getJquery.com Site be the cool button and link that I
should put on my site
that uses jquery.

I clicked around and I couldn't find them,  if they don't exist that
should be job #1.



On 12/11/06, digital spaghetti [EMAIL PROTECTED] wrote:
 Hey folks,

 I'm pretty happy with the setup over at http://getjquery.org now - I
 have groups up and running (so working groups can be created), buddy
 lists for the social element and a few other cool things so go check
 it out.  Apologies for the length of this email also, but I'm typing
 this as I travel and just commiting my thoughts to email.

 Below are some on my thoughts on what to do next, you can contribute
 on-list, or feel free to start editing the wiki
 (http://getjquery.org/wiki)

 Now that this initial stage is running, I want to begin work on other
 parts.  The first thing is the design.  I'm torn between blog  news
 style on the front page so it's more dynamic, or go with a static
 front page more like http://getfirebug.org that leads off in to other
 areas.

 The site will (hopefully) eventually be rather large with lots of user
 generated content, so I'm wondering if a best of both worlds could
 be done with this - say top half of the page static to content, and
 the bottom half dynamic content like latest news, latest blogs, latest
 tutorials, etc.  The beauty of drupal is that each part of the site
 can easily have different layouts and styles that correspond to the
 data being presented.

 The next part is moderation and localisation.  The primary language of
 the site will be english, but certainly I'd like to present it in
 other languages.  Already the first french blog post has been made and
 the author is on board for helping make some translations.  What are
 the other main languages that should be focused on (german, chinese,
 japanese, scandanavian and eastern european langauges)?

 Regarding moderation, I would be looking for people to help moderate
 incoming content.  Most content types are available to registered
 users, such as stories, blogs, Book pages, groups, podcasts, etc.
 Blogs are the only content type that do not go in to a moderation
 queue (possibly book pages too, I'll have to double check). For all
 other types, I'd like to have some respected people on board who can
 moderate the content, and decide if something needs to be rejected
 (spam, buggy code, self-gratifying posts), accepted (most posts) or
 promoted (something so good, everyone and their dog needs to know
 about this via the front page).

 Finally for roles, there are developers - these are the people who
 will actually help build the site - they will be able to access the
 server to install and modify things, it's a bit too much for little
 ol' me to do all of it.

 If you want to help, then contact me and let me know.  Make sure you
 sign up to the site and wiki.  I'll soon be setting up a closed
 mailing list for core people who want to help so there is less clutter
 in this one.

 Regards,
 Tane
 Sent from my Blackberry, forgive the grammar and spelling.

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



-- 
Scott Wickham


Everyone is equal and everyone is the best at everything.  ---
Principal Skinner

Success is a lousy teacher. It seduces smart people into thinking
they can't lose.   -Bill Gates




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


[jQuery] Custom Jquery Builds

2006-12-09 Thread Scottus
 Months ago I seem to remember on the jquery site there was a tool
that allowed you to pick what features and plug in to jquery you needs
to create a custom jquery build.

Where has that tool gone ?

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