html

How can i set images or html links in gmail signature ?

How can i set images or html links in gmail signature ? any clues on this ...

Styling <BR> to have margins like <P>

I want to style my <BR> elements to have margins more like <P> elements. How can I do that? ...

cleanup newlines in responseText

I found the following code in one of the pages I have to maintain; document.getElementById('dummy').innerHTML = httpRequest.responseText; return document.getElementById('dummy').innerHTML; expecting it to do nothing, I replaced it with return httpRequest.responseText; but then the script choked on the input. It turned out that ther...

Auto refresh parent window after closing popup

Hello All, I am having 2 pop up screens in my (Main) jsp. In the first pop-up the user will update the required information(Update) and after submitting the info, a new pop up will be shown that shows the modifications(View). I would like to refresh the (Main ) page when the user clicks on the close "X" in the view page. I tried to ...

Link is not clickable in IE7

Hi all, I have some basic hyperlinks (they're tags dynamically generated by Wordpress). Here's the code that generates them: <p><?php the_tags('Tags: ', ', ', '<br />'); ?></p> Everything works in all modern browsers (including IE8). However, in IE7, it looks the same, the link is THERE, with all of the properties EXCEPT the hyperli...

Changing the URL without reloading the page

Hi, I would like to know if its possible to change the contents of the URL in the browser without reloading the page. I use jQuery and Ajax to load new parts of my page. When I choose product one, the direct link would be "mysite.com/product1" and product two "mysite.com/product2", but I don't want to reload the site to these pages. Be...

How come my <textarea> is not centered when it parents are centered with 'margin: 0 auto' ?

For some reason my textarea DIV is not inheriting margin: 0 auto from its parent: * { padding: 0; margin: 0 auto; } Here is a link to my CSS & HTML for this example How can I make it so that the textarea DIV actually gets centered? ...

how to communicate HTTP authentication with jquery to authenticate login system?

I am trying to bring up the HTTP authentication box for handling my login. However, I want to communicate to my database through Ajax. But I dont know how to connect the HTTP authentication box with AJAX. Any Idea, how to do this? Please also include example ...

button image as form input submit button?

<form method="post" action="confirm_login_credentials.php"> <table> <tr> <td>User ID:</td> <td><input type="text" id="uid"></td> </tr> <tr> <td>Password:</td> <td><input type="text" id="pass"></td> </tr> <tr> <td colspan="2" align="rig...

how to fix the size of password input field?

my html code is <tr> <td>User ID:</td> <td><input type="text" id="uid" size="20"></td> </tr> <tr> <td>Password:</td> <td><input type="password" id="pass" size="20"></td> </tr> <tr> but the problem is, password textbox length...

text selection in ipad html

I have a div with text inside of it. I want the text to be selectable (for copy/paste) on the iPad. At the same time I want to be able to handle an onclick event. This seems not to go well together. As soon the div is clickable it is not selectable. Does anybody know a way around this? <html> <head> <script> function run() { ...

<pre> in fieldset doesn't respect the "overflow: auto" directive

This is a test case: <!doctype html> <html> <body> <div style="margin: 0 auto; width: 950px; overflow: hidden;"> <div style="float: left; width: 660px"> <form><fieldset> <pre style="overflow: auto">Test test test Test test test Test test test Test test test Test test test Test test test Test test test...

How do modern web-apps/sites do postbacks? javascript/ajax, <form> or X?

Hey all. I've tried to Google and research this, but without luck. I am curious to know how "modern" web-apps/sites do postbacks, meaning when they are sending back user-input to the site be processed. Do modern sites still use the old fashion <form>-tags or do they use some sort of javascript/ajax implementation? or is there even a t...

how to overlap a image on a div?

I want to place a small circular login image on the border of div such that half image will be outside the border line just for style purpose?I think I have to set z-index but how OR is there any better way? ...

How to run a html file from php?

I am trying to figure out how we can run a html file within a php script. ...

trying to understand <div> element

<style> div#float { text-align: center; float: left; width: 150px; height: 150px; border: 1px solid blue; background: gold; } div.content { background: yellow; border: 1px solid purple; height: 150px; } </style> <div id='float'> Float text. </div> ...

Download HTTP thru sockets (C)

Hi, Recently I started taking this guide to get myself started on downloading files from the internet. I read it and came up with the following code to download the HTTP body of a website. The only problem is, it's not working. The code stops when calling the recv() call. It does not crash, it just keeps on running. Is this my fault? Am ...

Inserting multiple tick boxes into one database field

Hi guys, as the question says, I am trying to insert one or more tick box values into one database field, preferably in a comma delimited format. So if the user chooses tick box one and tick box two, the input into the database will be inserted as tickOne, tickTwo, etc etc How could I go about doing that? Maybe using jQuery or Javascri...

Combining static HTML, a Django backend and a PHP forum on one server?

I have a project coming up for client who is basically happy with how he manages his website. It's lots of HTML files (around 300 of them) that he insists on keeping flat HTML files so can easily edit and manage them using Dreamweaver. His site has a lot of traffic and so I'm looking into options of keeping things simple for him. He does...

HTML5 Drag and Drop API on Touch Screen Devices

I was just wondering if the HTML5 API for Drag and Drop included support for touch screen displays. I was thinking of iPhone, but I know this isn't supported yet. I was wondering if that is just catching up on the part of Apple, to support HTML5 drag and drop on Safari mobile, but I also was thinking maybe the HTML5 API wasn't powerful...