html

How to send an eMail via PHP?

The core problem of this challenge is to find an existing PHP-function, which enables a programmer to send an eMail. Furthermore, the correct syntax and the required data of the mail-function is an essential problem.

Highlighting words in free text using jQuery

You can use jQuery methods for highlighting specific words in free text.

The most sophisticated way to solve the problem was the use of a regular expression. Every appearance of the searchword will be surrounded with an span tag.

$('p:contains('+str+')').
each(function(){
var regex = new RegExp(str, "g");
$(this).html($(this).html().replace( regex ,""+str+""));
});

Taggings:

validate html code using online tool

And there is an online validator
http://validator.w3.org/

Use of HTMLUnit

HTMLUnit can be used to test Websites from the view of a user, you can fill out forms with it and it also supports JavaScript. It simulates a browser and is intended to be used with other test suites like JUnit.

You can get more information about it here: http://htmlunit.sourceforge.net/

Taggings:

Use jQuery

"jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. " http://jquery.com

jQuery is a modular JavaScript Library.
jQuery UI provides scripts for interactions like drag-n-drop, and UI widgets, demos can be found here

  • there are different packages for developement and production environment (lightweight version) and
  • the scripts are working on various browsers

Taggings:

YUI 2: AutoComplete

The AutoComplete control provides the front-end logic for text-entry suggestion and completion functionality. See the Yahoo! UI Design Pattern Library description for AutoComplete to get a fuller sense of the underlying design patterns in the AutoComplete family. AutoComplete provides a high degree of configurability so developers can implement these design patterns quickly and flexibly. Top features include custom formatting, query delimiters, animation, custom formatting, a rich Custom Event model, and much more.

visit http://developer.yahoo.com/yui/autocomplete/

Taggings:

scrip.aculo.us - a JavaScript library to enhance your web site

scrip.aculo.us (http://script.aculo.us) is a set of JavaScript libraries that enhance the user interface of your web sites.

It contains a visual effects engine, a drag and drop library and AJAX-based control elements like AutoComplete, Sliders and more.

It is an extension to the Prototype-Framework (http://prototypejs.org). You can add both to your web site like this:

<script src="javascripts/prototype.js" type="text/javascript"></script>
<script src="javascripts/scriptaculous.js" type="text/javascript"></script>

To see some demos of what can be done with script.aculo.us go to:
http://madrobby.github.com/scriptaculous/demos/

Validate html code

This is an other validator to checks the markup validity of Web documents in.
Enter adress and options to check.

http://htmlhelp.com/tools/validator/

Taggings:

Ruby static website frameworks

Using webby (https://github.com/TwP/webby) for example you can code a web-page much like using some server based webapp framework (e.g. Ruby on Rails or Django etc.)
But webby is not server-based but generates static HTML pages for you.

Use Piwik to track website usage

Piwik is a free and open source web-analystics software. Different to Google Analytics (which could be seen as a privacy threat and has a monopoly position in web analytics), Piwik can be downloaded and run on your own LAMP server. Installation is a matter of minutes.

Similar to most approaches to web analytics, Piwik uses a JavaScript snippet you embed in your HTML-files for tracking. For further information on the use of this snipped, you might check out http://piwik.org/docs/javascript-tracking/. Interestingly, Piwik also provides an alternative approach using a specialized tracking API.

Last but not least, a quite interesting demo site of Piwik can be found at http://demo.piwik.org/.

Taggings:

Pages

Subscribe to html