I'm using a regex that strips the href tags out of an html doc saved to a string. The following code is how I'm using it in my C# console app.
Match m = Regex.Match(htmlSourceString, "href=[\\\"\\\'](http:\\/\\/|\\.\\/|\\/)?\\w+(\\.\\w+)*(\\/\\w+(\\.\\w+)?)*(\\/|\\?\\w*=\\w*(&\\w*=\\w*)*)?[\\\"\\\']");
if (m.Success)
{
...
Many (most?) sites aiming for accessability and standards compliance use unordered lists for their navigation. Does this make the site more accessible or does it just provide useful elements for styling?
I don't mind them, and I have been using unordered lists in this way. It's just that, when I remove the styling from a page to try to ...
Hi there,
I've created a login submit form in HTML but for some reason autocompletion does not work in firefox.
This is what happens in Firefox:
- I give username and password and click on the login button
- Firefox prompts me if I would like to remember the password. I press 'remember' and login works.
- I log out and return to the lo...
<iframe data="/localfile.html" type="text/html" width="200" height="200"></iframe>
<iframe data="http://example.com/remotefile.html" type="text/html" width="200" height="200"></iframe>
<object data="/localfile.html" type="text/html" width="200" height="200"></object>
<object data="http://example.com/remotefile.html" type="text/html" widt...
I have floated images and inset boxes at the top of a container using float:right (or left) many times. Recently I hit a need to float a div at the bottom right corner of another div with the normal text wrap that you get with float (text wrapped above and to the left only).
I thought this must be relatively easy even though float has n...
document.body.offsetWidth returns the innerwidth value from left hand side to the left side of the vertical scrollbar in firefox.
In IE it doesn't, instead it returns from left hand side to the right side of the vertical scrollbar.
Does anyone know a sensible way I could make a veriable such as "var = offsetw;" for offsetw to be the scro...
What's the best way to get a regular anchor (<a href="...">) to submit the form it is embedded in when clicked?
<form>
<ul>
<li>
<p>
The link could be <span>embedded <a href="" onclick="?">at any level</a></span>
in the form, so "this.parentNode.parentNode..." is no good. :(
...
I am looking for a good Environment (GUI based Editor) for blackberry webapps.
e.g., is there a Eclipse plugin out there ?
...
Hello, I am not familiar with this website but I am desperately seeking help with the website I am building. I'm sorry if I'm not in the right place or asking my question incorrectly, so please tell me if I do something wrong!
I have built a simple website, consisting of four pages (index.html plus three others). In FF everything seems ...
Is there a way of automatically generating a HTML-Map compatible list of coordinates of polygon-like objects (e.g. countries on a map) with very distinctive borders?
Example image:
Final output:
<map id ="ceemap" name="ceemap">
<area shape="poly" coords="149,303,162,301,162,298,171,293,180,299,169,309,159,306,148,306,149,303" hr...
I am creating a large table dynamically using Javascript.
I have realised the time taken to add a new row grows exponentially as the number of rows increase.
I suspect the Page is getting refreshed in each loop per row (I am also adding input elements of type text on each cell)
Is there a way to stop the page "refreshing" until I am don...
Usually, I've seen it with forms, but I've found it helpful to group related sets of data (eg when you have multiple tables on a page, using a fieldset around each table or group of related tables to define a visible meaning and a group name (legend)). Is this abusing the fieldset tag to the point where, in my uses, it no longer has sema...
Question for anyone who's used Mechanical Turk: Is it possible to take an HTML template created on Mechanical Turk's website, and then create more HITs based on that template from the command line tools or API?
According to the API docs, it's not possible to create new HTML and add it...from the API. However, what I want to do here i...
I have a very simple html. The red div is inside the blue div and has a 10 px top margin. On non-ie browsers, the blue box is 10 px apart from the top of viewport and the red div is at the very top of the blue div. What I expect is the ie behavior: red div must be 10 px apart from the top of the blue div. Why does non-ie browsers render ...
I need to update a pair of old classic asp pages a search.asp page that provides a simple form which is then posted to a results.asp page. One of the form options on the search page is a drop down list (<select) for the "format". If the user chooses the excel format the results page just sets the Response.ContentType to application/vnd...
How do I mask the address of another site using HTML?
For example, I'd like:
http://www.example.com/source.html
To point to another page:
http://www.example.com/dest.html
Note that the destination page could be on another domain.
...
First the application:
One, I am into affiliate marketing.
Awhile back I had an up line member teach us how to drive traffic to our web site. Most of us were not computer savvy and still are not I might add.
But what he would do for us was build a simple html code that we would copy and paste into our web editor. Once complete we would...
i need a C# library about strict HTML validation and filtering
...
It exists too many method for embedding flash in html, which way is the best?
Requirements are:
Cross-browser support
Support for alternative content (if flash is not supported by the browser)
Possibility to require a specific version of the flash player
I have been reading about SWFobject, anyone used/tested?
...
I'm recoding an old site that contains a chart similar to this:
How would this chart be represented with pure HTML? I'm loathed to just include it as an image.
I'm thinking a table, just replaced with an image, or perhaps overlaid with absolutely positioned table rows, but I think that may be a bit fragile.
Any suggestions welcomed....