64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for ireimaima

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 …

Member Avatar for ireimaima
0
154
Member Avatar for sfrider0

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 …

Member Avatar for vaultdweller123
0
165
Member Avatar for ppetree

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 …

Member Avatar for vaultdweller123
0
101
Member Avatar for tones1986

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 …

Member Avatar for bobydavid71
0
210
Member Avatar for jakesee

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: …

Member Avatar for jakesee
0
470
Member Avatar for Seldar

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 …

Member Avatar for AndreiDMS
0
195
Member Avatar for tqmd1

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]

Member Avatar for jireh
0
116
Member Avatar for JohnPhilipps

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 …

Member Avatar for jireh
0
123
Member Avatar for Israelsimba

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

Member Avatar for Israelsimba
0
96
Member Avatar for Namibnat

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 …

Member Avatar for Namibnat
0
125
Member Avatar for P00dle

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 …

0
66
Member Avatar for P00dle

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 …

Member Avatar for P00dle
0
190
Member Avatar for Godflesh

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..

Member Avatar for Godflesh
0
101
Member Avatar for Karthika_g

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 …

Member Avatar for avirag
0
99
Member Avatar for mir_sheely

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 …

Member Avatar for SHAHEER BANO
0
815
Member Avatar for java..
Member Avatar for metalclunch

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 …

Member Avatar for metalclunch
0
1K
Member Avatar for TheWhite

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 …

Member Avatar for TheWhite
0
437
Member Avatar for HolstebroTS

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 …

Member Avatar for HolstebroTS
0
77
Member Avatar for zourha

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 …

Member Avatar for FlamingClaw
0
166
Member Avatar for fuston05

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 …

Member Avatar for fuston05
0
172
Member Avatar for ireimaima

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 …

Member Avatar for ireimaima
0
2K
Member Avatar for vaultdweller123

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.

0
97
Member Avatar for bjc999

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 …

Member Avatar for vaultdweller123
0
218
Member Avatar for madmax007

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 …

Member Avatar for madmax007
1
1K
Member Avatar for lucky_43

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?

Member Avatar for shreyajain33
0
104
Member Avatar for itisnot_me

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 …

Member Avatar for itisnot_me
0
95
Member Avatar for Stefano Mtangoo

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 }); …

Member Avatar for Stefano Mtangoo
0
140
Member Avatar for pankaj.garg

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 …

Member Avatar for pankaj.garg
0
157
Member Avatar for iamcreasy

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; …

Member Avatar for iamcreasy
0
205
Member Avatar for P00dle

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 …

Member Avatar for parry_kulk
0
194
Member Avatar for Godflesh

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, …

Member Avatar for Godflesh
0
85
Member Avatar for Cornholio

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 …

Member Avatar for Godflesh
0
26K
Member Avatar for pankaj.garg

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 …

Member Avatar for pankaj.garg
0
288
Member Avatar for dilake

Is there any way to convert [B]System.Windows.Shapes.Rectangle[/B] to [B]System.Windows.Drawing.Rectangle[/B] in WPF ?

Member Avatar for dilake
0
61
Member Avatar for dilake

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 …

Member Avatar for dilake
0
603
Member Avatar for Shmoil

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 …

Member Avatar for Shmoil
0
6K
Member Avatar for especta
Member Avatar for eliile5

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 …

Member Avatar for jonsca
1
205
Member Avatar for makdu

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 …

Member Avatar for jonsca
0
2K
Member Avatar for Nfurman

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 …

Member Avatar for Nfurman
0
101
Member Avatar for lrh9

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. …

Member Avatar for lrh9
0
349
Member Avatar for Ihatepullups

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 …

Member Avatar for niyasc
1
109
Member Avatar for vivek4020

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

Member Avatar for sknake
0
2K
Member Avatar for samuel_1991

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 …

Member Avatar for samuel_1991
0
671
Member Avatar for kobi

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 …

Member Avatar for sknake
0
89
Member Avatar for lonelyday91

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 …

Member Avatar for lonelyday91
0
85
Member Avatar for fadia

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 …

Member Avatar for fadia
0
132
Member Avatar for TexITTech

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 …

Member Avatar for TexITTech
0
126

The End.