html

display:none not removed on Internet Explorer

Hi, I have a strange problem. I'm using Protoype to show a "<ul></ul>" markup with Show() method (Toggle() too). When I click on my button to display my "<ul></ul>", Internet Explorer display it on the screen, but in the source code, the "display:none" is always present O_o And my flash player doesn't work because of this. But on ot...

Decoding a tag in ASP.NET MVC

I'd like to know if there is an alternative for this in ASP.NET MVC: <input type="file" name="filePath" id="file" /> I would like to have it with some code sample: <%= Html.TextAreaFor(m => m.FilePath,1,32,null)%> ...

E-mails with working forms - possible?

Hello! Is it possible to send an e-mail with a <form> in it that the receiver can fill out and send? The form will obviously have an external absolute path to the processing file (action), e.g. http://mysite.com/processor.php. Just Yes - No answers will not suffice. By possible I mean will all e-mail clients like this and allow mails ...

Disable form elements inside div

I have a problem with my form querystring being too long. I plan on solving this problem by simply disabling all un-used form elements before submit. But I need help on making this js function... You need to know that I have a js-function which shows sub-categories whenever a main-category is chosen. This happens "onChange" on a drop-l...

CSS Floating Pop Up: Tricky CSS Positioning

I have a website that, upon clicking a link generates a div. Allow me to explain a little deeper. I have a table of "pages" in my CMS and I've added the ability to add new pages through a little popup div. My pop-up div is defined below the table, but is style="display:none" so it does not appear on the page. Upon clicking the Add New...

pass var to function() js with jquery

hi there, Just looking for the best practise way of doing this. I have a table listing information and in the last column is a button with "Edit/View". When the user clicks on the button a div area appears with more information which can be edited Code below with some fragments of jstl <script type="text/javascript"> //Click on Edit/V...

Stack Overflow exception on htmlparse method of iTextSharp.dll version: 4.0.4

I am geting stackoverflow exception on htmlparse method when I have any image in my html file. I am using iTextSharp 4.0.4 dll. I also tried iTextSharp 5.0.2 dll. In that i can not find htmlparse method at all. Here under is my code: Document doc = null; XmlTextReader reader = null; MemoryStream msHtml = null; ...

Any jQuery plugin that could replace html select tag?

It's nothing new - select tag looks damn ugly. Is there nice jQuery plugin out there that could replace it with ease? ...

An elegant way to record the computed style for each DOM node to a file, for a large number of files?

Is there an elegant way to get the computed style for each DOM node in a web page, for a large number of files, in order to compare style data for similar nodes across those files? I'm working on a large number of HTML files (> 500) containing pretty broken HTML from MS FrontPage, trying to extract style data and convert it to semantic ...

HTML Forms Problem - Adds a line after it ends

<td> <form name="search_form" action="" method="POST"> <input type="text" name="search_text"> <input type="submit" name="search_bt" value="Go"> </form> </td> now when ever we use this code it adds an extra line after it ends.... see the image below see the red boxed area... there is nothing there... nothing b...

Does onClick affect SEO-value?

I wonder if there's any SEO difference between using a regular a href-link or making an element clickable by adding javascript onclick? Basic example of the my two options... <a href="myUrl">Link</a> <div onclick="javascript:yUrl">Link</div> ...

Roll back selection on multiselect change event

I have set up a multiselect select box and am successfully limiting selection to (say) 5 elements. I can detect when the max number is exceeded, but I can't work out how to roll back to the previous selection so as to be friendly to the user. I tried to return false, but that didn't work. I don't want to try to remember the last valid ...

List gradient (two background colors?)

Currently, on my site, I use a background-image with an exact height so that the text (which is also an exact height) fits in on each "line" in the background-image - unfortunately it doesn't work too good. Whenever Japanese characters are in the list it will "bump" the line, so the background-image loops onto a new "line" and shows abou...

If user clicks on one link then quickly on another, the second link's onclick doesn't fire. How do we avoid this?

Hi there. Apologies for the title, I found it hard to define my question succintly and that was the best I could do. If someone wants to edit it to add a better title then please, be my guest. Anyway, the question. We have on our webpage the capability for users to delete something. They do this by clicking on a delete link, something t...

HTML - Auto navigation with Named Anchors #

well we can have name anchors in our page like the following code <!---Some HTML Code--> <a href="#Mark_1">Mark 1</a> <a href="#Mark_2">Mark 2</a> <!---After some HTML Code--> <a name="Mark_1"> <!---After some HTML Code--> <a name="Mark_2"> by doing so we provide links that to scroll up and down a page and all but I have seen seve...

How to display image in html email message?

I'm writing a j2ee application, that generates an html and sends it as email. In my html, a have an image, but it is not displayed when email is received. The html code is something like: <img src="myimage.gif"></img> where "myimage.gif" is sent as attached file in the email. I tried to change it to <img src="cid:myimage.gif"></img>...

Scrollable resizable table with fixed header

I am looking for a HTML table where the header is fixed. I've found some solutions on the net and on Stackoverflow but none of seems to fit my needs. What I want is something like this: http://www.imaputz.com/cssStuff/bigFourVersion.html but when you resize the browser window the table should show a horizontal scrollbar. In the example...

XHTML HTML element with 100% height causing scrollbars

In my CSS file I use this: html,body{height:100%;padding:0;margin:0;border:0;} Which causes a vertical scrollbar to appear on IE8, Chrome 5 and Mozilla 3.6, all latest version. Also, the document is empty, it only has the html, head and body tags so nothing is going out of screen to cause that. Setting overflow:hidden; on the html e...

Web Hosting Issues using my perl script, need help deciding on what language to use to replace perl

I have a website that I am making and I was going to implement a perl script into it. This script goes to another page gets a .csv file and reads in the lines and parses out what I need. The problem I have just ran into is that my hosting server apparently does not allow custom CGI scripts on an MS server. I chose the MS server so I coul...

Can't set disabled=false (javascript)

I have this function: function disableDiv(divId, action){ var divId = byId(divId); if(action==true){ divId.style.display='none'; } else if(action==false){ divId.style.display='block'; } var inputs = divId.getElementsByTagName("input"); var selects = divId.getElementsByTagName("select"); var i; ...