Need DHTML Answer ASAP
Aug 13, 2010what is the function of code...
View 2 Replieswhat is the function of code...
View 2 Repliesi need to make my alert box stand out a bit more i have looked everywhere but can't find anything! i was looking to do stuff like Bold, Italics, Underline, Fonts, Sizes, Borders, Backgrounds maybe something that flashed!i'm not asking you to do it for me just tell me how and were to put the different codes!
View 3 Replies View RelatedI am creating a new Option and putting it in a select menu. The problem is that the TEXT property is not showing up in IE7. I end up seeing a blank option. The .text property can be used (by alerting option.text) but its not showing up. It shows up find in FF.
Here is how I create the option:
selectMenu = document.getElementById('possible_manufacturers');
newOption = new Option("Test",'test');
position = man_list.indexOf('Cannon');
shoveOption(selectMenu, newOption, position);
Here is the function I am using to put the option in the select menu:
function shoveOption( selectMenu, newOption, position ){
// {newOption} will be placed BEFORE the option at {position}
startLength = Number(selectMenu.options.length);
y = 0;
for(x=0; x<startLength; x++){
if( x == position ){
selectMenu.appendChild(newOption);
}
chosen = selectMenu.options[0];
clone = chosen.cloneNode(true);
selectMenu.appendChild(clone);
selectMenu.removeChild(chosen);
}
}
This line is so simple, and yet not working correctly:
selectMenu.appendChild(newOption);
I desperately need to create a tree menu to function similar to http://support.novell.com (grey menu on the left). I am working on the largest web project of my career and the programming is a little over my head to a relatively new designer...so any help or suggestions would be great. I tried their code to see if I could make it do anything but nothing helps....I'd love any help and would certainly give you proper credit. If you want, you can email me at: wentworth499@msn.com
Note: Does anyone know how it's done in Dw...or some way to copy code and paste in to DW to test it to see if it works...everything I've tried will not work in DW.
I need to alert the answer 31 but keep getting 34. It has to go like this ticket*reward+cost. It would be 24+4+3=31. I would need to times the tickets by rewards then add the cost after. How would I alert this? code...
View 3 Replies View Relatedwhen I click the check box the answer appears. When i click of it, it does not disappear....
<IMG src="/ukassets/images/75/CM%20new%20template/index_r2_c1.jpg" border=0>
<style type="text/css">
#container {
[code]...
I am obviously new to Javascript, etc me by pointing out what is wrong with my code while changing as little as possible ... and if you could also please explain the part that says code...
as I copied that portion from someone and I really don't understand it. code...
I have created a checkDelete function to ask the user if he wants to delete the selected entries from a database. The problem is that choosing cancel still deletes those entries.
This is the function code...
m just a beginner in java scripting.I just made the following code for calculating the factorial of a number [code] however when i try to run it the result is not displayed in the field.
View 2 Replies View RelatedRadio button to text answer
View 2 Replies View RelatedI already found some cool stuff here, but I'm looking for a script that, if somebody send me a e-mail, he/she automaticaly receive a reply from me, including a required access code.
View 3 Replies View RelatedI need a java script code that it allow users to post their questions and I can answer them .
How can I do so ?
//I can't figure out how to highlight the correct answer, I wrote a highlight function but it doesn't seem to work.
var useranswers = new Array();
var answered = 0;
function renderQuiz() {
[code]....
I am trying to place a Body Mass Index Calculator on a web page. I need a prompt box that asks the user to enter their weight and height (in pounds and inches, respectively). The box should calculate BMI as follows:BMI = (Weight / (Height * Height) ) * 703;After the BMI is calculated, I would like the box to display the user's status (obese, overweight, normal, underweight). After the user has entered all information, use the document.write function to display the following, with the customized information:
Height
Weight
BMI
Status
The application works fine but it makes the user enter the answer twice before it brings up the question "Would you like to continue?". I thought the fix would be to just call "myMH.checkAnswer(studentAnswer);" straight from the method in the "appclass" but that didn't fix it I m so lost on this problem. This problem most likely is right in front of my face but don't see it lol. I have another question as well but I think if I get this one figured out first it might answer my other one.
View 2 Replies View RelatedMy program generates 10 random questions with random wrong answers in radio and one correct answer also in radio. When I click checkAnswer it should check the right answer and compare to the user provided answer. Please check out isCorrect() function (and see comment). I tried diff things and couldn't get the value out from the radio checked value.
<HTML>
<HEAD>
<TITLE>Experiments with Simple Objects.</TITLE>
<SCRIPT Language="JavaScript">
<!--
checkedResults = 0
checkSummary = 0
questions = new Array()
for (i = 0; i < 10; i++)
{ .....
I need to make a button that will display my name in the answer box of my calculator.
Can anyone please show me the code to do this?code...
I am working on a calculator page for a clients site. I am using dreamweaver and form calculator made by Kaosr as behavior / plugins in dreamweaver. The way I have it set up is first the user enters some numbers in boxes, clicks a get refund now button and a div element appears with the answer. The whole calculator works..but I cant get the answer to appear in currency format. I've found tons of applets for javascript that change it into currency format upon clicking a button or clicking elsewhere on the page.. but none that automatically will make a text box display currency when the answer appears..
View 1 Replies View Relatedser is able to create queries and issue them. The query is sent to the web-app by means of an ajax call. Then, the server computes the result set and a small subset (100) of tuples are sent back to the client for visualization.
These thing works with queries that are simple and do not require to the database long computations. As soon as I try a more complex query (computation requires ~ 7secs), the answer returned to the client is empty.
I suspect that this is a problem of timing out the connection, is that possible?
(edit) I have almost forgot, I'm using Prototype as JS library
any way that i can track what the answer that the visitor type?
[Code]...
How can i pass the name of a radio button set that supplied an answer to a Rails 3 controller?view:
<%
[
1
[code]....
I am relatively new to Java and am going to be taking a class on it next fall. For now though, I am trying to code for a client I am currently working with and am hopelessly lost. The client I am working with has an ecommerce site with Network Solutions which uses aspx. It allows you to code html and link to css, java (pretty much anything except php). The problem I am having is that they currently have their product descriptions coded in div tags:
<div id='alternatebg'>
<div id='detailsgreybox'><div id='alternatename'><p>Alternate Name</p></div></div>
<div id='pd2'><p>Not Available</p></div>
</div>
<div id='usebg'>
<div id='detailsgreybox'><div id='use'><p>Use</p></div></div>
[Code]....
What they want to happen is for the sections that have 'Not Available' as the answer to not show up on the live page. I have tried to use <ns:if condition="..."> but do not know how to call for it to see if the div says 'Not Available'.
I am trying to set up a simple web page that requests two inputs and upon these input, determines and angle (basically taking a Spur Gear Pitch � and threads pitch to get a cam angle). Here is what I have but it is not working. I actually want it to work onClick of a button but I can deal with that later. I just am not sure how to get this to work properly.
<html>
<head>
<script language="JavaScript"><!--
function getCirc(dia){
return dia*Math.PI;
}
function getRad(x,y){
[Code]....
here's a question. Can anybody outline the primary advantages and disadvantages and differences between javascript and DHTML.
View 3 Replies View RelatedAll I want to do is to have a div slide down from underneath a button I have. When i search online, I find a zillion slide down menu scripts, but they don't work for just
sliding a div.
I've copied some code from a book which will enable me to make a layer
around a page, my aim is to do something a little more complex but this I
thought would get me started.
Anyway, I've run into a problem before I even start! The script works OK, it
runs the image in from the left hand side quite nicely, great. Problem I
have it always scrolls up to the top of the page, when the link I click
maybe 2 or 3 screens below (does that make sence?). I thought if I was to
add a name attribute to the link I could get the co-ordinates of this and
the screen will not reposition. Code: