473,385 Members | 1,492 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.

DML and xmlhttp

I wonder if someone wrote some code to manipulate data (insert, update,
delete) using xmlhttp and AJAX approach and standardized some procedures.

I mean, for example, standard way to manipulate data with PHP or
VBScript (most common) are a form with a action page that process POST
or GET and so on...

It is cool to do this all via xmlhttp.

I developed some code but nothing standard...I was thinking about
object-oriented approach...

Any contribute appreciated.

Best regards.

--
Gibe si è fatto passare perchè Rossi dietro è come una purga, prima o
poi una cagata te la fa fare...!
Nov 3 '05 #1
5 1238
VK
> I wonder if someone wrote some code to manipulate data (insert, update,
delete) using xmlhttp and AJAX approach and standardized some procedures.
So far nothing to talk about:
IE doesn't really need it as it has it's own fully implemented data
binding model,
and Gesko clones are getting too messy and unstable on it, specially if
you're trying to cover other less-capable browsers.
I think that XML/XSLT scheme would be more stable and universal for
really universal data binding.

Check <http://www.ajaxtoolbox.com/> in any case.
I developed some code but nothing standard...I was thinking about
object-oriented approach... Any contribute appreciated.


Pull it out to here! (unless copyrighted)
Local profis (I'm not pretending to include myself in this selected
group) are always starving for fresh meat :-)

Nov 3 '05 #2
VK wrote:
I wonder if someone wrote some code to manipulate data (insert, update,
delete) using xmlhttp and AJAX approach and standardized some procedures.
So far nothing to talk about:


So far you again know almost nothing and pose as being competent, thereby
providing utterly false advice and confusing the hell out of other newbies.
Why don't you just keep your fingers still?
IE doesn't really need it as it has it's own fully implemented data
binding model,
You probably mean its own, proprietary and (therefore) incompatible data
model of XML data islands.
and Gesko clones are getting too messy and unstable on it, specially if
you're trying to cover other less-capable browsers.
Utter nonsense.

1. It's Gecko.

2. They are not Gecko clones, they are using the Netscape Gecko
layout engine, IOW: they are based on it; a completely different thing.

3. Gecko-based UAs support XMLHttpRequest through the native Gecko DOM
while IE-based UAs require not-disabled ActiveX support for it which
introduces several other, mostly security issues there.

4. Your "logic" is, as much too often, erroneous. When trying to cover
your "less-capable browsers", the way Gecko-based browsers handle
XMLHttpRequest (and they handle it well, you are just too incompetent
to see that) bears exactly NO meaning.
I think that XML/XSLT scheme would be more stable and universal for
really universal data binding.
You have not even begun to understand what XML and XSLT are, nor have
you understood the requirements of the OP. He wants to manipulate a
DATABASE! XML can be only another representation of this and XSLT a
way to modify that representation if needed.
Check <http://www.ajaxtoolbox.com/> in any case.
No, don't. The person who recommends it and the people there have not even
recognized that AJAX is just a new wrong (because XML HTTP requests do not
need to be _A_synchronous) commercial buzzword of an older technique being
around and used by more competent people since several years.
Local profis (I'm not pretending to include myself in this selected
group)


Yes, you do pretend you are a professional or even a non-layman regarding
the matters discussed. Go away!
PointedEars
Nov 3 '05 #3
VK

Thomas 'PointedEars' Lahn wrote:
Go away!


Another bad day, Tommy? Take a glass of milk and go to bed earlier
today.

To OP:
XML/XSLT scheme I mentioned before consists of three components:
1. Page template with persistent parts (like title, copyright, about
etc.) and script
2. Page style table (equiv to CSS)
3. XML data file

Joined together on the client-side they produce one ready to use page.
The trick is that you don't need any special actions for data
allocation: it's all defined on the page template. Using rather
primitive scripting you can just switch from one XML source to another
(from separate files or served from a server script). Kind of
"zero-maintenance" page. This technique was long time kind of a taboo
for the same reason that Microsoft Data Island: "other cannot support
it". But now I see no reason to not use it. Other "others" support it
too... mainly...

