Monday 23 December 2013

Cleaning Variable

Variables that are submitted via web forms always need to be cleaned/sanitized before use in any way, to prevent against all kinds of different malicious intent.


FUNCTION



function clean($value) {

// If magic quotes not turned on add slashes.
if(!get_magic_quotes_gpc())

// Adds the slashes.
{ $value = addslashes($value); }

// Strip any tags from the value.
$value = strip_tags($value);

// Return the value out of the function.
return $value;

}

PHP CODE


$sample = "test";
$sample = clean($sample);
echo $sample;


Cleaning Variable

Tuesday 17 December 2013

HTML5 Page Structure

<!DOCTYPE HTML>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Your Website</title>
</head>

<body>

<header>
<nav>
<ul>
<li>Your menu</li>
</ul>
</nav>
</header>

<section>

<article>
<header>
<h2>Article title</h2>
<p>Posted on <time datetime="2009-09-04T16:31:24+02:00">September 4th 2009</time> by <a href="#">Author Name</a> - <a href="#comments">6 comments</a></p>
</header>
<p>Your Content Goes Here.</p>
</article>

<article>
<header>
<h2>Article title</h2>
<p>Posted on <time datetime="2009-09-04T16:31:24+02:00">September 4th 2009</time> by <a href="#">Author Name</a> - <a href="#comments">6 comments</a></p>
</header>
<p>Your Content Goes Here.</p>
</article>

</section>

<aside>
<h2>About section</h2>
<p>Aside Content Goes Here.</p>
</aside>

<footer>
<p>Copyright 2013 Your Company Name</p>
</footer>

</body>

</html>


HTML5 Page Structure

Hides iframe until fully loaded

<iframe style="visibility: hidden;" src="yourhtmlpagepath.html" width="320"></iframe>


Hides iframe until fully loaded

Friday 13 December 2013

Php Interview Questions and Answers

1- How can we register the variables into a session?

session_register($session_var);


$_SESSION['var'] = ‘value’;
2- What is the difference between characters \023 and \x23?

The first one is octal 23, the second is hex 23.
With a heredoc syntax, do I get variable substitution inside the heredoc contents?

Yes.
3- How can we submit form without a submit button?

We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the document.form.submit() function to submit the form. For example: <input type=button value=”Save” onClick=”document.form.submit()”>
4- How can we create a database using PHP and mysql?

We can create MySQL database with the use of mysql_create_db($databaseName) to create a database.
5- How many ways we can retrieve the date in result set of mysql using php?

As individual objects so single record or as a set or arrays.
6- Can we use include (“abc.php”) two times in a php page “makeit.php”?

Yes.
7- For printing out strings, there are echo, print and printf. Explain the differences.

echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:


<?php echo ‘Welcome ‘, ‘to’, ‘ ‘, ‘techpreparations!’; ?>


and it will output the string “Welcome to techpreparations!” print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.
8- I am writing an application in PHP that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with PHP?

On large strings that need to be formatted according to some length specifications, use wordwrap() or chunk_split().
9- What’s the output of the ucwords function in this example?

$formatted = ucwords(“TECHPREPARATIONS IS COLLECTION OF INTERVIEW QUESTIONS”);


print $formatted;


What will be printed is TECHPREPARATIONS IS COLLECTION OF INTERVIEW QUESTIONS.


ucwords() makes every first letter of every word capital, but it does not lower-case anything else. To avoid this, and get a properly formatted string, it’s worth using strtolower() first.
10- What’s the difference between htmlentities() and htmlspecialchars()?

htmlspecialchars only takes care of <, >, single quote ‘, double quote ” and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.
11- How can we extract string “abc.com” from a string “mailto:info@abc.com?subject=Feedback” using regular expression of PHP?

$text = “mailto:info@abc.com?subject=Feedback”;


preg_match(‘|.*@([^?]*)|’, $text, $output);


echo $output[1];


Note that the second index of $output, $output[1], gives the match, not the first one, $output[0].
12- So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

Crypto usage in PHP is simple, but that doesn’t mean it’s free. First off, depending on the data that you’re encrypting, you might have reasons to store a 32-bit value in the database instead of the 160-bit value to save on space. Second, the more secure the crypto is, the longer is the computation time to deliver the hash value. A high volume site might be significantly slowed down, if frequent md5() generation is required.



Php Interview Questions and Answers

Tuesday 3 December 2013

ASP.NET Ajax UpdateProgress

