html

Vertical Align text in a Label

I have been asked to vertically align the text in the labels for the fields a form but I don't understand why they are not moving. I have tried putting in-line styles using vertical-align:top; and other attributes like bottom and middle but it don't work. Any ideas? The site is at http://www.compensation-claims.org/bankcharges2/bank-ch...

Overlib popup doesn't align under the mouse

Hi, I'm using the overlib library and it works fine in one part of the website but not in the other. This is the parameters set for overlib. <script type="text/javascript" language="javascript"> overlib_pagedefaults(LEFT, WIDTH, 450, CELLPAD, 10, FGCOLOR, '#f0f0f2', BGCOLOR, '#7d7d7d', VAUTO); </script> What i don't understand is ...

Any existing C# code (OSS) that will calculate diff between two strings and output html?

I need to compare two strings and output the diff in HTML (similar to MS Word "track changes"). Language is C#, this is (not surprisingly) a .NET web app. There are a few similar questions (like this one for PHP/Python), but no existing question on SO. I don't need a finished project, just anything that will cut out the extra work. ...

Escaping ampersands inputted by users through text fields?

Like almost all apps today, I have users who enter various information through standard text inputs. My app is running on Rails. It's a no-brainer to escape ampersands that I include as part of the site copy, etc. But how do I escape an ampersand that is dynamically inputted by a user? Currently, it's totally breaking my frontend...

Can one prevent Genshi from parsing HTML entities?

I have the following Python code using Genshi (simplified): with open(pathToHTMLFile, 'r') as f: template = MarkupTemplate(f.read()) finalPage = template.generate().render('html', doctype = 'html') The source HTML file contains entities such as &copy;, &trade; and &reg;. Genshi replaces these with their UTF-8 character, which cau...

Newbie CSS/HTML: How to add ad in a div container to the side of the page?

Hello, i got an centered website with a fixed width. Now i want to add an ad banner of fix width/height to the right side of the page. There is a wrapper div of width 700px. But i can't get my banner on my side. I dont know why. Can someone help me please with my css id? i got: <div class="wrapper"> <div class="head"></div> <div ...

Python AppEngine And HTML

Hello, I have a simple Hello World application in Python that i'm using with AppEngine, but i want to insert this in a HTML file, like this: I have a file called test.html and on it i have this snippet: <center><img src="test.png></center> // Here comes the Python App // I want to put the output of the Python application in this spac...

Making an IE8 Accelerator for my website

i have a file Accelerator.xml <?xml version="1.0" encoding="UTF-8"?> <os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0"&gt; <os:homepageUrl>http://www.sapo.pt&lt;/os:homepageUrl&gt; <os:display> <os:name>Find on Sapo</os:name> <os:description>Find more information on Sapo<...

Weird SPAN element rendering in Safari (on iPhone)

Hello, Whenever there is a SPAN element in HTML content, the mobile version of Safari renders content differently- it seems that font size increases for the whole paragraph. Consider two examples. <div style="border: 1px solid red; width:500px;"> <p>This is a paragraph. This is a paragraph. This is a paragraph.</p> </div> and <div s...

Disabled Text Field Value Not Being Recognized in SQL

I have a text field that is disabled based on who the user is. When the page submits, the value of the text field is supposed to be inserted into a SQL table, but SQL seems to see the value as empty because the text field is disabled. Can anyone tell me a way to get this value into SQL, i.e. for SQL to actually see the value? Below is ...

html print a very wide page on several A4 sheets

Hello all, I have a page with a wide (say around 3000px) horizontal graph which is normally scrollable. In the printing version I render the entire graph, (I actually have a separate JAvascript/HTML code for the printing version), so it takes lets say three A4 widths (landscape) on the screen. In this situtation I see the browser (FF3...

jQuery - Post array of multiple checkbox values to php

Why is only one value of the "db" checkbox values array being sent to the server side script? JQUERY: $(".db").live("change", function() { $(this).add($(this).next("label")).add($(this).next().next("br")).remove().insertAfter(".db:last + label + br"); var url = "myurl.php"; var db = []; $.each($('.db:checked'), functio...

Simple jquery popup

I'd like to make a very simple jquery box come up saying "Sorry, that blog post could not be found." I don't want anything very advanced... How should I go about this? ...

what are the "for" and "event" attributes of the script tag (Javascript,HTML)

In a web application I've inherited at work which was written about 10 years ago I've noticed the following code snippets repeatedly used: <script language="JavaScript" for="FG1" event="Mousedown(Button, Shift, x, y)"> { // some code here that uses the variables Button, Shift, x and y } </script> I've never really seen anything lik...

How to make a double linked-list in javascript + html

I have a class called listaDoble, in a Javascript document. And I have another HTML document with a text field and 4 buttons: Next, Back, New. When I press the New button I put, onmouseclick="lista= newListaDoble();", but then I lose the reference to the object. Some help? ...

Any tool to display Wictionary raw content as HTML ?

Hello, I have just downloaded the last Wictionary dump from their backup and I would like to display the content of some articles in HTML format. The articles contents come the way they were written: using the wiki syntax, full of internal links, formatting symbols, abreviations and category keywords. Are you aware of any tool I could...

Trouble loading html file from plist to webView on iPhone

trouble loading html file from plist to webView using following code in FAQDetailViewController.m: - (void)viewDidLoad { [super viewDidLoad]; NSString *Path = [[NSBundle mainBundle] bundlePath]; NSString *WebPath = [Path stringByAppendingPathComponent:WebFile]; UIWebView *tempWeb = [[UIWebView alloc] initWithContents...

Responding to HTML hyperlink clicks in a C# application.

Question: How can I detect and handle clicks on hyperlinks in a Windows.Forms.WebBrowser control in C#? Background: My C# application does not carry a centralised help file. Instead, all the pieces that make up the app are allowed to display their own little help topic. This was done because the application is merely a framework, and ...

Submitting form replaces constant GET information that is needed for the page.

Hi all, I'm learning php and I've got to say I've googled everywhere and I'm stuck :( My question is, in other words, how can I get new variables added to previous variables on the page? Imagine this being www.mysite.com/getvartest.php?orgvar=12345 but after submitting this form it'll go to www.mysite.com/getvartest.php?varselection=...

Is it possible to get HTML tag autocompletion in Netbeans IDE?

I just installed Netbeans 6.7 for Ruby and one of the things that bugs me is I have to type both the opening and closing HTML tags even though it seems to recognize that I have completed the opening tag. Is it possible to configure it to automatically type the closing HTML tag for you, as some other IDEs do? ...