Featured Post Today
print this page
Latest Post

Fix: Youtube iframe and Lightbox Overlays and Z-index issues

YouTube's new iFrame player is very good to the old embed code that we have been using, but if we are placing it on pages with content or lightbox then the youtube's iframe player overlaps or overlays on each other, you may notice that the videos appear on top of content or lightbox. It's very easy to fix the issue when we use the standard embed code by simply adding a paramater to the code itself. With this new code, we simply don't have the ability to edit the code directly.

As this problem of Overlaying can be solved easily by adding a parameter "?wmode=transparent" without quotes to the end of the src link of iframe tag.

For Example,
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/lZqrG1bdGtg?wmode=transparent" frameborder="0" allowfullscreen></iframe>

But, we cannot add it manually in dynamic websites where the src of iframe tag changes on every page. So, in oreder to solve this problem you can use jquery which can add this to all iframe tags.Check the below example,

$(document).ready(function() {
    $("iframe").each(function(){
        var ifr_source = $(this).attr('src');
        var wmode = "wmode=transparent";
        if(ifr_source.indexOf('?') != -1) {
            var getQString = ifr_source.split('?');
            var oldString = getQString[1];
            var newString = getQString[0];
            $(this).attr('src',newString+'?'+wmode+'&'+oldString);
        }
        else $(this).attr('src',ifr_source+'?'+wmode);
    });
});

Please Note:- If you have got the solution then please don't forget to like and share this post to others.
2 comments

Date Picker Control

This Date Picker Control is made up of Jquery and this can be integrated in any language whether it is PHP, ASP.NET, etc.
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".date-picker").datepicker({
dateFormat: 'yy-mm-dd', // to select the date format
changeMonth: true, // change month option in datepicker
changeYear:true, // change year in datepicker
yearRange: '2000:2020' // giving a year range
});
});
</script>
</head>
<body>
<input name="date" id="date" class="date-picker" />
</body>
</html>
0 comments

Error : Cannot modify header information–headers already sent…

This problem is mainly occurred when we export some data to CSV,XML,etc. In order to solve this problem, you have to check whether you have used “echo” or “print” before any header line, then and then only the error is occurred.

In some cases, this type of can be solved by using ob_start() and ob_end_flush() function at the top and the bottom of the page respectively.

Please Note: Detailed information about this error will be updated soon in this post only.

0 comments

Simple Category Listing with Add/Edit/Delete Functionality

This is my first practical tutorial using PHP/MYSQL. If you want to add a simple add/edit/delete functionality to category listing page. Then, first if all you have to create 5 php files as given below:

1. db_connect.php
2. add_category.php
3. edit_category.php
4. delete_category.php
5. view_category.php

We also need a table to create with the following structure given in below given image:
Table Structure


Now, let me describe the use of all these files.

Step 1:
"db_connect.php" is created in order to create a database connection between PHP & MYSQL. The file contains the below given code.

<?php
$connect=mysql_connect("localhost","root","") or die("Server Connection Failed");
mysql_select_db("ebuksmania",$connect);
?>
Here, "ebuksmania" is the name of the database, "localhost" is the name of the host/server and "root" is the username. This file is included in all the other php files as database connectivity is needed in other php files and this file will provide database connectivity to other files.

Step 2:
"add_category.php" is created in order to add category to the specified category table in MYSQL. The file contains the below given code.


