I was just wondering whether it is acceptable to close a common tag, eg. a <span> which requires no data using the XHTML closing slash to reduce markup.
So for example:
<span id='hello'></span>
could be written as
<span id='hello' />
...
I'm am trying to write vba code to fill out web-forms and click buttons for me. I am looping through the various option tags on the page to select the one I want. When I reach it, I want to select it, but I'm not sure of the syntax.
Dim htmlO As HTMLOptionElement
For Each htmlO In Object.getElementByTagName("option")
If Trim(htmlO.v...
I'm trying to get regexp to match some nested tags. (Yes I know I should use a parser, but my input will be correct).
Example:
Text.
More text.
[quote]
First quote
[quote]
Nested second quote.
[/quote]
[/quote]
Let's say I want the regexp to simply change the tags to <blockquote>:
Text.
More text.
<blockquote>
First quote
<blockquot...
I would like to clear the entire head section once the page loads... actually, my goal would be to delete all JavaScript code held in the head section.
Is there some way to do something like this:
document.head.innerHTML = "";
Explanation:
I am using a Python script that uses Qt and webkit to take screenshots of websits.
It works on...
Note that this only seems to be an issue in Internet Explorer versions 7 and lower. Here's a dumbed-down version of my HTML:
<table>
<colgroup>
<col width="20" class="hidden_col" />
<col width="50" />
<col />
</colgroup>
<tr>
<td class="hidden_col"><input type="checkbox" /></td>
<td>Title</td>
<td>Longer Description</td>
</tr>
</tabl...
I'm having a bit of trouble w/ some CSS on a page. It's valid CSS and Strict HTML. It renders fine in every* browser except for IE (I have only tried 7). Is there a way to tell if it's rendering the page in Quirks or Standard mode? I suspect it may be doing quirks mode, as that's about the only explanation I can think of.
*Opera, Chrome...
On a blog detail page, I have a tags section.
The html looks like:
<td class="tags">
<a href="">tag1></a>, <a href="">tag2</a>
</td>
For some reason the tags are showing up, each on their own line, instead of being inline.
I know I can create a new style to fix this, I just have to make sure the CSS style is specific enough to targe...
I need a filter function for a project I'm working on.
I am thinking about using HTML purifier. However I concerned about it performance.
Does any of you guys used or using HTML purifier. Or do you suggest another library or class with similar functionality.
The most important issues are:
utf-8 support
xss security
...
Creating liquid layouts is an immense pain. Now, I totally understand that tables should be avoided for layouts like the devil but... it appears to me that table cells are uniquely suited to fit the entire space available.
Has anybody used tables for a perfect liquid layout? Please enlighten me on the perils and pitfalls.
...
I have a page thusly:
<html>
<body>
<iframe src="local.html"></iframe>
<iframe src="http:www.google.com"></iframe>
</body>
</html>
I've used the DOM to access the first iframe as a test (node.documentWindow) but when I try similar on the external iframe Firebug reports that access is denied.
I suspect this is ...
I have a table with lots of generic link from a DB.
Now the customer wants to restrict certain types to be linked (or showed). Changing the page that makes the links is very hard, so I want to show some alert to user but would be ideal that the browser stays in the page, instead of navigation to an empty one and force the user o press b...
I am trying to save html table to sql server table with unique name and save its data in a database.
For example, I have a html table like this(it is dynamically created in browser by user).
I use asp.net, C#, Sql Server 2008 express.
How can after clicking on save button, create table with unique name, 2 colums int and varchar(40) t...
I want to inline Scripts or CSSs into xHTML without escaping special characters.
I can do that using a CDATA marked section.
According to www.w3.org/TR/xhtml1/#h-4.8 the CDATA section can be defined as:
<script type="text/javascript">
<![CDATA[
... unescaped script content ...
]]>
</script>
Then, according...
Someone who can provide me good links to make a site like that.. I mean the design are really amazing, and i want to do something new and more professional, than just design in photoshop then make a frame and voila..
http://fusionmedia.dk/ http://tjenonline.dk/
again, i want to learn how to do like that site, the menubar and whole desi...
Need the three "Options" to be hyperlinks that submit the "choice" form. When submitted, I would like the value to be the text of the option selected (i.e. value=Option1, Option2 orOption3) and all three to have the same name. (i.e. name = Options)
I saw this and some other posts here, but did not work with my set up - many "hyperlink i...
Hi,
I am trying to make an application which will allow me to render HTML and display a web app. The first idea would be to use a browser control. The issue I am having is the web app responds to outside events such as scanners hooked up to the actual device. For example if I have a bar code scanner hooked up to a Windows Mobile 5.0+ d...
We have a fixed size div in which we are displaying some news items. We display 6 news items, and then a link that follows, which links them to archives. When the news article titles are all one line in length, everything fits. When multiple news items have titles that are two lines in height, the group of items takes up more space th...
I'm using htmlarea for my little CMS, and I was wondering if it's possible to detect if something gets pasted into it with jQuery?
...
This is a follow on to my previous question:
JSP / servlet / IE combination doesn’t submit form detail on Enter
Inside the form, we have:
<input ... type="submit" name="confirm" value="Confirm"/>
There are no input fields on this form. This form appears at the end of a workflow and is essentially a verification to proceed.
This fo...
Hi,
Send e-mail from a form, here is the the link to basic HTML code:
W3 Schools
After writing a comment, name and email and clicking Send button the Outlook Express starts-
is it possible to send message immediately (using only HTML, maybe javascript)?
Or maybe is there something that can be done so that the Outlook Express doesnt as...