473,569 Members | 2,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Yahoo UI and Prototype

Hi All,

I would like to know whether we can use Yahoo UI Library and Prototype
in the same application/page.

Has anybody experienced problems in using these libraries in the same
page?

I welcome feedback from folks who have used YUI and prototype together.

Thanks in advance
- Kishore

Dec 29 '06 #1
3 1554
KishoreSainath wrote:
I would like to know whether we can use Yahoo UI Library and Prototype
in the same application/page.
Prototype augments built in prototypes but Yahoo! UI is a namespaced
library so it keeps to itself. The newer releases of Prototype do not
augment Object.prototyp e so with these new releases you can probably
use the two together. However this would mean a lot of duplication if
you are including many of the Yahoo! UI libraries. Is your goal to
switch from Prototype to Yahoo! UI? Or is your goal to use the two
together indefinitely?

Peter

Dec 29 '06 #2
My plan is to use both these libraries indefinitely in my application.

I am basically writing a Rails application and hence am using Prototype
and Scriptaculous.
But I plan to use YUI and YUI-ext extensively in the application as I
wish to use some of their features.

Though I have seen a few examples where YUI was used successfully in a
Rails application, these are just examples.

Peter Michaux wrote:
KishoreSainath wrote:
I would like to know whether we can use Yahoo UI Library and Prototype
in the same application/page.

Prototype augments built in prototypes but Yahoo! UI is a namespaced
library so it keeps to itself. The newer releases of Prototype do not
augment Object.prototyp e so with these new releases you can probably
use the two together. However this would mean a lot of duplication if
you are including many of the Yahoo! UI libraries. Is your goal to
switch from Prototype to Yahoo! UI? Or is your goal to use the two
together indefinitely?

Peter
Dec 31 '06 #3
[posting order restored]
KishoreSainath wrote:
>
Peter Michaux wrote:
KishoreSainath wrote:
I would like to know whether we can use Yahoo UI Library and Prototype
in the same application/page.
Prototype augments built in prototypes but Yahoo! UI is a namespaced
library so it keeps to itself. The newer releases of Prototype do not
augment Object.prototyp e so with these new releases you can probably
use the two together. However this would mean a lot of duplication if
you are including many of the Yahoo! UI libraries. Is your goal to
switch from Prototype to Yahoo! UI? Or is your goal to use the two
together indefinitely?

My plan is to use both these libraries indefinitely in my application.
I think this will be painfully slow duplication for users of your site
with slow connections and may cause you grief using two big libraries.

I am basically writing a Rails application and hence am using Prototype
and Scriptaculous.
Just because you are using Rails doesn't mean you need to use Prototype
and Scriptaculous. I don't and have a new project to help others avoid
Prototype/Scriptaculous in favor of a library more like YUI but built
for use with or without Rails. If you want to wrap some of the YUI libs
in Rails helpers in a plugin you may get some helpful hints from my
project. <URL: http://forkjavascript. org>

But I plan to use YUI and YUI-ext extensively in the application as I
wish to use some of their features.

Though I have seen a few examples where YUI was used successfully in a
Rails application, these are just examples.
I can't think of any reasons why YUI wouldn't work with a Rails site.
Rails is the server-side and the JavaScript is the client side. The
JavaScript really only needs to have a few Ajax tricks for the way
Rails likes to do Ajax and RJS.

Peter

Dec 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1226
by: petermichaux | last post by:
Hi, I've been using the prototype.js library to create classes. Something like var Sortable = Class.create(); Sortable.prototype = { initialize: function(element) { //... },
2
1966
by: petermichaux | last post by:
Hi, It seems like determining element position in a web page is a difficult task. In the position reporting source code I've looked at there are special fixes for at least some versions of Safari and Opera. I am doing a lot of dragdrop experimentation and in some situations need a position reporting function. The function doesn't need to...
6
1862
by: burningodzilla | last post by:
Hi all - I'm preparing to dive in to more complex application development using javascript, and among other things, I'm having a hard time wrapping my head around an issues regarding "inheritance" using the prototype property. I realize there are no classes in JS, that code therefore lives in objects instead of class definitions, and that...
2
3309
by: ChrisO | last post by:
I've been pretty infatuated with JSON for some time now since "discovering" it a while back. (It's been there all along in JavaScript, but it was just never "noticed" or used by most until recently -- or maybe I should just speak for myself.) The fact that JSON is more elegant goes without saying, yet I can't seem to find a way to use JSON...
1
1896
by: adamprisa | last post by:
1. Go to http://webwag.com 2. On the left hand side upper corner there is an "Add new Content" button, Click on it. 3. Enter a URL(suppose www.yahoo.com) in New! Widget On DemandTM TextBox and Click Add. 4. A new page is opened and we can see the data from that page (yahoo). Once we get this snapshot. how are they able to select the data of...
11
3491
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the programs capabilities. Searching this forum I did not find any related information so if I have chosen poorly, I would appreciate a suggestion of a more...
7
7107
by: neha_chhatre | last post by:
hello im writing a c program in ubuntu, im using the function log2f(float) float stands for a float value.... im getting the following error neha@neha:~/midi$ gcc twinkle_formula.c twinkle_formula.c: In function 'main': twinkle_formula.c:129: warning: incompatible implicit declaration of
83
4133
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about it too? Once I saw a website comparing Prototype to Java and jQuery to Ruby... but now that I read more and more about Prototype, it is said...
36
2870
by: pereges | last post by:
Hi, I am wondering which of the two data structures (link list or array) would be better in my situation. I have to create a list of rays for my ray tracing program. the data structure of ray looks like this: typedef struct { vector origin; /* vector is an array of 3 doubles */
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.