64,152 Solved Topics
Remove Filter ![]() | |
Hi, I want to prevent submitting a form if any of the field is empty. also if possible I would like to validate some basic things. All I want to use JQuery: How do I do that? I have no way and google points me to plugins. The things I … | |
Hi...there,,can anyone debugging my code.. this program intend to find the average and count how many numbers is positif and negatif from 10 numbers entered by user. My problem is when i run the program the result of average is correct but somehow on the result of negatif and positif … | |
What is the best way to create a banner ad using information stored in a database? I have the information I was to use and already pulled from the database using PHP. How can I put this into a 460x80 banner in .gif or .png? I want to banner to … | |
No... honestly... I mean this is REALLY dumb! I have a form with a select that looks like this: [code]<select name='toasters'> <option value='1'>Toaster 1</option> <option value='2'>Toaster 2</option> <option value='3'>Toaster 3</option> <option value='4'>Toaster 4</option> </select>[/code] In my php I read (or try to read) the value with: [code]$toaster = $_POST['toasters'];[/code] No … | |
Hey guys - i am working off three files that contain information on associates and their sales. The files are: products: (product ID, name, price item) % cat products 103:sway bar:49.99 101ropeller:104.99 104:fishing line:0.99 ... 108:wheel:49.99 111:lock:31.00 102:trailer hitch:97.95 sales: (product ID,num. sold, date sale, associate ID) % cat sales … | |
Hi, This is a very convoluted problem I spent hours debugging to find that when I call std::vector<object>::push_back(Object()) destructor of previous Object is called. Is this the behaviour of std::vectors or is something wrong with my code? [CODE]#include <iostream> #include <vector> class Manager; class Entity { friend class Manager; private: … | |
Hello everyone. I am University of Bath Computer Information Systems student and i have to submit a java calculator. As far as i am quite new to java i would like to kindly ask you for some help with it. Here is my task: Write a program that takes as … | |
Dear Sir, How to write these codes correctly. It displays following tooltip Too many arguments to 'public function iif(expression as bolean, truepart as object, falsepart as object) as object'. [CODE]Dim cmd As New SqlClient.SqlCommand("Insert Into master (code) Values (@code)", con) cmd.Parameters.AddWithValue(IIf(Val(Me.TxtCod) = 0, "Null", "@code", Val(Me.TxtCod)))[/CODE] | |
Hello, I have two data comboboxes on a VB6 form "DataComboMasterPolicy" and "DataComboPurchasingGroup" after selecting the first appropriate choice with "DataComboMasterPolicy" I would like for the 2nd datacombox "DataComboPurchasingGroup" to only display the data associated with the user's selection. The data is in an Access 2003 db. My code for … | |
is it possible for me to retrieve data from different tables then display them on a single data report. i am using a data environment for connection. if its possible how can i do it | |
One aspect of computers that I just don't find clear learning material on is networking. There seems to be loads of information on 'how to' but I still don't understand the underlying basics. What is meant by a Port? Why are ports numbered so strange (as in, not 1,2,3). I … | |
I made a program that edits the contents of a XML file. It works fine, but when there are newline characters between the nodes, the program doesn't handle them correctly. It looks like it's handling the newline as if it's a node as well. The problem is that put all … | |
The code I'm using to change XML content isn't working... Does anyone have any idea what I'm doig wrong: [CODE]package domtest; /* public class Main { public static void main(String args[]) throws Exception { DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); DOMBuilder domBuilder = new DOMBuilder(); Document jdomDoc = domBuilder.build(builder.parse(new File("src/home/projects/misc/Test.xml"))); Iterator iter … | |
How can you check the length of a file / list and then use the value in an "if-loop" in python? I want to create a "if-sats" that must check the amount of elements(numbers) in a textfile, if the amount is less then 5 do this... else do that.. | |
I created a Web Service in VS 2005, I tested it by opening in the browser it worked well. I deployed it in the IIS 5.1 I'm getting You are not authorized to view this page. HTTP Error 403 - Forbidden !!! Can anyone help me in finding out where … | |
Enviorment is TC. using grapphics.h . I am developing the board game LUDO as project in C++ Using OOP methodology. Right now I am drawing the Board. Now I want to draw various cells, of 30 pixels X 30 pixels at various places on the screen. I am drawing a … | |
Hello. I'm trying to develop a very simple user-based information system. For example, read a folder for .ini files and get the pInfo stuff for each different player. It's for a network game I'm developing. So here's a BASIC example. [code=c++] if( PlayerInfo[playerOne][pLeader] == 1 ) { cout << "Player … | |
I want to parse a string into something like an array: [url]ftp://user:pass@host:portpath[/url] [url]ftp://anon:1234@111.222.333.444:9999/path1/path2/[/url] I read the java docs about using Pattern and Matcher but I keep getting an "IllegalStateException: No match found" error. [CODE=java] import java.util.regex.Matcher; import java.util.regex.Pattern; public class test { public static void main(String[] args) { String s … | |
Hello :) We are a group of 3 who has been given a task which we must develop our own little keylogger to monitor people such as employees in a company. Unfortunately, we encountered a small problem: We would like to hide the console, so you can not close it … | |
Hi, I would need some help to resolve a problem. I need to create a programm that contain 10 basic math questions. After 3 fails in a row, the programm must stop. After each question the good answer should show if the student entered the wrong answer, and the result … | |
making for practice a temp converter. i got the basic program to convert C to F. heres that part: C = input("what temperature (celius) do you need converted? ") print "%s degrees celsius is equal to %s degrees Farenheit" % (C, 32+(212-32) / 100.0 * C now im trying to … | |
Hi..can anyone help me..debugging my codes.. when i compile and run it.. i dont get the accurate result..of sum and avg..can anyone help me telling where is the error?? thanks so much.... Here are the codes: #include <iostream> void getNum(int& num,int& sum); void doProcess(int num, int& sum, float& avg); void … | |
ok it's my time to ask.... who knows framework of CRM and PMS? which it could help me lessen my job on developing them in hardcode. | |
Hi there everyone, I'm new to this forum, it seems to be the one always popping up in Google! I am also new to PHP and am having trouble figuring out how to use variables in URLs. I want to have one file in a directory with my data for … | |
Hi, I am trying to write some code in order to communicate with a telnet clent from a c++ application. My idea was to open a telnet session with popen and to use the input/output pipes to communicate but it does not seem to work. When I test, the program … | |
Hi guys:) I have an assignment about making an operand stack using c++ which receives a mathematical expression like ((3+2)*(5+6-2)) and the program gives the solve of that exp. the problem I have faced is how to change a character to an integer ? and how I can start? | |
hi all again, i have made this one script that grabs values from the DB and displays them once you click on the dropdown menu which is fine if you have the first value that is printed. but i also made a new part of it where it prints a … | |
Hi all, I want to add some yellow background when focus turns to text input and remove it when it moves. Here is my code for JQuery [CODE=javascript] $(document).ready( function(){ //make form display yellow color when mouse is focused on item $("input").focus( function(){ $(this).css('background-color' : 'yellow'); } );//end focus }); … | |
Hi, i m trying to make a program (VB6) in which i need to do some tasks as soon as the date changes (like creating new database etc.), but dont know how to keep track of date change...searching on this gave me following - 1. Using a timer with 1 … | |
This code is supposed to print all the numbers from a text file...but for some unknown reason, it is only printing the last pair. [CODE]#include<stdio.h> int main() { freopen("in.txt", "r", stdin); int result=0, column=0, row =0; while(scanf("%d %d", &row, &column) != EOF); { printf("%d %d", row, column); } return 0; … | |
I had a couple of posts on getting this thing to work. I finally got a small test program working, but now this, the actuall program, doesn't. I don't understand the error either(Will include it at the end of this post). Here is my code, with the line throwing an … | |
Hello! I have some probs with this code, somehow it dont loop 10 times as it should, just one? How do i make python use a testfil.txt that already exist? I dont want to remove the old data in the file just add new data to it? In this code, … | |
Hi, I have jest started learning Python. I would like to get some help on writing a script that would delete a set number of lines from a text file which looks like this : 1846440556 1846440521 1846440491 1846440505 1846441137 1846441102 1846441080 1846441331 1846441323 1846441315 ... ... Thanks in advance … | |
Hi, i have couple of doubts.. 1) How do i use MSComm Component in a module...i could gather that i might have to use 'class module' for that..but not able to make that work. 2) if i use a class module..how to pass parameters to a class...as i would like … | |
Is there any way to convert [B]System.Windows.Shapes.Rectangle[/B] to [B]System.Windows.Drawing.Rectangle[/B] in WPF ? | |
We are required to Display Live View from a Camera in a WPF Application. A TV-Tuner is being used to capture the video. We had already achieved this in WinForm (VS2005) using DShow. To implement this in WPF we are using the same code (code used in WinForm) except that … | |
i have a school assignment where I need to create a countdown timer to attach to a scoreboard i made. the code that is attached is a program i found that is a stopwatch and will count up. im looking to get the timer count down from 2 minutes and … | |
hi How to allow enter only 5 char in Tedit without using tmask? Thanks. | |
hello, and happy new year! i'd like you guys and girls to show me another or similar but a bit different way to write this code, which a simple employe class with 4 different sub-employers types. thanks. this code is not mine, and i need to write somethink like this … | |
Hi all, I am new to c#. I am trying to read a text and find a string from that text file. I want to get the text between two particular line number . Intially i want to get two particular string's line number . then the text between these … | |
Hello again I have two drop-down lists on my web application. #1. Country list #2. US states list By default #2 is disabled [CODE] protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; } [/CODE] I need to enable it only if user will choose "United States". My trial … | |
And I can't get anything I write to work. I'm so far off course I think I just need a working example of import hooks in action. I've looked for examples on the Internet, but they only show what looks like correct code. They never show that code in action. … | |
Hello, this is my first time here, although I have hit this website many times on google looking for quick fixes to my problems. I am a student in high school and I persuaded my teacher to let me study c++ (as opposed to 3ds max). I have been working … | |
Hi I have a textbox and a listbox. If i write something into the textbox and press the enter key, i would like the content of the textbox to appear in the listbox. What is the best way to do it? Thanks in advance | |
Hi everyone, I have a problem in MS SQL. Due to academic nature, I am supposed to use a query to find out the present applicable tax rate (GST, Good & Sales Tax) without altering the table. The table has 3 tax rates, 1: WEF (With Effect From) 2004 Jan … | |
Hello, i have a problem with a timer , on my program i have 2 different classes under the same namespace when i start the timer from the form class, the tick event happen on the elapsed interval. but when i call the timer from the other class the tick … | |
i have to do a code that takes the word from the user and seperate them from uppercase and lowercase. i had done the code, but the words that are printed out are not as aspected (symbols) [CODE]#include<iostream> #include <ctype.h> using namespace std; int main(){ int i=0; int total_char=0; cout<<"enter … | |
Hi all.. This function should work recursively.. Meaning call the function inside the same function. So i'm supposed to write a recursive function that takes a single parameter from type integer and decrements that number until it reaches zero. Ex. If the user entered 7, he'll get this output: 7 … | |
I need some assistance with three things in my code. My problems are: Next and Previous buttons do not loop through the array, instead they throw exception errors when they get to the end of the array. Second my image that is required does not show up, my instructor said … |
The End.