UpdateProgress control shows the status information for the progress of the download occurring during the partial-page rendering in the UpdatePanel. The page can contain multiple UpdateProgress controls. Each one can be associated with a different UpdatePanel control. Alternatively, you can use one UpdateProgress control and associate it with all the UpdatePanel controls on the page. You can place UpdateProgress control either inside or outside the UpdatePanel controls. The following Asp.Net program shows how to an UpdateProgress control waits for completion of the task and during this waiting time it shows a .gif file as waiting message. Default.aspx



<!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 id="Head1" runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<img alt="ajax-progress" src="http://asp.net-informations.com/ajax/img/ajax-progress.gif"></img>
</ProgressTemplate>
</asp:UpdateProgress>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>
<br />
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</body>
</html>

Default.aspx.cs



using System;
using System.Web.UI;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
System.Threading.Thread.Sleep(5000);
Label1.Text = "Server Time :  " + DateTime.Now.ToString();
}
}

Default.aspx.vb



Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
System.Threading.Thread.Sleep(5000)
Label1.Text = "Server Time :  " & DateTime.Now.ToString()
End Sub
End Class


ASP.NET Ajax UpdateProgress

Wednesday 20 November 2013

Handling drop-down list in a PHP form

This tutorial will show you how to add select boxes and multi-select boxes to a form, how to retrieve the input data from them, how to validate the data, and how to take different actions depending on the input.


Select box


Let’s look at a new input: a “select” box, also known as a “drop-down” or “pull-down” box. A select box contains one or more “options”. Each option has a “value”, just like other inputs, and also a string of text between the option tags. This means when a user selects “Male”, the “formGender” value when accessed by PHP will be “M”.


<p>
Gender :
<select name="formGender">
<option value="">Select</option>
<option value="M">Male</option>
<option value="F">Female</option>
</select>
</p>

The selected value from this input was can be read with the standard $_POST array just like a text input and validated to make sure the user selected Male or Female.



<?php

if(isset($_POST['formSubmit']) )
{
$varMovie = $_POST['formMovie'];
$varName = $_POST['formName'];
$varGender = $_POST['formGender'];
$errorMessage = "";
}
?>

It’s always a good idea to have a “blank” option as the first option in your select box. It forces the user to make a conscious selection from the box and avoids a situation where the user might skip over the box without meaning to. Of course, this requires validation.



<?php

if(!isset($_POST['formGender']))
{
$errorMessage .= "<li>You forgot to select your Gender!</li>";
}

?>


Handling drop-down list in a PHP form

Saturday 9 November 2013


Website Developement and PHP, .Net Training, Website Hosting by IT Company in Baroda


Best IT Company in Vadodara.
Provides Web Hosting, Website Development, Website Designing,
Live Project Training, PHP Training, .Net Training, WordPress and Ecommerce Training, Last sem Project Guidance for BCA,MCA,BE,Msc IT,Diploma Student.

Visit Our Website :-
www.paceinfonet.org
www.paceinfonet.com

502B, 6th Floor, Concorde Bldg., 
RC Dutt Road, Alkapuri, 
Vadodara - 390007, Gujarat ( india ) 

Phone : 0265 3051919 
Mobile : +91 - 8000195514

Thursday 7 November 2013

jQuery Display Progress Bar on Button Click in Asp dotnet

Here I will explain how to use jQuery to show progress bar on button click in asp.net with example in c#, vb.net or jQuery show loading image on button click in asp.net using c#, vb.net.


To implement this we need to write the code like as shown below in your aspx page



<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>jQuery show progress bar on button click asp.net</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<style type="text/css">
.sample
{
background-color:#DC5807;
border:1px solid black;
border-collapse:collapse;
color:White;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div id="DisableDiv"> </div>
<input type="button" id="btnClick" value="Get Data" />
<div id="testdiv"></div>
</form>
<script type="text/javascript">
$(function() {
$('#btnClick').click(function() {
$('#DisableDiv').fadeTo('slow', .6);
$('#DisableDiv').append('<div style="background-color:#E6E6E6;position: absolute;top:0;left:0;width: 100%;height:300%;z-index:1001;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);"><img src="loading.gif" style="background-color:Aqua;position:fixed; top:40%; left:46%;"/></div>');
setTimeout(function() { GetData() }, 1000)
})
});
function GetData()
{
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "ShowLoadingImageonButtonClick.aspx/BindDatatable",
data: "{}",
dataType: "json",
success: function(data) {
var theHtml = data.d;
$('#testdiv').html(theHtml)
$('#DisableDiv').html("");
},
error: function(result) {
alert("Error");
}
});
}
</script>
</body>
</html>

