Showing posts with label AJAX. Show all posts
Showing posts with label AJAX. Show all posts

Thursday, July 20, 2017

Open source and Single Page Web apps

It is exactly what it says. Single Page Applications (SPAs) are web applications with a single web page that uses AJAX for its dynamic interactions. As page refresh is on the client side the SPAs can have downside of performance degradation if they are not properly designed and SEO optimized.

There are many JavaScript frameworks to write SPAs. There are lots of JavaScript frameworks that you can use to build SPAs. Lots of them are Open Source. Here are some:

WinJS
Angular
React
Ember
Aurelia
Dojo
Vue.js
Cycle.js
Backbone
Dojo


I hear a lot about Angular and Aurelia, perhaps more people are using them.
Intel XDK had both Angular and Backbone templates, but they are not supporting them anymore.

AngularJS is in Version 2.

I have a large number of posts on Intel XDK here.


Sunday, November 08, 2009

Open Source Surge (Google Closure Tool)

Javascript has suddenly matured and perhaps these are its best of times. There is a large number of JavaScript libraries vying for your attention and capture your heart. Review the article describing the various libraries on Wikipedia.

It all really started with the introduction of Dynamic HTML[DHTML] when Javascript provided the scripting ability to interact with the web page which had remained mostly static till that time. With the support of CSS and Javascript the stage was set for the web pages to take the users to the next level. The next big push came in with the introduction of AJAX. The concurrent effort by developers to somehow address the display disparity with the existing browsers and make the user experience uniform across different existing browsers and versions resulted in packaging the various libraries. Of course Microsoft Visual Studio also worked hard on making this uniform user experience across browsers a priority and the applications developed using this IDE fulfilled this wish mostly.

Most recently Google made available its toolset, the Closure Compiler. It is supposed to make Javascript to download and run faster according to Google. It is more like a refactoring tool for Javascript. It also checks for script coding errors etc. Moreover it is integrated with Firefox's PageSpeed and you can see for yourselves the gain in performance using the Google Tool. The tool can be used from command line as well as a simple web application.

The above Google URL also has links to examples of the tool's usage. One such example shows optimizing code by removing white spaces. Review this example here.
In the above example, it took in the script shown here:
---------
function hello(name){
//Greets the user
alert('Hello, ' + name);
}
hello('New User');
------------------------
and the Closure Tool optimized it to the following after removing white spaces (as well as the comments) :
-----------
function hello(name){alert"Hello, "+name)}hello("New User");
------------------------------------------------

Parse errors with line number and character position are provided by the tool but you will have to go and count those on your input code. Also there is no color coding or error position highlighting.

How to access the Closure compiler?

Click on this URL and you are ready, set and go.

Edited in 2018:
Try this link for an ad free tool:
https://www.websiteplanet.com/webtools/jscssminifier/
.

Thursday, January 01, 2009

2008 was a very good year

During 2008 I managed to write more than 18 articles and a book. Got a lot of positive response from readers which has encouraged me to do better in 2009.

The following articles are available on the Packt site

VB.NET Application with SQL Anywhere 10 database
Migrating MS Access 2003 Data using the Oracle SQL Developer 1.2
Microsoft SQL Server 2008 - Installation Made Easy

Moving a Database from SQL Server 2005 to SQL Server 2008 in Three Steps
Windows Presentation Foundation Project - Basics of Working
Understand and Use Microsoft Silverlight with JavaScript

Term Extraction Tasks in SQL Server Integration Services
Creating a Web Page for Displaying Data from SQL Server 2008
Copying a Database from SQL Server 2005 to SQL Server 2008 using the Copy Database Wizard

Creating a Simple Report with Visual Studio 2008
Data Processing using Derived Column and Aggregate Data Transformations
Creating an Analysis Services Cube with Visual Studio 2008 - Part 1

Creating an Analysis Services Cube with Visual Studio 2008 - Part 2
Using the Data Pager Control in Visual Studio 2008
Oracle SQL Developer Tool 1.5 with SQL Server 2005

A Simple Pocket PC Application using Visual Studio 2005

These two appeared on other sites.

Web enabling data on a SQL Anywhere Server using a native web service

