Postingan

Menampilkan postingan dari April, 2013

Printing Wide HTML Tables

I built a report using HTML table that had more than two dozen columns. In fact, it was a matrix report where the number of rows and columns could grow indefinitely. The report looked perfect on the screen. However, upon printing, the browsers would print only the left portion of the table while the portion which does not fit on the page horizontally is discarded. I was not able to find a solution so I made a half-hearted attempt at this. My "solution": Create a fixed width div with hidden overflow Place a copy of the table inside this div Scroll the desired portion of the table into view using CSS positioning Repeat as many times necessary Below is a jQuery-powered demonstration of this idea. The output ( PDF , XPS ) is not perfect; but I am sure it can be improved. View source Open in new window In case you are wondering, the "accepted" solution was to export the table data as a Microsoft Excel/OpenOffice Calc document which provides more pr

301 Redirect Your Old Blogger Blog to New Address

Gambar
Back in February I decided to change the address of my blog from 911-need-code-help.blogspot.com to salman-w.blogspot.com . Changing the blog address is straightforward; however, I wanted the following to happen after the change: Backlinks to the old blog should continue to work Visitors attempting to access the old blog should be redirected to the new blog automatically Search engine ranking for the old blog should be transferred to the new blog In short, I needed to redirect old URLs to new ones. Given that Blogger does not have an option to redirect URLs to another blog and mod-rewrite/server-side scripting is not available either; my only option was to use zero second meta refresh tag which is (claimed to be) treated as a 301/permanent redirect by Google. So, here is what I did: NOTE THAT THIS ARTICLE IS ABOUT MOVING FROM ONE BLOGSPOT.COM ADDRESS TO ANOTHER . If you are moving from Blogspot hosting to custom domain, you (probably) don't have to do anything speci

Widget Blogger untuk Menampilkan Daftar Posting Terbaru dalam Label-Label yang Spesifik

Gambar
Judulnya sangat panjang karena Saya sendiri tidak tahu harus memberi nama apa kepada widget ini. Pada intinya widget ini adalah widget recent post biasa, namun memiliki kemampuan untuk menggandakan diri agar bisa menampilkan daftar posting terbaru lebih dari satu buah berdasarkan label yang spesifik: Lihat Demo Pada awalnya Saya membuat widget ini agar bisa menampilkan posting-posting terbaru dari blog tunggal saja, namun mengingat ada juga beberapa blog yang suka menampilkan daftar posting dari blog lain, jadi sekarang widget ini tidak hanya berfungsi untuk menampilkan daftar posting dari satu feed blog, melainkan juga bisa menampilkan daftar posting dari feed blog Blogger yang lain. Pemasangan Widget Masuk ke halaman Tata Letak kemudian tambahkan sebuah widget HTML/JavaScript . Salin kode ini dan letakkan di dalam formulirnya: <link rel="stylesheet" type="text/css" scoped="scoped" href="https://cdn.statically.io/gh/gudangranda/shannenpio-jso