In answers to other questions it was pointed out that SourceForge's download page worked by adding a hidden <iframe>. This does no longer seem to be the case...
How is the current version of the download page implemented? I'd like to build something similar because I consider SF's solution quite elegant.
Ok, more precisely...True, the ...
Ok, quick ficticious example:
<div style="background: #CCC; margin: 10px;">
<div style="width: 50%; height: 400px; background: #FFF;">Child #1</div>
<div style="width: 600px; height: 400px; background: #999;">Child #2</div>
</div>
If I resize the browser to less than 600px wide (child #2), how can I stop the parent div from keeping on...
I use to jquery's ajax function to update a div on my page. Everything works fine, except my page is scrolled up.
I need somehow return to the updated div position. Any suggestions ?
...
This is a continuation of the discussion at
http://stackoverflow.com/questions/944158/php-multiple-dropdown-box-form-submit-to-mysql
which ended with the words: "Once you have the variables, it is trivial to create new rows." No doubt that's generally true, but apparently not for this learner... :-D
Given the following form:
<f...
Say I have a table of items and I want to add to every row a button to delete that item. Items come from a database, so they have an unique ID. In the jQuery function I have to retrieve the ID of said item so that I can open a confirm box and eventually redirect the browser to the delete page (nevermind security checks, it's for internal...
I'm trying to select a <div> inside of a <p> by name, but it's returning 0 results. The same type of selection works fine for <input> and <span>, but not for <select> and <div>. The code below demonstrates what I mean:
<html>
<head>
<script type="text/javascript" src="jquery-1.4.1.min.js"></script>
</head>
<body>
<p id="foo">
...
i am using a 3rd party library to show tooltips, like so:
string tooltip = "test";
output.Write("onmouseover='Tip(\"" + test + "\");'"); // work fine :)
i'm having problem with situations like the following where i need quotes for formatting:
string tooltip = "<span style='color:red;'>test</span>";
output.Write("onmouseover='Tip(\""...
I am designing a web page with an HTML table in which each cell is treated like a "pane". I have a or tag within each cell that uses the overflow:auto setting to allow the user to scroll through the data when it becomes too large for the cell. This works well, but the scrollbars are ugly. I want something sleeker and "less visible" ...
So I wanted to know if there was a way to grab a specific HTML tag's information using PHP.
Let's say we had this code:
<ul>
<li>First List</li>
<li>Second List</li>
<li>Third List</li>
</ul>
How could I search the HTML and pull the third list item's value into a variable? Or is there a way you could pull the entire unordered list in...
I have this top bar menu:
http://yoursdproperty.com/
I need to have the text always take up 100% of the width. how do i do this?
if I add more links i want the sizing to be dynamic
any ideas?
...
Can Google Chrome show HTML errors (e.g. unclosed tags)? If so, how does one do it?
Thanks
...
Would like to set cookies from the server (CGI - C)
Can it be set after the header has been printed?
Thanks.
...
How do I display an html document in an asp control, preferably an asp:table, programmatically from server side script? I currently open the html document with a Streamrader, read it into a string, then put it into the table, but all the html markup appears. I tried using HtmlEncode, and HtmlDecode, but cannot get it to work. So I have t...
How is, for example, a shopping cart cookie set?
Once something is added to the cart it "creates" the cookie but how does the next page know to send a new http header with this new cookie to the client?
How is a cookie dynamically set based on user input? Is this functionality dependent on anything else?
I did see this example, but ...
Will a tag like
<span id="suchAndSuch" class="blah" rel="this.that.other" name="this.name"></span>
or
<div id="suchAndSuch" class="blah" rel="this.that.other" name="this.name"></div>
throw IE and/or FF to QM? According to W3C, those aren't standard attributes for those tags, but it does not say if it'll make them invalid.
Your hel...
Hello folks,
Could someone please give me a clue as to why the following code does not work under MSIE?
<html>
<body>
<select id="si">
<option value="">1</option>
<option value="">2</option>
<option value="">3</option>
</select>
<script type="text/javascript">
var e=document.getElementById("si");
e.size=3;
e[0].style.display="none"; /...
beside swfaddress is there any other way to send data from a html page to a swf application? What I need is when a user clicks on html contents to change information inside the swf.
Thanks
...
I have a cgi web program (in C) that prints out different error messages to a log file. If the program is run again and runs into he same error, I do not want the same error message to log again. I'm looking at different options and any advice is appreciated. Thanks.
-Cookie: unable to set cookie after the html <head> section has been p...
Hi, I am fairly new to CSS and I wanted to know how can achieve this:
I am writing a page that will display a form in the middle (Represented by the black box). I want it to have white background that will overlap the body background (represented by the red lines).
Check out this site for the example image. (Sorry I couldn't post it in...
Question: What is the proper way to define a function in JavaScript that takes optional parameters?
For example:
function myFunc(optionVar1) {
if(optionVar1 == undefined) {
...
} else {
...
}
}
myFunc('10'); // valid function call
myFunc(); // also a valid function call
Is it proper to use a ? mark ...