>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Ajax and XML: Ajax for lightboxes - page figure window listing lightbox xml library code

 
Registered tutorials: 501
Registered Users: 30641



Rating: 5 out of 1 votes cast


  
Category: JavaScript Framework

Tags Map

additional ajax ajaxupdater alert application article articles attention author background bar border bring browser built button case click code content create demo developerworks development display div download effects excellent fader fades figure find font form forum forums framework function generation height herrington home html htmlheadscript ibm image indexhtml information jack javascript learn library lightbox lightboxes link listing live login main message messages method mouse online page php pop pops prototype prototypejs provide rate relstylesheet resources script scriptaculous server set shown shows software status submit technical techniques term text title tools tooltip tooltips top true typetextcss typetextjavascript typetextjavascriptscriptscript user users view web width window windows xml zone

Keyword Cloud Navigation Map

Ajax and XML: Ajax for lightboxes

Digg this   Post to del.icio.us

Abstract: This article shows several techniques that use a combination of PHP, Dynamic HTML (DHTML), and Asynchronous JavaScript™ + XML (Ajax) to throw content right into users' lines of sight so that it really grabs their attention.

Tooltips

Setting the status bar in the browser is easy, but doing something useful—like popping up a tooltip—is a bit more difficult. To make it easier on myself, I employ a tooltip library that's freely available on the Web and built on the excellent Prototype.js JavaScript library. Listing 1 shows the code for this tooltip.


Listing 1. index.html
                
<html>
<head>
<script src="prototype.js" type="text/javascript"></script>
<script src="tooltip.js" type="text/javascript"></script>
<style>
body { font-family: arial,verdana; }
.popup { padding:10px; border:1px solid #ccc;
 background:#eee; width:250px; font-size: small; }
</style>

</head>
<body>
<div id="book1">Code Generation In Action</div>
<div id="popup1" class="popup">
</div>
</body>
<script type="text/javascript">
new Ajax.Updater( 'popup1', 'text.php' );
new Tooltip('book1', 'popup1')

</script>
</html>


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 821
Unique Hits: 755


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.7 0.9 2.4 2.9 8.3 9.3
Current 0 0 6 8 10 13
Previous 2 2 3 4 4 5
Oct 22 1 2 1 1 14 15
Oct 21 1 1 1 2 7 7
Oct 20 2 3 1 1 12 13
Oct 19 0 0 1 1 0 0
Oct 18 0 0 0 0 12 13
Oct 17 0 0 1 1 14 14
Oct 16 1 1 5 6 10 13
Oct 15 0 0 5 5 0 0
Highest 16 17 69 78 264 282


Script Execution Time: 4.15474 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2