html

converting a javascript string to a html object

Hi everyone, can I convert a string to a html object? like: string s = '<div id="myDiv"></div>'; var htmlObject = s.toHtmlObject; so that i can later on get it by id and do some changing in its style var ho = document.getElementById("myDiv").style.marginTop = something; Thanx a million in advance, Lina ...

Implement opening own links by own application

I would like to implement the following behaviour: I have a special media player, that is capable to play Internet streams (types of streams is not important, we can consider these are simply media files). A person X has a number of links to such streams, and the person will prepare HTML pages with the links according to my rules. The ...

Save output of a php file in a html file..

I am having a php file which executes some code to generate a html file.Its like I m having a form from which some data will be posted to x.php file, which gives a output(a webpage). I want to save that output in a html file.What the most efficient way of doing this.? EDIT I want to save it on sever side. Actually the thing is i want to...

Rounded Corners Image Change on Hover

Hello, I created a rounded box/button and sliced its first corner, the middle bar (which repeats horizontally to adjust the width of the button text/content) and the last corner and used following markup: <div id="left-corner"></div> <div id="middle-bar">About Us</div> <div id="right-corner"></div> These divs have corresponding image...

Buttons size not equal in IE and Firefox

I have few buttons on my jsp page and I am using the style as : *.buttonblue { background-color: #003366; border-color: #99CCFF; color: #FFFFFF; font-family: Verdana,Arial,Helvetica; font-size: 8pt; font-weight: bold; height: 20px; display:inline; line-height: 1.2; text-align: center; m...

Zend_Form_Element_Radio option label should not be escaped

I want to include some HTML in the labels of the radio buttons so that the user can click a link within that label. For example <label for="value-12"> <input name="value" id="value-12" value="12" checked="checked" type="radio"> Doo Bee Dooo Bee Doooo <a href="somelink">preview this song</a> </label> The html keeps getting ...

Regular expression from font to span (size and colour) and back (VB.NET)

Hi, I am looking for a regular expression that can convert my font tags (only with size and colour attributes) into span tags with the relevant inline css. This will be done in VB.NET if that helps at all. I also need a regular expression to go the other way as well. To elaborate below is an example of the conversion I am looking for...

Javascript working in chrome but not in explorer

Hello, I am writing this code in html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <script language="javascript" type="text/javascript"> function setVisibility(id, visibility) { document.getElement...

HTML inside webView

I am posting some data to a server using DefaultHttpClient class and in the response stream I am getting a HTML file. I save the stream as a string and pass it onto another activity which contains a WebView to render this HTML on the screen: response = httpClient.execute(get); InputStream is = response.getEntity().getContent(); Buffered...

html vertical space between blocks appears

Please have a look at this page www.pixeli.ca/issue. I have begun making a page layout using CSS framework 960.gs. My problem is that there is some strange space appears between block with top image and blue block with "hello" string. So you can see a green stripe there that shouldn't be visible at all. I tried different variants and hav...

Javascript access TR from TD

Hello. I have a table row, and within that, I have a td (whatever it stands for). I want, without an ID or a name, to be change the class attribute of the TR my TD is in. Like that: <tr> <td onclick="[TR].setAttribute('class', 'newName')">My TD</td> </tr> How do I do it? ...

How do I populate a dropdown list on an ascx view user control MVC?

I have a drop down list hardcoded in a MVC View User Control page and would like to populate this from a database table. The MVC View page Inherits data coming in from my controller. This drop down list would contain something like a list of states for the user to choose to set an item for my main object. This list would not fit into th...

Refresh iFrame (Cache Issue)

We are getting a weird issue on which we are not sure what exactly cause it. Let me elaborate the issue. Suppose, we have two different html pages a.html and b.html. And a little script written in index.html: <html> <head> <script> function reloadFrame(iframe, src) { iframe.src = src; } </script> </head> <body> <form> <iframe id="...

IE 6 bug? width: 987

I'm having a very weird issue in IE6. If I set a div container do the width of 987px it adds a spacing between the container and an absolute positioned element inside. Any other width works fine, it's just 987. Is there something I'm not seeing? Code to reproduce: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3....

how can i put an image into select?

i have this script <select> <option value="1">one<img src="star.gif" height="15" width="15"></img> </option> </select> but it doesn't work. how can i put an image into select? thanks update: so it's impossible?:(maybe via javascript?... ...

Overriding mac's input forms

How can I override the input forms that viewing a site on mac adds? It displays like other inputs just fine in windows. Thanks :) http://i40.tinypic.com/653kts.png ...

Embedding a YouTube Video Based on a PHP Variable

I have a website that I am creating for a class project. The website shows information about bands (which is stored in a mysql database). I am trying to spruce up the site a bit, and I would like to embed a YouTube video based on the band's name. Say, for instance, I have "Led Zeppelin" stored in my database. How can I take a PHP variabl...

swfobject 2.2 showExpressInstall -> How do you specify your desired version of flash?

With swfobject 2.2, how do you specify the desired version of flash you require? I need flash 10, but swfobject won't perform an upgrade install with the provided expressInstall.swf in the swfobject 2.2 distributable. How do I get an upgrade install to occur for flash 10? ...

PHP HTML Embed PHP Tags within a .HTML Document Is This Possible??

Embedding HTML within .PHP files is one of the primary functionalities of PHP, but is it possible to do it the other way round? I mean, embedding PHP tags, , within a .HTML document?? Is this sort of coding possible? Any suggestions welcome. ...

sending over page number in html form

I am trying to send over a page number to a page using a html form. The problem is every-time the form is submitted, it overwrites the page GET value, with all the other GET values being sent over from the form. the form is below <form action="searchPage.php?page=0" method="get"> <label for="search" id="searchLabel">Search:</label> <i...