html

html tag attribute displayed in unicode

I have the following code, from which you can see that, I use the same way to create the text in utf-8. The text shown between html tags are shown correctly. But the text shown as html tag attribute are shown in unicode. I'm positive that on the server side(PHP), both texts are treated in the same way and are encoded in utf-8. Why the t...

What is the correct syntax for using HTML builder with mixed content in Groovy 1.7?

On the Groovy example page there is an example of how to use Groovy HTML builder with mixed content: p [ "This is some", b"mixed", "text. For more see the", ahref:'http://groovy.codehaus.org' ["Groovy"], "project" ] This is however not working for me, I get an error message like: expecting ']...

How Do I Add Multiple HTML Files To A (Google Web Toolkit) GWT Project In Eclipse?

Also keeping in mind the fact as to how to add GWT Widgets To The Secondary HTML Page? ...

hide a space inside divs?

I have a div with 2 images side by side. Theres a space seperating the tags. Thus a space between the two images. Is there a way i can use css to hide the space (or text) inside of that div? ...

How to remove all empty tags in X/HTML code in once?

for example : I want to remove all highlighted tags ...

How to set entire HTML in MSHTML?

How to set entire HTML in MSHTML? I am trying using this assignment: (Document as IHTMLDocument3).documentElement.innerHTML := 'abc'; but I got the error: "Target element invalid for this operation" I tried also using (Document as IHTMLDocument2).write but this form only adds html into the body section, and I neet...

HTML Language question

Note my code below. I am trying to figure out why my data is not changing to Spanish. I understand it to be one line of code and that is all within the HTML attribute lang=”es”. Any help would be greatly appreciated. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3...

WebKit & Objective-C: how to parse a HTML string into a DOMDocument?

How do you get a DOMDocument from a given HTML string using WebKit? In other words, what's the implementation for DOMDocumentFromHTML: for something like the following: NSString * htmlString = @"<html><body><p>Test</body></html>"; DOMDocument * document = [self DOMDocumentFromHTML: htmlString]; DOMNode * bodyNode = [[document getElemen...

Accepting Payment with local debit cards from foreign countries

Hi all. I have an ecommerce website and I am currently accepting payments from visa, master card and all the other major cards. However, one issue I am having is accepting payment from customers using local debit cards. Say someone from China doesn't have a major credit and he wants to use his local debit card, I want be able to accept p...

Dynamically create numbered divs in Javascript + Jquery show/hide

I would like to create numbered divs (such as eventbox1, eventbox2, etc.) in a loop and then have an option to show and hide them. for (i=0; i<8; i++) { var html = '<div id="eventbox"+i></div>'; content.innerHTML += html; } I have also the following code in Jquery UI: function ShowHide(){ $("#eventbox"+1).animate({"height": "toggl...

Get images from a URL and retrieve them all to select the one which is the biggest.

I want to open a URL and RegEx all the image's URLs from the page. Then I want to cURL all of them and check what size they have. In the end I want to get the biggest one. How do I do this? ...

Render Order via HTML or CSS

What is the best practice is in the case of altering the render order of elements on a webpage. For example, I have two DIVs that are to be displayed on a page: <div id="appleSection" class="appleStyle"> <!-- Apple DIVs, content, form elements, etc --> </div> <div id="orangeSection" class="orangeStyle"> <!-- Orange DIVs, conte...

"Page description language" and "markup language"

What is the difference and relation between "Page description language", "markup language" and "Page description markup language"? Based on their wiki webpages, I just don't understand what is their difference. Why needs there be a markup adaption of the Page description language - "Page description markup language"? Examples: PostSc...

Is there a way to play a video without Flash Player ?

Is there a way to play video on a webpage with javascript without Flash Player ? ...

can JLabel have img tags

Hi, I am trying to display a JLabel which has a few lines of text and an image as follows: String html = "<html> hello </br> <img src = \"/absolute/path/here\" height = \"30\" width =\"40\"/> </html>"; JLabel l = new JLabel(html); For the image all I get is a broken image, is it possible to nest img tags inside a JLabel? EDIT: I wan...

Connecting repeatable and non-repeatble backgrounds without a seam

I have a 700x300 background repeating seamlessly inside of the main content-div. Now I'd like to attach a div at the bottom of the content-div, containing a different background image that isn't repeatable, connecting seamlessly with the repeatable background above it. Essentially, the non-repeatable image will look like the end piece of...

<table> column and row style....

I've a <table> which has 10 column and 10 row i want to give different background to 1st and and 3rd column and another different background color to 8th row . is it possible without css class/id ...

CMS Preventing Bad HTML Insertion by Client?

I'm building a small CMS in PHP for a client and something I've noticed that comes up fairly often is a client will enter a bit of HTML in a field without closing his/her tag. I'm wondering if there is some parsing technique to prevent bad HTML from rendering my whole output page in italics because the user forgot to add a closing </i> ...

clear view of box model

As far as i know every element in HTML associated with padding(left, right, top, bottom) , margin(left, right, top, bottom) which will create the box model for that so that we can figure it out its actual position with respect to document. any idea over it? ...

Maintain aspect ratio on browser window resize?

I have a simple page with images, and when the user clicks the image, it opens up a new browser window with the image filling the area. I have the css set on the new window so that the image height and width are both 100% (and overflow is set to hidden) so that the window can be resized. But what I need is for the window to maintain asp...