Hi guys, I am developing an invoice project. I am calculating amount of each section and assigning in grand total. For multiple invoice body section, I am adding dynamic html code using jquery append function. I am successfully added section and removed. When I added new invoice body on click on some link then its amount added into grand amount. Problem I am facing is that when I remove that html code after filling amount then I could not able to subtrack amount of that section from grand amount. I have created a function "setAmountMinus" and called it on remove …

Member Avatar
Member Avatar
+0 forum 4

Hello there I am a fairly new in MySQL/PHP/Javascript programming. I'm writing a web based gymnast profile management system for my final year project. Here's my problem. I have 5 MySQL InnoDB tables: [B]tests[/B], [B]testunits[/B], [B]points[/B], [B]testsgymnast[/B] and [B]gymnast[/B] I am able to retrieve a selected test which has particular units and each unit has a point associated with it using AJAX/PHP triple drop down list which is part of my Input Form called 'Create Gymnast Profile'. [B]My problem is that I don't know how to complete the creation of a gymnast profile by assigning multiple tests to a gymnast …

Member Avatar
Member Avatar
+0 forum 1

Hello everybody! I have a serious problem with my diploma work! So here it is: My ajax.js file cannot be executed. It does nothing when I click on the buttons... Here's the ajax.js code:4 [CODE] function opensave(type){ url="open.php"; content=replacer("editor"); var xmlhttp=if(window.XMLHttpRequest){ new XMLHttpRequest(); } else if(){ new ActiveXObject("Microsoft.XMLHTTP"); }; xmlhttp.onreadystatechange=stateChanged(); if(type="read"){ xmlhttp.open("GET",url,true); url+="?open=r&filename="+document.getElementById("filename").value+"&extension="+document.getElementById("extension").value; xmlhttp.send(null); } else if(type="write"){ xmlhttp.open("POST",url,true); setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send("open=w&filename="+document.getElementById("filename").value+"&extension="+document.getElementById("extension").value+"&content="+content); }; function stateChanged(){ if (xmlhttp.readyState==4){ processdata(xmlhttp.responseText); }; }; };//******************************************************************************************** function replacer(id){ str=document.getElementById(id).value.replace(/"/g,"%dquot%"); return str; };//******************************************************************************************** function processdata(response){ response=response.split("<!--//split-->") document.title=response[0]; content=response[1].replace("%dq", /"/q); document.getElementById("editor").innerHTML=content; };//******************************************************************************************** [/CODE] The page which is linked to, doesn't want to "call" it. These methods were implemented …

Member Avatar
Member Avatar
+0 forum 8

[CODE=AJAX] function update(value1) { doAjax("behind_scan.php" , "id="+value1); } function doAjax(url , str ) { xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) { alert ("Browser does not support HTTP Request"); return; } url=url+"?"+str; xmlhttp.onreadystatechange=stateChanged; xmlhttp.open("GET",url,true); xmlhttp.send(null); } function stateChanged() { if (xmlhttp.readyState==4) { //document.getElementById("txtHint").innerHTML=xmlhttp.responseText; //alert(xmlhttp.responseText) document.forms.myform.scanner.value = ""; document.forms.myform.scanner.focus(); } } function GetXmlHttpObject() { if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari return new XMLHttpRequest(); } if (window.ActiveXObject) { // code for IE6, IE5 return new ActiveXObject("Microsoft.XMLHTTP"); } return null; } [/CODE] This pages calls a function on a separate php page to run 2 mySQL queries, the value must be put …

Member Avatar
Member Avatar
+0 forum 2

I'm a newbie in programming. I spent few hours yesterday and today working on a small AJAX page with multiple combo boxes that are populated from the database. I use IE6 99% of the time and I utilize the excellent . I almost done with the page (I’m pretty proud of it too) so I decided to show it to my work buddy. On both IE8 and opera, my beautiful double combo boxes just failed miserably. A part of what I was doing was to populate a double combo box with dynamic data from the database. I created an empty …

Member Avatar
+0 forum 0

The End.