In the following code I would like the div with 'y' to match the height of the div with the 3 'x's.
<div style="border: 0px solid red; margin: 0px 0px 5px; overflow: hidden;">
<div style="border: 1px solid rgb(129, 11, 0); margin: 0px; padding: 5px; background-color: rgb(30, 23, 22); width: 312px; float: left;">
x<br/>x<br/>x
</div>
<d...
Now, I'm just fooling around with this and I'm not sure as to why this isn't working.
#include <winsock2.h>
#include <ws2tcpip.h>
#include <iostream>
#include <cassert>
const char html[] = "HTTP/1.1 200 OK\r\n"
"Connection: close\r\n"
"Content-type: text/html\r\n"
"\r\n"
"<html>\r\n"
"<head>\r\n"
"<title>Hello, world!</title>\r\n"
"</h...
I've say almost everything in the title :
In firefox (or IE or whatever), when the tab is closed, I remember you could be notified of this, and I'd like to notify my Flex app and tell it to close (whenever it's possible) all the connexions that are opened.
Does anybody know the way to do this ?
Thank you !
...
In PHP, Are there any patterns people use to submit forms? A form submission best practices.. etc.
Example, I am trying to achieve a CRUD operation. Initially I have been using a same function for handling form-display and form-submission
class Somecontroller extends Controller {
function form1_add() {
// if submit exist save it...
How can I only load the HTML of a page into an IFRAME, without automatically triggering the download of all the css,scripts,images,videos on the page?
Or can you get an event the moment the DOM is "ready".. when the initial HTML has loaded and nothing much more.
...
I have such html and css.
<div class="selected">
<div class="text">First</div>
<div class="arrow"> </div>
</div>
.selected { width: 150px; }
.selected .text { background: url(dropdown_text.png); float: left; }
.selected .arrow { background: url(dropdown_arrow.png); width:22px; float: right; }...
I have been trying very hard to achieve rounded corners with IE6+jquery ui tabs.
I have this page prepared: http://jsbin.com/uzoko (w/out dd_roundies)
Ofcourse, the rounded corners work in FF but not IE6. Because some of the properties used in CSS are specific to FF and Chrome.
I had asked this question yesterday and based on tha...
I am designing a regular expression tester in html and javascript. The user will enter a regex, a string, and choose the function they want to test with (eg search, match, replace, etc. ) via radio button and the program will display the results when that function is run with the specified arguments. Naturally there will be extra text bo...
I have a 30-ish page manual in docbook. However, working with docbook is so painful that I don't really update it. I want to switch to restructedText instead.
I can't find any direct translator (the best I could find is ezComponents, but it fails on the docbook sgml). Maybe there is an indirect route through RTF or some other format, bu...
I have been using a lot of floats recently like this:
<div id="buttons">
<input type="button" id="btn1" value="Button One">
<input type="button" id="btn2" value="Button Two">
<input type="button" id="btn3" value="Button Three">
</div>
Sometimes I'll float a button to the right. Sometimes I'll float all of them to the right. This...
Hi,
i would like to display images on my website that are stored on a visitors local filesystem.
Assuming I have the location of the image on the visitors drive (e.g. c:\Documents And Settings\Ropstah\image.png), is it then possible for me to display this image in my internet website (e.g. www.website.com)?
The images won't seem to l...
I have some script in my default page that redirects users to language specific versions of my website depending on the language of the browser. I want to add something that redirects those users who do NOT have Javascript enabled.
Currently I have the following :
<noscript>
<META HTTP-EQUIV=REFRESH CONTENT="1; URL=en/index.htm">.
</...
I am trying to access data from table with GetString() method and that data is stored in some variable then it must be loaded to html form when i am click the submit button. How to it? Please help me......
...
I have some jquery code that is doing an ajax lookup and returning comma delimited values (value1, value2, value3...)
I want to prompt the user with these values to find out which one they want.
I'm not having much luck finding an jquery extension that will give me a pop-up window, show list of values and return the seleted value.
Any...
Is there a way not to process fields with a “display:none” style ? The fields are dynamically hidden using javascript but are processed normally in PHP.
I’m looking for a PHP solution (no javascript).
...
Hey guys
In ASP.NET webforms and ASP 3 (Classic ASP), I came across an issue whereby naming your form submit button "submit" would "break things". Below is the rendered HTML:
<input type="submit" name="Submit" value="Submit" id="Submit" />
I say "break things" because I'm not sure exactly why or what happened. But the symptoms usuall...
I'm trying to add an arrow image beside the text within a span. Here's the HTML I'm working with:
<span id="status" class='unreviewed'>
Unreviewed
<img src="bullet_arrow_down.png" />
</span>
Now, I've coloured the background of the span with this css:
#status {
float: right;
position: relative;
cursor: pointer;
-moz-back...
I am posting a form that has many similar fields (artist1, artist2, .... artist20). I am trying to add them to a database but I am not sure how to easily get all of the posted data with out having to write out each one separately. How can I combine an int to a string so that I dont have to write each one out? This is one way I tried that...
Hi, i have the problem that IE cant bring up opener window when i call
opener.focus() method
window.opener.focus(); // After that, child window stay in front.
html1.htm file:
<script type="text/javascript" language="JavaScript"><!--
function toCompare() {
wCompare = window.open("html2.htm", "wCompare", "width=800,height=600,res...
How do I prevent CSS from applying my styles do descendants of descendants without giving them classes or ids? e.g.
#mycontent table {border: 1px solid red;}
Will style the correct table, and then ALL tables inside that one too. All I want is the first table to be selected, not all the subtables.
...