473,385 Members | 1,798 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,385 software developers and data experts.

JavaScript abuse?

Hello everybody,

What do you think about idea of using JavaScript to berry application
logic. In this model server works only if needed to store data or run
transactions. Client is your webbrowser and entire UI and application
logic is written in JavaScript. Dont confuse it with most common AJAX
use when application logic still sits on the server and JavaScript just
fills in the fields.

Good things
- You dont have to worry about request-response nature of the HTTP and
use excessively complicated frameworks J2EE/.NET etc.
- Performance of hardware and browsers is sufficient to handle pretty
UI-intensive apps.
- ?

Bad things
- ?

And as a followup:
Does anybody know of any JavaScript UI frameworks structured similarly
to Swing/AWT/MFC?

What do you think?
Alex

Mar 17 '06 #1
3 1392
Well the idea behind AJAX is to move most of the logic to the client
and take stress off making calls to the server. You want most of the
logic to control the GUI, basic validations, and some of the business
rules on the client. Calls to the server would be to store data or run
the transactions according to business rules as you suggested.

Right now people are only scratching the surface with AJAX, but what
you describe is the principle behind it.

The bad things about it is:

- Needs to be cross browser/platform compatible with as many browsers
as possible (which tends to be a bit more code)
- Tends to be a bit more code heavy on the client side I find to
implement business rules.
- JavaScript is a script, not as extensive as some server side
languages like PHP
- Making sure clients are always running the most recent version of
Javascript and not cached

Of course there are ways around of each of these problems which is why
AJAX is beginning to take off. They are just things you have be
cautious of when implementing such a solution.

As for the UI frameworks, there are a few out there, but I haven't used
any of them yet. Like I said, the whole idea of AJAX being used as a
framework is pretty new even though the idea of AJAX altogether is an
old one. I have seen them around but can't think of the names right
now, sorry. I am sure you can find them through Google.

:)

Mar 18 '06 #2
What's really tempting is that it makes mid-size application UI
development is sooo easy and improoves user experience if its done
right. Lately I have seen many examples of pure JavaScript apps
handling alot of data with acceptable performance. Things like
http://www.logperspective.com/Dita.html, www.gotapi.com and others show
that it is possible.

And what happened with XUL. Did it die altogether?

Mar 19 '06 #3
hc****@yahoo.com wrote:

And what happened with XUL. Did it die altogether?


Didn't the Ghostbusters kill it?
Mar 20 '06 #4

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

Similar topics

111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
3
by: OldTrucksCo | last post by:
Hello friends We have this website www.ramonlapayese.com published on the Net. It does have a lot of javascript in it, starting from the random image displaying in its home page, and...
34
by: Steve Horrillo | last post by:
Anyone know where to get a Tool Tips javascript that will pop up a little box when hovered for words that needs more explanation. I'm using Front Page BTW. -- Warmest regards, Steve...
35
by: VK | last post by:
Whatever you wanted to know about it but always were affraid to ask. <http://www.geocities.com/schools_ring/ArrayAndHash.html>
4
by: Joey | last post by:
I am going to use a collection of either div HTML server controls or panel web server controls (renders as div on newer browsers) on a web form. I need to be able to hide them with a client-side...
2
by: OTSolutions | last post by:
This line of code works in IE but not in Firefox or Netscape for some reason. Any ideas as to why would be appreciated, It is the NavigateURL part. IE brings up the page, the other two...
31
by: drclue | last post by:
Would you like to display the weather, stocks,movie listings or perhaps send someone an SMS text message or fax? Did you think Google or Yahoo maps was cool? No matter the back end or...
19
by: mantrid | last post by:
I have the following link to bring up an alert with a figure in it based on the screen resolution. but instead of displaying a number 'NaN' is displayed. <a href="javascript:alert('Your ideal...
3
by: Chandra | last post by:
How do I programmatically (javascript) check if link is valid in html?
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.