Owner: PHP And Ajax Related Useful Resources and Codes URL:http://roshanbh.com.np Join Date: Fri, 21 Dec 2007 10:06:29 -0600 Rating:0 Site Description: Useful Tools, Tutorials, Codes , Tips, Tricks and Resources for all Ajax and Php beginners and experts .
All about PHP and Ajax programming... Site statistics:Click here
Finding difference of days between two dates in PHP 2008-03-18 12:47:47 Yesterday, my friend Roshan was was struggling to find the days difference
between to two dates
in PHP. Well, after a while I came up with the solution for him. The date format he’s using was “YYYY-MM-DD”, which is the standard format of date value stored in the MySql database.
Displaying different color in alternate row using jquery 2008-03-17 13:24:15 Most of the tabular data are organized in such a manner that they are easy to read. And for this, most of the developers use different
color to highlight the different row.There are various method of displaying different row in different color but here I’m going to use the most simple method using jQuery.
Read more:alternate
USA’s Zip Code Validation in PHP 2008-03-20 13:08:53 My friend Sushil was trying to write the regular expression for validating the format of the zip code of USA. After spending few minutes, I came to this solution.
Read more:Validation
Show text “Password” instead of “********” in the password field 2008-03-23 05:38:17 As you know, the user login box of the website contains the following fields username and password. Furthermore, most of them put the “Username” inside user name field and “********” inside password field to save the space within designing.In this post I’ll show you how to show “Password” text in the password field. It [...]
Collapsible and expandable toggle pane using jquery 2008-03-25 06:45:14 In this post, I’ll show you how easy it is to show expandable and collapsible toggle panel using jQuery. When you click on the heading, the content gets displayed by sliding and when you again click on the heading again, it gets collapsed.
Canada’s postal code validation in PHP 2008-03-24 10:31:54 Yesterday, My friend Sushil asked me how to validate the postal code of Canada
which is entered through the text box.And, I came up with this Php function as solution for him.
How to call php from ajax in every second using Jquery 2008-03-27 12:58:01 Few days ago, Mike emailed me and asked me how can i call a server script( php file) from jQuery in every
second.Since, there was no built-in mechanism for this in jQuery, I came up with this solution of displaying time of server using Ajax, PHP and jQuery.
How to make accordion using jquery and css 2008-03-30 06:07:57 Last time I’ve written an article about how to make expand-collapse toggle pane using jQuery. Now, this time I’ll show you how to make accordion using jQuery.An accordion is a toggle pane where one pane slides down the other pane slides up.
This blog’s Code and content is stolen - Please help 2008-03-28 12:52:49 Hello everyone, I’m here to ask help from you. I’m here in Nepal and can’t do anything from here. But, I think in this matter you guyz can help me about content stolen
over ajaxprojects.com.
Read more:Please
Tips to create rounded corner textbox using css 2008-04-01 12:27:24 In this post, I’ll explain to you how to make the rounded corner
textbox using a image and css. Text box is placed over a container element whose background image is the key of the rounded corner textbox.
Read more:create
Display random number in random way using JavaScript 2008-04-03 10:25:04 I think you guys already know about how to get the random number using JavaScript
, if you don’t know then you can use Math.random() to display a random no ranging from 0 to 1. It would have been better if we display the random number in the random way using JavaScript. Ok, Let’s do it..
Read more:Display
How to check and enable mod_rewrite module in apache 2008-04-07 00:42:14 Well, I’ve got around 15 emails asking from readers, how to check the mod_rewrite module in apache and enable mod_rewrite module in apache after reading two most of the popular post of this blog 5 useful url rewriting examples and hide .php extension with url rewriting.
Hide actual url in address-bar using iframe 2008-04-09 11:38:49 Do you want to hide the actual URL in the address-bar? Do you want to display the same url throughout the website? Then here is the tips for you do the same in your website. Just display the same URL i.e throughout your website in address bar, no matter if you in the page [...]
Blink and bounce effect on image or object using jquery 2008-04-11 11:56:51 var dzone_style="2";
Yesterday, Sushil asked me how can we bounce and blink an image or div using jQuery.In this post, I”ll show you how you can add bounce or blink effect
to an image or div using jQuery.
Read more:Blink
Solving time difference between hosting server and local timezone in PHP 2008-04-14 07:01:07 I think this is one of the common problem you’ll face while you’re working for the website of a particular country and web server
is located in another different country. If client have the dedicated server then you won’t face this problem. But if you just own a single account of that server then you’ll [...]
Read more:difference
, hosting server
Textbox to accept only numbers (digits) using jquery 2008-04-16 12:33:41 var dzone_style="2";Few days back, my friend Parleen asked me how can we make a textbox which just accepts only numbers specially digits only. And, for his I come up with this solution of textbox which only accepts digits, and if you try to enter any alpha bates in it then it displays the error message [...]
Direct advertising on roshanbh.com.np 2008-04-18 23:54:56 This blog is getting a decent number of visitors and this might be a good opportunity for the advertisers who want to promote their service, product or website about web development. This blog might be a doorway for you.
Read More »
Read more:Direct
Direct advertising on roshanbh.com.np 2008-04-18 23:54:56 This blog is getting a decent number of visitors and this might be a good opportunity for the advertisers who want to promote their service, product or website about web development. This blog might be a doorway for you.
View Pricing Detail » Read more:Direct
Change default directory page using .htaccess 2008-04-21 10:27:16 I know you guzy all know about index file. This is the default file which is executed in the web server. For example, if you type”” in this the browser, the “index.php” gets loaded first. This “index.php” file is commonly know as directory index file.
Basically , the default executed file in the web directory starts [...] Read more:Change
, htaccess
Ajax login validation in PHP using jQuery’s fading effect 2008-04-24 05:57:04 Last time, I’ve showed you how to check user availability in Ajax using jQuery’s fading effect
. But I’ve just shown the example without connecting the database and some people have faced problem with database connecting solution of that problem.In this post, I’ll show you how to use Ajax login validation in php using jQuery and [...]
How to know and handle disabled javascript in browser 2008-04-27 06:22:31 var dzone_style="2";In this blog, I’ve been writing a lot of tips and tutorials using JavaScript. I really love JavaScript and hope that you guyz also like it. But what to do when JavaScript is disabled in the client’s browser
?. I would like to redirect the visitor to a warning page where he’ll be suggested to [...]
Google’s Latest PR Update - I’m winner this time 2008-04-29 04:41:53 Last time, I was was really disappointed by the google’s PR update. I was really unknown about some google’s terms and this blog have lost the PR and it went to zero. And believe me, this blog is lame without the traffic of google as it gets more visitor from search engine than the [...] Read more:Google
, Update
, winner
Upgrade your wordpress - easily and quickly 2008-05-01 00:54:48 Hello bloggers mates….well it might be little bit late for alerting you but I think you should upgrade your Wordpress blog if you’re using the old version of it. There are a lot of security flaw in the previous versions.Furthermore, if you search in google with the keyword “My blog hacked” and you’ll get around [...] Read more:quickly
How to redirect browser to https (ssl) in php 2008-05-02 07:12:17 Most of the e-commerce website uses payment gateway for online payment. And, those sites uses SSL (secure socket layer) connection to trasafer data to and from the payment gateway.
In the common scenario, most of the sites uses “http” protocal and you can see “http” in the browser
’s address bar. But in the above scenario,we [...]
Understanding and Validating Integers in PHP 2008-05-04 14:20:03 I’ve found many of my friends struggling with the validation of integers i.e. the numbers with only digits in PHP. Some of them were wondering why is_int() or is_integer() functions of PHP sometimes works and sometimes won’t.
If you become clear with the concept of integer and string in PHP then you’ll obviously come to know [...] Read more:Understanding
Promote your website in web directory 2008-05-07 04:12:31 You guys all know that this time I’ve got PR-5 from Google in the latest PR update. PR is basically a measure of the link popularity of your website
and It’s always good to have your website listed in the web directory for the better page-rank.
Today, I’ve come around a web directory called It [...] Read more:Promote
Animated content navigation effect using jquery 2008-05-08 01:58:20 var dzone_style="2";I always get bored with the same stuffs. And, I see same kind of content navigation to the different websites. Click a link, let’s the whole web page gets loaded and new page gets displayed. It would be better to show another content in the same page with few animation without loading the whole [...] Read more:effect
Date format validation in PHP 2008-05-11 06:20:19 Today Sushil asked me how can we validate the date which is entered from textbox in “YYYY-MM-DD” format
. Well, we can validate the format of the date using regular expression but how to validate weather that date is valid date or not, such as “2007-02-29″ is the correct format of the date but it’s not [...]