Now add following namespaces in code behind


C# Code



using System;
using System.Data;
using System.Data.SqlClient;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

Once we add namespaces need write the code like as shown below

 protected void Page_Load(object sender, EventArgs e)
{
}
[WebMethod]
public static string BindDatatable()
{
GridView gv = new GridView();
System.IO.StringWriter stringWriter = new System.IO.StringWriter();
HtmlTextWriter htmlWriter = new HtmlTextWriter(stringWriter);
DataTable dt = new DataTable();
using (SqlConnection con = new SqlConnection("Data Source=SureshDasari;Initial Catalog=MySampleDB;Integrated Security=true"))
{
using (SqlCommand cmd = new SqlCommand("select UserId,UserName,Location from UserInformation", con))
{
con.Open();
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
}
}
gv.HeaderStyle.CssClass = "sample";
gv.DataSource = dt;
gv.DataBind();
gv.RenderControl(htmlWriter);
return stringWriter.ToString();
}

VB.NET Code


 



Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Services
Imports System.Web.UI
Imports System.Web.UI.WebControls

Partial Class VBCode
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
End Sub
<WebMethod()> _
Public Shared Function BindDatatable() As String
Dim gv As New GridView()
Dim stringWriter As New System.IO.StringWriter()
Dim htmlWriter As New HtmlTextWriter(stringWriter)
Dim dt As New DataTable()
Using con As New SqlConnection("Data Source=SureshDasari;Initial Catalog=MySampleDB;Integrated Security=true")
Using cmd As New SqlCommand("select UserId,UserName,Location from UserInformation", con)
con.Open()
Dim da As New SqlDataAdapter(cmd)
da.Fill(dt)
End Using
End Using
gv.HeaderStyle.CssClass = "sample"
gv.DataSource = dt
gv.DataBind()
gv.RenderControl(htmlWriter)
Return stringWriter.ToString()
End Function
End Class

Aspdotnet_jquery1


aspdotnet_jquery2


aspdotnet_jquery3



jQuery Display Progress Bar on Button Click in Asp dotnet

Thursday 24 October 2013

MySql Connection Strings in Ado.Net

Today, MySql is open source database in the world. In Ado.net to make connection to MySql , we have different connection strings. Basically it is not easy to remember different database connection strings in Ado.Net. So I am sharing some connection strings to connect to the MySql database using different drivers.


Using ODBC


// ODBC — MyODBC Driver — remote database

using System.Data.Odbc;

OdbcConnection conn = new OdbcConnection();

conn.ConnectionString = “Driver={MySql}; Server=db.domain.com; Option=131072; Port=3306; Stmt=; DataBase=DataBaseName; Uid=UserName; Pwd=Secret;” ;

conn.Open();


Using OLEDB


// OleDb

using System.Data.OleDb;

OleDbConnection conn = new OleDbConnection();

conn.ConnectionString = “Provider=MySqlProv; Data Source=ServerName; User id=UserName; Password=Secret”;

conn.Open();


Using .Net DataProvider


// .NET DataProvider from CoreLab

using CoreLab.MySql;

MySqlConnection conn = new MySqlConnection();

conn.ConnectionString =”Host=ServerName; DataBase=DataBaseName; Protocol=TCP; Port=3306; Direct=true; Compress=false; Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0;

User id=UserName;Password=Secret”;

conn.Open();



MySql Connection Strings in Ado.Net

Tuesday 15 October 2013

PHP Project Training In Vadodara



Website Developement and PHP, .Net Training, Website Hosting by IT Company in Baroda

Best IT Company in Vadodara.
Provides Web Hosting, Website Development, Website Designing,
Live Project Training, PHP Training, .Net Training, WordPress and Ecommerce Training, Last semester Project Guidance for BCA, MCA, BE, Msc IT, Diploma Student.

Visit Our Website :-
www.paceinfonet.org
www.paceinfonet.com

502B, 6th Floor, Concorde Bldg.,
RC Dutt Road, Alkapuri,
Vadodara - 390007, Gujarat ( india )

Phone : 0265 3051919
Mobile : +91 - 8000195514 

Sunday 6 October 2013

Display Random Header Images in WordPress

Display Random Header Images in WordPress


randomheaderimages


Most blog designs get boring if they have a huge header picture and it is static. This is when this tutorial comes in to make your header images dynamic because it rotates on each visit. You can select as many images as you want to rotate randomly. It brings life to a blog.


