File: demos/helloworld/helloworld_2.php

Recommend this page to a friend!
  Classes of Emmanuel Podvin  >  Blapy  >  demos/helloworld/helloworld_2.php  >  Download  
File: demos/helloworld/helloworld_2.php
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of demos/helloworld/helloworld_2.php
Date: 6 months ago
Size: 1,332 bytes


Class file image Download
$defaultTitle = "Great! That's a new title of Hello World";

						<h1>Welcome to the "Hello World" demo of <strong>BLAPY</strong>!</h1>
						<h2>I am the "<b><?php echo basename(__FILE__)?>" file</b> of the "Hello world" demo</h2>
					<div style="border:solid 1px green;margin:20px;padding:20px;">
						<div 	id="mainContainer" 
								data-blapy-container-content="How is it going?"
							<h1>How is it going?</h1>
							<p>Hey... this block was updated with Ajax!</p>
							<p>Did you see that the content of "&lt;title&gt;" tag was changed? The "&lt;title&gt;" is a Blapy block too!<br> 
							   The Url changed too... thanks to the use of the <a href="">Sammy library</a>.<br>
							   Click on the <a href="index.php" data-blapy-link="true">"Hello world!"</a> link to load back its content...<br> 
							  <?php if (!empty($_GET['id'])) echo "sent id: ".$_GET['id']?>
					<p>Click on the <a href="index.php" data-blapy-link="true">"Hello world"</a> link, it will then change the Blapy content of the current page by the one coming from the page of this link</p>