Re: [Proto-Scripty] Re: Prototype Vs. JQuery

2011-05-02 Thread Izidor Jerebic

jQuery is DOM-only, and Prototype is general Javascript with classes etc. If 
you program in Javascript (versus just setting colors positions css etc.), then 
Prototype is much better choice. For DOM-oriented tasks, both are good.

For me as a programmer, Prototype is better, since I can express my intentions 
more clearly with Object-Oriented approach. For a non-programmer and/or 
beginner (e.g. web designer) jQuery is easier to use and learn because it is 
simpler (procedural) and limited to DOM-oriented tasks.

izidor

On 2.5.2011, at 9:04, kstubs wrote:

 Well, great feedback so far.
 As stated, I'm a fan of Proto, and will stay committed.  I think mostly 
 because I am just now getting to a level of proficiency that allows me to 
 actually develop, rather than struggle with concepts, how-to's, and basic 
 syntax.
 I'm not a huge plugin fan, so have been pleased with core Proto library + 
 Scripty and writing my own, but perhaps an argument for JQuery is their 
 wealth of plugins.  I state that more as a question since I really do not 
 know how the libraries/plugins/extensions compare in size and usefulness.
 
 Anyhow, keep up the great work Proto, and I should also mention that the 
 support that T.J. offers on this group is amazing and well beyond expected.
 
 Karl..
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Prototype  script.aculo.us group.
 To post to this group, send email to prototype-scriptaculous@googlegroups.com.
 To unsubscribe from this group, send email to 
 prototype-scriptaculous+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/prototype-scriptaculous?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] Re: Prototype and jQuery

2011-03-18 Thread Joseph O
 Thank you for the reply. I worked on the repairing the code like you
have shown and it does still allows prototype to take control when loaded.
Could I still be missing something simple?

 The three link examples I have shown are to see (1)  jQuery happy and
working, (2) prototype doing it's thing, and (3) to show that the
no.conflict script was still allowing jQuery to work but If pototype loaded
at any point jQuery would stop.

 I reposted the last link to reflect the suggested changes you made.
jQuery still works until prototype is turned back on.

I have put a lot of work into both functions separately not knowing the
conflict would exist. I have come to far to give up and truly could use
further assistant.

On Thu, Mar 17, 2011 at 9:44 AM, T.J. Crowder t...@crowdersoftware.comwrote:

 Hi,

 It's not clear what's wrong from your message or examples.

 Fundamentally, if you want your first link to work when you add
 Prototype to the page, just add the `noConflict` call *immediately*
 after loading the jquery.js file and include the Prototype file, like
 so:

 script src=../Scripts/jquery-1.2.6.js type=text/javascript
 charset=utf-8/script
 scriptjQuery.noConflict();/script
 script src=../lightbox/js/prototype.js type=text/javascript/
 script

 ..and then change your two functions that look like this:

 $(function () {
if ($.browser.msie  $.browser.version  7) return;

// ...
 });

 ...to look like this:

 jQuery(function($) {
if ($.browser.msie  $.browser.version  7) return;

// ...
 });

 Note that I've added `$` as an argument. jQuery passes a reference to
 itself into `ready` handlers, and so you can use a local alias for it
 and not have to change all your code. *Outside* of that `ready`
 handler, `$` will refer to Prototype. (Or just use `jQuery` for jQuery
 throughout the page, but for large scripts it can be convenient to use
 the local alias.)

 Example: http://jsbin.com/uqugo3

 HTH,
 --
 T.J. Crowder
 Independent Software Engineer
 tj / crowder software / com
 www / crowder software / com

 On Mar 16, 6:36 pm, Joseph O joeordo...@gmail.com wrote:
  This has been tossed around the net in many variations yet none have
  worked for me. I have done about ever work around for these two so
  they will like each other and have reached a dead end. I need my image
  fade menu to function with my flash driven lightbox. Please let me
  know if this is something anyone can help with. Here are a few links
  to reference.
 
  This shows the menu working.
 http://fabritechonline.com/content/awning_marquee.html
 
  This shows the Lightbox Working.
 http://fabritechonline.com/content/awning_marquee_test.html
 
  This shows the jQuery / Prototype noConflict script in action.
  (Prototype is disabled)
 http://fabritechonline.com/content/awning_marquee_test_conflict.html
 
  While the script allows jQuery to operate without Prototype loading,
  it still does not function with both.

 --
 You received this message because you are subscribed to the Google Groups
 Prototype  script.aculo.us group.
 To post to this group, send email to
 prototype-scriptaculous@googlegroups.com.
 To unsubscribe from this group, send email to
 prototype-scriptaculous+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/prototype-scriptaculous?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.