I'm trying to get the text within the ASP Hyperlink control to NOT wrap when it is placed within a html table as below:
<table style="width: 320px" class="noLines">
<tr><td style="width: 300px"> <asp:HyperLink Target="_self" ID="frmSuggest" Text ="Click Click Click Click Click" Visible="false" runat="server"></asp:HyperLink>
</td></tr...
I am a fan of valid web pages and always spend time passing new sites through the W3C validator.
When trying to make a case for why companies should validate web pages I quickly thought of accesibility and the future-proofing of the web site on more primitive devices such as phones, fridges, watches, the next-big-thing etc.
However I t...
Getting contradictory messages about that, hope they're not.
I cannot imagine support for it would stop, since a gazillion sites use them.
Some additional questions about that:
Why should they phase out this tag?
Any alternative for it?
tx
...
Given this HTML:
<html>
<head>
<style type="text/css">
tr.Class1
{
background-color: Blue;
}
.Class2
{
background-color: Red;
}
</style>
</head>
<body>
<table>
<tr id="tr1">
<td>Row 1</td>
</tr>
<tr id="tr2">
<td>Row 2</td>
</tr>
</table>
</body>
</html>
Below is ...
From within an html page, I create a child window to perform some filtering (choosing the printer, and what parts to print on the report). In order to show the part selection on the child window, I need to call a GetParts function from the parent window and return the recordset to the child. Here's some code to help:
From the child wind...
In every webapp I build, I come across this issue. I want to set classes on HTML elements conditionally. For example, sometimes the <div> for a post looks like:
<div class="post">...</div>
And sometimes it looks like this:
<div class="post even recent replied_to author_is_admin">...</div>
Each class after post is there because some...
I have an Iframe which I have enabled designMode on. Quite simply I would like to have a callback function called if the cursor in the Iframe moves or content changes. It seemed quite simple at first but I can't use onchange/ onkeyup on the Iframe.
I assume I need to add an event to a member of the Iframe. I've tried
frames['writer'].d...
I'm using javascript form validation for the entry form for a contest I'm running. It's inline CSS so that if certain conditions aren't met, it displays, in red, messages that say "please enter your email address" or "that doesn't look like a valid email address" etc.
The script, which sits at the top of the file, looks like this:
<...
What is the proper way to convert an XML URI into a Windows file path?
As a starting point, it's possible to turn:
file:///C:/DirA/DirB/File.txt
into:
C:\DirA\DirB\File.txt
... by first dropping the file:/// substring (having used it to determine we're dealing with a local file) and then placing a backslash wherever a slash appear...
Before we start, strip_tags() doesn't work.
now,
I've got some data that needs to be parsed, the problem is, I need to get rid of all the HTML that has been formated very strangely.
the tags look like this:
(notice the spaces)
< p > blah blah blah < / p > < a href= " link.html " > blah blah blah < /a >
All the regexs I've been tr...
What regular expression can identify double quotes outside of HTML tags (which already will be validated) to escape them to "?
...
Getting a substring of text containing HTML tags
Assume that you want the first 10 characters of the following:
"<p>this is paragraph 1</p>this is paragraph 2</p>"
The output would be:
"<p>this is"
The returned text contains an unclosed P tag. If this is rendered to a page, subsequent content will be affected by the open P tag. Ide...
I'm using some external jQuery with $(document).ready() to insert adverts after the document ready event has fired, something like:
$(document).ready($('#leaderboard').html("<strong>ad code</strong>");
This is to prevent the UI being blocked by the slow loading of the adverts. So far it's been working well.
Now I need to insert some ...
I have a menu bar which uses the below code, when the title list items are clicked they call the showHide function to change the class of the inside list to one with display block instead of none.
On ie6 and ff it works fine, chrome opera etc etc. But on ie7 the inside list is render under the other elements in the main list. Everything...
Hi,
Does anyone know of a javascript based Rich Text box that behaves a bit like an IDE so that in a management system I can provide a text area for CSS and/or one for HTML to be written into the box and the input is colour coded like it is if you edit in Notepad++, Visual Studio etc Customsiation of the colours would be superb but cert...
I have the following script embedded in my webpage:
<script src="http://www.weatherforecastmap.com/weather2.php?zona=malaysia_kuala-lumpur" ></script>
Given that the script will display an image, and I embed the script in a panel. Is there anyway to make sure that the image script will resize automatically ( so that the image always l...
I have a layout with a menu DIV on the left. This is floated left with a fixed EM width. I then have a content DIV which has a left margin of more than the menu's width. So it sits nicely to the right of the menu and fills up the remaining space with both menu and content lined up perfectly.
However, in Internet Explorer 6, if the co...
I know that the line endings used for files vary depending on the OS. I was wondering, if a user pastes text into a http form input such as a textarea, does the line ending character(s) for what gets sent depend on the OS in the same way?
...
I've created a PHP script that takes the contents of an array and stuffs them into a variable called $body:
foreach($_POST as $var => $value)
{
if (($var != "Submit") && ($value != "")) {
$body .= $var .': '.filter_var($value, FILTER_SANITIZE_STRING) . '<br>';}
}
This $body then forms the body of an HTML email. All is fine until ...
I'm loading a string of HTML into a UIWebView through loadHTMLString. It produces a very long webpage. Once that string is loaded, I need to navigate to an HTML anchor tag with its "name" attribute set. In the HTML, I might have:
//3 pages of text here
<a name="go here"></a> lots more text here
//another 3 pages of text here
I need...