html

A href catching

Hello, I'm using BeautifulSoup for parsing some html. Here is the content: <tr> <th>Your provider:</th> <td> <img src="/isp_logos/la-la-la.ico" alt=""/> <a href="/isp/SomeProvider"> Provider name </a> &nbsp; <a href="http://*/isp-comparer/?isp=000000"&gt; </a> </td> </tr> I have to get SomeProvider text from the link . ...

img, empty src make influance on php working in IE?

i hate situations, when i can't explain the behavior of compiler. So help me please to understand, how it possible... i have two php files - index.php, and admin.php. in index.php i make registration, and captcha checking, and if they are correct, i set the value of session variable to somevalue,(at first it has anothervalue) and redire...

HTML5 - Can it do this? Today?

In HTML 5 is there any support for things which are really easy to do in Silverlight? For example, ripping a file (chosen by the user) into an array of bytes that can be base64 encoded and passed up to a web service? Or, creation/reading of an image and being able to manipulate the pixels and display this on screen? Or even save it to ...

Can any HTML element be styled as a fieldset/legend?

Using the display property, HTML elements become interchangeable from a styling perspective. This doesn't seem to be the case for fieldset and legend, however. Is it possible to style other HTML elements to look like fieldset and legend? ...

Getting adresses of "Contact Us" page of any web site

I want to capture addresses given on "contact us" pages. Is there any PHP script to do so? I am struck because of it. My client wants to store adresses of the web sites given on "contact us" pages. I am able to get content from the page. But I am quite confused how to get only the address from this page. For example: www.abc.com/contac...

How to exclude portions of text when copying

Im trying to make some text non-copyable, my aim isn't to stop people from copying text from my website but more to make it easier to use. I have a list of files with file size's but I want to only copy the file names and not the file size. So far i'v tried a few different methods but non have worked, I have managed to get the text non-...

jQuery lightbox problem

I got two divs, one is a background and the other is the container for a vid which is on top of the former. Another div serves as a button that when clicked, it triggers the lightbox. Here's my code: //0 means disabled; 1 means enabled; var popupStatus = 0; var buttonDivID = ""; var conDivID = ""; //determine which div is clicked fun...

html pre-formatted text

i have to show * something like this using c# on web page * ** *** **** ***** **** *** ** * ...

Leave allowed html-tags and remove all others in text using Python

I want to add to my site ability to use some html-tags in text editor. So when user posts some text I need clean up this text - remove html-tags which are not allowed and leave allowed tags. For example, on StackOverflow: http://meta.stackoverflow.com/questions/1777/what-html-tags-are-allowed So I need some parser which has list of al...

Is the use of a <br/> tag between a <label> and its <input> good practice?

The fields in my form have a label, some help text, some example text, and some contextual text. <!--With Help and Example--> <li> <label for="ingredients">Ingredients</label> <br/><!--Is this good practice?--> <span class="help">Enter one ingredient per line.</span> <br/> <textarea id="ingredients" name="ingredients...

iframe to Only Show a Certain Part of the Page...

Hello, I am working on iframes, and I need to show a certain portion of the page [say, the top right ] in an iframe with about 300px width and 150px height. Example: Say I wanted to put an iframe of www.mywebsite.com/portfolio.php on a page, but have the iframe sized to only show the "portfolio-sports" section at the top right. How ...

Programmatically selecting text in an input field on iOS devices (mobile Safari)

How do you programmatically select the text of an input field on iOS devices, e.g. iPhone, iPad running mobile Safari? Normally it is sufficient to call the .select() function on the <input ... /> element, but this does not work on those devices. The cursor is simply left at the end of the existing entry with no selection made. ...

Process HTML in javascript

I would like to remove all instances of a .class in an html. remove class "s" remove <span class="s">some text</span> in html Output remove some text in html What's the easiest way to do this? ...

How to iterate through DOM elements that match a css class using xpath?

I'm processing an HTML page with a variable number of p elements with a css class "myclass", using Python + Selenium RC. When I try to select each node with this xpath: //p[@class='myclass'][n] (with n a natural number) I get only the first p element with this css class for every n, unlike the situation if I iterate through selectin...

iPhone 4 ignoring viewport meta tag

I have just added the following HTML to the <head> section of my iPhone web app: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> This (supposedly) limits the zoom of the page so the user can't zoom in. On the 3GS and previous versions, this tag is respected - but the iPhone...

using xsl to generate html for excel needs more formatting

I'd like to set the background color for some tags. Neither CSS background-color or attribute bgcolor seems to work. Is there a mso- CSS that will give me background color? Perl, XSL only, No Microsoft products. It should work for OS X and Windows, with current versions of Excel. xml: <d>Y</d> html: <td class="Status Y" bgcolor="yell...

HTML Forms - Prevent some users checking a checkbox

Hi I have a form that users fill in . Acording to the level of access they have, I want to prevent some of my form being filled in. If I have a text box I use this onfocus='blur() with a bit of php to check the users privileges .But this does not work for a checkbox. Can anybody suggest how I can prevent a user from checking a checkbo...

What's a good Linux IDE for HTML\CSS?

Are there any good HTML\CSS IDEs available for Linux? I don't mean a WYSIWYG editor; I pretty much just need text editor with syntax highlighting and a preview pane w/something similar to Firebug. Does anything like that exist? ...

jQuery add a link to remove a control dynamically

Hi, I can generate the controls but can't remove them. I'm trying to add a 'Link' which will call a function to remove dynamically created control. The control and link are next to each other. Here's the Java script and mark-up to create the control: <script type="text/javascript"> $(function() { // when document has loaded ...

Looking for html string jquery parser ( parse <a> links and <img>images)

Hi, I am Looking for html string jquery parser ( parse <a> links and <img> images) or for code that will parse all links and images from html string (Html string can be very big). Example: input: sdsds<div>sdd<a href='http://google.com/image1.gif'image1&lt;/a&gt; sd</div> sdsdsdssssssssssssssssssssssssssssssssssss <p> sdsdsdsds <...