Thanks for the responses.. i put a live version of the code.. to see if that helps resolve this. It is here:
http://www.zacharydesigns.com/sandbox/calculatorJS.html
I updated the following code to reflect what was offered as an answer.. however this just returns zero
I am having trouble wrapping my head around creating a simple equat...
Hello all
I"m trying to do something that I originally thought would be quite simple, but it's turning out not to be. Mainly I'm trying to have so I can have a textarea on a page, with a button that would allow the user to copy everything within the textarea to paste wherever they wish. However after slogging through a few attempts and ...
Hello,
I have a page that holds an iframe:
<div style="position:absolute; width:80%; top:100px; left:10%; z-index:5;">
<iframe src="www.google.com" />
</div>
Note that the source of the iframe can be from another domain, so I can't change the html in it.
In addition to this ifame I have a menu and some decoration image at the bo...
The problem is quite simple, but i spend too much time search for answer. So if someone can throw a little lihgt on the problem.
The CSS -moz-border-radius works with div, but i try to make it work on img.
-webkit-border-radius works flawless on img in Chromium.
Also i have tried to wrap image in div who is having rounded corners and use...
I have an Android application that generates some HTML which is rendered locally, in a Webkit view.
The details of the HTML generation aren't really that important except for:
the bulk of it comes from one place, and I cannot change it
the template around that HTML (including headers, footers, HEAD etc), the CSS, and Javascript is un...
I am extracting content selected by the user via this function:
function getSelectionHTML() {
var userSelection;
if (window.getSelection)
{
// W3C Ranges
userSelection = document.getElementById('axPage').contentWindow.getSelection();
// Get the range:
if (userSelection.getRangeAt)
var range = userSelection.getRa...
Is there a simple way to detect if the visitor is still viewing a page on a web page that does not require polling the server every X seconds?
If there was something less taxing on the server, that would be ideal.
...
Hi Guys,
Does anybody know of a PHP function to encode strings containing special characters like & etc. to strings containing corresponding HTML entities?
The purpose is to display string data on a webpage without causing XML parsing errors.
...
Hi Guys,
If I know the font size (12) and the font family (calibri), is there a way to determine the length (in pixels) a given string will take after it will be rendered? I am absolutely certain that the said font would be used. Are there any lookup tables for this purpose to determine the length in PHP code itself?
I am writing a PHP...
Hi, i have disabled all the checkboxes except one. On click of that checkbox i want to enable all the checkbox. and if that checkbox is unchecked then all other checkboxes should remain disabled. Could anybody please help me with this.
I have tried to use
$(document).ready(function() {<br>
if ($('#mainCheckbox').is(':checked')) {<b...
I'm very new to PHP and I have a small task of displaying a class list from an XML file. I have managed to figure that part out that took longer than expected. I'm running into some descriptions that have html characters that are not displaying on my page. I have tried numerous ways and nothing seems to work for me. Please take a loo...
Hi all,
I am having table created in html it look proper in mozilla but not in IE7
I think this issue is related to
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
can any let me know how this affects the pages
...
hi,
i have table unser it i have one td
with elemets inside the menu are coming dynamically from database that is .cs(c#) file i am assging the values
ex: i have admin, user, manager like these
now i need to assign vertical boder b/w them inside the td like this
|admin| user |manager|
as the element...
I'm really not liking my experience with php but I think it is a learning curve. Can someone look at my code and let me know why my html tags don't show for some of my classes?
$g_books = array();
$g_elem = null;
function startElement( $parser, $name, $attrs )
{
global $g_books, $g_elem;
if ( $name == 'AFFILIATEXML' )
...
It doesn't say it anywhere in the documentation, it only shows how to parse the tags.
...
Hi all,
how to store data in session for HTML
For IE 8 and mozilla we have like "sessionStorage" but it doesnot work for IE7 and below
is there something that i can use that will work for all version of IE and mozilla
...
i have a domain full-ops.com
that i transferred to another host, but it takes 5days to transfer it.
So what i want to do on my old host is make an iframe that loads in the site from the new host. so that the user can type in full-ops.com and go to the new site.
but is it possible through javascript or any other thing to have the correc...
How to show the div content with semi background color but not the text value
Example:
<div style="height:25px; background-color: red;">
Content
</div>
I want to display the div background as semi transparent and text as normally while the onmouseover event.
How can I do that.
...
Hi all,
I use vim for web development. These are almost always .php files, which also contain HTML and sometimes Javascript. While working in a block of PHP, indenting works fine. The syntax highlighting is okay, but only really useful for the PHP-code. When I want to edit an HTML block, I usually switch: :set ft=html, so that highlight...
I am not able to figure out why it is not tracing value for CompanyType. If I remove the CompanyType block from verification, it works well. It even successfully verifies CompanyName, but it fails at CompanyType.
Below is the code:
<script type="text/javascript>
//Check Company Name
if (document.getElementById("CompanyName").value == ...