html

Parsing HTML fragments with libxml SAX

I need to parse HTML fragments, by which I mean the files lack <html>, <head> and <body> elements, otherwise having well-formed XHTML syntax, UTF8 encoding guaranteed. It looks like libxml is ideal for this task, but I have certain constraints which I just don't know how to implement. htmlSAXParseFile() does its job well enough, but it...

how can i popup picture in php?

when picture viewed ,when me click on it picture will display as pop up, and back screen will be light black? ...

Reading cookie problem across directories

This is my JavaScript code I use to create my cookie............ document.cookie = "Name=" + Name + ";expires=Friday, 31-Dec-2011 12:00:00 GMT; path/"; I create it in www.example.com/folder/file.html and it works. But I cant read the cookie from www.example.com/index.html or www.example.com/folder2/file2.html. What is wrong with my ...

Can I lock a UIWebView's orientation with Javascript or HTML?

I'm working on some HTML content as part of an iPad app. We may need to lock the content of the UIWebView to portrait mode, but the app has already been submitted to Apple and the only reference I've found to achieveing this is in this question which gives this example -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientatio...

Freeze Table Header with Microsoft Expression

I am using the below code to achieve the results. The scenario is working fine with single DIV on the page. But when i am adding one more DIV to the page, then problem comes into picture. Find my HTMLcode @ http://docs.google.com/Doc?docid=0Adbmqz8tzPkZZGQ3cjQ5YnJfM2c2NTZkc2Nk&amp;hl=en When i scroll first DIV, the header of second DIV...

Opengraph W3C valid ?

Hi, I would like to know if the opengraph markup is W3C valid, I'm getting the following error when I try to validate it: Line 14, Column 17: there is no attribute "PROPERTY" <meta property="og:site_name" content="sitename"> In case it's not valid, will it impact my pagerank and other search engines algo? Is it possible to cloak tho...

Layout of popup components changes while moving

I have designed some popup moving menu with JQuery, it looks perfekt in webkit browsers, but i have one problem in mozilla, when i move my popup window, layout of some components in this window changes! For example button add changes from: to: or to: , and it's absolutly random. What can it be? This image is in span: <span class="sw_...

Google Reader - Keeping Read Item state in Sync

What is the best way to manage cached articles when it comes to keeping the read state/unread state in sync? Is there a property inside the article feed that will tell me the state of the item? I'm trying to figure out how to keep the read state in sync, and if I need to do a comparison of every cached article to the one on Google ...

Adding class to the UL and LI as per the level

I have the following HTML mark up. <ul class="thumbs"> <li> <strong>Should be level 0</strong> </li> <li> <strong>Should be level 1</strong> </li> <li> <strong>Should be level 2</strong> </li> </ul> <ul class="thumbs"> <li> <strong>Should be level 0 -- </strong> </li> <li> ...

How to encrypt HTML source code output using PHP

I want to deter novice users from seeing the source code. I have a php code that generates a html page. edit1: I came across a simple tool which encrypted html code into %C%D%F but which worked with the browser just fine. ...

Display Message if Flash Doesn't Show in IE8

Okay...so apparently with the new update in IE8, it starts up with NO add-ons. Since I cannot program a code to turn on add-ons in a browser, I need to show a message when this occurs. Much like an image has alternative text in the event the image doesn't load...how can I add a message that states: You are using Internet Explorer 8...

Content border not showing in any browser!

I have been working on a project for a few days now and have just recently noticed that the border of 2 of my content areas are not showing in Mozilla or IE. http://www.gamefriction.com/Coded/ is where the page is located. If you look at the main content area where the "news" is you will see that there is a 1px solid border that is a sl...

Refreshing a single component in a JSP page

Can I refresh a HTML component in JSP? I have two dropdowns. On selection of a value in the first dropdown the values in the dropdown box are to be fetched from the database. Is this possible using JSP? ...

How do I link to part of a page? (hash?)

How do you link (with <a>) so that the browser goes to certain subheading on the target page as opposed to the top? ...

Javascript: addClassName if input is checked and removeClassName if it was un-checked

Im trying to select all the li tags of the document and check if it hasClassName('yes') so if it has, it will remove it. But im having a TypeError: Object [object HTMLLIElement], has no method 'hasClassName' error. This is the DOM method: document.observe("dom:loaded", function() { $(document.body).select('input').each(function(ele...

HTML to 'pretty' text conversion for printing on text only printer (dot matrix)

Hi, I have a web-site that generates some simple tabular data as html tables, many of my users print the web-page on a laser/inkjet printer; however some like to print on legacy Dot Matrix printers (text only) and there-in lies the problem. When giving Print from web-browser onto dot-matrix printer, the printer actually perceives data...

Question regarding checking the state of a checkbox class

I'll try and make this question simple. Can I assign a class to a series of different checkboxes, and use Jquery to do something when any one of those checkboxes is checked? Searching around on the internet I have found documentation on grabbing the name: $('input[name=foo]').is(':checked') but when I swap out the name attribute for the ...

How to "scan" a website (or page) for info, and bring it into my program?

Well, I'm pretty much trying to figure out how to pull information from a webpage, and bring it into my program (in Java). For example, if I know the exact page I want info from, for the sake of simplicity a Best Buy item page, how would I get the appropriate info I need off of that page? Like the title, price, description? What woul...

What's the name of the technique where the images on a web page fade in as they scroll into view?

Here's a webpage that does what I'm describing: http://mashable.com/2010/05/13/mobile-tech-journalists/ What's going on with the images? It seems that they get loaded and fade in as you scroll them into view. Is there a name for this technique? Is it a new optimization technique? Where can I read more about it? ...

Skin Twitter HTML and CSS

I am building a twitter application and would like to use the structure of the their homepage. Can anyone suggest how to go about doing this, or point to a reference that does this? I do not intend to use any images that would be considered copyright, I just want to use the single column layout, with the side panel, header, footer. Tha...