Other approach is Microsoft Data Island. It's amasin *what* actually IE
had to propose for a longest time (since 5.x). But of course it will
never be supported by FF / W3C.
I have a data island implementation I had to do this summer. My
customer did not want to pay for the extra cross-browser coverage :-(
and I did not feel like doing that on my own time expences :-)
So I did this store solution and I called it Helen (which stays from
the Greece myth but also sounds close to "Hell on them"). Absolutely
nothing ingenius: just all data island/behavior collected, cleaned and
connected. If you're interested, I can give you a link.

The third approach would be I guess Sarissa - like programs. I cannot
say too much on it because I never managed to run the provided test
cases but maybe I just pressed the wrong buttons. You may get more
lucky:
<http://sarissa.sourceforge.net/doc/overview-summary.html>

And what code did you write?

Nov 3 '05 #4
Thomas 'PointedEars' Lahn wrote:
Check <http://www.ajaxtoolbox.com/> in any case.

No, don't. The person who recommends it and the people there have
not even recognized that AJAX is just a new wrong (because XML HTTP
requests do not need to be _A_synchronous) commercial buzzword of an
older technique being around and used by more competent people since
several years.


So your points are:

1) XML Http Requests do not need to be asynchronous
2) AJAX is a commercial buzzword
3) The technique is old and has been used for years

How do any of those facts (all of which are mind-numbingly obvious) relate
to the AJAX library which I wrote?
Especially since,

1) My library supports both sync and async requests
2) I even use the word "buzzword" on my "about" page
3) Also in the about page, I note that I'd been using iframes for remote
scripting before the term "ajax" was even introduced.

What exactly is your gripe with someone recommending such a site, or others?

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com
Nov 4 '05 #5
On 03/11/2005 15:38, Fabri wrote:
I wonder if someone wrote some code to manipulate data (insert, update,
delete) using xmlhttp and AJAX approach and standardized some procedures.
I'm worried by this suggestion.

The XMLHttpRequest object is obviously a client-side mechanism. In order
for it to be used to manipulate a database directly, the first step
would be to open up the database server to the Internet. Even if the
database user used has extremely limited permissions, you're practically
/begging/ every script kiddie[1] on the planet to break into your
database. If the database user has any of insert, update, or delete
permissions, they don't even need to bother making an effort.
I mean, for example, standard way to manipulate data with PHP or
VBScript (most common) are a form with a action page that process POST
or GET and so on...


If you just want to use XMLHttpRequest as an alternative to a form, then
I don't see why any standard approach would need to be developed. At
most, transmitting data for the POST request could be standardized
(particularly RFC2388), but that's rather unrelated to the specific
topic of database manipulation.

If you're just trying to avoid page refreshes when performing
server-side operations, then use a form to trigger the update, but have
the server return a 204 No Content response. Careful, though. Sending a
response is better as it allows to user to understand that something
actually happened.

[snip]

Mike
[1] <http://en.wikipedia.org/wiki/Script_kiddie>

--
Michael Winter
Prefix subject with [News] before replying by e-mail.
Nov 4 '05 #6

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

Similar topics

9
by: fochie | last post by:
Greetings, I'm having a problem when I try to GET a file from my server via xmlhttp when using Mozilla. With IE I can get any type of file fine, get/display headers fine, etc. With Mozilla,...
1
by: Ike | last post by:
Ive copied an online example for writing out a php file, programmatically, then would like to re-display that data in a browswer window that automatically refreshes as the data file (getdata.php,...
9
by: balakrishnan.dinesh | last post by:
hi friends, Exactly what i want to know is, In my product we are using xmlhttp request to retrive some data from the server, And Im using IE browser, its working fine in IE. Now i want to work...
13
by: yawnmoth | last post by:
<http://www.quirksmode.org/book/printable/xmlhttp.txtshows two alternatives to Microsoft.XMLHTTP - Msxml2.XMLHTTP and Msxml3.XMLHTTP. If my understanding is correct, the different numbers refer to...
3
by: Andrewh | last post by:
Hi, I am having a bit of a problem with using xmlhttp. The code of the javascript file is shown below used in Windows XP. var xmlhttp = null; function SetURLDiv(url) { if...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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...

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.