<?php
include_once("db_connect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Add Category</title>
</head>
<body>
<form method="post">
<table border="2">
<tr><th colspan="2">Add Category</th></tr>
<tr>
<td>Category Name</td>
<td><input type="text" name="category_name" /></td>
</tr>
<tr>
<td><input type="submit" name="add_category" value="Add Category" /></td>
</tr>
</table>
</form>
</body>
</html>
<?php
if(isset($_POST['add_category']))
{
$category_name=$_POST['category_name'];
$date=date("Y-m-d H:i:s");
$query="INSERT INTO `category_simple`(name,created_date,updated_date) VALUES('$category_name','$date','$date')";
mysql_query($query) or die("Incorrect Query Error");
header("Location: view_category.php");
}
?>

Step 3:
"edit_category.php" is created in order to edit the name of the category if mistaken. The file contains the below given code.


<?php
include_once("db_connect.php");
if(isset($_GET['id']))
{
$id=$_GET['id'];
}
$fetch_query="SELECT * FROM `category_simple` WHERE id='$id'";
$result=mysql_query($fetch_query) or die("Incorrect Query Error");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Edit Category</title>
</head>
<body>
<form method="post">
<table border="2">
<tr><th colspan="2">Update Category</th></tr>
<?php
while($row=mysql_fetch_array($result))
{
?>
<tr>
<td>Category Name</td>
<td><input type="text" name="category_name" value="<?php echo $row['name']; ?>" /></td>
</tr>
<tr>
<td><input type="submit" name="save_category" value="Save Category" /></td>
</tr>
<?php
}
?>
</table>
</form>
</body>
</html>
<?php
if(isset($_POST['save_category']))
{
$category_name=$_POST['category_name'];
$date=date("Y-m-d H:i:s");
$query="UPDATE `category_simple` SET name='$category_name',updated_date='$date' WHERE id='$id'";
mysql_query($query) or die("Incorrect Query Error");
header("Location: view_category.php");
}
?>


Step 4:
"delete_category.php" is created in order to delete the category already added, if don't need it. The file contains the below given code.


<?php
include_once("db_connect.php");
if(isset($_GET['id']))
{
$id=$_GET['id'];
$query="DELETE FROM `category_simple` WHERE id='$id'";
mysql_query($query) or die("Incorrect Query Error");
header("Location: view_category.php");
}
?>

Step 5:
"view_category.php" is created in order to check whether the add/edit/delete functionality is working properly or not. The file contains the below given code.


<?php
include_once("db_connect.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>View Category Listing</title>
</head>
<body>
<a href="add_category.php">Add Category</a><br /><br />
<table border="2">
<tr><th colspan="6">View Category Listing</th></tr>
<tr><th>ID</th><th>Name</th><th>Created Date</th><th>Updated Date</th><th colspan="2">Actions</th></tr>
<?php
$query="SELECT * FROM `category_simple`";
$result=mysql_query($query) or die("Incorrect Query Error");
while($row=mysql_fetch_array($result))
{
?>
<tr><td>
<?php echo $row['id']; ?>
</td><td>
<?php echo $row['name']; ?>
</td><td>
<?php echo $row['created_date']; ?>
</td><td>
<?php echo $row['updated_date']; ?>
</td><td>
<a href="edit_category.php?id=<?php echo $row['id']; ?>">Edit</a>
</td><td>
<a href="delete_category.php?id=<?php echo $row['id']; ?>">Delete</a>
</td></tr>
<?php
}
?>
</table>
</body>
</html>
That's All. The work is finish just run the file "view_category.php" using it you can access to all other files easily during runtime.


1 comments

Advanced Wireless LAN



The past two decades have witnessed starling advances in wireless LAN technologies that were stimulated by its increasing popularity in the home due to ease of installation, and in commercial complexes offering wireless access to their customers. This book presents some of the latest development status of wireless LAN, covering the topics on physical layer, MAC layer, QoS and systems. It provides an opportunity for both practitioners and researchers to explore the problems that arise in the rapidly developed technologies in wireless LAN.

For More Details about the Ebook, Click Here

0 comments

Steve Jobs: The Exclusive Biography

Steve Jobs: The Exclusive Biography

'Steve Jobs: The Exclusive Biography' was one of the most eagerly awaited books of the year 2011. The book is a journey into the life of a legend who revolutionized the way people saw technology. Walter Issacson brings to life, the innovator, the dreamer and the devil within Steve Jobs. An absolutely must read!

During the summer of 2004, Walter Isaacson got a phone call from Steve Jobs. It so turned out that Jobs wanted Isaacson to write a biography of him. This amazing book takes you on a rollercoaster ride into the ferociously intense personality of a passionate and creative entrepreneur whose powerful drive and vision revolutionized six industries: music, personal computers, phones, animated movies, digital publishing and tablet computing.

Steve Jobs also re-imagined and tried to revamp retail stores, but it did not turn out to be as revolutionary. Instead, he paved the way for an entirely new market for app based digital content. This is a book that's mainly about innovation. Steve Jobs stands tall as the sole icon of imagination, sustained innovation and inventiveness. His vision was very clear; if you want to create value in the industry, connect technology with creativity. A company called Apple was built on this vision, which changed the entire face of technology with its imagination blended with remarkable feats of engineering.

Steve Jobs asked for no right to read it before it was published and had no control over what was being written before it was published. He also encouraged people to speak honestly. In the book Jobs sometimes speaks brutally and candidly about the people he worked along with and also his competitors.

His friends, colleagues and foes offer an unparalleled view of the perfectionism, passion, artistry, obsessions, compulsions and devilry that shaped his approach to the innovative products and business that resulted.

Often driven by his demons, Jobs could make those around him lurch in despair and fury. His products and personality were interrelated and his life was cautionary and instructive at the same time. A must read!

About The Author
Walter Issacson is a biographer and a writer. He is also the director of Aspen Institute and has been the Managing Editor of TIME. Issacson has previously written the biographies of Henry Kissinger and Albert Einstein.

Other Popular Walter Issacson Books
Kissinger: A Biography (1992)
Benjamin Franklin: An American Life (2003)
Einstein: His Life and Universe (2007)
American Sketches (2009)

Walter Issacson is a graduate in literature from Harvard and a Rhodes Scholar from the University of Oxford. He began his career in journalism at The Sunday Times in London.

1 comments

PHP Reference: Beginner to Intermediate PHP5



Author: Mario Lurig
ISBN: 978-1-4357-1590-5
Pages: 163
License: Creative Commons Attribution-NonCommercial-ShareAlike 2.0 




1 comments

Programming Flex 2: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex


Ebook Summary of Programming Flex 2: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex

Written for development professionals, this book discusses the Flex framework in context. The authors introduce features with practical and useful examples that tell the reader not only how, but also the
reasons why to use a particular feature, when to use it, and when not to.

Is there an easier way to build and deliver rich internet applications (RIAs) other than the Flash IDE or Ajax? Absolutely. With Adobe Flex 2, the Flex 2 SDK, and this book, you have all you need to build RIAs. Programming Flex 2 offers you plenty of practical and useful examples that reveal how and why to use a particular feature of Flex 2, and when and when not to.
As part of the Adobe Developer Library, Programming Flex 2 is the authoritative guide to this new Adobe framework. You learn to use a markup language called MXML and a vast library of off-the-shelf and highly-configurable components to build Flash-based applications that combine the immediacy of the Web with the functionality and responsiveness of desktop applications. You also discover why -- with the Flash Player runtime environment and the powerful ActionScript 3.0 programming language -- the possibilities with Flex 2 are nearly limitless.
Topics include: Managing Layout Working with Components Working with Media Managing State Using Transitions and Effects Working with Data Customizing Application Appearance Client Data Communication and Remote Data Communication Debugging Flex Framework Applications Creating Custom Components
Flex may be easier to learn than the Flash IDE, but you still need a reliable guide to the framework. Programming Flex 2 not only serves as a reference, but provides valuable and practical insight into this new technology. As you learn how to build Flex applications, you'll also discover how Flex works. This book supplies all the information you need in one convenient place.
Adobe Developer Library is a co-publishing partnership between O'Reilly Media and Adobe Systems, Inc. and is designed to produce the number one information resources for developers who use Adobe technologies. Created in 2006, the Adobe Developer Library is the official source for comprehensive learning solutions to help developers create expressive and interactive web applications that can reach virtually anyone on any platform. With top-notch books and innovative online resources covering the latest in rich Internet application development, the Adobe Developer Library offers expert training and in-depth resources, straight from the source.

EBook: Programming Flex 2: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex
Author: Chafic Kazoun, Joey Lott
ISBN: 059652689X
ISBN-13: 9780596526894, 978-0596526894
File Type: RAR
File Size: 2.54 MB
Publisher: O'reilly media
Edition: 1st Ed.
Number of Pages: 472
Language: English


0 comments

Professional Android Application Development


Professional Android Application Development

Ebook Summary of Professional Android Application Development

A hands-on guide to building mobile applications, Professional Android Application Development features concise and compelling examples that show you how to quickly construct real-world mobile applications for Android phones. Fully up-to-date for version 1.0 of the Android software development kit, it covers all the essential features, and explores the advanced capabilities of Android (including GPS, accelerometers, and background Services) to help you construct increasingly complex, useful, and innovative mobile applications for Android phones.


What this ebook includes

  • An introduction to mobile development, Android, and how to get started.

  • An in-depth look at Android applications and their life cycle, the application manifest, Intents, and using external resources.

  • Details for creating complex and compelling user interfaces by using, extending, and creating your own layouts and Views and using Menus.

  • A detailed look at data storage, retrieval, and sharing using preferences, files, databases, and Content Providers.

  • Instructions for making the most of mobile portability by creating rich map-based applications as well as using location-based services and the geocoder.

  • A look at the power of background Services, using threads, and a detailed look at Notifications.

  • Coverage of Android's communication abilities including SMS, the telephony APIs, network management, and a guide to using Internet resources

  • Details for using Android hardware, including media recording and playback, using the camera, accelerometers, and compass sensors.

  • Advanced development topics including security, IPC, advanced 2D / 3D graphics techniques, and user–hardware interaction.


Who this ebook is for

This book is for anyone interested in creating applications for the Android mobile phone platform. It includes information that will be valuable whether you're an experienced mobile developer or making your first foray, via Android, into writing mobile applications. It will give the grounding and knowledge you need to write applications using the current SDK, along with the flexibility to quickly adapt to future enhancements.


Title: Professional Android Application Development
Author: Reto Meier
ISBN: 0470344717
ISBN-13: 9780470344712, 978-0470344712
File Type: RAR
File Size: 4.39 MB
Publisher: Wrox Publication
Number of Pages: 432
Language: English



1 comments

Beginning JavaScript Second Edition

Beginning JavaScript

Ebook Summary of Beginning JavaScript Second Edition

What is this ebook about?
Teaching programming basics from the ground up, this book helps even those with no prior programming knowledge learn JavaScript and use this knowledge for practical purposes on their Web sites to create interesting, useful, and dynamic sites. The primary focus is on practical application of JavaScript to Web site creation. The ultimate aim is that a reader having finished the book should be able to go it alone and create their own scripts and move forward and learn more advanced techniques. They will have a very broad base of knowledge of JavaScript and its application to Web development.

Title: Beginning JavaScript Second Edition

Author: Wilton, Paul

ISBN: 0764555871

ISBN-13: 9780764555879, 978-0764555879

File Type: CHM

File Size: 19.92 MB

Publisher: Wrox Publication

Edition: 2nd Edition

Number of Pages: 767

Language: English

3 comments
 
Support :
Copyright © 2012. Ebuksmania - All Rights Reserved
Template Modified by Ebuksmania Published by Blogger
Proudly powered by Blogger