html

html checkbox with an 'x' instead of the traditional tick

is it possible display a 'x' for an html checkbox when we click on it. Traditionally on ie, (on winxp and greater) it appears as a 'tick' mark. Can we change this? Or else what is the alternative to this in asp.net ...

multiple Perl ` print $cgi->header, <<HTML; .... HTML ` statement gives problem

i have something like: #!/usr/bin/perl use strict; use warnings; use CGI::Simple; use DBI; my $cgi = CGI::Simple->new; if ($cgi->param('selid')) { print $cgi->header, <<HTML; <br/>this is SELECT HTML } elsif ($cgi->param('delid')) { print $cgi->header, <<HTML; <b>this is DELETE</b> HTML } elsif ($cgi...

Count number of <li> tags in a <ul> on serverside using PHP

I have a < ul > with some < li >(s). I want to count the number of these < li>s on server side. And if this number qualifies a given condition then i would like to add some more < li> elements to this < ul>. Can someone please help me with this ? ...

Form resubmission issue-Django html

There is a form ,which is submitted and then the page is redirected to another page.But if the user hits the refresh button again on the new page .the following message is displayed To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. And on...

Printable Version of Google Visualizations DataTable

I have a custom routing application that takes information for a route from google maps. It then creates a Google Visualizations DataTable to hold all the steps in the route. My current problem is that in order to reduce overflow for very large routes, I have enabled paging in the options of the DataTable. This leads to a not so printer...

Make user download pdf instead of saving to a location

Hello!I was trying out the following code which actually saves the pdf file to C:/xampp/ I want to create a link so that when the user clicks on it. It prompts it to save the pdf file. <?php // create handle for new PDF document $pdf = pdf_new(); // open a file pdf_open_file($pdf, "try1.pdf"); // start a new page (A4) pdf_...

How To Create A Link For "save Image As" To Download an Image In Rails

I want to make a link download like this http://idwallpaper.com/download.php?image_id=1517 I have tried from other tutorial like this <script> function SaveFile(fname){ img.document.execCommand('saveas', null ,fname) } </script> <iframe id="img" src="myimage.jpg" width="(image width + 20)px" height="(image height + 25)px" scrolling=...

Faster image loading

I want to display about 5-8 images on my page, one by one, but I would like them to pre-load one and not loading them each time i switch to anohter image. I have seen some examples where they have all images (hidden) on the page something like: <a href=""><img id="img1" src="images/image1.png" class="image" alt="" /></a> <a href=""><i...

input type text and onKeyDown not working under IE

Hi there. I am writing a WWW application, it has to run under IE. I have the problem with the code that runs under FF, but i can't get it running under IE. // JS code function test() { if (window.event.keyCode == 13) window.location.assign("myPage.php"); } I've tried some similar ways around window.location and location.h...

How to keep form items selected after post request?

I have a simple html form. On php page. A simple list is placed on form. I submit this form (selected list items) to this page so it gives me page refresh. I want items which were POSTED to be selected after form was submited. For my form I use such code, And It works just fine, But is it optimal or you can suggest some optimization fo...

Printing contents of another page

In the following link <a href=\"#\" onclick=javascript:print(\"\") style=\"color:blue;\">Print</a>" <script> function print() { //How to print the contents of another page } ...

http transfer file from server to server

Hi, with html forms we can upload a file from a client to a server with enctype="multipart/form-data", input type="file" and so on. Is there a way to have a file already ON the server and transfer it to another server the same way? Thanks for hints. // WoW! This is the fastest question answering page i have ever seen!! ...

Problem with floating divs in IE8

I want to make two block stand side by side. In Opera, Chrome and Firefox I get the expected result with the code I use. But IE8 refuses to display it correctly. Here's IE8 screenshot: http://ipicture.ru/upload/100405/RCFnQI7yZo.png And Chrome screenshot (how it should look like): http://ipicture.ru/upload/100405/4x95HC33zK.png Here's m...

CSS challenge: Two background images, centered column with fixed with, min-height 100%

In a nutshell I need a CSS solution for the following requirements: Two vertically repeated background images, one aligned to the left, one aligned to the right One centered column on top with fixed width and a minimum height of 100% Cross browser compatibility A little more details Today a new requirement for my current web site p...

How do you do HTML form testing without real user input simulation ?

this question is like this one, except it's for PHP testing via browser. It's about testing your form input. Right now, i have a form on a single page. It has 12 input boxes. Every time i test the form, i have write those 12 input boxes in my browser. i know it's not a specific coding question. This question is more about how to do di...

main content wrapper div get's pushed down the page in IE

I have a 2 column layout, with the left side for navigation and the right side for the main content. The right side content has a wrapper div that looks like: <div id="content"> Now this looks fine in FF and GC, and it IE but if I change the padding to anything over 4px that section gets pushed down below the left navigation. #conte...

Sorting HTML table (with anchor tags and data in cells) in Python

I have a necessity to sort a given HTML table of the following structure, in Python. <table> <tr> <td><a href="#">ABCD</a></td> <td>A23BND</td> <td><a title="ABCD">345345</td> </tr> <tr> <td><a href="#">EFG</a></td> <td>Add4D</td> <td><a title="EFG">3432</td> </tr> <tr>...

Text over floated images

I need to put some text over a series of images in a gallery. I found many tutorials about the text part however the images need to be floated. Whenever I add float:left though the trick no longer works. My code (css inline for sack of brevity): <a href="/photos/photo1.php" title="photo1"> <span style="position: relative; width: 100%;">...

Preview an html page without opening it

On click a image how can another page be previewed in the same page without opening the actual page.And lets say the url /home/home.php?id=3 The preview should be in the preview div <img src="/home/app/img/toggle.gif" onlclick="show();" /> <div id="preview"></div> Thanks.. ...

Html generate data and print from another page

In the below code, in a.html there is this code as, <div id="tableview"></div>//Data loaded dynamically <input type="button" id="printbtn" onclick="print()"/> <script> function print() { var data=$('#tableview').html(); dataobj.print(); } In ...