html

How to convert a single HTML file to mulit-pages HTML file for iPhone screen ?

hi, I want build a app that can show HTML file but it will be most like ebook effect . if the app read a large single HTML file then it will show some pages views but in a single WebView . I try to parse the whole HTML file and regenerate it as many HTML files , in this way, it can be load in the WebView one by one .... like the ebook...

HTML Agility Pack - Select nodes after specific node

I asked the question in a codeplex discussion but I hope to get a quicker answer here at stackoverflow. So, I use HTML Agility Pack for HTML parsing in C#. I have the following html structure: <body> <p class="paragraph">text</p> <p class="paragraph">text</p> <p class="specific">text</p> <p class="paragraph">text</p> <p ...

Clean/Disable forms history

Hi! I am building my chat app using Djago and Ajax. How d I disable the form history popping up while typing in a message? Its annoying! :-0) ...

What is the best way to determine your web page has been made active (including switching browser tabs)?

I have a web page which is fetching new content (AJAX). If the page does not have the focus (eg. Minimized, or you are on another browser tab) I want to change the title of the page to display how many new comments have appeared. When the user gives focus back to the page I want the title to remove the message. The activation of the p...

how to embed/stream internet radio on a website?

Hi there, I can use, for example, something like <object id="MediaPlayer" width="300" height="50" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Live Player components..." type="application/x-oleobject" CODEBASE="http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"> to...

how to get the contents inside a div along with all html tags along with values present in text box etc tags

how to get the contents inside a div along with all html tags along with values present in text box etc tags . The jQuery function $('#divid').html() is working in IE but the firefox i am getting the html but the values which are in text area and text box are not setting. Thanks, Shriniket ...

how to convert the webpage to xml document using java?

The assumption is the webpage is coded with correct tags. How can I Convert it to the XML file? I think the most webpages can be viewed as dom tree...How can I convert it to XML file? ...

jQuery 1.3.2 adds sizset='' sizcache='' attributes on IE when I use .html() function

When I do $('div#tborder').html() I get following: <DIV id=tborder style="BORDER-RIGHT: #000 1px solid; BORDER-TOP: #000 1px solid; DISPLAY: block; FONT-SIZE: 12px; BORDER-LEFT: #000 1px solid; BORDER-BOTTOM: #000 1px solid; FONT-FAMILY: Arial; TEXT-ALIGN: left" sizcache="9" sizset="124">Some Text </div> See the additional sizcache...

How to create custom media type in WordPress?

I have some custom media (special map points for example) I want to associate custom data player with it and place its instances in media library (so them to be accessible in media gallery), keeping possibility to edit it any time user wants to. how to do it? Sorry for my Eng.Lang feel free to edit this Question. ...

What is a good PDF to HTML converter for Ruby on Rails?

I'm trying to convert programatically PDF to HTML. So far I've been using pdftohtml but our users are not happy with the results. Here's what I need : I'm using Ruby on Rails, but any tool working on Unix would work as I can call it from the command line. But of course a nice gem or plugin would be perfect. I'd prefer it to be open s...

Is it harmful to put any comment as a first thing in CSSfile?

Is it harmful to put anything as a comment as a first thing in a CSS file? Can it cause any problem in any browser or does it have no cons? ...

Footer background should extend to bottom of browser

Hello everybody, I have a problem with fixing the footer to the bottom of the browser .. The problem is when resolution changes or windows resizes the footer content overlaps the content of the website, here is the current css for footer div div.footer { position:absolute; bottom:0px; } Does anybody knows how can I fix t...

Why this javascript is not working in IE?

I am using the following javascript to dynamically add rows in a table:- var trObj = document.createElement('tr'); trObj.setAttribute('name', 'dynamicTR'); var tdObjEmpty = document.createElement('td'); tdObjEmpty.setAttribute('colspan', '2'); tdObjEmpty.innerHTML = '&nbsp;' trObj.appendChild ( tdObjEmpty ); var tdObj = docum...

The text format within <pre></pre> is gone, what's wrong?

I input some text in <textarea></textarea>, I enter some line breaks, spaces,etc. purposely. However, after the text is submitted and rendered within <pre></pre>, the newline, whitespaces are gone, they are replaced by something like \r\n\r\n, what's wrong? How can I keep the original format? <textarea name="detail" id="detail" rows="7...

How do I add an email preview button to a form in MS-Access 2003

I'm creating a form on MS Access 2003 that will send out a html email newsletter to a list of email addresses. How do I put a preview button into my form that will let me preview my email before I send it? I think I have to use an active-x control, but I have no idea where to start. ...

How to put an image/icon before select option text?

Looking to place different icons in front of items/options in a HTML select box. ...

Can you have a hyperlink in a text field?

Can you have a text field with hyperlinks in it? ...

html+css: screen vs. print behavior

I'm trying to understand screen vs. print behavior. What's the reason the APSW docs look different in print vs. screen? (in print, the table of contents column vanishes, and the main column takes up the whole print width) (I'm trying to debug my sphinx document which doesn't have this behavior, but I figure if I can understand one that ...

JavaScript: Sluggishness events? Google Chrome "Speed Tracer" extension is reporting

Using Google Chromes new Speed Tracer extension to profile my app. Appears my app is constantly reporting "Sluggish (events) 100%", which means the browser is blocking html rendering. I don't understand enough how to interpreter the Speed Tracer tool to fix this issue. Any help appreciated. My web app is: bit.ly/7J0U ...

what version of safari is the iphone os using? (as of 12/14/2009)

What version of Safari is on the iphone now? Is it Safari 4? Safari 3? 2? Something in between? In other words, when I'm writing code for the iphone, which version of Safari for the pc/mac will be the most accurate version to test it with? I think I've already run into a case where the canvas tag is handled differently on the iphon...