html

How do you parse a poorly formatted HTML file?

I have to parse a series of web pages in order to import data into an application. Each type of web page provides the same kind of data. The problem is that the HTML of each page is different, so the location of the data varies. Another problem is that the HTML code is poorly formatted, making it impossible to use a XML-like parser. So...

Is there a way to export code to HTML in Eclipse?

I know NetBeans has this feature, but I can't find it in Eclipse. A quick search for plugins was not successful. ...

How might I get the script filename from within that script?

I'm pretty sure the answer is no, but thought I'd ask anyway. If my site references a scripted named "whatever.js", is it possible to get "whatever.js" from within that script? Like: var scriptName = ??? if (typeof jQuery !== "function") { throw new Error( "jQuery's script needs to be loaded before " + scriptName + ". C...

What are your web development standards?

I am trying to come up with a clear standard to present to my web team so that the frontend HTML/CSS developers and the backend developers can get on the same page. Currently, we all have our own coding styles, and we tend to end up creating more work for each other when we have to dive into each others' code. What sort of CSS/HTML and ...

How to easily use complex HTML "templates" from designer in a library user control in ASP.NET (VB.NET)

I have some HTML that I got from a designer, from witch I made a "template" in an .ascx Web User Control about like below. Now I would like to put it into a library. How can I do this in a nice way (Without concatenating strings etc.) (There should be more parameters) <div style="clear:both;margin-top:50px;"></div> <div> <div cla...

how did you put the magnifying glass and "search" in the search box in stackoverflow?

Assuming it is possible with just CSS...but wanted to know if someone could share the code. Guessing magnifying glass is background image, but need javascript to remove "search" on focus. Also...how do you get it to submit when hitting "return" rather than needing a "search" submit button? Thanks! ...

Are there any rules regarding special characters/entities and innerHTML?

When I use innerHTML from javascript, the browser (Safari and Firefox at least) seem to replace certain characters and numeric entities with their named entities. The character \xa0 (non breaking space) gets replaced by &nbsp;, &#60; (lesser than) gets replaced by &lt;. But for example the umlaut ü is not replaced with &uuml;. I have...

How do I use Javascript to modify the content of a node?

I need to use Javascript to do three things: Select all nodes with a class of "foo". Find all words inside these nodes that begin with "*". Surround those words with <span class="xyz"> ... </span>, where xyz is the word itself. For example, the content: <ul> <li class="foo"> *abc def *ghi </li> <li class="bar"> abc *de...

In HTML I can make a checkmark with &#x2713; . Is there a corresponding X-mark?

No text :) ...

How do I Position am Element within Heading (H1, H2, etc) tags?

This seems like it should be something easy, yet it is driving me mad!! I need to be able to position a button, or other input element for that matter to the right of a header element, which also contains text. The basic markup is: <h3>Order Details <input type="button" value="Refund" id="btnRefund" /></h3> The desired result is ...

How to get rid of white space around an <embed> element?

SUMMARY: an embed with 100% width and height pushes its parents size to be 100% width and height of the grandparent. How do I get the embed element to collapse all the white space around it so that it fits the width and height of its parent perfectly? I have a page with an image, which upon being clicked gets replaced by an embed elemen...

Change the z index of flash content

Basically my problem is the site I am working on has a horizontal drop down menu and I am implementing a flash chart on the page. When you hover over the menu the items drop down behind the flash chart and are unclickable. Can I get around this somehow? ...

Modifying values with XSLT

Hi, I have XML file with values expressed in SI unit (m, N). I use an XSLT document to transform it into HTML page where I would like to display values with other units (um, mN). Is there a way to modify values I extract from my XML document using XSLT without modifying XML content before XSLT processing ? Thanks in advance for your h...

How do I know if a regular for is a postback in ASP.ENT (was Why is IsPostback not set in ASP.NET plain forms)

I am using ASP.NET to process plain forms, posting back to myself. (I dont want to use ASP.NET forms, with runat="server ) To IsPostBack is not set when it really has to be a postback. What is the reason for this? Should I not post back to myself? <form method="post" id="theForm" action="http://localhost/index.aspx"&gt; <input type...

is there any role of browser cookies for static html site ?

if yes then what we can do with cookies? ...

"word-wrap" an LI within a UL

Hi guys, I'd like to wrap some text onto the next line that I have held in an LI - the wrapping needs to be done dynamically so I'm looking towards CSS I want it to look something like this: <ul> <li> normal sized </li> <li> big massive long one that i'd like to wrap to the next line like below </li> <li> the result that ...

Has anyone used tntnet?

I'm looking for a C++ MVC framework. Has anyone used http://www.tntnet.org/index.html? How was it compared with like MVC.net or SpringMVC? What compiler is required for it? ...

simple HTML problem

I am using HTML. I have divided the page into two columns: inner1 and inner2. Inner1 has some data, it does not have the problem it has in column1. Inner2 has a problem: since Inner2 is divided into two rows [in the same column2] point2- It has variable data[row -1] another_new - It has fixed data[row-2] HTML: <div id="oute...

Is it considered a bad-practice to select distinct elements by catching their class/id in a string ?

Hi, I've been using Jquery for some time now and I have a question concerning bad/good practices. Here is the deal. Lets say we have this HTML: <span class="а_s_trigger" id="tekst1">text1</span> <span class="а_s_trigger" id="video1">video1</span> <div class="a_s_songvideo" id="showvideo1"> <obj...

Blogger layout problem

This is my blog: http://laschavasdeflickr.blogspot.com As you can see there is a grey line (#bbbbbb) there that its not on the edge, I am going crazy trying to fix it since I change the width of the post column. If someone can point me what I am doing wrong I will appreciate it. <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html P...