Archive for the ‘tips and technique’ Category

Page 1 of 1212345...10...Last »

Model File upload overlay box using jQuery and Thickbox

Few times back, sNare asked me how do display wordpress like overlay box where you can pass the variables when you click on the link and manipulate simultaneous actions in the overlay until user choose to close it. Today, I've come up with the solution of this with model upload overlay box using thickbox, a jquery plugin. I've used the Iframe content of thickbox while displaying the box as modal box. Full story

Solving European characters (Western charset) problem with Ajax and PHP

Today, I would like to tell you how to handle character set problem which occurs during the data fetched from PHP using Ajax mainly on the western characters(European charset).Lots of people asked me about this problem where these European charset is displayed in unreadable format after fetching it from ajax. Full story

Solving Floating point number precision lost problem in PHP

The problem of precision lost in floating point number in PHP haunted me for about 10 minutes yesterday but I quickly figured out the problem and solved it as I was aware of this problem. But, I would like to post here it here so that many others PHP programmers, who are not aware with this kind of problem ,get solution easily and don't get stuck with it. Full story

Force download multiple files in a zip archive using PHP

In this post, I'll show you how can you download the multiples files in a zip archive using PHP. I've made a function in PHP where you've to pass the parameters the array of files to be zipped, the second parameter is file name as which zip archive file has to be downloaded and finally the path of files where files to be zipped are located.(assuming that they are all in same folder) Full story
Tags: ,

Handling array of HTML Form Elements in JavaScript and PHP

Today, I would like to share the way of handling array of HTML FORM elements using JavaScript and PHP.Well, it's very easy to get the data from the array of HTML form elements in PHP and using them but in JavaScript it's a bit tricky to handle the array of HTML form elements. I had a hard time to handle them via JavaScript in past thats why I'm posting it here so that people will not have hard time to cope with array of form elements in JavaScript and PHP. Full story
Page 1 of 1212345...10...Last »
Copyright © 2014 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.