html

Hello , I am using ExtJS V 3.0 . I want to know if it is possible to resize an iframe in an ext window.

Hello, I am using EXTJS V 3.0. I am poping an Ext window that contains an IFRAME in it. I would like the IFRAME to always fit the window content area. I would also like to know what is the current IFRAME size so I can resize inner iframe objects as well. Is it possible? Thx ...

Search cursor when clicked

Hello all. I have a search box with the value "Search...". At the moment the user has to delete this before they can type anything. How can the search text disappear when the box is clicked into? Thanks ...

CSS/Javascript (Mootools I think) Label placer

Hi there, I've been asked to place a form on our website, simple you might think, but this one has some cool little js in place to make the label for the input sit inside it, clever but for some reason not working as intended on my page. It doesn't place the label inside the Input field. It uses the JS to place the label and CSS for th...

Selecting image url from html using javascript regexp

I'd like to select the image source url from html code using javascript regexp. I'm using it to simplify using picasaweb images in other websites. I'm rather new at this, and I constructed a regex using http://www.regular-expressions.info/javascriptexample.html, and there it works like a charm, but not in my own script. Can somebody poin...

Custom Radio Div/Images/Buttons

I want the functionality of a radio button, yet have the option of choosing based on an image. For example, I am going to have a label (Payment Methods). I would like to set up various DIV/Images with each accepted payment (Credit/card, PayPal, western union, etc). Instead of choose a small little circle radio button, id rather them jus...

PHP:MySQL what if we don't close the opened connections

in PHP + mySQL $conn = mysql_connect("server","user","pass"); mysql_select_db("datbasename"); this is what we do to open a connection. and mysql_close($conn); this is what we do to open a connection. WHAT if we don't close the connections...what are going to be the effects after what CONDITION the opened connections a re automati...

How to emulate table cells with CSS (without float)?

Got: <ul> <li><div style="width:200px; display:table-cell;">Something here</div> <div style="width:40px; display:table-cell;">Edit</div> <div style="width:40px; display:table-cell;">Delete</div></li> </ul> Hopefull you get what I'm trying to do, have the first div be a fixed width. But I can't seem to do this, each div takes up a ...

jQuery load default page issue

I have this page which loads quotes. It has a search form wherein if the user types in the search keyword, it will load the results via ajax. Now, if I click on the link which should load the default page with the Quotes, instead of the search results page, nothing happens. If I am on the home/default page itself, and click on the link...

More than one font with Cufon?

Is it possible to have more than one Cufon font on a website? If so, how? ...

python html extract tags

How would it be possible to do the following: Scan through an html page (preferably through a whole domain (www.python.org) and extract all h1 h2 ...hn Tags and write all Headings to a file. In the correct order: Start with h1 Than h2 until we reach the next h1 ...

How to display a form list box as read-only or disabled with a selected index?

The user sees a form with many controls, including a list box. He selects a single item in the list box and presses "submit". In PHP I access $_POST[] and want to display the list box as read-only or disabled with his his selected item also selected. It should be read-only or disabled because I am showing him what he submitted and I don...

How to post two form with single submit click

I had two forms 1.login form 2.Registration form login form has the username and password fields and registration form consists controls for registration like username, city, country, etc., 3. Also, i have some hidden controls like <input type="hidden" name="ctrl1" /> <input type="hidden" name="ctrl2" /> <input type="hidden" name="...

Regex conditional

How would I write a RegEx to: Find a match where the first instance of a > character is before the first instance of a < character. (I am looking for bad HTML where the closing > initially in a line has no opening <.) ...

Replace templates in html files

Given a dictionary: 1=f00 2=bar 3=larodi . . . and some html files like: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> content content content {1} bla bla bla {3} &%$*#$*$%# {2} and so on... </body> </html> How to replace the keys in the files with their values with java...

CSS layout z-index centering

How do i center an element relative to the parent div and have it overlap the element in that div? Thanks. ...

Single HTML Anchor Tag Actually Renders TWICE! Screenshot.

I'm 10 lines in to my second attempt at HTML and CSS and it is immediately doing completely barmy things. I have the following code (this the entire page): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta con...

Quoting and escaping text strings advice

I am mainly C++ programmer who returns to PHP seasonly. Every time I return I spend time to get used to echo/print correct JavaScript/HTML/CSS regarding the single quote and double quote ...etc. I need an advice in the form of a set of rules to follow for good escaping practice. Edit This is a small example for my bad working code tha...

jQuery fading page redirect

I have a working jQuery page redirect. I want to fade into the page I am loading. $(function(){ var count = 5; countdown = setInterval(function(){ $("p#redirect").html("You will be redirected in " + count + " seconds"); if (count == 0) { window.location = 'http://link.com'; } if(count < 0) { $("p#redire...

How to dynamically increase the height of a <div /> based on the contents?

I have a div on a page that I need to put content into. Sometimes the content is a few lines high, and sometimes the content is more than the screen height with varying sizes in between. There is content below the div so I need that content to be pushed down appropriately, so the content below is always right below the div. Basically...

Strange Firebug Error That Includes the doctype

Theres a strange syntax error in firebug. I thought it was the doctype and have changed the doctype several times but no luck any ideas http://bootcamp.online-marketing-dallas.com/ ...