I am in the process of developing a calculator for some of my colleagues to use. One of the variables within the calculations is called PMH. I want to determine the value of PMH based on which checkboxes are ticked. Each checkbox has a different value. If the checkbox is not ticked, then the value of each option is 1 and obviously more than one checkbox may be ticked.
I have created the checbox code: <td><input type="checkbox" name="PMH" value="1.6" /> Smoker<br /> <input type="checkbox" name="PMH" value="0.4" /> CCF<br /> <input type="checkbox" name="PMH" value="0.5" /> Pulmonary Oedema / Cirrhosis<br /> <input type="checkbox" name="PMH" value="0.8" /> COAD<br /></td> But I have no idea on how to calculate what I need for var PMH.
I have created the text boxes dynamically(as many boxes as the user wants) and he can drag and drop the text boxes in the page. I need to create a dynamic line from one text boxes to other text boxes and delete the test boxes which the user does not want. I have created the dynamic graphic line. I know the values of the text boxes can be saved using php in the backend. But is there any way the values with the dynamically created boxes(with <div></div> elements, not with the text boxes) with values and graphics line can be saved online and the user when log-in again can retrieve the work that he saved? Can we code this either in javascript/php?
I am doing a website project and I am currently designing product page.
I have created the text boxes dynamically(as many boxes as the user wants) and he can drag and drop the text boxes in the page.
I need to create a dynamic line from one text boxes to other text boxes and delete the test boxes which the user does not want. I have created the dynamic graphic line.
I know the values of the text boxes can be saved using php in the backend.
But is there any way the values with the dynamically created boxes(with <div></div> elements, not with the text boxes) with values and graphics line can be saved online and the user when log-in again can retrieve the work that he saved? Can we code this either in javascript/php?
I am making a mini wysiwyg editor for creating pdf letters which can be printed off.
In my editor is currently a html form which saves the textarea values each time the form is submitted. I want it to save to the database everytime its changed or maybe every few seconds.
I am creating a form that you don't actually submit in order to allow people to download files. You select different options with radio buttons and drop-down menus and then use that information to "show/hide" divs with javascript. That part works, but if the user leaves the page and then comes back, the data can be somewhat misleading. One radio button may be checked, but the corresponding div that was showing before you left the page is not (it was set to "display:block;" in css with the "onclick" or "onchange" depending on which choice on the form caused it to appear). I know that I need to set a session cookie to save the values on the form, but it is a bit more complicated because I need to set divs to "display:block;" or "display:none;" depending on what the values of the form fields are. I'm a novice at javascript. Since I am not submitting the form, I can"t use PHP.
Assuming I have an image in my page I would like to invoke the 'save as' context menu for that image when the user left-clicks the image I will have a link embedding the image. Clicking the link should invoke the menu and allow the user to save the image
Assuming I have 2 images. Image A and image B. Image B is a small thumbnail version of image A Image B is displayed on the screen When the user left-clicks it, the 'save as' context menu should open (see previous question) and will allow the user to save image A (this is right, the original image and not the thumbnail being display) Is this possible?
i have created text fields dynamically by clicking a button now problem is that i want to save the value of these text field into database. i m using java script with PHP's framework codeigniter. the code is as follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
I got the following script to work the way I want it by adding new text inputs with new name values, but if there is data added and the add button is clicked again everything disappears. Is there any way to keep the data from going AWAL?
I've been using the accordian tutorial but was wanting to save it's state after I click the link
[URL]
for instance if I open the accordian to heading two and click link 4 it would be great for it to stay like it on when link4 page loads (so the users know where they are)eg:
I have two drop/down menus that are dependant on each other. When I have made a choice in both of these menus and press a button I get to a page depending on the choice made. On this page there is two buttons "Accept" and "Back".
When I press "Back" I would like to get back to the page with the two menus and they should be set to the choice I made. Now the just reset when I press the "Back" button.
Is it possible to save the options that I choose from the drop/down menus when I get back to them by pressing "Back"??
I'm trying to save the input and pass it into the URLs that are the option values. So Artist ID being 111 would take you to url..../<WHATEVER OPTION YOU CHOSE FROM DROP DOWN>/111 What am I doing wrong/What am I not doing?
In my site I show low quality pictures. When someone right clicks an image and selects 'Save Picture As...', I wish to let him save the high quality picture.
When you right click on a link you get the option to save target as...(ie) and save link as...(netscape). Is there some JavaScript to call this function like the JavaScript to open a new window?
I have managed to write a working script to add together two values and display the total. I need to advance from that stage and now I have a 'quantity' box and a drop-down menu with a few options on it, each relating to a price. I am trying to take the quantity entered by the user and multiply it by the price they select from the drop-down and display it in a third box. So far I have:
two = document.autoSumForm.value from menu.value; document.autoSumForm.total.value = (one * 1) + (two * 1);
How can I rewrite the above to account for the different choices a user can make on a drop-down menu?
I have a drop down menu that is populated by the following javascript:
Code: // Place holder var AS_Airport = [code]....
The drop down category is Heathrow Airport. When that is selected another drop loads the shortcuts (Terminal 1, Terminal 3 etc).what i would like to do is add another selection with another set of shortcuts to the above but am unsure how to do it.for example i have tried the following without success:
Code: // Place holder var AS_Airport = {[code]....
when i use the code above to try and add another group and set of values it doesn't add any of the groups. if someone could please let me know the correct way to add a group to the above i think it will work fine.
I have searched the web and this forumn with no results. I need to replace the value in a second select menu with the value from the firts select menu. So if I select ACD from the first menu it should go thru all the option values in menu 2 and replace the '~' with 'Computing'
I'm trying to figure out how to tackle this problem: I have an XML table with a cool grid in which users can select a table row. When they right-click on a cell, they get a modal dialog window with a selection menu. What I want this thing to do is display the different values in the row, so that users can make a selection: eventually I want it to be a filter option > in the selection menu, users can select the value on which they want the whole table to be filtered. However, I'm seriously lacking js-skills so I don't know how I should pass the values from the table row to the selection menu. Code:
I have a dynamic drop down menuit populates just finei want to populate my table on the same page based on the selection the user makes from the drop down menu with the information from my database.i have no problem accessing my database or with the drop down but im not at all proficient with javascript which is what i keep seeing with the "onchange" function.
It is kind of difficult to explain what I am trying to do here, I will provide the form here to give a better idea.
<ul> <li>Select the type of your starting point of interest:<br/> <div id="start_menu"><form action="test_getrss.php" name="form1" method="post"> <span><input type="radio" value="Apartment" name="start"
[Code]....
I get values for start_time, end_time and semester, but not the last two values. I noticed that the first two forms here are dynamically generated from Ajax.
How can I pass the values of these two selected menus to the third form, to process.php so the values can be retrieved?
Is it possible? Say We have a list of suppliers link like
A supplier B supplier
when right click on a supplier, a context menu(that has "details","view products", etc) appears and click on "view products for this supplier" this click will redirect users to products page showing all products from the supplier.
So href should look some like this <a href="RightClicked(ཆ')">A supplier</a>
<script> function RightClicked(supplierID) { // don't know I am making this up here if (viewDetailsClicked) ShowDetails(supplierID); else if (viewProducts) ShowProducts(supplierID) etc .. } </script>