Archive for: 2013

Scale website into iframe. HTML

Jun 21 2013 Published by under HTML&CSS, Tricks

Website thumbnail/iframe scale integration into another website.

Building a modern website directory requires besides of each website description integration of its thumbnail/scaled iframe.

1. One of the best thumbnail solutions is phantom JS project with its screen capture ability.
The only requirement to this project is a dedicated server with ssh root access.

2. The CSS3+HTML iframe scaling solution

<style>
#scaled{
    width: 448px; /* scaled website screen width */
    height: 358px; /* scaled website screen height */
    padding: 0;
    overflow: hidden;
}
 
#scframe{
  width: 1280px; /* website screen width */
  height: 1024px; /* Website screen height */
  border: 0;
  /* iframe zoom out. Cross browser solution. Full size - 1.0; Half size - 0.5 */
  -ms-zoom: 0.35;
  -transform: scale(0.35);
  -moz-transform: scale(0.35);
  -moz-transform-origin: 0 0;
  -o-transform: scale(0.35);
  -o-transform-origin: 0 0;
  -webkit-transform: scale(0.35);
  -webkit-transform-origin: 0 0;
}
</style>
<p>Content before iframe</p>
 
<div id="scaled">
  <iframe id="scframe" src="http://yahoo.com"></iframe>
</div>
 
<p>Content after iframe</p>

3. Just to mention JavaScript+HTML iframe website re-size by squeezeFrame.js and Wookmark jQuery website integration and resize. jQuery solution can be integrated into any container.

One response so far

Characters Countdown Counter. JavaScript.

May 31 2013 Published by under jQuery & JavaScript

Every script we work on, include text forms with characters counter and limit.

The basic requirements to this program are:

  • Pure JavaScript, no frameworks.
  • As simple as possible.
  • Count text field characters.
  • Display characters count in a separate field.
  • Stop counting on getting to 0 (zero).
  • Limit new characters input on getting to 0 (zero)

Continue Reading »

One response so far

Pagination Class. PHP

May 14 2013 Published by under PHP & MySQL

Pagination is frequently used on displaying large lists that are too big to be displayed on a single page.

As a solution of displaying large lists is

  • Splitting the list into small portions.
  • Displaying one list portion per page.
  • Setting up a menu with possibility to navigate between pages.

Pagination menu coding is a time consuming job.

Continue Reading »

No responses yet

Copy to Clipboard. Javascript. Cross Browser Solution.

Apr 16 2013 Published by under jQuery & JavaScript

Doing front end coding job, some time ago appeared a interesting problem.

How to facilitate our web service utilization by adding a Copy to Clipboard Button.

The Copy to Clipboard feature appears to be very helpful for website users, as they usually don’t know how to copy content, or don’t think they need a content copy (the copy button is just a hook that makes them click copy button), or they have to run same copy to cllipboard operation multiple times on the same page and one click copy button would save them their time and efforts…

Continue Reading »

17 responses so far

Anonymous Internet Browsing. Myth or Reality.

Apr 05 2013 Published by under Misc, Tricks

We hear here and there Keep your information private, use proxy servers and you will never be detected.

 

A series of questions appear around “proxy mystery”:

  • Is information about your IP address hidden.
  • Is information about your browser hidden.
  • Is information about your computer hidden.

 

If you can easily hide information, can you simulate another user or another browser by changing the IP addresses and browser headers:

  • Can you change the IP address.
  • Can you simulate a browser.
  • Can you simulate a real visitor using proxy servers.

Continue Reading »

No responses yet

Characters Count. jQuery. Count Up, Count Down, Character Limit

Mar 28 2013 Published by under jQuery & JavaScript

Overwhelming majority of websites use forms for different purposes. Most forms use text fields or textareas. Many forms require characters counting or data limitations by the number of characters.
Characters are usually counted after form submission by the data processing languages, but along with internet development friendly interfaces became a must.

Submitting a form with character limitations user would like to know when the limit is reached before data is submitted.

As an appropriate language for creating friendly interfaces, character counting and data limitations is JavaScript and the most popular JavaScript library – jQuery.

Continue Reading »

One response so far

PHPMyAdmin Custom Columns Export

Mar 18 2013 Published by under PHP & MySQL

How to export one column of the same table, multiple columns (but not all) of the same table, multiple combined columns from different tables, just some data of mysql search result.

Continue Reading »

No responses yet

jQuery check/uncheck checkbox

Mar 12 2013 Published by under jQuery & JavaScript

Using groups of checkboxes in modern web programs is not a rare thing.
Groups of checkboxes are frequently used on group actions like selecting multiple options from a list then doing a operation over the selected list.
Check/uncheck operation is pretty simple over a small group of options: like selecting 3 checkboxes out of 3. But what if there is necessary to select between 50 or even more options? what if it is necessary to select all 50 checkboxes?

To make life easier we can use jQuery to solve this.

Continue Reading »

No responses yet

Merge MySQL Database Tables

Mar 03 2013 Published by under PHP & MySQL

In a script I administrate mystically disappeared part of data. Since php script is zend encrypted it is difficult to find out why data were lost, but anther problem is restoring data.

Continue Reading »

No responses yet

MySQL Generate Random String, Email Address, URL

Feb 27 2013 Published by under PHP & MySQL

Testing functionality of a php program you will need a populated mysql database.

MySQL database is possible to populate without involving any third party scripting, by mysql own inbuilt functions.

Continue Reading »

No responses yet

Older posts »