html

Facebook-like friends listing

I want to design my a friends list page that is almost identical to Facebook's, how there is a thumbmail image with some text beside it (that is aligned with the top of the graphic), and then surrounded by a gentle box. Can someone provide some sample HTML/CSS for this? ...

Textarea CSS IE7 and "enter key" creating inline space.

Hi, Under ie7 i have a strange problem on textareas. When i type something in and push enter a space seems to be added instead if making a new line. It seems to be CSS related since when i remove Javascript the bug is still there. And when i remove CSS it works as expected. When i remove all mentions of textarea in my styling the bu...

How to get started with web development

I have an interest in web development, but currently I'm working in vc++ & c++ embedded. I would like to quickly learn & start some type of web project. I would like to do the following: Set up a web page that can be viewed over the Internet. Get my data stored in some type of database on my local pc. Can you suggest the language or...

When I click on a link, most browsers draw a dotted box around it. How can I prevent this?

When I click on a link, most browsers draw a dotted box around it. It's easiest to see if the link is opened in a new window, since the original page sticks around. Can this be stopped? ...

Is it better to hook up links to a JS function using ID's or "relative paths"?

You know the drill... say you have a list of links and corresponding divs. You want to show the div when the link is clicked -- so you want to get a reference to the div so you can hook an event up on the link. When you're setting up your events, is it better to hook things up using unique ids like: <a href="#" id="link123">Foo</a> ......

How to display browser specific HTML?

I'm trying to find a way to display one link to an IE user and another link to all other browsers using javascript or conditional comments (or whatever it takes). Basically... //pseudo code <!--[if IE]> <a href"ie-only.html">click here!</a> <!--[else]> <a href"all-other-browsers.html">click here!</a> <![endif]--> I don't thin...

Why is JavaScript always broken up into separate <script> sections?

Duplicate of Any value in double script tags? Here's a code snipped from UserVoice in order to stick their tab on my site (this isn't specific to UserVoice however, I see this kind of thing all the time): <script type="text/javascript"> var uservoiceJsHost = ("https:" == document.location.protocol) ? "https://uservoice.com" : ...

Parsing specific elements out of a very large HTML file

I have a very large HTML file (several megabytes). I know the data I want is under something like <div class=someName>here</div> What is a good library to parse through the HTML page so I can loop through elements and grab each someName? I want to do this in either C#, Python or C++. ...

Wordpress: How do I fix my post class?

I seem to have somehow messed up when wordpress calls the post class. I looked in "Main Index Template" but that just says "<div <?php post_class() ?> id="post-<?php the_ID(); ?>">" So I don't know what to do. ...

Rendering HTML inside a DataList

I have a formatted text that contains Bolded, italicsed, and other styles implemented inside the message. I have this message stored in a Database. Now I want to implement these tags into work inside the a field inside the DataList. How do I do it? <%# Eval("message") %> Doesn't work. It just shows up the tags as such. Any help? ...

Smarty not rendering images and css

So I made myself a little html/css template. And now I'm trying to actually use it with some PHP code however, it only renders text. The images and css arent there. Everything is in the templates/Default directory. Do i have to do something funky with my paths in the template? ...

HTML error checker.

I'm using Asp.net., Assuming I'm allowing user to post messages in my site with HTML tags. How do I ensure he has properly closed all the tags? Is there any HTML-tag-checker available that tries to parse tags and report errors if any? May be just like the BLOGGER has. ...

detect browser font size

Hi, Is it possible to detect browser font size? Also is it possible to dedect new font size when user changes the font size from menu selection? Many thanks for everybody help. Best regards. ...

File Upload link clears when page reloads, why?

I am using ASP.net(2.0) with VB.NET. I have a User registration form. On that form the user supply all his contact details and he can upload a image with the normal file upload control in ASP.net. This is my problem. If anything goes wrong on the page then i give the User a error message saying what he left out or what went wrong. But ...

How to replace the currently selected text inside an html textarea?

How do I edit the selected text of a textarea form element? EDIT: as in edit it in-place, replacing the orignal text. ...

How can I remove the event handler once the click event has fired?

I have a click event I wired up on a div on my page. Once the click event has fired, I want to unbind the event on that div. How can I do this? Can I unbind it in the click event handler itself? ...

open link in iframe

I have a page with a frame in it, and some links below the frame. I want the links, when clicked, to open the page in the frame. I tried <a href="" target="nameofframe">link1</a> but it didnt' work? update its an iframe. ...

What's the difference of Click-to-focus and focus-by-javascript?

I met one troublesome web page whose structure is complicated. If one DIV is clicked by mouse, everything is OK. However, if it is focus-ed by javascript(i.e. divElement.focus). The layout turns to messy. This only happens in IE7/8. So, is there any difference between click-to-focus and focus-by-javascript in IE? ...

How to create script to copy a cell from Excel and paste into a text box located on a browzer.

At work we have to track our calls via an online application made via vb.net. To enter the needed info into the text boxes and drop down boxes you have to deal with more than one page. It is cumbersome to have to type or even copy and paste the needed info. I want to be able to type the info onto one page in excel and then have a script...

How to start creating a selection script , "inspect like what firebug do"?

I want to create a small tool on webproject which will let the user select tags on the page and i will save selections in an array for future use, so what i need is something near the functionality of firebug. From where i can start? any good articles or tools can make things easier? ...