html

HTML forms: issues combining charset with enctype in Firefox

I have a Web site with a message board. The board lets people post messages and include attachments. I had a problem where my site was hiccuping every time someone wrote a post with non-Unicode characters. In an effort to solve it, I changed my HTML form code from enctype="multipart/form-data" (as I'm accepting file uploads) to: enct...

Update a gallery webpage via Dropbox?

I'd like to know if the following situation and scripts are at all possible: I'm looking to have a photo-gallery (Javascript) webpage that will display in order of the latest added to the Dropbox folder (PHP or Python?). That is, when someone adds a picture to the Dropbox folder, there is a script on the webpage that will check the D...

Should I care about HTML 5?

Should I care about HTML 5 for my web application ... and why? Or to put it another way, what are some of HTML5 new features that I should be aware of? ...

Find space at cursor in TEXTAREA

Is there anyway to check if the character at the cursor in TEXTAREA is a "space"? If it is, return TRUE. Let me know how to do this using jQuery. Thanks ...

Which is the better way of specifying HTML Fixed Column width (width or style attribute)

I would like to ask what is the better way of specifying HTML column width? the width attribute or the style attribute? Assuming I am using IE 6. Does IE render the width attribute better than style? By width attribute <table width="900"> <tr> <td width="450">A</td> <td colspan="2" width="450">B&C</td> </tr> ...

I Want to draw a hierarchial tree in a browser

I want to draw a hierarchial tree in a browser. I have used CSS and HTML and Javascript to play with some basic UI stuff in Browser. But I want to draw cool nodes and awesome connectors and come up with an aesthetic hierarchial tree (not Windows Explorer Folder tree). At this point the nodes in the tree will be like the flash-cards that...

Titled frame panel for GWT (using FIELDSET and LEGEND html tags)

I'm trying to create a titled border frame in GWT, which results in this: This can be done using HTML fieldset and legend tags, such as <fieldset> <legend>Connection parameters</legend> ... the rest ... </fieldset> I want to create a custom widget in GWT that implements that. I managed to do that, but the problem is that e...

Can I convert a dynamically created c# table to a html string ?

Can I convert a dynamically created c# table to an html string ? I mean like this; Table t = new Table(); TableRow tr = new TableRow(); TableCell td = new TableCell(); td.Text ="Some text... Istanbul"; tr.Cells.Add(td); t.Rows.Add(tr); t.ToString(); Response.Write(t.ToString()); } I wanna see in the page; <table> <tr> <td> Some tex...

drawing will not shown on webpage

i want draw a circle on my webpage so i have downloaded two different javascript for drawing a circle.one of js file is downloaded from http://jsdraw2d.jsfiction.com/ then i have use its function to draw circle but circle is not shown on html page i have try both internet explorer and mozilla firefox but niether it give error nor it wil...

multi-line text-input

Is it possible to create a multi-line text-input field? I need something that works as a textarea (with line-wrap) but without being able to 'return' to the next line. Or should i create a textarea and disable the enter-button? ...

Wrong .aspx page layout in Blackberry browser

Hi friends, I have designed the website in Asp.net with C#, Its working fine on the Firefox I want to run the same page on the Blackberry, but page is not opening properly in blackberry and also i did insert query on the same page which also not working on the page when opening on the blackberry. The page is displaying but is not f...

Image does not appear in Lotus Notes

Got lotus notes version 8.5. I need it to show html img properly. <a target='_blank' href='http://www.foo.com'alt="external-link"&gt;&lt;img class="document-url-image" src="http://foo.com/images/ico_globe.png" /></a> Any ideas why i got red box instead of image? Here's another one (with asp.net handler usage): <a href="http://re...

Having a Couple of Issues with Derobins's WMD

I've got a small issue with Derobin's implementation of WMD editor. It doesn't seem to be formatting properly and I'm not entirely sure why. Though I'm not sure if I should be asking this on Doctype or not either. I was using the markdown text examples from the SO reference, which of course should look like the below: Lists in a list...

insert into sql server data base from html controls

i have a <h1> that has a news title in it and i want to insert the content of this <h1> into sql server 2008 database how can i do this using c# ...

One massive CSS - or lots of little ones?

Simple question hopefully. We have a style sheet that is over 3000 lines long and there is a noticeable lag when the page is rendering as a result. Here's the question: Is it better to have one massive style sheet that covers everything, or lots of little style sheets that cover different parts of the page? (eg one for layout, one fo...

Sanitize input for code blog

I have a code blog in which I have a user input form for submissions. Whatever goes in that form will appear on one of the pages. Now this is a coding blog, so I don't want to strip any HTML tags or javascript code from the input, but I don't want it to executed at any point. What is the best way to render any input harmless? Is replacin...

Style list items in a certain div

I have a div structure like the bottom: <div class="body-content"> <div class="col-middle"> </div> </div> What I want to do is set a style on list items within the body-content class and make sure it does not apply to anything within col-middle I thought it would be something like... .body-content li { } but it applies those ...

Removing characters from a PHP String

I'm accepting a string from a feed for display on the screen that may or may not include some rubbish I want to filter out. I don't want to filter normal symbols at all. The values I want to remove look like this: � It is only this that I want removed. Relevant technology is PHP. Suggestions appreciated. ...

selected input type radio button asp.net

<input type="radio" name="group1" />1 <input type="radio" name="group1" />2 How do i know witch one is selected when the form is posted ? ...

How to Convert to DateTime on HTML.Textbox?

I have a textbox that should accept datetime formats only. I am not sure how to convert this in MVC. I also want to know how to rearrange to a "yyyyMMdd" format, which is what needs to be passed. <%=Html.TextBox("effectiveDate") %> My controller has nothing :X public ActionResult Index() { return View(); } I know I am miss...