html

Python Qt: embedded html bug?

Hi Everybody, Here is a strange thing that is happening... I have used embedded html with Qt Python to display a form inside the GUI/Widget. The problem is, if the cell has more content, it shows a black shadow like a box on the right side of that cell/table. Here is an example of the code working fine: html += ("<BR><BR><table bo...

How do I embed an SWF file in an HTML page without IE having a fit?

I'm trying to get an HTML page to run a shockwave-flash video. While I can do it no problem using: <object width="350" height="263"> <param name="movie" value="video/star.swf"> <embed src="video/star.swf" width="350" height="263"> </embed> </object> IE will not run it without a two-stage verification that you want to...

Python Qt: Qprinter not defined

Hi Everybody, I am trying to put the printer to run the output from an html document. Here is a small function to do that: def callPrinterHtml(self,document): self.printer = QPrinter() self.printer.setPageSize(QPrinter.Letter) dialog = QPrintDialog(self.printer, self) if dialog.exec_(): document.print_(self.pr...

100% div height

Hie Everyone I am designing a webpage with a fluid layout. I want to keep a 100% width and a 100% height. The problem is i dont know how to keep divs "left" and "right" with a 100% height inside their parent div, "wrapper". <div id="container" style="width:100%; height:100%"> <div id="header" style="width:100%; height:100px"> ...

Displaying the contents of the xml page

I am new to iphone development.I want to parse an xml page .The source code contains some htmls tags.This html tag is displayed in my simulator.I want to filter the tags and display only the content.The sorce code of xml is like <description> <![CDATA[<br /><p class="author"><span class="by">By: </span>By Sydney ...

CSS - Margins a bad thing?

Hi, I've noticed that some browsers have trouble with margins, especially when an element is floated. For example, this website I'm doing looks fine in Firefox, but IE7 screws up the margins completely it seems. I also testet it on several Linux browsers as well and some of the make similar mistakes. The site is http://w3box.com/mat T...

Not able to set 'readonly' on text input box

Is there any obvious reason why this input box is editable? <input id="username" name="username" class="textfield70pc" readonly="readonly" type="text" value="My username" /> It seems kind of pointless having to use javascript / jquery to disable this text box. ...

Ajax/PHP contact form not able to send mail

The funny thing is it did work for one evening. I contacted my host, and they are saying there's no reason it should not be working. I have also attempted to test it in Firebug, but it seemed to be sending. And I specifically put the email address (hosted in my domain) on my email safe list, so that is not the culprit either. Would anyo...

Finding name attributes inside a tag using php

hi i want to find the name attribute with in a tag in a form using php4 . Does any one help me how it find.. eg <input type="text" name="txt_name" value="" > I want to know name of all the fields ...

How do I progrmatically (via JQuery) set the content of the YUI text editor?

Hey all, I expect this is a newbie question despite smashing my head against the YUI documentation. I have a page with a YUI Simple Editor (called 'myEditor'). It hooks to a text area called 'posttext'. New editing is fine, but the problem I am solving right now involves the user clicking on one or more existing elements, and putting...

Second linked stylesheet has no effect

I'm having problems linking a second stylesheet to my HTML document, and cannot find the (hopefully painfully obvious) problem. I'm linking stylesheets in the head thus: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <link rel="stylesheet" href="assets/css/global.css" typ...

how to identify an html div id which starts with some pattern using jquery

normally we use something like this to identify Id using jquery $("#PhotoId").html('some html'); here we get the html (say div) having id 'PhotoId' what if the id is partially dynamic i.e. lets say there are multiple photoes each id would start with 'PhotoId' EX. $("#PhotoId" + result.Id).html(some html'); NOW, i want to identi...

Extracting content from the string which has html tag in it in objective-c

I am new to iphone development.I am having a string which has HTML tags in its content.I want to filter the tag and save the content in another string. Ex: NSString *HTMLData = @"<h1>Hello this is a test</h1>"; I want to filter the header tag and set the content to another string like NSString *actualData=@"hello this is a test" or...

How to hide the URL address which shows on the bottom of the papers when printing something from a website?

Is there away to make a web page print without showing the URL at the bottom of the printed pages? Or if possible to hide the page numbers which shows at the top? ...

Is there a way to select one whole column in a table to style differently?

Is there a way to select one whole column in a table to style differently? without adding class or id to all those td? I want to do with HTML and css 2.1 only. with cross browser compatibility ...

How to create a logout code for php

i'm using this code: but doesnt seem to work because the structure of my html file has 3 frames, a sidebar, title, and the main. Now, the user will have two buttons, the call new sidebar. Which is only accessible if he has logged in. And the other button is log out. When the user press the call new sidebar. The sidebar will change into ...

self destruct button in html

Is it possible to destroy an html button. If it is clicked because it already served its purpose after clicking. ...

Ignore CDATA while xml parsing

I am new to iphone development.I want to ignore CDATA tag while parsing because it consider the HTML tag following it as text.Since i want to display the content alone ,i want my parser to ignore CDATA tag.My source code is [CDATA[<br /><p class="author"><span class="by">By: </span>By Sydney Ember</p><br><p>In the week since an </p>]]. ...

Is there a JS diff library against htmlstring just like google-diff-match-patch on plain text?

Currently I am using google-diff-match-patch to implement a real-time editing tool, which can synchronize texts between multiple users. Everything works great when operations are only plain texts, each user's operation(add/delete texts) could be diff-ed out by comparing to old text snapshot with the helper of google-diff. But when rich f...

Is it ok to place link elements outside document's head section ?

It's stated that the link element must be embedded in the head section. I need to link some style sheets to a document with static predefined header (rendered by legacy framework). So I can't insert the tags to the head. Can placing them outside cause issues with any browsers ? Or maybe its better to insert the tags with javascript ? ...