html

Using C# regular expressions to remove HTML tags

How do I use C# regular expression to replace/remove all HTML tags, including the angle brackets? Can someone please help me with the code? ...

Javascript XML parsing or alternative

I'm building a Javascript preview function for a blog back-end (much like the one used on this website), and I'd like to be able to parse some custom tags that normally get parsed by PHP. I am wondering if it's possible to use the JS XML parser to parse content from a textarea that would look like: <img=1> Use for <url=http://apwit.com...

CSS for a mail inbox

I'm completely new to CSS. But I'm writing a mail inbox where it's just like your typical e-mail inbox which contains 3 columns for From, Subject, Received. Can I get some basic CSS for formatting this data correctly (alignment, columning, etc.) from which I can build upon. Any cool interesting designs are also welcome. ...

Repopulating Table Driven Drop Down

Scenario: A user fills out my JSP form by selecting his/her state from a drop down list. (The drop down list is populated from a database) The user hits "Next" on my form to go to the next page. The user goes back to the previous page by hitting "Back" on my form. Problem: The State field does not repopulate with what the user selec...

How to make "text-overflow: ellipsis" for both "float:left" and "float:right" div?

I have a web design requirement to have a header like this: +-------------------------------------------------------------+ | +---------------------+ +-------++------------------------+| | | float left DIV A | | DIV C || float right DIV B || | +---------------------+ +-------++------------------------+| +---------------------...

Ways to increase performance when set big value to innerHTML

I'm trying to set a huge (200K) response to innerhtml of a node. The goal is to get better time than 2.7 sec in internet explorer 6. Any ideas?, Thanks ...

Auto-complete a HTML form using a C# program.

I want to write a C# program (for purely educational purposes) that would auto-complete a HTML form which resides at a specified URL. The thing is I don't know if that's possible or how can I get started? I thought of downloading the HTML, parsing it for the form's elements' names and then make a GET on that URL with the necessary parame...

What is a multipart HTTP POST and how to make it? (scribd)

Hi. I'm trying to upload a file to scribd. It says: "The contents of the file to upload. This needs to be expressed as part of a multi-part HTTP POST".. Anyone know what they mean about this? It should look something like this: http://api.scribd.com/api?method=docs.upload&amp;file=THE MULTIPART-HTTP-POST&api_key=API-KEY ? Thank a lot,...

Why this "clear: both" Doesn't Prevent Wrapping?

I suppose a DIV with "clear:both" style can make its parent containing DIV doesn't wrap, but below HTML seems not work in that way. If the browser window is narrow, the second DIV "OK OK" still wraps to next line. <div style="overflow: hidden;"> <div style="float: left; overflow: hidden; white-space: nowrap"> ...

How to center align a pre tag in HTML

I'm trying to post some code on a blog using the pre tag. Something like this: void function(){return 0;} Now I want all this code to be center aligned. I'm not talking just about the text but also about the border around it. The width is set currently to 60%. So I want all of this to be center aligned. Is there a way to do it? ...

Javascript won't run on php page

I have a php page and i have some javascript code to have a running total of some fields. i pretty well copied from a working test that i had and modified the code some to fit. well it doesn't work and i can't seem to work. is there something blatently obvious i'm missing or is there some other reason why it's not running? <?php /...

Ruby regex to remove newlines from specifc HTML tag?

Hi everyone, Sorry I'm really bad at regexes, I finally hacked osmething to work in ruby. I'd appreciate if someone can instruct the proper way of how to do this: I basically wanted to remove all \n when it appears within ul tags. while body =~ /<ul>.*(\n+).*<\/ul>/m body =~ /<ul>(.+)<\/ul>/m body.gsub!( /<ul>(.+)<\/ul>/m, ...

Submitting data from textarea by hitting "Enter".

I have dynamic web page with JS. There is a textarea and a Send button, but no form tags. How do I make Submit button fire and the textarea get cleared when Enter is pressed in the textarea? ...

Dynamic loading of items in Google Reader

I've been using Google Reader and want to implement a similar technique to the way they "seem" to late load the content of each post. When you click on one of your subscriptions, you see a series of posts with a snippet and other information. When you click on a post, it expands to reveal the full body. I thought they were simply togglin...

Better PHP,MySql,HTML and JavaScript IDE

Hello guys, I am currently using the below IDE's. They serve their purposes but am wondering if there are better ones out there that i can switch to. phpDesigner v6.2.5 (For PHP) Navicat 8.0.29 (For MySql) Dreamweaver CS3 (For HTML & CSS) Spket IDE (For JavaScript) Thats my collection of production tools. Wondering if there is anyone ...

Need help to fix this HTML table

I am trying to make an HTML table like this: Name Price Original Value RED ALL 50 10 A 980 100 B 75 45 YELLOW ALL 500 ...

W3C Validating an HTML Page with & in URLs

I have a page in which users submit URLs, some of which contain &, = etc. Now if I want it to validate it with W3C I need to write it as & = etc. How can I automatically do this? Also, should I even bother? ...

Submit form via image

Is there any way that user submits the form using image instead of the form button while the request made is still the POST rather than GET? It seems that submitting form via image will result into the GET request. I do not want to post it in this manner as I will be posting the account credentials . For instance, I want to log in. Any h...

Jsp/ Html Page to Pdf

Hi all, How to convert as PDF from my Jsp/Html file?. i want to convert particular part of my webpage to pdf file. is it possible? Gnaniyar Zubair ...

How to extract image urls from HTML File in C#

Can anyone help me by explaining how to extract image urls from HTML File in C# ...