First you need to name your images in this format:



  • headerimage_1.gif

  • headerimage_2.gif

  • headerimage_3.gif


You must separate the name with an underscore. You can change the headerimage text to himage or anything you like.


Once you have done that paste the following code in your header.php where you would like the images to be displayed or in any other file.


<img src="http://path_to_images/headerimage_<?php echo(rand(1,3)); ?>.gif"
width="image_width" height="image_height" alt="image_alt_text" />

Make sure that you change the number 3 if you decide to do more than 3 images. This code is not exclusive for WordPress,

it will work with any php based platform.



Display Random Header Images in WordPress

Friday 20 September 2013

Best wordpress testimonial Plugin

Displaying testimonial is one of the impotent thing for website that dealing with selling services and product.Displaying Testimonials are also good for Showing famous Quotes into your blog. WordPress testimonial Plugin will help you to accomplish this task. In wordpress there are many testimonial Plugin which will allow you to create beautiful testimonial content and testimonial pages.


Here let us check some of the Best wordpress testimonial Plugins that can be used in your wordpress website for displaying testimonials. This some of the testimonial Plugin can also used as Quote Rotator too which will continuously rotate texts in your website.


Adding testimonials to your wordpress site will be an easy task if you are using the WordPress testimonial Plugin. Because these plugins are having good admin site controls by which you can easily control and monitor your testimonial contents. So that you can easily add or remove the testimonial contents. Also by using shorts codes in post you can easily display it in your website.


Testimonial Rotator.


WordPress-Testimonial-Rotator-Plugin-650x210


Download Testimonial Rotator Plugin.


 


IvyCat AJAX Testimonials.


WordPress-IvyCat-AJAX-Testimonials-Plugin-650x210


Download Clean Testimonials Plugin.


 


Easy Testimonials.


WordPress-Easy-Testimonials-Plugins-650x209


Download Easy Testimonials Plugin.


 


PPM Testimonial.


WordPress-PPM-Testimonial-Plugin-650x209


Download PPM Testimonial Plugin.


 


Lumia Testimonials.


WordPress-Lumia-Testimonials-Plugin-650x206


Download Lumia Testimonials Plugin.


 


FIFO Testimonials.


WordPress-FIFO-Testimonials-Plugin-650x209


Download FIFO Testimonials Plugin.


 


GC Testimonials.


WordPress-GC-Testimonials-Plugin


Download GC Testimonials Plugin.



Best wordpress testimonial Plugin

Friday 13 September 2013

How to Create a Page that Displays Random Posts in Wordpress

Have you ever been to a site and saw this cool feature? They have a link in their top navigation to something like Stumbe! or Read Random Articles, or some other creative text. When you click on that link, it takes you to a page that displays one random page. Each time you refresh, you are delivered with a new post. Well this trick is just for you then.


simply paste this code in there:


<?php
query_posts(array('orderby' => 'rand', 'showposts' => 1));
if (have_posts()) :
while (have_posts()) : the_post(); ?>

<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>

<?php the_content(); ?>

<?php endwhile;
endif; ?>

This is a simple WordPress Loop that is running a query to display random posts and the number 1 in there

is telling WordPress to only show 1 post. You can change that number, but most of the time people do it one post a time.



How to Create a Page that Displays Random Posts in Wordpress

Tuesday 10 September 2013

How to build a CSS3 drop down menu


I always thought creating navigation menu using pure css was something only the css black belt could do. After some coding headache (I should admit!) I managed to design a drop-down menu using pure css. This article explains step by step how I did it from scratch. Don’t worry you won’t need to spend hours in front for Photoshop gradients, borders and shadows. I have made use of CSS3 to reproduce the same effect.In this tutorial you will learn how to use :



  • The prefixes -Moz-/-webkit-

  • Gradient effect in CSS3

  • Text-shadow or a box-shadow in CSS3

  • Rounded corners (without using images) in CSS3


Some CSS style has been skipped such as aligning the login menu to the right so as to keep it simple to understand .You can download the full source code from above and play with it so that you can get a better understanding of how things work.

Test Post from PHP training in Vadodara, .NET Training in Vadodara by Pace Infonet

Test Post from PHP training in Vadodara, .NET Training in Vadodara by Pace Infonet http://paceinfonet.org

Wednesday 4 September 2013

Know The Advantages of web based applications

Joomla Web Development Service

Effective Logo Designing

About Joomla!

