html

Cross domain ajax fails even for a local file

I have a local html file with an ajax function trying to pull a xml content from x.com. The file when run works only on IE and fails on firefox and safari browsers. Ofcourse this may be because of the Same origin policy. But,I have heard from someone that for scripts loaded using file:// protocol,this same origin policy will not apply. I...

What is a workaround for placing a background image in Gmail ?

I understand gmail does not support background-images or background: url('.. in Gmail. I was wondering if anyone had a sizeable workaround to this? This is for emails I send via a server to a user's email accounts if they are using gmail. ...

How to expand left div to the remaining height?

Basically i have: <div class="wrap"> <div class="sum"> little text </div> <div class="content"> long<br/> long<br/> long<br/> long<br/> long<br/> long<br/> long<br/> text </div> </div> <style> .wrap{ height:100%; overflow:hidden; background:green; } .sum{ float:left; height:100%; background:yellow; } .content{ float:left; height:100%; ...

ListView equivalent using jQuery

I am transitioning a WPF application to the Web using ASP.Net MVC and jQuery. In my WPF application I have a ListView containing thumbnails and captions that looks like this: I need to display something similar in my web-based application. Requirements: User must be able to select items in the list (multiple selection would be usef...

List Bullet Disappear in IE7

About So this question has been asked time and time again, but I noticed something a little different; see below. Standard Info: Bullet displays in FF Bullet does not appear in IE Finding The bullet disappears when setting a hasLayout on the <ul> element, not the <li>; this is often accomplished when doing *{zoom:1} Firebug in ...

how to dynamically add the data to html file

i hav a tabular forms used to generate reports which are html files and i want to save these files by filling with data dynamically using obj-c.. any ideas how to do .. Thanks in advance ...

Newsletter Design to send in emails, using tables or table less

How HTML newsletters should be designed? using tables or divs and css styles. I read somewhere that newsletter should be designed using tables because many of the old client can't process the css style. how much truth is in this? What else need to be care of when designing newsletter to send using email. i.e. java script should not b...

HTML entity decoding in Java: apostrophe

I have to decode, using Java, HTML strings which contain the following entities: "&#39" and "&apos". I'm using Apache Commons Lang, but it doesn't decode those two entities, so, I'm currently doing as follows, but I'm looking for the fastest way to do what I want. import org.apache.commons.lang.StringEscapeUtils; public class StringUti...

RoR: Storing HTML in a File for Later Use

Hi All, In our application we have different themes and each theme has its own default content in the following structure: ROWS COLUMNS CONTENT HTML DATA 1 CONTENT HTML DATA 2 There could be multiple rows, column and content elements. We need to store this data in a file (manually) and then read & dump it ...

HTML5 Conformance Checker

Hello, I got the following warning using the W3C validator: "Using experimental feature: HTML5 Conformance Checker." What exactly does it mean? That I can't count on this validator? Thanks, Joel ...

Retaining data in HTML form

I have an HTML form. Let's say I fill out all the fields and submit it (PHP script runs here). Then I want to go back to the form using "Back" button of my browser. What I see is the empty form. What do I do to have the entered data retain on the page after I come back to it using "Back" button of the browser? Thank you! ...

Why does Java Swing html font rendering look so crappy ?

To display a complex multi-line label with multiple styling I use Swing's html rendering capabilities and end up with really crappy font rendering. I have tried to explicitly set the font family - infoLabel.setText("<html><span style='font-family:Tahoma;'>My text.. But compared to non-HTML text, the JLabel with HTML text always rende...

Do .php files without any PHP in them get passed to the interpreter?

On a standard LAMP stack, do .php files without any PHP in them get passed to the PHP interpreter? In other words, is there a performance/processing loss for creating a .php file without actually including any PHP in it, versus just making it a .html file? ...

HTML/CSS - Styling for print, background wont show up?

I'm having some trouble making a site, identical to viewing it in the browser, for print. It looks good, the only thing that got me stuck is that it refuses to display backgrounds. The images are fine though, it's just backgrounds. I haven't tried setting an image as a background, but that shouldn't be necessary anyways, right? I'm appl...

What is opencounter and why is my client trying to use it in a bulk email?

My company send a LOT of bulk email for clients. And yes, we follow all the best practice protocols to ensure we're not spammers. The system is proprietary, based on open source code. Customers have a GUI to enter content, similar to the big guys like MailChimp and the like. A staff member brought a UI challenge with the GUI to me, u...

Why are some websites not zoomable on iPad?

Does anybody have any idea why iPad zoom (you know, where you use two fingers to enlarge the text/screen) does not work on some sites? For example: facebook.com c3.arc.nasa.gov/nex/ ± the site that I'm working on. Google search does not reveal anything, which makes me think it’s not a common problem. Thanks beforehand for any insig...

Why is special character coming out strange from MySql db after I changed to sessions?

I have a classified website, and I recently changed the insertion of classifieds to use php Session variables instead of alot of POST and FORMS... So first BEFORE changing to Sessions, it worked nice and all special characters showed up correctly. Now that I changed to SESSIONS, I get funny characters instead of the special characters....

Potential pitfalls with my new markup language?

Something that's really bothered me about XHTML, and XML in general is why it's necessary to indicate what tag you're closing. Things like <b>bold <i>bold and italic</b> just italic</i> aren't legal anyways. Thus I think using {} makes more sense. Anyway, here's what I came up with: doctype; html { head { title "my webpage" javascript...

3d drawing in Canvas with HTML+JS

Is there any framework/engine that provide ability to draw 3d images on Canvas? I am planning to draw some primitives (different shapes) located in one plane: var dist = 2; var hexHalfW = 35; var lengthX = 20; var hexR = Math.sqrt(lengthX*lengthX+hexHalfW*hexHalfW);//40.31128874 var hexDiag = 2*hexR; var hexHeig...

Easier way to put an extremely long HTML string into a String object in Java (Android)

An Android Application that I created for a client some months ago has the ability to email a link to a PDF with a ton of text in it. The client now wants that text to go directly in the email, in HTML form (with links, bullets, etc). Using Android's Mail Intent, I am trying to send this long string over the EXTRA_MESSAGE field, but si...