html

Possible to clear cache of browser with php code?

I have a image upload tool written in php. Users may chose a file, and it gets uploaded with a certain filename, then if the user regrets chosing that file they may click the file-input and upload another file instead, BUT THE FILENAME IS THE SAME, so the browser caches the first image uploaded. And instead of the second image the brows...

.Net RTF(or)HTML to Image

In .Net (C#) server process, i want to generate image with lot of rich text (with paragraphs, font style, etc.. ). The richtext can be described using RTF or HTML. Is there any way to convert RTF/HTML to a image ? Since it is a server process, i want to avoid windows forms controls. ...

Check if Radio Button Value checked

<tr> <td align="left"> <input type="radio" name="radio_1" value="1" />Public <input type="radio" name="radio_1" value="2" />Not Public <input type="radio" name="radio_1" value="3" />Confidential </td> </tr> <tr> <td align="left"> <input type="radio" name="radio_2" value="1" />Public <...

HTML/JS Debugger

We are searching for an HTML/JS debugger specifically suited for IE that can handle popup windows as well. We tested Firebug Lite which is good but it has its restrictions when compared to Firebug. We also tried IE Companion but there are some problems when it comes to in-place editing and popups. Do you recommend a good debugger? ...

Collapsible table in jQuery

I'm attempting to make a table that has header rows that can be collapsed and expanded by using jQuery. Here is the entirety of my code thus far: <html> <head> <script type="text/javascript" src="jquery.js...

div float to the right beside a centered div?

ive got one 4 links. i want them all in the same row. two of them in the center, and the other two in the right. ive wrapped them two and two, but i cant get it to work. my css looks like this: #links_center { } #links_right { float: right; } but it doesnt work. the right links are under the first two links. could someone help ...

Does anyone get tired of calculating the total pixels of a div? (width+margin+padding+border)

Does anyone get tired of calculating the total pixels of a div? Lets say you have 2 divs with width which fit perfectly in a parent div. changing only width, margin, padding, or border will mean that you have to calculate the div's pixels again. Is there a better way of using width, padding and margin? It's a good option to have a outer ...

Curve endged of div tags using Html and css

Is it possible to bring curve edges to divs using html and css only...without using images. ...

Best practice for preventing saving malicious client script in HTML

We have an ASP.NET custom control that lets users enter HTML (similar to a Rich text box). We noticed that a user can potentially inject malicious client scripts within the <script> tag in the HTML view. I can validate HTML code on save to ensure that I remove any <script> elements. Is this all I need to do? Are all other tags other th...

How do I display HTML or XML in an HTML document unrendered?

I need to send XML/HTML in an HTML email so that it displays unrendered. I'm using ASP.NET. What is the approach I should take? ...

Does every html page with doctype need internet connection to render page properly?

many doctype use a url link like this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; and this dtd file is on live url http://www.w3.org/TR/html4/strict.dtd ...

Shortened HTML text and malformed tags

In my web application I intend to shorten a lengthy string of HTML formatted text if it is more than 300 characters long and then display the 300 characters and a Read More link on the page. The issue I came across is when the 300 character limit is reached inside an HTML tag, example: (look for HERE) <a hreHERE="somewhere">link</a> ...

What are best practices to order elements in <head>?

can use anything in any order? does placing of <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> is important before <title> this is most used, is it best way? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html lang="en"> <head> <meta http-equiv...

How to refresh a web page automatically every specified period of time

I am using asp.net to develop a website, and I want one of my web pages to refresh every 5 seconds when requested; how can I achieve that? ...

Internet Explorer 7 freezing when W3C valid CSS is added

My Ruby on Rails app is using LivePipe Modals. ( http://livepipe.net/ ) Everything has been fine until I added a "width: 800px;" property my CSS file. Now, IE7 freezes solid whenever I open a Modal. I have a div with the squeeze class wrapping the content of my page. div.squeeze { width: 800px; margin: auto; } If I take out ...

Swapping images using javascript.

I find myself learning web development. And I just started reading about javascript. As a language, i don't have any trouble with it, but i come across an annoying situation: I was just going to try my first javascript for a simple action: changing the src attribute of an <img>. So let's imagine i have this code in index.html: <html> ...

HTML Form Building / Django request.POST help

I'm not sure if I'm just form building impaired or not thinking about this the right way. I'm attempting to build a form similar to Gmail's 'compose' form that has an AJAX image uploader. I have a portion of code that uploads the image and returns an image ID working fine. Once I receive the image ID back I've tried appending it to my...

Space bar not working in form fields

I am using a template to build a one page portfolio site. The contact form is acting very strange! I cannot enter space in any of the contact fields. Here is the site: www.cloth2clay.com When you focus in on the message field, it does not allow you to use any spaces. Any ideas? ...

identical contact forms behaving differently on different hosting accounts

I've never experienced this problem. I have two hosting accounts, one with godaddy, and one with hostgator. There are identical files on these two URLS: http://www.cloth2clay.com and http://www.vitaminjdesign.com/cloth/cloths/ Both websites look the same, but there is one major difference. When filling out the contact form on the sec...

How to permit HTML to break at specified points?

I know about non-breaking spaces but I've got the opposite problem and Google doesn't even find anyone else asking the question. I have a piece of text: <option A>/<option B>/<option C> (the number of options is variable) that I want to break only at the slashes. Keeping it from breaking elsewhere is trivial--replace the spaces with n...