As described earlier, Joomla is the popular Content Management System by which you can create, edit and publish the content. You can add images, audio and video elements to the content, display and make them searchable.
Joomla is open source software and is available free. It was initially released in the year 2005 and since then to last March (2012) it was downloaded 30 million times (Source: Wikipedia). The official Joomla website alone features more than 6,000 extensions and plug-ins (both commercial and freeware). But this is not the end of story as many third-party Joomla developers are adding thousands of extensions and plug-ins every year. All these make Joomla as the most robust, feature-rich and powerful content management tool.

Pace Infonet Web Solutions Pvt. Ltd.

Use Joomla & Joomla Extensions to Build any kind of Website

Website technologies are ever-changing which would put the beginners and novice in tailspin. By the time a newbie gets to the roots of a particular technology, the world would have gone few steps ahead by leaving the newbie stuttering.
Website owners are the most confused than the web developers in choosing the right technology to develop their websites. They do not have any choice but to depend on the opinion of web developers. But it is desirable for the website owners also to get the basics of web development technologies just to strengthen their decision making capabilities.
Having said this let us look at the most popular website development technologies that are contemporary and present.
If you are an aspiring website owner that wants to build the most attractive but easy-to-operate online literary website or a commercial one to make few bucks or an information website that talks about corpulence and diet plans, you require to opt for the most advanced and state-of-the-art technologies called Content Management Systems (CMS).
There are certain CMS tools like Joomla, WordPress and Drupal which have garnered enough attention from the web developers and owners alike. By knowing that these are three top notch web building technologies, your work is simplified to choosing one of them. But would that really be an effortless decision?
Not at all!
You have to know the most suitable solution that works well with the scheme that you have drawn for your web venture. It should allow you to climb the ladder of future requirements with its impeccable scalability. It should support you with unbroken links, simple navigation and functionality. It must be versatile enough to integrate many third party plug-INS that would run business for you.
In this write-up we are talking about Joomla, the most popular CMS tool and would discuss in detail about it.
This is the first part of 3 part series that deals with start-to-end of Joomla CMS with an intention of helping you to build a website of your selection.
In this part you would be reading about Joomla, how to get started with Joomla and its extensions that help you in creating following type of websites:
    Social Networking/Community Website
    Photo Sharing Website
    Travel Website
    Classified Ad Portal
Pace Infonet Web Solutions Pvt. Ltd.

Sunday 1 September 2013

How to Allow Users to Submit News / Posts to Your WordPress Site

Have you ever seen on sites that lets you submit news to list in their sidebar? Or even have a form for users to submit posts? Well in this article we will share a way that you can use to allow your users to submit news or even posts to your WordPress site. You will get to moderate them like comments and approve the story that you choose to go live. You can even use Akismet for spam filter.


It is really easy to do by using a plugin called TDO Mini Forms. You will have a form on your website that will look something like this:


submitanews


 


 


Once the news is submitted, you will see them in your WordPress admin panel. You must make sure that you create a user and assign it the role of a “Subscriber”. In other words, they should not be allowed to publish, or edit the posts. This user will now be your assigned default user for this plugin. TDMO plugin can also create a dummy user for you, if you desire. The author recommends this way.


Follow through the instructions listed on this page.


 










 


 



How to Allow Users to Submit News / Posts to Your WordPress Site

Thursday 29 August 2013

Prestashop Zopim Chat Free 1.3

Product Description: Prestashop Zopim Chat Free


There are many reasons to use Live Chat. You can use Live Chat to: Increase sales conversion on your website,  Handle customer support on your website, Get feedback from early beta users of your service, Many more, let your imagination run wild! We decided to create module for all store owners based on prestashop engine. With our addon you will be able to install own zopim chat widget with one mouse click! Module is absolutely free and you can download it now.


zopim-free-cover-big


Why to use Zopim? And why via us module?



  •     Zopim module & Our product, customer service and response time set us apart from the rest. We are dedicated to providing you with the best service and support, wherever you are.



  •     We are incessantly preoccupied with delivering products that we are proud of. That means getting every single little detail right – from perfecting each pixel on the widget, to reducing the nano-second delays in message delivery. We are proud artisans.



  •     We never take our eyes away from big issues like reliability, and scalability. This is why our uptime has averaged 99.8% in the past year, and this year we aim to do even better. We are proud engineers.


Geeky facts about Zopim & our module



  •     Work across major browsers ( Internet Explorer 6+, Firefox, Google Chrome, Opera, Safar) and IMs (Gtalk / MSN / Yahoo! Messenger / AIM).



  •     Uptime averaged 99.8%.



  •     New HTML5 dashboard.



  •     iPhone application available.



  •     Android application for beta testers (will be available soon)


 


