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: demo fix
demos update
Update of the Hello World demo
demo updates
Date: 4 years ago
Size: 1,332 bytes
 

Contents

Class file image Download
<?php
$defaultTitle = "Great! That's a new title of Hello World";
include("header.php");
?>

					<header>
						<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>
					</header>					
					<div style="border:solid 1px green;margin:20px;padding:20px;">
						<div 	id="mainContainer" 
								data-blapy-container="true" 
								data-blapy-container-name="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="http://sammyjs.org/">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>
						</div>
					</div>	
					<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>

<?php 
include("footer.php");