I have a piece of text, that I wish to show truncated, but when clicked it will expand to show the rest. Clicking again should truncate it.
I was trying to use the onclick event to handle this as follows (WARNING: Do not run following code without reading below...):
<span id='blah' onclick='showAllComment("this is a long comment to see...
I want to change the text of a radio button (html element) not ASP.NET component.
How can I change it from ASP.NET?
Thanks
...
How can I specify a td tag should span all columns (when the exact amount of columns in the table will be variable/difficult to determine when the html is being rendered)? w3schools mentiones you can use colspan="0", but it doesn't say exactly what browsers support that value (IE 6 is in our list to support).
Edit: It appears that sett...
Is there some sort of formatting protocol for html email? We have an automated system that sends reports via email, when I look at the source I see them delimited by line length with an "=" breaking the line. That is, I get something like :
<html><body>some text some text some text some=
some text some text some text some text som<ta=
...
I'm trying to write javascript to find page elements relative to a given element by using parentNode, firstChild, nextSibling, childNodes[], and so on. Firefox messes this up by inserting text nodes between each html element. I've read that I can defeat this by removing all whitespace between elements but I've tried that and it doesn't d...
Has anyone created HTML microformats for video and video overlays including:
Video File
Links with timecode (start/end) and screen region
Thanks,
Michael
...
Here's a PHP example of mine. Can anyone find a shorter/easier way to do this?
<? foreach($posts as $post){?>
<div class="<?=($c++%2==1)?‘odd’:NULL?>">
<?=$post?>
</div>
<? }?>
<style>
.odd{background-color:red;}
</style>
Examples in other languages would be fun to see as well.
...
I'm doing a bookmarking-system and looking for the fastest (easiest) way to retrive a page 's title with PHP.
It would be nice to have something like $title = page_title($url)
Thanks in advance! =)
...
I always try to do the following:
<label><input type="checkbox" /> Some text</label>
or
<label for="idOfField"><input type="checkbox" id="idOfField" /> Some text</label>
My question is related to the label tag, specifically on a checkbox.
Most websites (I would say >40%) don't use the <label> tag.
Is there a reason for this? Is t...
I've got a couple of ASP.Net Usercontrols that I am using in different locations of my new website. These usercontrols had links like this :
<a href="daily/panchang/"></a>
If the usercontrol is used in pages in various subdirectories the relative path just doesn't work, and I don't want to provide my full website name in the path. S...
Hello, I've faced strange problem. While user change of check box input element on form produces adequate event programmatic change don't. How should I face this challenge? Code following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/...
I want a hyperlink on my main page to launch an HTML help page in a new browser window. However I want the new window to only have an address bar, i.e. not have a menu, toolbars or status bar, and better still not even have an editable address bar.
I have seen this done on quite a few sites but can't figure out what I need to do to l...
Overview:
I have an array of 20 byte strings that needs to be stored on a web page for use in user entry validation. I anticipate between 25 and 1000 elements in that array.
Considerations:
1. The web client will be a mobile device with reduced memory and processor capability.
2. I am limited to client-side validation only (technical l...
I am using CSS Sprite Generator to create sprites for a web page I am working on, but it doesn't seem to work, and I don't know why...I guess it's something obvious but..!
So, I picked up 3 images, zipped, generated the PNG file (I checked out the result it is seems fine) and I got the following css classes back:
.sprite-welcom1 { back...
Thanks for reading this.
I have markup similar to what is below. Using the line-height works when there is only one line of text, but the comments data will frequently be multi-line. What is the best way to get the label and the data vertically centered?
<html><head>
<style>
body {margin:0; padding:0; font-size:12px; font-family:Ver...
I have two HTML tables which would ideally be placed side by side on the screen. Widescreen monitors will cope with this fine, but the tables are too wide to be side by side on most old-fashioned monitors. So I want to use css (or even just HTML, if possible) to place the tables side by side only if the resolution is high enough.
This w...
Hello sir,
I had a task were I have to process one big .xml file and genrate different .html from it by using xslt. Now after release coustomer wants to combime all the html to single .mht file. I have converted the source code to genrate the .mht file, but I am having problem in linking the html file in the .mht.
I have created a .mht...
In a particular page i have a ascx control which contains a table.
Now I want to set this control visible/invisible but the visible method is not detected by the intellisense.
The only methods are 1)Equals and 2) ReferenceEquals
Main Page
<VPM:VotingPolls Runat="server"></VPM:VotingPolls>
Thanks
...
For some reason, onreadystatechange call back function is not being called in asynchronous mode. I tested the post in synchronous mode and confirmed that post itself is working fine (commented out testing code I used to check post in synchronous mode). The problem occurs both in safari and firefox latest version. Can someone please tell ...
For the past few years I've focused on back-end development so my javascript & css skills are lacking. I'm volunteering as a webmaster for a site and would like to spruce up the form validation (currently there is none).
My problem:
Basically I have one form with a few name fields, an email address and a phone number. When the form is ...