html

How to Load XML File Contents using Javascript?

I'm looking for a way to load an XML file's contents directly into a Javascript variable. Say I have the following directory structure: /index.html /loader.js /file.xml In index.html, there is a <body> tag, whose contents should be replaced with the contents of the XML file. So if the XML file contains: <element> <item>Item One</...

How can I convert URLs in text to HTML links?

I'm writing a forum-type discussion board in Perl and would like to change automatically http://www.google.com to be an HTML link. This should also be safe, and err on the side of security. Is there a quick, easy, and safe way to add links automatically? ...

Floating another div next to a main centered div

Ok so I have a website and the entire thing is wrapped in a container. This container is centered with margin:auto. I would like to float a piece of content to the right of this centered container and have it sort of stick to the side of it no matter if the user resizes the browser window, etc. I'm wondering if there's a real simple way...

How to preload an ENTIRE web page

Hi How can you preload an entire web page using JavaScript so that I can get that page cached in the users browser? I know how to preload images with JS but what I would like to do is preload the entire page. Use case: On my website, I have a google maps page with a lot of other content (images, css, JS) and it takes a long time (abou...

Can someone help me understand why this is happening?

I just run into the weirdest thing I've ever encounter. Consider this test page: <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title></title> <script language=javascript> function test(myParameter) { alert(myParameter); } </script> </head> <body> <input type="button" value="Strange" on...

Problem in html code..

This table is not printing properly <tr height="95%"> <td width="100%"> <div id="placeSchedule"> <table bgcolor="red" width="100%" height="100%" border="1"> <tr> <td> xyz </td> </tr> </table> </div> </td> </tr> > because of this <div> tag, my table > under ...

HTML Parser

Anyone know of an HTML parser for VB.NET or C#? I know .NET has a lot of XML support, like XMLReader and XMLWriter. Is there an HTMLWriter or HTMLReader? Ultimately what I'd like is a library that will parser an HTML file and raise events based on the tags it finds. Anyone know of a library to do this? ...

Question concerning markup validation errors

I am using [http://validator.w3.org/][1] for markup validation and I continue to get errors that don't make any sense to me. For two below, for example, the validator is telling me that there is an error detected within the closing brackets of the body and html tags. For one page it repeats these errors 5 times and it doesn't make sense ...

Centering Text in HTML

I know at first this seems like a very stupid question, but I have a good reason for asking it. Even though I might just be misled. For EVER I have been using the <center>Text</center> tag to have text appear centered horizontally. Apparently this tag is depreciated, and is no longer used. So I have tried using <p align="center">Text</...

Implementing columns in HTML/CSS

I have a bunch of DIVs that contain textual information. They're all the same width (maybe 400px or so), but different heights. For space reasons, I'd like to have two or three columns of these DIVs (sort of like a want-ad section in a newspaper). See attractive ascii-art below :) DIV1 DIV3 DIV1 DIV3 DIV1 DIV1 DIV4...

Div Moving in cycle rotation using Javascript

Is it possible to rotate a Div in cyclic rotation using javascript. I have four DIVs in an HTML page. I need to rotate those DIVs in a cyclic rotation. If it's possible tell me now. It is urgent. Thanks & Regards Ravi Kumar ...

Put focus inside a textarea with variable name using javascript

I have a site that lists several upcoming events, and each event has a comment button to leave comments. It looks like this (it's in swedish, but I think you can figure out the structure): The div containing the textarea for writing the comment is initially hidden, and when clicking the 'comment'-icon it is displayed using the followi...

Help in select tag in for html...

<select onchange ="----"> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select> I want to write this small piece of code wherien if a person selects any item, then it should move to the next html page showing what value is being selected.. How can i do that.. Hope my doubt is clear Any ...

Degradable HTML layout for comparing two images

How to create web page for comparing two images, preferably using only (X)HTML and CSS, without JavaScript and DHTML / AJAX? The simplest solution would be to put two images side by side together, either touching or almost touching and centered both, or each centered in its own half of page. The problem in robust solution is with degrad...

HTML encoding: eastern european languages

My program is fetching messages from a database, which contains English, German and several Eastern European languages. My Python script sets the encoding via: <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> and use the values fetched correctly from the database (if I check within my logs). Unfortunately all br...

C++ html forms

How do i get form data from HTML page using c++ ,as far as the basics of post and get? EIDT1: CGI using apache 2 on windows, i got c++ configured and tested with with apache already. ...

Flash HTML image link AS3

I have a flash as3 file, and I'm importing an HTML file that contains this link: <a href="purchase.php?lang=0&"><img src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" id="paypal_button"></a> and I cannot for the life of me figure it out, I've looked everywhere. There were a couple of forums that suggested: function onTick...

Empty blank space at bottom of page?

Hey! In my current simple project, Copybin, there is some space at the bottom of the page that I cannot seem to be able to remove it. Any ideas? ...

Split a html into words

Assume I have the following string: Hellotoevryone<img height="115" width="150" alt="" src="/Content/Edt/image/b4976875-8dfb-444c-8b32-cc b47b2d81e0.jpg" />Iamsogladtoseeall. This string represents a sequence of chars that are not separated by a space, in this string there is also an html image inserted. Now I want to separate the str...

Why are formatting characters like CRLF being rendered by certain browsers as whitespace?

I need someone to explain to me where this extra padding is coming from on divs that contain img elements. You can go to http://www.dev12.com/CSSTest for live examples of my two problems. Problem #1: Safari, Firefox and Opera render roughly 6 pixels of unwanted bottom padding on the container div. It does not matter if I explicitly se...