473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

prototype.js library question

Hello,

Do you maybe know how to replace all the object content (with its <div
id="x"and </div>) using Ajax.Updater class instead of inserting
request inside it?

Best regards,
Paul Czubilinski

Jul 8 '07 #1
2 1403
On Jul 8, 7:50 am, Paul Czubilinski <p...@deso.plwrote:
Hello,

Do you maybe know how to replace all the object content (with its <div
id="x"and </div>) using Ajax.Updater class instead of inserting
request inside it?
Folks here are not Prototype.js fans for many good reasons. If you
must use it...

http://www.prototypejs.org/discuss

If you aren't tied to Prototype there are many other better libraries
to use.

Peter

Jul 8 '07 #2

"Peter Michaux" <pe**********@gmail.comwrote in message
news:11**********************@x35g2000prf.googlegr oups.com...
On Jul 8, 7:50 am, Paul Czubilinski <p...@deso.plwrote:
>Hello,

Do you maybe know how to replace all the object content (with its <div
id="x"and </div>) using Ajax.Updater class instead of inserting
request inside it?

Folks here are not Prototype.js fans for many good reasons. If you
must use it...
After seeing the Prototype/Scriptaculous (sp?) combo pop up on a lot of
commercial sites recently, I looked into these libraries (and their various
mutations) and didn't come away a fan either. For one, they bastardize the
JS language, which negates its inherent portability. For two, they are
loaded with browser sniffs. Yes, I read the article by one of the authors
that sought to defend this indefensible practice, but it didn't hold water.
If you can't do something without referencing the user agent string, then
don't do it at all. And then there is the bloating issue, which proponents
of these libs will tell you is a non-issue. It is an issue. For example,
one site I looked at added roughly 150K of script to achieve nothing more
than a few special effects. Yes, they could remove white-space and turn on
http compression on their server to reduce the actual overhead, but
everything is relative. All things equal, the effects could have been done
much cheaper. On the plus side, at least they stopped using Flash for such
things.
>
http://www.prototypejs.org/discuss

If you aren't tied to Prototype there are many other better libraries
to use.
"Tied to" is apt for Prototype. The reason its users are so quick to defend
it is that they are married to it.

So what is a good, modular JS library that doesn't attempt to twist the
language? I couldn't find one, so I started cobbling together my own from
snippets I have stockpiled over the years. It is certainly a lot of work,
but at least if something breaks I will know where to look and have a good
idea what to look for. I have the presentation layer pretty well covered at
this point, but would be interested in finding a good AJAX abstraction (for
the very rare occasion that a site design warrants its use.)
Jul 9 '07 #3

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

Similar topics

2
by: chuck | last post by:
Hello, I am using the prototype.js http://prototype.conio.net library for a project and so wanted to use the Insertion function to replace text within a table. I want to simply replace what is...
12
by: petermichaux | last post by:
Hi, I've been reading the recent posts and older archives of comp.lang.javascript and am surprised by the sentiments expressed about the prototype.js library for a few reasons: 1) The library...
11
by: shypen42 | last post by:
Hi all, I'm very confused by the relation between "prototype" and that "Prototype.js" library that seems to be used quite a lot (not by knowledgeable people from this group if I understood...
45
by: bigdadro | last post by:
I've created a new class using prototype.js. After I make the ajax.request all references to this.myClassMethodorVariable are lost. Does the ajax method blow out the object persistance? I'm fairly...
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
23
by: Dautkhanov | last post by:
Hello ! Does anybody have cutted version of prototype.js with the AJAX functionality only? I am a new in prototype.js topic, so I think this task should be done by other developers. Maybe...
3
by: navneet.krg | last post by:
create a class myClass using prototype.js's Class.create() then create an object foo of that myClass then "object.constructor" will return "function Object() { }" should be myClass does...
83
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...
2
by: Roy M | last post by:
Just heard one of the famous quotes by Richard Cornford: Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are...
4
by: vshenoy | last post by:
Hi Guys, I was going through gdbm-1.8.3 source (http://ftp.gnu.org/gnu/gdbm/ gdbm-1.8.3.tar.gz) and found this strange thing : all the exposed functions of gdbm work with GDBM_FILE pointer...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.