Showing posts with label Tips. Show all posts
Showing posts with label Tips. Show all posts

How To Open PDFs in a New Window with JavaScript

Introduction

Opening documents such as PDFs in a new window should be automated using JavaScript for the following reasons:
1. Users will often close the web browser when a PDF is opened, mistakenly believing the document has been opened in Adobe Reader
2. The attribute historically used to open a new window, target, has been removed from the HTML 4.01 Strict specification (it's now deprecated)
3. Opening a new window is a behaviour and should be moved to the behavioural layer1.

Using JavaScript can also be particularly useful when a website is content managed. Rather than having to rely on site editors to remember to open a link to a PDF in a new window the process is handled by a simple JavaScript function.

Continue Reading

Ajax Design Approach

Ajax Design Approach

Creating Ajax based software and websites takes sometime in planning alone. Right from the start, you have to choose which approach or technique you have to follow to ensure the design is created on time and as expected. Here are some of the known designs:

1. The DIY Approach – when you’re planning something simple for a small business or a simple Ajax add-on to your website, this approach is perfect for you. Ajax is actually a collection of languages being put together so you can build the program yourself. If you are an expert with JavaScript, XML and HTTP, you can easily create a program yourself. The advantages if this is that you’ll have full control of your created program however, you have to think twice about this approach when you are created a very complicated program. There are tools for checking but coding alone will take some time if everything has to be coded manually.

Continue Reading

Things You Need to Know about Ajax

Things You Need to Know about Ajax

Whether you’re a developer a business owner or just anyone who’s interested in the development in Ajax, here are some things you need to know before you need to go forward. There are so many things that have been said and done about Ajax but if you want to start, here are some things you have to know.

1. Browser based Ajax is a lot harder than you think – I’ve see a lot of programs that are web-based and the start-ups are always the ones that are slowest. There are so many reasons why are they very slow, but they can be traced to the fact that they are doing so much about the program, the browser couldn’t easily handle it. If you’re interested in creating an Ajax based program, be prepared to take it very slow. Simple JavaScript should always be considered and give it a little bit of colorful deviation through HTML. One great sample? Google’s Gmail.

Continue Reading

Where Ajax will Fail???

Ajax is still going strong and the hype will never go down unless a new and a better technique is coming up. So far, what we have seen are variation of Ajax – FJAX, AHAX and SAJAX. Although they are innovation by themselves, we cannot help but thinking that these innovations happened because of Ajax. We just have to wait a little bit for the next big thing.

For now we have to work a little bit better for Ajax’s development. In this state, the developers still has a lot of things to understand to build a highly efficient Ajax based website. There are so many pitfalls in Ajax and one flaw will mean an unsecured website open for all hackers to exploit.

Here are some of the things that could be left out which will endanger your website:

Continue Reading The Tutorial

MySQL Database Backup and Recovery Tips!!!!

Tip #1
Making Backups by Copying Files

Tip #2
To make an SQL-level backup of a table's contents, you can use SELECT * INTO OUTFILE 'file_name' FROM tbl_name. The file is created on the MySQL server host, not the client host. For this statement, the output file cannot already exist because allowing files to be overwritten would constitute a security risk

Tip #3
Another technique for backing up a database is to use the mysqldump program or the mysqlhotcopy script. mysqldump is more general because it can back up all kinds of files. mysqlhotcopy works only with some storage engines.

Tip #4
Backing Up Replication Slaves

These are some of the simple ways how we can take backup from MySQL database.

Continue Reading the Tutorial Here