demolaynyc
Mar 17 2007, 06:35 PM
Well Last night, after a week of irritation and errors I finally created an easy Javascript object that easily and quickly allows you to develop an AJAX program in just 5 easy steps! Here's the link to the object I've created: http://www.demolaynyc.astahost.com/ajaxConn/ajaxConn.jsDownload it and read the Readme file that's under the same directory: http://www.demolaynyc.astahost.com/ajaxConn/Readme.htmlBasically what this object does is to connect to a server-side script (".php, .asp, .jsp, etc"), and what ever this script displays is sent back to the AJAX object and calls a function you designated and handles that response. (usually a string of codes, text or boolean) The steps are all in the Readme file I've provided. I hope you like it and find it useful. Please take note: This is for developers who have knowledge in Server-Side coding and Javascript. For questions or concerns or comments, please don't hesitate to post.
Reply
bluefish
Mar 18 2007, 05:28 AM
This seems pretty good. For my AJAX, I created a similar structure. My only suggestion for improvement would be to add additional functions to handle return values, instead of using getElementsByTagName or childNodes. Just a suggestion, but there's no need to do it because what you have is simple and functional, instead of complex.
Reply
Quatrux
Mar 18 2007, 10:01 AM
I think I will use it, as I am not really into javascript, I currently use something similar, but if you are posting it here, when I think your Object is much better, the only thing I am willing to know, if it is works under all these browsers? Opera, Firefox, IE and Safari, Konqueror?
Reply
Mark420
Mar 18 2007, 01:35 PM
demolaynyc
Mar 19 2007, 05:44 PM
Sorry Mark420, I wasn't aware it was illegal. My sole purpose was to let everyone from both forum know about it. I won't do it again. QUOTE I think I will use it, as I am not really into javascript, I currently use something similar, but if you are posting it here, when I think your Object is much better, the only thing I am willing to know, if it is works under all these browsers? Opera, Firefox, IE and Safari, Konqueror? Yep, there's a function that tries to create an XMLHTTP request object on all browsers such as Mozilla, IE, Opera, etc. I'm planning on adding "POST" method option to send the variables for added security.
Reply
Mark420
Mar 19 2007, 10:24 PM
No probs - if you didnt know,you didnt know
Reply
.:Brian:.
Apr 5 2007, 02:20 PM
This really seems like a nice little library thing.... What would be nice though, and I haven't seen much on it, is for error handling....shouldn't there be some sort of timeout, with a retry (in case somebody has a wireless connection or some other issue where the request gets lost)....I can't stand that when I am on all these websites that use ajax and my connection stops for a second and so the page is stuck on this little animated image thing that says something like "loading" or "sending"...
Reply
Similar Topics
Keywords : ajax achieve ajax program lines code- Is Their A Free Or Express Program To Help Make Javascript, Or How Do I Do It.
- i want to make javascript but dont know how. (0)
- Ajax: Introductory Tutorial
- XML, XMLHttpRequest/ActiveX, tutorial (0)
In this tutorial I will attempt to introduce you to the basics of AJAX programming. AJAX is
basically the name given to a type of programming combining server-side and client-side scripting to
create a seamless web application that is both secure and functional. It has all the benefits of web
sites and regular applications. Here are a few key features that attract so many people to this type
of programming: -Instant feedback to user -No waiting for pages to load because loading is done in
background -Easy communication with server to allow security and functionality at ...
Looking for ajax, achieve, ajax, program, 5, lines, code
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for ajax, achieve, ajax, program, 5, lines, code
|
advertisement
|
|