Jump to content

simeonC

Members
  • Posts

    48
  • Joined

  • Last visited

simeonC's Achievements

Member

Member (2/5)

0

Reputation

  1. So stupid me... I was sending html before the header. haven't coded in months so I am So Stupid For simple mistake
  2. if ($count==1){ header("Location:store.php"); } very simple I have issolated it and it doesn't redirect maybe u can see where my mistake is
  3. did you remove the comment marks ? and call the function thats where the problem occurs
  4. //function numeral(a){ raw = 100; var fix = raw.toFixed(2); //returns 2489.82 alert(fix); var too_string= new String(fix); var combine = "$"+too_string; alert(combine); //return(combine); //} When I remove the comment marks the function toFixed(2) do not work
  5. Just a question can i dynamically set javascript object key:value properties? function insert_current() { var customer_information = new Object(); //the object which my input form values will be held a = document.getElementsByTagName("input"); // gather input tags here /////////////////////////////////// loop through each to get the elements ("input") form name attribute as well as the value. for (i=0; a.length > i; i++){ field = a[i].getAttribute("name"); value = a[i].value; customer_information.field= value;//this doesn't work var x=document.getElementById("left"); x.innerHTML = JSON.stringify(customer_information); } /////////////////////////////////// }
  6. <div> <ul class="manager_customer_options"> <li><button onClick="show_button_content(add_part)">Add Part(s)</button></li> <li><button>Give an Estimate</button></li> <li><button>Notify Customer</button></li> <li><button>Print Receipt</button></li> </ul> </div> I would like javascript to go through the list and listen for which li element is clicked and load a new div onto my Page Based on which element was clicked. just don't know how to code it.
  7. No luck any help any one please i hate this there is no syntax error but there is an error somewhere
  8. it is being published locally hence no "www." wasn't to sure what that meant. also when i run it on dreamweaver the session is enabled and its being recognized not when i run my browser app's locally the session doesn't set. Well see upload files now.
  9. Understood now the subdomain doesn't change sub_domains.com/manager.php but they do change as i input some $_GET variables into them so it recognizes that content needs to change what is being displayed in this manner sub_domains.com/manager.php?nav=some text.
  10. It is the first thing that is called required ("phpscript/stack_scripts.php") which is <?php session_start(); error_reporting(E_ALL); include("connection.php"); include("post.php"); include("get.php"); //include("session.php"); //include("signature-to-image.php"); //include('addcustomer.php'); //include("add.php"); //include("charges.php"); ?> and this is included on all pages until the finish product
  11. ok I have a manager.php file which is constructed as such <?php require ("phpscript/stack_scripts.php");/// required add customer script $title= "Total Auto Clinic";/// Title For page ?> <?php $admin_view=mysql_query("SELECT * FROM repair_orders JOIN (serviced_vechicles) ON repair_orders.car_id=serviced_vechicles.car_id WHERE repair_status='1'"); $inshop=mysql_num_rows($admin_view); $fetch=mysql_fetch_array($admin_view); ?> <!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, maxium-scale=1.0, minimum-scale=1.0, initial-scale=1.0"/> <meta name="viewport" content="width=device-width"> <?php include("css_stack.php") ?> <title><?php echo $title?></title> </head> <body> <div id="wrapper" > <?php include("structure/header.php") ?> <?php include("structure/nav.php") ?> <?php include("structure/contents.php") ?> <?php include("structure/footer.php") ?> </div> <?php include("java_stack.php") ?> </body> </html> if the user not logged in as a manager it will display the login page.. <?php if (!isset($_SESSION['manager'])){ include("content_structures/manager_signin.php"); }else{ /////////////////////////////////////////////// if (!isset($_GET['nav'])){ echo "nav is set"; include("content_structures/current_service.php"); }else { include("content_structures/".$_GET['nav'].".php"); } //it may vary from these three files // //include("content_structures/rev.php"); //include("content_structures/update_cars.php"); //include("content_structures/current_service.php"); //include("content_structures/update_info.php"); /////////////////////////////////////////////// } ?> else depending on which link is clicked that is the content which will display. Current_Service is set a default the problem that I am having is when I login as the manager and select one of the available links in the nav bar my session is ended and I am returned to the login page. any help will be greatly appreciated..
  12. Well I would love to mark this as answer however I did try all of these and the signature has yet to be displayed.. If anyone can experiment with this and see if you can get it to show let me know.
  13. I have some JSON data that I retrieved from my database which is suppose to represent customers signatures. However I can now capture it but I cannot display it back on to the canvas field because i do not know how.. Is there anyone out there that know how to accomplish this task in the most simpliest way.. I am currently reading document from -- since it is his program http://thomasjbradley.ca/lab/signature-pad/#options-ref but I cannot seem to get it done Any help would be appreciated Thank you.
  14. Thank you all.. All answers are correct.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.