background preloader

AJAX

Facebook Twitter

Confirm. The JavaScript confirm function is very similar to the JavaScript alert function. A small dialogue box pops up and appears in front of the web page currently in focus. The confirm box is different from the alert box. It supplies the user with a choice; they can either press OK to confirm the popup's message or they can press cancel and not agree to the popup's request. Confirmation are most often used to confirm an important actions that are taking place on a website. For example, they may be used to confirm an order submission or notify visitors that a link they clicked will take them to another website. Below is an example of how you would use a confirm dialogue box to warn users about something, giving them the option to either continue on or stay put.

HTML & JavaScript Code: Display: Note the part in red. If the user clicks OK, a value of 1 is returned. After answer has stored the value, we then use answer as a conditional statement. Folder tree with Drag and Drop capabilities. Demo Licensing This script is distributed under the LGPL open source license.Commercial licenses are also available. Some of these licenses also includes personal e-mail support for up to 1 year. Download files You can download the entire script from this Zip file. Files included in the package: drag-drop-folder-tree.html = Main html file js/drag-drop-folder-tree.js = Main Javascript file js/context-menu.js = JS code for the context menu js/ajax.js = Ajax (Library from Configuration Define the tree The tree is created by a standard <UL><LI> list as in drag-drop-foler-tree.html.

Notice that you have three attributes available which you could assign to your <LI> tags. noDrag - If you set this to "true", it means that this list item won't be dragable. noChildren - When this attribute is set to true, it won't be possible to move items to this node. noSiblings = It is not possible to add items above or below this node, only children. Creating tree object. Restricting Access to Ajax Services. Oracle Technology Network > Java Software Downloads View All Downloads Top Downloads New Downloads What's New Java in the Cloud: Rapidly develop and deploy Java business applications in the cloud. Essential Links Developer Spotlight Java EE—the Most Lightweight Enterprise Framework? Blogs Technologies Contact Us About Oracle Cloud Events Top Actions News Key Topics Oracle Integrated Cloud Applications & Platform Services.

Sorttable: Make all your tables sortable. While the web design community gradually moves away from using tables to lay out the structure of a page, tables really do have a vital use, their original use; they're for laying out tabular data. For instance, imagine a table of employees. Pretty simple. But if you saw that table in a client-side application, you'd expect to be able to click on the headers and have the table sort, would you not? I know it always annoys me when you can't. A fair few web applications do allow this; most of them, which are pulling this data by submitting a SQL query to a relational database (an environment eminently suited to tabular data) implement this by resubmitting the whole page with something like ordercolumn=4 in the URL, and then adding an ORDER BY clause to their SQL query to return the data from the DB ordered by the specified column.

Resubmit the page? Just to sort data we already have? As you can see, the above table now has clickable headers that sort the table by the clicked column. Yes. There and Back Again » Blog Archive » PHP AJAX ... Over the weekend my file upload progress meter code got lots of traffic. It seems it made it made it on the del.icio.us popular list as well as getting over a thousands diggs. To celebrate this i’ve updated the code. The main new feature is giving you feedback without having to patch PHP. Now the patched version gives you more information such as upload speed and estimated time to completion.

I also created some wiki pages to start the documentation process. So here are the demo’s With the patch and extensionWithout the patch To get upload speed you will need to download and install the PHP Upload Progress Patch and extension. If you want to use the code you need to: Install HTML_AJAX (pear install HTML_AJAX-alpha) Download PAFUPMU and install it somewhere accessible. The basic way the code works is we take a form containing a file upload and submit it using a hidden iframe as a target. In demo.php we handle generating the current page and handling the upload in the same page. <? Using prototype.js to add record into da... Get Started With AJAX in CakePHP « Ahsan’s Labo...