Download Link



Prestashop Zopim Chat Free 1.3

Thursday 22 August 2013

jQuery stylish CSS3 image zoomer

In this quick post, I am sharing you a jQuery plugin which uses CSS3 to create stylish image zoomer.


SKDZoom – A jQuery stylish CSS3 image zoomer plugin with lens zoom support. Big image shows in a awesome rounded box beside the thumbnail. It is very light weight and easily customizable image zoomer.


zoomer


 


Download SkdZoom

 


Click here to download SkdZoom



jQuery stylish CSS3 image zoomer

Wednesday 21 August 2013

jQuery - Page Redirect after X seconds wait

You must have come across any website which uses a webpage with some annoying advertisement and a message that says “You will be redirected to actual page after X seconds”. This can be easily implemented with jQuery. In this post, find jQuery code to redirect user to another webpage after specific time interval or few seconds.


The below jQuery code uses JavaScript setInterval which executes a function, over and over again, at specified time intervals. So all is required is to set the setInterval as 1 second and then minus the counter from actual time interval. When it reach to zero second , simply redirect to specific path.


HTML Code


<h1>You will be redirect to actual page after <span id="spnSeconds">10</span> seconds.</h1>

CSS Code


body {
font-size:12pt;
font-family:Calibri;
}
#spnSeconds {
font-size:25pt;
color:Red;
}

Jquery Code


$(document).ready(function () {
window.setInterval(function () {
var iTimeRemaining = $("#spnSeconds").html();
iTimeRemaining = eval(iTimeRemaining);
if (iTimeRemaining == 0) {
location.href = "http://paceinfonet.org/jquery-page-redirect-after-x-seconds-wait/";
} else {
$("#spnSeconds").html(iTimeRemaining - 1);
}
}, 1000);
});


jQuery - Page Redirect after X seconds wait

Thursday 15 August 2013

Understanding Model View Controller in Asp.Net MVC

The Model-View-Controller (MVC) pattern was introduced in 1970s. It is a software design pattern that splits an application into three main aspects : Model, View and Controller. Moreover, MVC pattern forces a separation of concerns within an application for example, separating data access logic and business logic from the UI.


asp.net MVC


Model

The Model represents a set of classes that describes the business logic and data. It also defines business rules for how the data can be changed and manipulated.


Moreover, models in Asp.Net MVC, handles the Data Access Layer by using ORM tools like Entity Framework or NHibernate etc. By default, models are stored in the Models folder of the project.


View

The View is responsible for transforming a model or models into UI. The Model is responsible for providing all the required business logic and validation to the view. The view is only responsible for displaying the data, that is received from the controller as the result.


Moreover, views in Asp.Net MVC, handles the UI presentation of data as the result of a request received by a controller. By default, views are stored in the Views folder of the project.


Controller

The Controller is responsible for controlling the application logic and acts as the coordinator between the View and the Model. The Controller receive input from users via the View, then process the user’s data with the help of Model and passing the results back to the View.


Moreover, controllers in Asp.Net MVC, respond to HTTP requests and determine the action to take based upon the content of the incoming request. By default, controllers are stored in the Controllers folder of the project.



Understanding Model View Controller in Asp.Net MVC

Tuesday 13 August 2013

Platform Features

There are specific features that WordPress offers that make it a unique platform for both websites and blogging. Most of these features are generated by third-party coding that can be modified or extended to meet the needs of any project. The features include:
No Rebuilding – Any changes made to a template are immediately recognized on the site without the need to regenerate any dynamic or static page.
WordPress Theme Design And Development – Many third-party companies develop highly creative WordPress themes to create a variety of professional sites, for all types of niche markets. These creative templates optimize web design to the owner’s liking.
Cross-Communication Tools – The platform utilizes the best cross communication tools to allow website owners instant updates on social media channels when posting to their blog or site.
Password Protection – Every post is password protected allowing the site owner complete confidentiality in a private post that can only be viewed by the author, until publicly published.
Comment Capabilities – The platform allows site owners to insert a comment section where visitors can leave feedback and comments. This feature can be enabled or disabled by the site owner.
WordPress offers significant features, plug-ins, add-ons, and themes that are unavailable from its competitors. Any business that is about to design a new website, or renovating an existing one, should consider WordPress as their number one choice. The ability to transfer the site to any hosting location makes WordPress the best solution to develop and maintain a premium site.