- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 1
54 Posted Topics
Re: [QUOTE=MrInternet101;1172481]My apologies. I hope this worked correctly. [CODE=php] <html> <body> <head> <title>taxwagefunction.php[</title> </head> <?php $hours = $_POST['enter_hours']; $payrate = $_POST['enter_RPay']; $name = $_POST['enter_name']; function taxcalc() { if ($hours > 40) $gross = $payrate * 40; $ot = ($hours - 40) * ($payrate * 1.5); $TotGross = $gross + $ot; { … | |
Re: Could you imagine how quick that code would be to hack? I think for anyone interested in doing a secure login pop over to the php forum and ask about setting up sha-256 or gnupg encryption for sending login information to a database. It isn't exactly beginner stuff but definitely … | |
Hi Everyone, I am trying to store the state of a show/hide button so that when the browser is refreshed it will show the previous stored state. I have a working solution for this on a JS fiddle https://jsfiddle.net/knetdk82/7/ However the issue I have is I cannot apply it in … | |
Re: Hi, Please could you post the resolution as I would be interested to see what it was? Kind Regards, Piers | |
Hi, I have been trying to save the state of a sortable list. I have been able to save the sort order to localStorage and get the sort order so that I can display it on the console but I cannot get it to be the order it was last … | |
Re: Hi Muhammad_63, Seeing as you have not specified if you can use JQuery or not yet I will explain how I would approach this: Create the form with the text boxes create ids for each of the text boxes In my code I would use if statements based on the … | |
Re: Hi, You could try using first() and nextAll() and have the same class for your different fields. For example checkField = $(".class").first().nextAll().val().length; see JQuery documentation below for more information: https://api.jquery.com/first/ https://api.jquery.com/nextAll/ | |
Re: Hi, If it is a countdown you can use Date() since the countdown is from a specific time then when you refresh the page it will show the countdown according to the time left. Some websites which may help: https://mindgrader.com/tutorials/1-how-to-create-a-simple-javascript-countdown-timer https://blog.smalldo.gs/2013/12/create-simple-countdown/ | |
Re: Hi, Your console.logs need ; on the end of them. Below is a link for more information. http://www.w3schools.com/js/js_output.asp | |
Re: Hi, Let me know if the below link helps. It is an activity feed which you can put on your website for the activity on your page. It gives you code to embed. https://developers.facebook.com/docs/plugins/activity | |
Re: Hi, Have you tried using if (g) document.getElementById('imageTwo').style.left -= 5; | |
Re: Hi, This puts the change into a variable. I am not sure what you want to do with it so hopefully this gives you some flexibility. The alert will show you what the data looks like in the variable. var data = { "WorkPhone": { "Phone": { "FixedPhone": "98221234", "Fax": … | |
Re: Hi, You could use the plugin jquery.qrcode. The below site will give you information on it. http://larsjung.de/jquery-qrcode/ | |
Hi, I am trying to take a number entry from a text field to use in some round Robin code to output the data. When I type a number for the variable num e.g. var num=12; the program works fine, but if I try to do it from text field … | |
Hi, I have been creating a round robin. This is similar idea to speed dating except everyone has to talk to everyone. Whilst I have been able to create this, there is a lot of repetition in my code and I wondering if any of you have recommendations for removing … | |
Re: How about using the HTML5 data-image="icons/icon1" data-image="icons/icon2" etc and then in your external css set the visibility to hidden. [data-role="image"]{ visibility:hidden; } then using jquery set the visibility to visible when it is hovered over. $('option').on('hover',(function(){ $('data-image').css('visibility','visible'); }); | |
Re: surely if you use things like mysql_real_escape_string and addslashes to your mysql queries this would limit the effect of hackers editing superglobals to access data? | |
Re: Hi, Chances are you are on a windows OS so I will give some suggestions based on that: readyboost from a pen drive could help. Also defragment your computer. Move items from your desktop elsewhere. Items on your desktop make startup slower. Also if you search for msconfig and run … | |
Re: Hi, This code looks like php. What are you trying to do once you have selected all models? If you use JQuery it sounds like you want something like: $('.selectAll').on('click' , function(){ $('.checkbox').prop('checked', true); }); You would just need to make the class of each checkbox class="checkbox". | |
Re: Hi, I have found there is a plugin called mousewheel https://github.com/brandonaaron/jquery-mousewheel for the scrolling functionality. Also for the vertical Carousel you could use something like this: <head> <style> #carousel { height: 80px; overflow:hidden; } #carousel ul { height: 80px; padding: 0; margin: 0; width: 180px; } #carousel ul li { … | |
Hi, I have been trying to create a little jquery plugin for myself so that I can reuse some helpful multiple button submit code. This plugin will allow me to have a class as a selector for every button I want to use on a webpage, a class for everything … | |
Re: Hi, this looks like jquery.form.js and the jquery validation plugin. This could be because the ajaxForm method is getting executed first. Does re-ordering your links to the plugins help? so you have your jquery library first, then your validation plugin and then your jquery.form.js? | |
Hi, I have been trying to use AJAX with JQuery in a feedback page I am trying to build. I can get the feedback submitted without going to a new page, but currently I can only see the feedback updated when I refresh the page. I called the feedbackdisplay.php file … | |
Hi, I am trying to create toggle buttons for a page with profiles in. I have around 60 buttons on the page and want to try not to define the click function 60 times: $(document).ready(function(){ $(".button1").click(function(){ $(".1").toggle(); }); $(".button2").click(function(){ $(".2").toggle(); }); $(".button3").click(function(){ $(".3").toggle(); }); $("p").css({display: "none"}); }); So I was … | |
Hi guys I have an image that I need to resize for a website without losing any of the quality. The image has a .gif extention and when I have scaled the image down using GIMP the image goes a bit fuzzy. Do you know any software or method to … | |
Re: easiest way I know is to view it in a web browser and then highlight the information and copy it to excel. | |
I have tried using is_numeric to validate some form data to make sure it is only numbers that are entered into the form. I couldnt get it to work so I decided to try and put a-z\A-Z in preg_match. I cannot get either of them to work although there are … | |
Re: [QUOTE=Vigasdeep;1169706]Hello, i'm having 2 tables one is CLG and other is STUD. in CLG(columns CID-autoincrement and CName) and in STUD( three columns are ID-autoincrement,Name and CID) > im using this code to store the records into tables [CODE]$sql="INSERT INTO clg (Cname) VALUES ('$_POST[cname]')"; $id=mysql_insert_id(); $sl="INSERT INTO stud (name,CID) VALUES ('$_POST[name]',".$id.")";[/CODE] … | |
Now I am using php and mysql so not sure if this should be in the php section. If you can help I would be most greatful. I am trying to create a search page so that it shows data and one of the columns in the mysql database contains … | |
Please can you help. I have been trying create a form to insert some data into a database. (I am coding with PHP and MYSQL). When I put any data into the field called enter treatments completed the database gets updated with the treatments_completed column containing a 0 and then … | |
This is the hardest thing I have tried yet. I am not adding ti as part of the main programme I am doing at the moment cus otherwise it would be too hard to debug. So I have created this as a separate file. I am trying to get a … | |
Hi I am struggling learning perl and everytime I try to enter stuff in at runtime I keep getting a 1 returned. I dont get it. please can you explain to me what I am doing wrong. #!/usr/bin/perl print "content-type: text/html \n\n"; &fname; print "\n totals are out of 140 … | |
Re: rand() for random generation Also sprintf "%.2f" #if you want 8 digits as decimal places use that | |
I am trying to teach myself perl and I cannot understand why when I print arrays from these subroutines that it prints an extra one that isnt there. @name=fname(@name)."\n".lname(@name); print @name; sub fname(@name) { @name=('john'."\t",'james'."\t",'edward'."\n"); print @name; } sub lname(@name) { @name=('hunt'." \t",'jones'."\t",'smith'); print @name; } this is what I … | |
Something I have noticed with my uni course is that there are so few women on it. Is there some reason why women stay away from the best part of using a computer IE programming in java? am I a bit strange in getting excited when I finally finish a … | |
I am currently working on something where I have to make two shapes which extend to a class called 2d shape. I am currently working on my Triangle class which is this: [CODE]lass Triangle extends TwoDShape { String style; Triangle(double width, double height, String style) { super(width,height); } private double … | |
Re: don't use stringTokenizer cus that is being wiped out. Use Split. Go to the java API and it will tell you how to use it. | |
I have to do a really strange thing. I have to take a string of 2 words and then separate it and put it into two other strings eg String name = "fred blogs"; move the part of the string name which says fred to the String firstname so it … | |
Re: object orientated programming is using objects to code so as to remove the need for global variables, create better securer code and programming at a higher level than that of machine code. | |
Re: to convert a string to an real number which you will need with your conversions use double num = Double.parseDouble(enteredString); | |
Re: well for starters your emp_pos is null also you a_pos isnt defined as anything so try a_pos = "lol"; emp_pos = a_pos; then see if that works. | |
Re: To print in something like a table format on the command line use "/t" and "/n" in System.out.print(); If you want a table format using a gui then look at the libraries on the JAVA API website. | |
Re: sounds to me like a system like that needs to be made using cobol. | |
For the guys who helped on the card.java file I did thnaks a lot I got that done. I have now moved onto the next part of that and have to complete this skeleton file. this is the spec for this file. [QUOTE]This class has two attributes: an array of … | |
right I am trying to practice with my programming taking my lectures advice and breaking the problem down into steps, then when I code, code a small amount, compile it check it works and then code the next bit. So I have an exercise I am trying out. Part of … | |
I have been given a homework this is it: [QUOTE]Homework 7 Due in your lab in week 10 For this homework you are expected to write one program, which consists of a main method and an insertWord() method. You must work on the program outside the formal laboratory sessions. The … ![]() | |
this is the homework I have to do [QUOTE] This homework is due in week 3. You must work on the program outside the formal laboratory sessions. The program must be ready to be executed at the start of the scheduled laboratory session. Remember you may be asked to explain … | |
okay I have been working on a little project of my own for a while. At the moment it prints out the chapters read and once 100% of the chapters read is greater than 100 it shows on the next line of my code the number of times the book … | |
I have a section of code in a programme I have: [B]long b; if (show>1189&&<1189*2) { b=1; } else if (show>1189*2&&<1189*3) { b=2; } else if (show>1189*3&&<1189*4) { b=3; } [/B] The variable show is an already defined string which takes a number value. So I want to output the … |
The End.