html

stripping all attributes from an html tag using regex

Hi, I've been trying to formulate a regular expression to remove any attributes that may be present in html tags but I'm having trouble doing this and Google doesn't seem to provide any answers either. Basically my input string looks something like <p style="font-family:Arial;" class="x" onclick="doWhatever();">this text</p> <img st...

Best Practices & Considerations when writing HTML Emails

I've been developing websites for over a decade now, but quickly found that many of my habits in developing for the web are useless when developing for email clients. This has caused me an enormous amount of frustration, so I thought I would ask a question that would hopefully surface the best practices and necessary considerations for o...

How to access and browse a network share via browser using javascript?

I'm helping a colleague to code an html page that has to display contents (documents) of a local network share. Html page will not be served by any web server, it will be just a plain html page served by file system. Does anyone know some javascript libraries that let users browse the share, listing files and folders? thanks Michel...

IE not selecting form field when label is clicked an form field is hidden

I am using jQuery to hide form fields (I am manipulating checkboxes and radio buttons). In FF and Chrome, when I click the associated label, the form field still activates and checks. In IE, that does not happen. How can I have the label activate the checkboxes/radio buttons in IE? ...

IE remove colors for web page when printing.

HI, I have a website with background colours which are important at the time of printing, but IE removes all colours from page. I know there is some settings to disable this on IE, but I can not rely on users to get into IE settings to disable this option from IE. Is there any way to disable this from my web page, or some way arround? ...

Alternative to an Ajax upload form nested in another form

I have an HTML form to edit the details of a person in a database system I have at my place of work. Part of the form allows the user to upload a picture of the person. However, this is giving me trouble, because I'm trying to make the form more Ajax-y by letting the user upload the picture and see it successfully uploaded before they su...

Question about including html page in PHP

Hi, If I include an HTML page on a PHP page (say, index.php) with the following: <?php include ("../../forms/login/form.html"); ?> Then will form.php show up correctly in index.php? When I say correctly, I mean with all of its images and CSS. The reason I am asking is because that's not the case with me. I tried it out, and it will...

center an element?

if i've got a line of links like: <a>foobar</a><a>foobar</a><a>foobar</a><a id="center">foobar</a><a>foobar</a> but one of them got an id="center", could i with javascript or css position it in the center? ...

Spam Prevention/Reduction - Contact Form ?

Hi I want to add a simple Contact form to my web site so that customers can contact me easily. <form> NAME <input type='text' name='name' /> EMAIL <input type='text' name='email' /> MESSAGE <textarea name='message' /> <input type='submit' /> </form> This form would simply email me the customers message. B...

Add an image element to a td using vbscript

Does anyone know how to add an Image on a td element using vbscript? I need to add a "img" element, not a background image, and it has to be vbscript. <script type="text/vbscript"> function onload() '//Add Image to td1 end function <script> <table> <tr> <td id="td1"></td> </tr> </table> Can anybody help me? Thanks in advance. ...

Biztalk Server 2006 HTML Email with inline images

Dear all I m quite new in Biztalk Server 2006 and I have a problem regarding sending HTML Email with inline images. What I have do so far is sending HTML emails (or text emails) in BizTalk without embedded images which works. Could somebody help me with this? Thank you very much for your efforts! Br, Toan ...

Are there any performance issues in having a large number of script tags in your html?

Are there any issues in having a large number (say 50) of script tags in an html file. Does it cause any performance issues in page rendering times? I have a section on my page that's pulling a geolocation point and putting this into an array for use on a google map. I could create a separate query for just the geolocation points but ...

Text style affecting the whole site

I've got an input so the user can type either html or plain text. When the user copy & paste text from MS Word, for example, it generates a weird html. Then, when you view that topic, you can see the whole page's style is affected. I don't really know if the generated html has unclosed tags or something, but it looks like it does and thu...

Why does Amazon.com have <!-- MEOW --> at the end of their landing page?

Why does Amazon.com have <!-- MEOW --> at the end of their landing page? I have heard that it is just some text that some sort of script or component looks for to tell if the entire page was rendered. Does anyone know if this is true, and if so, is it a good (or common) website monitoring practice? ...

How can I "pre-fill" the value of a textarea in an HTML form?

I'm creating a simple back-end app through which the user can create/update/delete database rows (in this case, job listings). When it comes time for the user to edit an existing listing, I'm trying to pre-fill most of the HTML form with the data from that existing row. I've done this sucessfully for text inputs using the "value" proper...

IE6 is rendering a period.. totally randomly. This period does not show in any other browsers. HELP!

I just previewed my page in IE6 and for some reason it is rendering a period for absolutely not reason. I looked in my html to make sure I didnt add an extra period on accident or something and was unable to find ANYthing. http://cypresslakesfla.com/models-new.php Take a look, make sure you have IE6 tester and you will see. Anyone se...

Loading remote JavaScript file in a page

I've a simple page in which in the head I load several remote JavaScript files (I need them and can't have a local copy). The scripts I load are similar to these: <script type="text/javascript" src="http://mymachine/donald/script1.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://mymachine/donald/script2.js"&gt;&lt;/scr...

Textbox with drop down list behaviour using CSS/JavaScript

I'm trying to create a uniform style for a small web form. The problem is that the dropdown list seems to be pretty impossible to style as needed - the browser scroll options etc coming from the OS seemingly. The solution I can see is to manipulate a combobox implementation so that I can use a text box, with the selections managed thr...

Css positioning problems.

I'm trying to make this jquery drop down bar be on top at all time. I'm running into trouble on a specific page that is using jquery innerfade here: http://ithacacigars.com/cigars.php For some reason is slips behind the images. <?php include('perch/runtime.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3...

How has SoundCloud done that?

Their UI is pure HTML, CSS and JS, so how they're playing the audio? Involving a hidden flash player? ...