473,516 Members | 3,355 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The open source escape route

As I am sure you've all noticed, the group seems to be spending more and
more time answering more and more questions from more and more people
about aspects of AJAX and XhtmlHTTPRequest. There is obviously a problem
out there in need of an answer and people seem to be coming here to get
that answer. So - is there a better way we can give it?

One obvious possibility is that we could provide an explicitly Open
Source and "black box" implementation of AJAX for simple and easy use.
It may not solve all the problems, but it would make life a lot easier
all round. It may be worth thinking about but it does raise a questions
that we would need to look at first - and being the mug who has been
first to mention it, I suppoe I should pose those questions and try to
answer them so that we can discuss it.

1. Could we do it?
==================
Well, this one is fairly simple - we almost certainly could. Many of us
have already used AJAX before, though like me they have all probably
done it as callable in-line code rather than as a "black box" service.
The real question is could we do it so that users can do things like add
a chunk of code like:-

ajax = new AJAXFactory();
ajax.source = "{path}";
ajax.get();

.... or something similar so that all the detail of AJAX is hidden from
the user. Obviously, we might not want to go for factory-method styles
as in Java, but I'm sure you follow what I mean.

I suspect many of us *could* do it, but what do you think?

2. Should we do it?
===================
Here we get to a problem: I don't think we should (although I do think
that someone should). Something like this is best done, in my opinion,
by a development group in the same way as for Linux, Firefox and so on.
Which, of course, we are not. Where I hit a problem is that although I
don't think we are the right people to do it, I am far from sure who
else might be the right people.

Over to the rest of you again. What do you think?

3. How should it be done?
=========================
Well, we wouldn't want to get into this too deeply since its pointless
if we don't go for building it and it gets taken up by someone else.
There are obvious points though:-

It should be a "black box" which probably means a class or prototype.
It should be under a GPL license of some sort.
It should be hosted somewhere to avoid having to paste it all in code.
It should be downloadable so it can be pasted in if need be.
It should include an on-line check to let it run on or off line.
It should include all the normal AJAX functions.
It should allow user-code listeners or functions to process results.
It should normally be free, and low-cost for commercial use.

That is as far as I think we need to take it at the moment. Before we
look at anything else (like where to host it, what licence to use, how
to write it and so on) we should think about it. I'm sure no-one wants
to do it alone, so do we want to do it together or not?

Over to you for your opinions.
Jan 30 '06 #1
3 1565
On Mon, 30 Jan 2006 18:56:01 +0000, The Magpie
<us****@mpreston.demon.co.uk> wrote:
One obvious possibility is that we could provide an explicitly Open
Source and "black box" implementation of AJAX for simple and easy use.
no-one understands what AJAX is, the simple solution is just using the
object, any wrapper simply creates more confusion than just using the
object.
ajax = new AJAXFactory();
ajax.source = "{path}";
ajax.get();

... or something similar so that all the detail of AJAX is hidden from
the user.


obj= new Thingy()
obj.doWhenFinished=someFunction;
obj.open("url")
obj.send();

is just as complicated as

obj=new HTTPRequest();
obj.open("get","url",false);
obj.onreadystatechange=someFunction;
obj,send("");

There's simply nothing to be gained by the abstraction.

The problems people are having are not in the request, it's in related
things.

Jim.
Jan 30 '06 #2
The Magpie wrote:
One obvious possibility is that we could provide an explicitly Open
Source and "black box" implementation of AJAX for simple and easy use.


Why re-invent the wheel when others have already re-invented it? :)
For example, my library at http://www.AjaxToolbox.com is pretty black-box
with what I feel is a very logical and simple interface.

I wrote mine back when there weren't many libs out there. I didn't like any
of the interfaces available, so I wrote one that felt logical and easy to
me. You can take a look at it and all the other solutions, and if you don't
like _any_ of them, feel free to write one more ;)

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Jan 31 '06 #3
Jim Ley wrote:

no-one understands what AJAX is, the simple solution is just using the
object, any wrapper simply creates more confusion than just using the
object.

obj= new Thingy()
obj.doWhenFinished=someFunction;
obj.open("url")
obj.send();

is just as complicated as

obj=new HTTPRequest();
obj.open("get","url",false);
obj.onreadystatechange=someFunction;
obj,send("");

There's simply nothing to be gained by the abstraction.

Personally, I agree (which is why in the "should we" bit I said we
shouldn't do it). In an ideal world, the obvious answer is to simplify
the process through changes to the script language taken the normal
route through ECMA.
Jan 31 '06 #4

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

Similar topics

1
17994
by: J-miami | last post by:
I am just starting to learn Perl. I had an idea that there should be free open-source Internet Cafe management software for Linux. I searched around online but couldn't find anything. The program would be appealing to anyone wanting to offer Internet access to their customers, from Internet Cafes to hotels. Who wants to pay hundreds or...
4
1741
by: Jenny | last post by:
Hi, I can't use View, Source menu to open the source code of a page. I am using WinXP and IE 6. Here is the link: http://news.wenxuecity.com/BBSView.php?SubID=news&MsgID=21414 Could you try it? If you can't use View, Source menu to open the source code, could you help me to figure out why?
3
1825
by: robburne | last post by:
Can anyone help with my javascript code please? I have a button which when pressed calls a function named 'popjack' which pops up a new browser window. The function is called with a paramter 'printflag' and I want to assign the value of this to a variable 'var1' in the url of the browser window to be opened. Here is my code below, but...
27
3834
by: Mike | last post by:
Open source programs in general suck pretty bad also. Here are some loose facts regarding why projects like Linux, PHP, MYSQL, and other open source programs suck: - Linux is simply a clone of an operating system over 20 years old similar to DOS (Unix). That's ALL Linux is. The kernal was taken, decompiled, and stolen by Linus himself....
9
2921
by: Dixie | last post by:
How can I open a macro so it can be edited in code from a button click? Assuming I can, will this be able to be done in an mde application. dixie
0
1389
by: Chicagoboy27 | last post by:
I am wondering how to set an object datsource or any data source for a dropdown list that is a details view. Here is a brief set up. I have a details view that lists a bunch of information. when a user clicks and edit button a few of the fields become editable or unhidden in this example..... There are two types of roles for this system and...
4
1961
windows_mss
by: windows_mss | last post by:
When I Select Source & Destination Dynamically, Path Getting Scatter Across The Map... hi, i can able to get the Correct Route and Path for the corresponding Source and destination, like this, map.GetRoute('Redmond, Washington, United States','seattle, Washington, United States',VEDistanceUnit.KiloMeter,VERouteType.Shortest);
22
2356
by: Ken Foskey | last post by:
On Thu, 14 Aug 2008 10:09:01 -0700, raylopez99 wrote: The facts of the case above are that the person took a whole application and distributed it after some minor modifications, ie they did not do much at all to the whole thing. It was outright theft. How would you feel if someone stole your application that you were selling and then...
0
7273
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
7182
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7574
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...
1
7136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5712
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
5106
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
3265
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...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.