Retrieving Data on a SQL Anywhere Server Using AJAX

Consuming a SQL Anywhere native web service using a .NET client
International Sybase Users Group Technical Journal, May / June 2008, Pages 14 - 19

The first book had favorable reception and reviews (9) from readers. There were some adverse (2) reviews as well.

I thank all the reviewers and more importantly my readers.


The second book is in its final stages and will be published during the first quarter of 2009. You may order early copies with a discount from Packt. I have tried to make it as comprehensive as possible with more than 50 hands-on exercises. I hope it is as useful as I think it will be.



Monday, August 18, 2008

Retrieving Data on a SQL Anywhere Server Using AJAX

An AJAX call to an SQL Anywhere Server using stored procedures and web services

AJAX has dominated the web space so extensively that it needs no introduction. Connecting to a server via XMLHttpRequest and making a partial page refresh is what makes this technique so attractive. However, use of these AJAX requests, although very attractive, can pose dangers as well. JavaScript acts as a vector to infect websites with worms, such as SAMY, using cross-site scripting, also known as CSS or XSS.

In a previous article - "Enabling Server data with native web service" - I explain how a web service of type HTML is created on the SQL Anywhere server, which can serve HTML pages, and that to make an AJAX call for this page from your browser, you need to make a call to the hosting domain, the SQL Anywhere Web Server.

Read more at...
http://ajax.sys-con.com/node/646922

If you liked this article you may also want to read the one at.....
http://hodentek.blogspot.com/2008/07/soap-web-service-with-sql-anywhere.html

and the other related article at.....
http://hodentek.blogspot.com/2008/01/enabling-server-data-with-native-web.html

Thursday, May 15, 2008

Web Accessibility Initiative-Accessible Rich Internet Applications

WIA-ARIA for short is targeted to assist users with disabilities to enjoy the web to the full extent. This initiative provides defined ways and means for users with disabilities [using screen readers, inability to use mouse, only keyboard etc] who use assistive technologies to access the web meaningfully.

The identified problems with assistive technologies are that sometimes disabled users are unable to interact with the web page items especially those that are related to dynamic web content such as AJAX, Javascript, DHTML and related technologies.

WAI-ARIA provides the information necessary for the assistive technologies to effectively interact with these new web features.

If you are a web developer and interested in using this very important development you should visit the following link.

http://www.w3.org/TR/wai-aria-practices/

Tuesday, July 24, 2007

A Simple XML file (aka My "Hello World" for XML)

This is like a ‘Hello World’ example for my XML articles. The sample document shown below is a simple XML document which represents 4 (sometimes 5) students who took a programming class. It is well formed and simple to use as you can see from these articles. I used it often because it is on my local IIS and easy to grab.

Monday, March 19, 2007

One more Ajax article I want to share

This article shows how AJAX calls are made using the JavaScript extensions developed by the Dojo foundation to retrieve data using the JavaScript Object Notation (JSON) and displaying the results on the browser.

Dojo Ajax with JSON

Tuesday, March 13, 2007

JSON Articles from Jayaram Krishnaswamy

These two basic articles explain a lot of things:

This article explains what JSON is and its constituent parts.
JSON Basics

This compares XML and JSON when called by AJAX
AJAX with JSON

Wednesday, January 31, 2007

January articles are ready

Look out for these articles fresh from the oven at a web site near you:

AJAX Extensions and AJAX Control Toolkit related:
Accordion component in AJAX Control Toolkit
AnimationExtender Component in AjaxControlToolkit (ACT) 

MS Access 2007 related
Exploring Access 2007
Working with Access Projects in Access 2007
Importing XML Files into Access 2007
Linking SQL Express 2005 Tables to MS Access 2007


DOJO AJAX and JSON related

Dojo Toolkit Wizard vs. Microsoft's web wizard
AJAX with JSON
JSON Basics

ASP.NET 2.0 related:
On Using ListBox Control in ASP.NET 2.0
On Loading XML Documents in ASP.NET 2.0

Oracle SQL Developer Tool related:
On Using the Oracle SQL Developer tool

Sun Java Studio Creator related:
Using Sun Java Studio Creator with SVG
DMCA.com Protection Status