I'm developing multi-language support for our web app. We're using Django's helpers around the gettext library. Everything has been surprisingly easy, except for the question of how to handle sentences that include significant HTML markup. Here's a simple example:
Please <a href="/login/">log in</a> to continue.
Here are the approache...
I am developing a HTML form designer that needs to generate static HTML and show this to the user. I keep writing ugly code like this:
public string GetCheckboxHtml()
{
return ("<input type="checkbox" name="somename" />");
}
Isn't there a set of strongly typed classes that describe html elements and allow me to write code like this...
Which approach is better?
Having jsp/HTML based web application which allows you to traverse web pages in the browser.
An applet based web application which opens up a Swing applet screen?
...
Is there an intuitive way, or a good mnemonic, for understanding the correspondence between colors and their hexadecimal values?
...
The title pretty much says it all.
I got an image with which links to another page using the < a href="..."> < img ...> < /a> How can i make it make a post like if it was a button < input type="submit"...>?
...
I have a need to implement a rating feature and would like to do it the mouse-over stars way similar to netflix.
What is my best approach? Here are some that come to mind.
code it up by hand in HTML and
javascript
use flash or a java applet
use Starbox (if you have used Starbox, then feel free to comment on it)
use another java script...
Something is eluding me ... it seems obvious, but I can't quite figure it out.
I want to add/remove a couple of HTML controls to a page (plain old html) when a user changes value of a dropdown list. An example is to add or remove a "number of guests in this room" textbox for each (of a number) of rooms requested ...
So if a user sele...
There are <meta> tags and other things you can place in the <head> of your HTML document. What <meta> tags etc. and best practices do you make use of in your HTML document to make it more accessible, searchable, optimized etc.
...
I wan't to change the background color of a div dynamicly using the following HTML, CSS and javascript.
HTML:
<div id="menu">
<div class="menuItem"><a href=#>Bla</a></div>
<div class="menuItem"><a href=#>Bla</a></div>
<div class="menuItem"><a href=#>Bla</a></div>
</div>
CSS:
.menuItem{
display:inline;
height:30px;
w...
How can I convert PDF files to HTML with Python?
I was thinking something alone the lines of what Google does (or seems to do) to index PDF files.
My final goal is to setup Apache to show the HTML for the PDF files, so anything leading me in that direction would also be appreciated.
...
I am trying to dynamically generate links to files on a network share that will work in both IE and safari. In IE, doing href=\\networksharename\foldername\filename works fine, and we thought this worked fine on safari in our initial testing, but our safari users are reporting page cannot be displayed. These are pdf files. Am I missin...
I have an ASP.NET MVC project and I have a single action that accepts GET, POST, and DELETE requests. Each type of request is filtered via attributes on my controllers Action methods.
[ActionName(Constants.AdministrationGraphDashboardAction),
AcceptVerbs(HttpVerbs.Post)]
public ActionResult GraphAdd([ModelBinder(typeof (GraphDescriptor...
This has got to be something simple: I set up a frames page with two possible sources for the target frame based on a form with two options. I used the OnClick event to trap the user's click to show the appropriate page. It works fine in Internet Explorer 7, swapping the two source pages. FireFox 3 and Chrome show only the default so...
Hi All,
Right, in short we basically already have a system in place where the HTML content for emails is generated. It's not perfect, but it works.
From this, we need to be able to derive a plaintext alternative for the email. I was thinking of instantly jumping on and creating a RegEx to strip the <*> tags from the message - but then ...
I have a simple form
form action="email.jsp" method="post"
<label for="firstname">Your Name: </label>
input type="text" id="name"<br/>
<label for="email">Your Email: </label>
input type="text" id="address"<br/>
<label for="message">Message: </label>
textarea size="30" rows=...
Is there a simple way to set the focus (input cursor) of a web page on the first input element (textbox, dropdownlist, ...) on loading the page without having to know the id of the element?
I would like to implement it as a common script for all my pages/forms of my web application.
Thanks!
...
Hi I have been trying to do this for what feels like all my life
I have a list menu with block display links, each link has a sliding doors png background image. I have used this javascript (http://www.ideashower.com/our_solutions/png-hover/) to implement the alphaimageloader fix for ie6 using a transparent gif.
When I test it for the ...
I'm trying to detect when the onresize event ends in a browser. If I use the "onresize" event, in Firefox it seems to be fired only once, after the resize event ends, which is exactly what I want. But if I try in IE, the "onresize" event gets fired many times during the resize.
I also try the "onresizeend" event, advertised in MSDN. But...
What my users will do is select a PDF document on their machine, upload it to my website, where I will convert into an HTML document for display on the website. The document will be stored in a database after conversion.
What's the best way to convert a PDF to HTML?
I have been handed a requirement where a user would create a "news" s...
I am programming Outlook 2003 using Visual Studio 2008.
Add-in uses embedded user control in folder's home page, exactly as it was
recommended. Here is HTML code that is using:
<html><head><style type="text/css">body{overflow: hidden}</style></head>
<body rightmargin = '0' leftmargin ='0' topmargin ='0' bottommargin = '0'
onload='OnBod...