html

SSL Encryption and an external image server

I have an ASP.NET web site technology that I use for scores of clients. Each client gets their own web site (a copy of the core site that can then be customized). The web site includes a fair amount of content - articles on health and wellness - that is loaded from a central content server. I can load the html for these articles from ...

Chinese characters in mailto subject line of email

I'm looking to add some Chinese characters in a mailto: email link. I've tried <a href="mailto:[email protected]?subject=调查 / Inquiry">Email</a> but when I click on the link the Outlook subject line shows: 调查亨德森 / Inquiry I've also tried <a href="mailto:[email protected]?subject=&#35843;&#26597; / Inquiry">Email</a>...

Uploading all files in a directory from a web client?

Over the last couple of days I've been looking for a way to upload the contents of a directory to a server via a web client. Pretty much all the file upload solutions I've seen restrict the user to selecting one file a time via a browse button. What's the { best | easiest | most popular } way to do this? I'm using ASP.NET MVC on the s...

Centering a ul with floats inside a div..

I'm trying to center this bottom nav on a test site: http://heroicdreams.com/kktest/ The ul li uses float:left; which is what I think is making it stay stuck to the left. I'm trying to figure out how to get it to be centered. To get the links displayed horizontally I needed to float them left, but now I can't get the whole nav to be cen...

How to bypass document.domain limitations when opening local files?

I have a set of HTML files using JavaScript to generate navigation tools, indexing, TOC, etc. These files are only meant to be opened locally (e.g., file://) and not served on a web server. Since Firefox 3.x, we run into the following error when clicking a nav button that would generate a new frame for the TOC: Error: Permission denied ...

Read in html table to java

I need to pull data from an html page using Java code. The java part is required. The page i am trying to pull info from is http://www.weather.gov/data/obhistory/KMCI.html . I need to create a list of hashmaps...or some kind of data object that i can reference in later code. This is all i have so far: URL weatherDataKC = new URL("ht...

Is there a way to get the insertion point in a textbox from javascript?

I'm trying to insert text into an html textbox when the user pushes buttons. This is a simple on screen numeric keypad. I have found many different scripts claiming to be able to find the current cursor position in a textbox cross-browser, but none work in IE (I'm using IE8). Is this just an IE8 defect? Is there a workaround? It see...

How to force style overrides in CMS?

Preface/Environment: I'm using fckEditor, asp.net MVC, and jquery Our site has a set of sitewide styles. They include fonts, lists, and certain other basic functions. body p a ul ul li div.content etc.... The problem comes in with our CMS. We're using FCK editor, and saving the content changes to a database which are then served...

Is it possible to have HTML text or CDATA inside an XML attribute?

I keep getting "XML parser failure: Unterminated attribute" with my parser when I attempt to put HTML text or CDATA inside my XML attribute. Is there a way to do this or is this not allowed by the standard? ...

Mootools: Get the clicked element value

Hey guys I'm currenlty working on something and I want if I click a textbox element the value of it. the only problem is that it doesn't have an ID. my html code: <ul id="textbox"> <li><input type="text" value="test1" name="chosen" disabled="disabled" /></li> <li><input type="text" value="test2" name="chosen" disabled="disabled...

Absolute positioning an element causes element to display inline in IE

I have a list that I'd like the main elements to align vertically and the sub elements of each to drop down underneath the main element. I want to keep the position: absolute on the subNav class because the width of this nav will vary from each so I can't set a width. This works in Firefox, but in IE 7 the absolute causes the subnav to d...

Problem with html,style,padding and div section (I think)

Hi I have the code below, which works lovely and does EXACTLY what I want it to do, except the header section is a a line down from the top of the div section and I would like it butted to the top.. is there anything I can do about this ? Thanks <div id = "Side1" style="width: 175px;height:210px;overflow:hidden;background-color: #AAA...

How to control the font size of html select boxes on iPhone

Regular HTML select boxes (such as, e.g. found here), while being "chosen" are presented by the iPhone on a native widget that seems to totally ignore regular html font sizes and whatnot. It does some ellipsing when it goes too long, but the font is way too big for a list I want to present -- even on landscape, only about 35 characters c...

Link in Marquee unclickable!

Ok heres my deal, I have a marquee like this: <marquee style=";position:absolute;left:608;top:10; font-family:Arial;font-size:24pt; color:#FFFFFF;height:153; "scrollamount="4" direction="down"> <a href="http://www.google.com"&gt;google&lt;/a&gt;&lt;/marquee&gt; Now for some reason this link is unclickable! It looks like a link but it ...

CSS issue: IE image button not aligned correctly

Firefox displays correctly that the red "Search Listing" button is inline with the text input field. But, IE 6/7 is misaligned. Any ideas why IE is displaying the red button lower on the page than other browsers? Screenshot of IE 8 (correct) api.browsershots.org/png/original/54/546946b7cfd67ce2c59de0b608c3323.png Screenshot of IE 7 (...

CSS issue: IE 6+ not display 'cursor' correctly - ninja help needed

IE 6+ is displaying the cursor as a text icon and not a mini-hand (pointer) as it should. My Live Example show how if you hover over a tab (All/Fore Sale/...), in IE - it displays a text-cursor but Firefox/etc it displays correctly as a "pointer". This is applied to the ul.tabbernav li a:hover CSS property. Any idea why IE is not disp...

Determine Document Order from Nodes

If I have two nodes in an HTML document, how can I tell which one comes first in HTML document order in Javascript using DOM methods? For example, function funstuff(a, b) { //a and b can be any node in the DOM (text, element, etc) if(b comes before a in document order) { var t = b; b = a; a = t; } // process the...

ruby on rails / routing-filter / form_for changes html

Hi, this question is related to routing-filter. I have this in my view: <% form_for :post, :url => {:action => "show"} do |f| %> which translates in the browser to this: <form action="/en/posts/show" method="post"> after changing the I18n.locale e.g. I18n.locale = :en the html becomes: <form action="/en/posts/72" method="post"...

CSS issue: a:hover not working with IE (css Ninja needed)

Why does IE not change the background color on my site for tabs a:hover but does so in Firefox/Chrome/Safari correctly? What can I do to make it work in IE 6+? HTML <ul class="tabbernav"> <li class="tabberactive"><a title="All" href="javascript:void(null);">All</a></li> <li class=""><a>Tab1<span class="tabTotal"> (0)</span></a></li> <...

URI doesn't validate on W3C Markup Validator, identical direct input does

I'm trying to get a site to validate as HTML5 on the W3C Markup Validator. When I use the "Validate by URI" option, it generates a ton of errors, but when I copy and paste the HTML into the "Validate by direct input", it validates perfectly. When I run a diff on the two sources returned by the validator, the only differences are the Rail...