199,114 Archived Topics
Remove Filter ![]() | |
Hi... I want to calculate marks.. I have create calculation and form... but, when i click the button it cannot calculate the marks... what the error in this code? | |
Hello, I'm currently working a project for class and I've gotten stuck. I am suppose to write a program that will read a csv file and create a text file with information from this csv file. So, far I have code that prompts for the file name and gives a … | |
I have been using Python for a few months in a Windows environment with IDLE. I installed Python on my (new) Macbook and opened the same files, but am now getting strange results. These are scripts that worked fine in Windows: 1. When I use a function to open and … | |
Chaps, I was wondering what this.id (and for that matter this.whatever) is in jquery and how to use it. A few quick examples are here: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <img title="hat.gif"/> <script> $("img").attr("src", function() { return "/resources/" + this.title; }); </script> </body> </html> and another one: … | |
Hi friends.. I am trying to upload file in apache http server(Some Url) using WEBDAV sardine concept..I coded for file uploading and Apache server configuration and all. I wanna do this file Read and Write With authentication.. So,i added .htaccess password file in apache.. When i am trying to upload … | |
Hi all, I am slightly confused about passing functions to the addClass method. This code is taken from the jquery.com site http://api.jquery.com/addClass/: <!DOCTYPE html> <html> <head> <style> div { background: white; } .red { background: red; } .red.green { background: green; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <div>This div should … | |
Okay, here is my problem. The instructions are I would have to store the minimum points and grades in a five row two column array. The procedure should display the grade corresponding to the number of points entered by the user. Minimum Points Maximum Points Grades 0 299 F 300 … | |
Hi can someone explain me this code? actually i need to write another function like this but without passing any parameter, then what should I insert in data? the code is using the parameter id in data but what if i dont have any parameter? server.prototype.GetSpeed=function(id){ $.ajax( {url:"marks.php", data: {id:id}, … | |
Hello Every One. i have a database name products id Pr_name price etc I want auto complete script that they retrive product name from (Pr_name). i want that my search enging display auto name from my database. | |
hi all, i am doing my java project (video player). This is the task : Enter a video number and click a button to add that video to a playlist. If the video number is valid, the video name should be added to the list and all the names in … | |
Hi guys can you help me out. i want to display the item in my textbox but how can i do that i tried to search tru web but nothings working for me. it is something like this "SELECT Department FROM Table1 WHERE Department = " & .Textbox1.Text & "" … | |
Hello, I am trying to populate a listbox.here are my codes which works fine. <?php echo "<select name=name value=''>Exten Name</option>"; while($nt1=mysql_fetch_array($result_users)){//Array or records stored in $nt echo "<option value=$nt1[name]>$nt1[name]</option>"; /* Option values are added by looping through the array */ } echo "</select>";// Closing of list box ?> These data … | |
hello there, im having a problem with my code . .. . . so this is my class 1: package app.ui; import java.awt.EventQueue; import javax.naming.ldap.Rdn; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.ImageIcon; import javax.swing.JScrollBar; import java.awt.Color; import java.awt.Font; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeEvent; import java.util.Calendar; import java.util.GregorianCalendar; import javax.swing.JScrollPane; import javax.swing.JTextField; import … | |
Hello, I'm a newbie to python and I am having a very hard time trying to solve a homework question that I have. Here it is: Given a list of items, write a program that generates a list of lists of the following form: [a,b,c,…,z] → [[z], [y,z], [x,y,z], … … | |
I was trying this sample found in the website: [Custom Checkbox](http://www.daniweb.com/software-development/csharp/code/217338/custom-checkbox) when I add the CustomCheckbox from the toolbox to the form directly and build the project it take lot of time to be build and cause the visual studio to not respond. Do anybody have an idea about the … | |
I need to write a right turn code for a micromouse using sensors but I don't know where to start. Can you help me please? This is the algorithm we developed. > // Right turn while sensor 1 is OFF // initialize RTcounter = 0; if (sensor 6 == 0) … | |
I have this Form that works successfully (I know it's not state-of-the-art). I simply want to add code to make Contact Name field mandatory. Can you help me? I don't know how much code I should post. Here's some: <script type="text/javascript"> function checkemail(){ var str=document.myform.email_address.value; var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i; if (filter.test(str)) testresults=true; … | |
My Program contains 4 arrays and I want to sort the array in such a way that if one array is sorted the other array should follow it Example: unsorted array name code salary date John 52 6500 15 Suzzy 10 1500 20 Mike 20 1451 16 Sorted array(according to … | |
I'M trying to output a message if the PHP query on the MySQL database come back empty. But when I uncomment this line `//echo "No result found for entry";` not only does it fail to output this message when there is no match but it also fails to load the … | |
hi all i am developing a small application that will allow the user to paste in admin logs which will then be converted into xml data. The code works fine in VB.net but i am trying to convert it into C# as the application is written in c# i am … | |
Hi All, I need to load varying Custome controls to one page with differnt panles,I have to load Custom control page according to selection of Criteria. Thanks | |
how can i plot the graph for the below code.I am having matplot library.plot graph for time vs v1 and time vs v2 and in Time1.csv file for tS import csv def test1(): inputCSV = open(r'test.csv', 'rb') outputCSV = open(r'test1.csv', 'wb+') appendCSV = open(r'test1.csv', 'ab+') cr = csv.reader(inputCSV, dialect = … | |
I have limited knowledge in coding. can anyone tell me what is worng with my code? the firstrow result in the database is not updated, but it is updated in datagridview. For i As Integer = 0 To DataGridView1.RowCount - 1 DataGridView1.Rows(i).Cells(11).Value = "true" Next SmsdDataSet.AcceptChanges() | |
Hi guys I'm in way over my head here and have absolutely no idea how to fix this or why it's even there. I have a wordpress website and after comments were turned off in the posts page, I now receive an error where the comments box used to be. … | |
I am trying to create a graph from a 2d matrix of booleans. When the index [i][j] == 1, I need to create a link or edge from node[i] to node[j]. I am doing some thing wrong. I have created a class file with a struct node and some basic … | |
Article pages on DaniWeb (for those of you who live in the US) have a hover effect (similar to that on our homepage for everybody). It works fine in all browsers *except* for Firefox. Firefox is just super temperamental: it works a few times and then just mysteriously stops working … | |
I am trying to verify that the email addresses entered into our site are valid. Basically are they fake addresses or not and if I send them an email there will be an inbox associated with that address. All I keep finding on the web is info for validating with … | |
I want to use this- insert into sales(year1) values('344'); query to insert the value '344' into the column where the month column values in January. However I cannot do so by using the WHERE CLAUSE like this: insert into sales(year1) values('344') where Month='January'; This is the existing Table data: 'January', … | |
I'm trying to make website where user can upload a photo in a form. However somethings gone wrong in which keep telling me that I have a 'invalid file'. The information which the user typed in was actually uploaded to the database, but not the image. I've tried to saparate … ![]() | |
Hi all, Using my application I've found a file path anywhere on my machine and store the full path in a CString variable. That is full path, like this, [CODE]G:\Work On\CPP\001_002_003.txt[/CODE] What I want to do is, find the name of the file(without the extension), 001_002_003 according to my example. … | |
This is a bit of homework I have to do for my C++ class. I was suppose to add 11 as the pay code and 23 as the pay rate, but during the debug test when I type in 11 it doesn't display $23 like it's suppose to. What am … | |
Hi Any idea how to solve an old exercice? The linux command ls -alR produce informations about files contained in the current directory and its subdirectories. You can save its output by using redirections (in the file output in the following example): ls -alr > output The exercice is to … | |
here's the problem I need help with. MAP needs a report which represents the monthly statement for these customers. The report will show all transactions on the customer's account. This report will first display the customer account number, beginning balance, the end of month date and the per transaction penalty … | |
I need to create a database for a simple website with films collection. I decided I need following columns in the table: [Click Here](http://www.flickr.com/photos/94148478@N06/8564036143/) I made some reading and after getting familiar wit normalization rulez I decided to divide this in four tables: 1st table "Basic info"with columns: movieID,titleID, directorID, … | |
I have to write a program that creates a binary search tree from a file and output it and several other requirements. One requirement that I cannot figure out is how to find the search cost for each node. These are the instructions I was given Calculate the search cost … | |
Im new to threads, and would like to get experience so I am trying to build a chat server. The idea is to have one thread read from the client socket, while another thread writes to the client socket. (like AIM) I cannot get them to execeute concurrently; Need help, … | |
on dropdown change i would like to put the price on the textbox "price" base on the selected value in dropdown function Price(data) { document.getElementById ("productprice").value = data.value; } <select name="product" onchange="Price(this)"> <option value="" disabled="disabled" selected="selected">Please select a product</option> <?php foreach ($product as $product) { ?> <option value="<?php echo $product['Product']?>" … | |
At the moment I am making a simple pong game in my tenth grade high school class. It is already much more advanced than any of the other projects that people are working on and I will get an A no matter what, but I still have a problem that … | |
Hello, I have added a image file to my code in tkinter but it basically fills my the whole frame so if its possible can you recommend a tutorial that shows or explains how to do this.... unless you can show me on here. I havent added my full code … | |
Hello, I'm writing an application that computes the variance and average from a list of integers. Here is the assignment info: Create a function that accepts a list of integers and computes the average and variance of the list. The variance is computed using the following formula. The list of … | |
This program is not running due to 2 errors could someone please assist me? Thanks import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class UserList { public static void main(String[] args) throws Exception { String str1, str2 = "username"; int index; int initialCapacity = 10; BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); … | |
I want to make a program in which you can edit pictures or similar to paint in windows. Does anyone have any idea how? | |
i'm creating my personal forum website, in create new topic page i have a HTML drop down, i populate this drop down from my categories table from my databse. the problem is that when i select any value from drop down it didn't it's id from database and due to … | |
hi all, newbie wanna ask... if i have string sent from serial comm, lets say the string is like this : name1 name2 name3 how can i split that string into separate string, lets say i will put name1 into textbox1, name2 into textbox2, name3 into textbox3? thanks for the … | |
I have an access database which I am using with .net, I can search tables and maker very specific searches no problem, trouble is that I can't work out how to make global searches. IE search entire databse for "fred" or search a single table for "fred". Anyone know what … | |
i have a datetimepicker and a textbox i code inside in the datetimepicker Private Sub DateTimePicker2_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker2.ValueChanged TextBox1.Text = DateTimePicker2.Value.ToString ''7/16/2015 9:03:03'' PM is the output i my textbox, how i will remove the time when i input a date from the … | |
This is my registration form page(Member_reg.php). <html><head> <script type="text/javascript"> function validateForm() var a=document.forms["form1"]["username"].value; var b=document.forms["form1"]["password"].value; var c=document.forms["form1"]["mailid"].value; var d=document.forms["form1"]["address"].value; var e=document.forms["form1"]["contact"].value; if (a==null || a=="") { alert("Username must be filled out"); return false; } else if (b==null || b=="") { alert("Password must be filled out"); return false; } else if … | |
Write a program that (using an array) analyzes student performance on an exam using the information from such a file. The program should input the name of the text file, and then display the worst score, the best score, the average score, the standard deviation, and a histogram -- a … | |
Hello, I have urls like this: http://site/search/region,state and http://site/type/mytype I need to extract the last part and echo this. I used code below and for the first url it returns "region,state" (but I only need the last part). And what if behind the url is another character like a slash … |
The End.