BOMBOLOM.COM

(webdev) Horizontal Scrolling

Posted by José Lopes.

When you have an area in a HTML file with information (tables, images, etc) where you want to set a specific height and width some questions about the scrolling bars my appear.

You will find plenty of information about automatic scrolling, meaning that you get horizontal and vertical scrolling bars, and about setting only the vertical scrolling bar, however, it may be difficult to find about setting as visible only the horizontal scrolling bar.

This post shows you how to do that.

2008.01.21 | There's more... | Comments 0 | Tags ,

(webdev) Redirect a web page with PHP

Posted by José Lopes.

Imagine that you have somewhere in your site a quantity of files, with similar information, named after some convention name (like 1000, 1001, etc). Its nice to provide a form where the users my access the files by type the convention name.

A possible solution is to create a form that uses PHP to re-direct the users to the correct file. Using this without any javascript assures that you won't have navigation problems due to javascript not activated.

This post shows how to use a form and PHP to re-direct your users to an existing file (HTML, PDF, etc), based on the value passed on the form.

2008.01.20 | There's more... | Comments 0 | Tags ,

(webdev) Print a page automatically

Posted by José Lopes.

This post shows how to create a HTML page that automatically opens the print box and waits to be printed.

2007.12.17 | There's more... | Comments 0 | Tags , ,

(webdev) Close current window

Posted by José Lopes.

To add a link to close the current visible window, just use:

<a href="JavaScript:window.close()">Close</a>

This comes in handy on popup windows, and of course you can put inside the link tags whatever you want (images, etc).

2007.12.17 | There's more... | Comments 0 | Tags , ,

(webdev) IE 'position: fixed' bug

Posted by José Lopes.

The expression 'position: fixed' in CSS defines that the class or instance that has it will have a fixed position on screen and will not move with scrolling the page.

once again, Bug in IE that doesn't recognizes this propriety. You may find references to this Bug on the web says it doesn't appears on Mac/IE and IE7 in strict mode (this mode is not default neither I want to know where to change it).

Personaly, I find complicated to ask a visitor to change his IE proprieties just to see my page, so I started looking for a solution without javascript, so much used to solve IE bugs. I found one that I share here.

2007.10.29 | There's more... | Comments 0 | Tags ,

Made with PyBlosxom | Add to Google