15,120 Topics
| |
My Problem is when adding the item to the cart it doesnt have a remove button, just in case the user has a wrong choice the user will only remove the items in the cart. Here is my JSFIDDLE [Click Here](http://jsfiddle.net/fmM3e/1/) This is my Add Function on the script function … | |
I have a drag and drop shopping cart, and I've got a problem in updating the total price once I removed one item. and whenever I remove the item the table is still remain. Here's my addtocart PHP <?php define('INCLUDE_CHECK',1); require "../connect.php"; if(!$_POST['img']) die("There is no such product!"); $img=mysql_real_escape_string(end(explode('/',$_POST['img']))); $row=mysql_fetch_assoc(mysql_query("SELECT … | |
Here is my code: <HTML> <HEAD> <TITLE>Menu</TITLE> <script type="text/javascript"> function loadXMLDoc(url) { var xmlhttp; var text,x,xx,i; if(window.XMLHttpRequest) {//code for IE7+,Firefox,Chrome,Opera,Safari xmlhttp = new XMLHttpRequest(); } else {//code for IE6,IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { txt="<table border='1'><tr><th>Name</th><th>Description</th><th>Price</th><th>Calories</th></tr>"; x=xmlhttp.responseXML.documentElement.getElementsbyTagName("food"); for(i=o;i<x.length;i++) { txt=txt … | |
Hi, I have come across another programming challenge again and hopefully I wont close the thread myself this time. I am expecting good suggestions or examples from you to do this. I want to build a (scrollable) nested list, from which children of two parents could get swapped after some … | |
I want to make a system that generate numbers on click, I have numbers from 1 to 100 like M-3134 A-3133 U-3132 and so on. and I want to put all my these numbers in array and want to show using button randomally, upto 8 numbers or 10. and when … | |
. . <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript"> function cubeme(incomingnum){ if (incomming == 1) { return "what are u doin?"; } else { return Math.pow(incomingnum, 3); } } </script> <title>this project cubes a number</title> </head> <body> <script type="text/javascript"> var thenum = 2; var finalnum = cubeme(thenum); if (isNaN(finalnum)){ alert("you … | |
Hi I'm trying to end a user's session when they close the browser, because they never logout properly. I need to change a value in the db after they close the browser only. <script type="text/javascript"> window.onbeforeunload = check; function check() { return "Are you sure you want to exit this … | |
hi guys, I am doing some tests on e.currentTarget vs $(this) to get things clear in my head. It is said that the two are equivalent, so I created a test page with the following code in (among the other things of course): <div class="testLink"> <a href="#">Link</a> </div> The script … | |
how to check whether string contains characters like <% or <? tags or mysql tags. for example `<% String eid = request.getParameter("eid"); %> ` `<?php ?>` or `<?` my page is total depend on javascript so while its submitting form its giving me error or accepting codes which it should … | |
I want a HTML page to be displayed within a DIV using jQuery. The following code isn't working ? $("tutorials .t").load("/path/path/cs_regular_tuts.htm") | |
I am trying to study javascript in deeper detail due to some pretty embarrising mistakes i made on my site yesterday. I use some pretty nice sites and books and i was curious to know what sites or books do you guys know of that are pretty effective when it … | |
Hi guys, so i have a table populated by event details from database and i use a checkbox to select which event to be deleted: echo "<tr> <td><input type='checkbox' name='check[]' class='check' value='$id'>$name</a></td><td>$formatDate</td> </tr>"; my delete function: <?php if(isset($_SESSION['sess_user_id'])) { if(isset($_POST['del_event']) && isset($_POST['check'])) { require "connection.php"; $userid = $_SESSION['sess_user_id']; foreach($_POST['check'] as … | |
first off this is a question where jQuery is used heavly, there are no catagories to put that under on <DaniWeb> so i've put this post under what i believe is the most appropriate one. Ok! now thats done and over with, im requiring some assistance on how to write … | |
Hello, I am looking for Javascript codes where you can move the list of data in left side to the right side. For example: Attendance: John Albert Albert Victory Kim >> James Kayla Victory James Out of the 6 people only 3 students attend the class. All the registered students … | |
Hi there, I have a php script that contain java script codes to show pop up email registration form, but these codes does not work. can anybody suggest me how to make it to work ? Below is the code that i have on my script. **Maybe to set cookie … | |
| I need a Javascript Code to prevent users from right clicking on my website.. alot of people tell me why would you do that? the people will hate your site. but my site has a whole lot of images and videos i made myself and u know these stupid people … |
Hi, I'm a web development newbie. I was wondering if this was possible: Say there's a page where you submit a value in a form, and when you click submit it links to another page. Then that page links to a few more pages. Would you be able to retrieve … | |
So I have this function that sets an achievement in my database and returns infos about the achievement to be displayed on a bootstrap 3 modal. function setAchievement(idAchievement){ $.ajax({ url: "http://localhost:8080/licenta/setAchievement", data:{"idAchievement":idAchievement} }).then(function(data) { if (data.description != "null"){ // if update was made $("#description").text(data.description); // set the divs with infos … | |
I have the following field in a jsp page.. <select size="1" name="typ"> <option value="C">Coffe</option> <option value="T">Tea</option> </select> Now when the user selects Coffeand and clicks submit, I want the page to go to Coffe.jsp and when Tea is selected , i want it to go to Tea.jsp I tried … | |
hey guys. first, sorry about the vague question title i know that that is totally unacceptable but i just didnt know what the title of this thread should be. sorry(ashamed). so the "issues" that i am having is regarding this script: $("#table tr td").live("click", function(){ var row = $(this).closest('tr').css('background', 'LightSlateGray'); … | |
hello. so to keep it short and simple. I have a button "Cloned" and an <img>. The problem is that the image gets double cloned on the second, third and so on when Cloned button is clicked. Like on the first click image gets cloned and displayed once, on the … | |
Hi All, I am trying to filter the State, City using WATABLE. In my data city coloumn has identical state values for example Multiple states has same city. In that case when I filtering the city complete watable is filtered upon city instead of state. Like State: Texas City Drop … | |
Hello, How to force **window.onbeforeunload** to act only on pertular action or url? I have a form which has data. if it navigates to another page then `window.onbeforeunload= function() { return "please save data"; };` is working. But after submission of that page, it navigates to another page on that … | |
I'm having a problem with making .js files for my javascript project using visual studio2013. Where should i save made file to make it work with my project? | |
I have run into a basic problem. I have a very simple form that asks the user their name and then they click the submit button and an alert is shown with their name in it. When the button is clicked nothing happens. I have called the function in the … | |
Hi, I want to take php string in javascript variable. How to take it? php string includes \n so while taking it in variable it shows me error of "SyntaxError: unterminated string literal" I got one solution form stackoverflow that use json_encode but after use of json_encode is giving me … | |
i need to create 2 selection; 1st selection has fix option and the second selection will be base on the selected selection 1 selection 1 option 1 = number option 2 = letter option 3 = char number option 1 = 1 option 2 = 2 option 3 = 3 … | |
Hi All, I'm trying to display a postal area on Google Maps API within it's boundaries. I want to do this dynamically so that everytime someone changes the text in a text field (entering a postcode or part of), it checks the postcode and calculates the boundaries then displays them. … | |
hi, here is my problem- i am creating a table dynamically using java script- the number of cells in a row is constant and the data is accepted from the user from x text boxes(based on number of cells). now, i want to insert a button in the x+1th cell … | |
Hello, I have been working on this application for a bit and I feel like I am close but apparently I am not close enough. **Challenge:** I need to be able to have the user input an address and click "Create Map". In the map that’s displayed, the user’s entry … |
The End.