Simple Price Script Not Working ?
Jan 20, 2010The script is located here: [url]
Code:
The script is located here: [url]
Code:
I am trying to come up with an instant price quote calculator in javascript.it would be a simple one with only three fields:
"label" -Number of Shirts
"label" -Number of Colors on Front
"label" -Number of Colors on Back
"button" calculate total
"results" total: $xx per bagxx
total price would decrease based on the number of shirts (more volume) / increase based on the number of colors both front and back.
something i found online that is 100% what i want:[URL]i am not too familiar with javascript. ok tinkering with jquery but that's it.i am obviously not asking anyone to work for free but if someone could point me to a semblance of a solution, some code, something online that i could modify etc. i would love to learn javascript in the process and ideally come up with a working version of the calculator.
i tried to work with the .js from that website but it calls in some qq2.php page. so i haven't been able to replicate the solution. plus, i would assume that their price structure would be different than mine.
[url] I found a script that calculates the price of a journey from A to B using this formula:
Quote:
This current formula is not accurate.
Here is what I need:
First 2 Miles = £5
Each mile after that = £3
Alright simple JS question code...
It's supposed to remove the text if it contains "First Name" and put it back if it equals nothing.
Why doesn't this display [ window, 'one', 'two' ] ?
HTML Code:
This code works:
Code:
<html>
<script language="Javascript">
if (document.images) { [url].....
What happens: You see both image1 and image3, but when you mouse over either of them, nothing happens...So I'm trying to have "multiple images" rollover...
Edit: So by adding in the red, that's when all rollovers cease to function.
Simple random pic script that I found on the some other forum (I forget what it was) code...
code anchors to HTML markup [CODE]
it is working perfectly for Safari and Chrome. Nothing is showing for FF.
If the value is equal to 0 it will give an alert and return false. Then if you change the value of the drop down it won't let you submit.
<script type="text/javascript">
<!--
function validate_form ( )
{
[code]....
I have a simple function defined on my page in the script section that should put me in a div named "apDiv4" a text when i press the down arrow in a text input called 'search2'. But it does nothing.
Here's the function:
And here is where i call it:
Why this doesn't work? I've tried onkeydown= "KeyCheck()" too.
Code is not working .
<HTML>
I was following a tutorial and i got stuck. The script is...
Code:
My ID's match up to the ones in the script, but the modal just displays on the screen, it will not let me close it or open it with the buttons i have created.
Heres the HTML...
Code:
I am getting stuck with an onClick function. I test for matching 'id's in the html document and when I have a match I want to attach the onClick function. In firebug I can see the match in the if statement is fine, the onClick function is attached to the element and I can watch it stay there through to the end of debug session. But when I click on the element.
Code:
this is not working. it's a list of client names, (lawyers.....blehh!) separated by an * (asterisk), the second line is the problem(?),[code]
View 5 Replies View Related[URL]This is my website and you can see the images in the header are messed upbecause I tried to use "jcarousel" but it is not working and I have to sort this out
View 3 Replies View RelatedFrustrated and exhausted. I've created a menu with the following code, but I'm getting this error ("invalid assignment left-hand side
<a class="nav-image" href="/menu-link'">
<img class="image-menu-rollover" src="/image.png">
<span class="nav-txt">menu-title</span>
[code]....
I am trying to do a simple echo onclick, but despite what I try to do, it shows no errors, but won't work. I've tried things like:
echo "<div onclick="alert('test');">t</div>";
echo '<div onclick="alert('test');">t</div>';
But just can't seem to get it to work right. I'm trying to do this on a script that is being eval on the ajax request. Thus I'm having problems placing the ',", marks.
I know I have a simple syntax error. Trying to call a function which changes the style of a div element on mouseover. Heres my code.
Javascript
function countermarker1(){
var box1 = document.getElementById('countermarker1box').style.display
box1 = "block" }
Variable is used cause I will have to use it more often later in the script.
HTML
<div id="countermarker1">
<img src="countermarker.jpg" width="20" height="14"
onmouseover = "countermarker1()"; /></div>
CSS (know its not really relevant just to avoid questions about whether its right)
#countermarker1box {
height: auto;
width: 80px;
display: none;
}
JS and css is externally srced.
I am trying to do a simple email validation for a form with javascript that doesn't seem to work. I have tried pasting it into both the head and body of my html document. I have also tried unsuccessfully to link it as an external .js file. I have tried numerous scripts that I have found online but none have worked. I am new to programming and don't have much experience with javascript.
View 2 Replies View RelatedTired to see what's wrong here!
<script>
I have a simple font size function as follows which works fine across safari/firefox but does nothing in IE?[code]...
View 1 Replies View RelatedI'm pretty new to jQuery so try and go easy. Trying to do a simple AJAX POST using the jQuery post method and it doesn't seem to be working.
Heres my code:
$.post("sub-account-ajax.php", { email_address: "test@test.com" },
function(data){
alert("Data Loaded: " + data);
});
Heres the code for sub-account-ajax.php:
<?php
if (isset($_POST['email_address'])){
echo 'youre set';
}else{
echo 'nothing set';
}?>
When this code is executed I do not get any alerts or any error messages whatsoever. I've been pretty good with figuring things out so far with jQuery, but this is the first I'm stumped with.
The actual plugin is much more complex, but I can't even get this simple alert to show...
View 1 Replies View RelatedThis code doesn't work.
$('#lightBoxCloseButton').click(function() {
$('.css3Lightbox').hide();
});
Just wondering if anybody went through this before. The following code works fine in IE. It looks for checkboxes named market, although I use market[$id] for each checkbox. Code:
View 4 Replies View RelatedI'm doing some simple tests and I can't get this to work on a wordpress site. Basically I'm trying to fadeOut a div with id of "box" when a link is clicked. I mentioned Wordpress because the head code is loaded dynamically into the page template, as well as the body content. I wasn't sure I this made a difference in diagnosing the problem. When I load the page, Firebug keeps giving an error...
$('a') is null
Here is my stripped html code...
<head>
<script src="[URL]"
type="text/javascript"></script>
<style type="text/css">
#box {background-color: red; width: 300px; height: 300px;}
</style>
<script type="text/javascript">
$(function() {
$('a').click(function() {
$('#box').fadeOut();
});
});
</script>
</head>
<body>
<div id="box">
</div>
<a href="#">Fade Out</a>
</body>
I have a simple function to display an image when called, but if I try to rewrite the function to take the image as an argument, it stops working.
works:
<html>
<script language="JavaScript">
var ImagePlusSign = '<img src="plus.jpg" name="slide" width="65" height="50"/>';
[code]...