199,114 Archived Topics
Remove Filter ![]() | |
hi I have a textbox and i want when i type on it my textbox read it in many langueges how is it possible? plz with code snipped | |
I wrote this code bellow but it doesn't work how I get to [B]bgcolor[/B] of [B]tr[/B] tag? [CODE][COLOR="Red"] <table id="menutable" name="table1"> <tr onmouseover="ChangeCol()" id="tr_1"><li><a href="main.html" name="main" target="main">Main Page</a><br/></tr> <script language="JavaScript" type="text/javascript"> <!-- function ChangeCol() { var col="#998800"; document.menu.tr_1.bgcolor=col; } //--> </script> [/CODE][/COLOR] thanks.Sergey | |
I'm having an issues with this script from my own debugging it appears that the readyState is doing the following 1 ... 4 ... 1 ... 4 the second time it appears not to have any response so I end up seeing my content shortly (if all my debugging alerts … | |
/* File: Kilowatt-hours.c Calculate and print bills for the city company.*/ #include <stdio.h> int main() { int account_number; char code; double bills, kilowatt_hours, peak_hours, off_peak_hours; printf("Please enter Your account number: \n"); scanf("%d", &account_number); printf("Enter Your user code [R/C/I]: \n"); printf("R = Residential\n"); printf("C = Commercial\n"); printf("I = Industrial\n"); printf("\nCode = … | |
hi developers my name is sajjad i have little problem in asp.net i have made two pages one is login and other is welcome page a user enters name and password in login page after checking valid user it open welcome page and after signout jumps to login page again … | |
I am really confused on this problem someone please assist me I am suppose to create a random number generator that passes in a high and low value and return a random number using a generator that is not biased. It makes use of the idea of cuttoff. I know … | |
Hi, in my code below if I move scope protected below public just as I would like to see it this code won't compile. I always thought that order of members in class is without any importance but here I see something different or I'm doing something wrong? Thank you. … | |
Ok, so as suggested I have rewritten this thread. It was suggested that the code posted to be shortened and only revelent code be posted. I did both of these and people started asking where all different things were, and why cant they see other files etc. Uploaded is the … | |
sale_item sale_item::operator + (sale_item &s2){ } sale item is a class how to overload this operator sale_item::sale_item(const char N[],const char C[],double P){ } this is the constructor | |
Hello, I'm writing a rubiks cube solving program, and I would like to condense all of the turn definitions into functions like rightTurn(); I'm using Windows XP and Code::Blocks. An example of a turn definition is : [CODE]cout << "Executing bottom turn: " << endl; a = front[6]; b = … | |
Forgive me Admin. Now that I got your attention. I just wanted to say one thing. PLEASE put meaningful titles on your thread. No, [U]Help[/U], [U]Urgent!![/U], I[U] HATE C++[/U], or even worse "[U]UNTITLED[/U]". Instead, put titles, like [U]help creating a recursive add function[/U], or [U]help I don't understand this homework … | |
hey guys how would i figure out if a string has a number in it without using any aditional libraries? | |
hi guys! can you look for my script im required to use php. i have two comboboxes namely cat and sub cat. and i have a textbox. my logic goes to when i select item from cat it will display its sub items in subcat. and then when i select … | |
Guys, Im in desperately need of help, and I need the whole program to be written, as I dont understand anythuing in pascal haha. Thanks for any help, I really appreciate it! By the way, this is also my first post here, yay :D | |
I'm writing a program to convert one image type (for example, png or gif, or tif) to a jpg. What I want to do is to feed the file name into the program via the console, and it will spit out the converted image. How can I make sure that … | |
[CODE=python] import sqlite3 as sql class Tables(object): def __init__(self): print "Class created!" def CreateDb(self, dbname): self.conn = sql.connect("?", (dbname, )) self.cur = self.conn.cursor() def CreateNewTable(self, tablename):#, tablename self.cur.execute("CREATE TABLE IF NOT EXISTS ?(id INTEGER, name TEXT)", (tablename, )) listed = [(1, "Mary"), (2, "Martha"), (3, "Jesca"), (4, "Don")] for i … | |
I need help with writing a program that asks the user to enter distance in kilometers and then converts distance to miles | |
I appologize for the length of this post, but I have no clue what is wrong with my program. As an experiment, I wrote a XOR encryption program. It isnt very fast, but it works. Apparently, only for strings. I implemented a file encryption function, and it seems that some … | |
Hey guys: I'm working on a chess program for comsci, and surprisingly, the pawn is the hardest piece to program. If you're not familiar with chess, this is the basic move of the pawn: If the pawn is in its initial position, it can move 2 spaces forward, however, subsequent … | |
Hello, having a bit of trouble with this. I am writing a program which sorts a sequence of numbers using a binary tree however i cannot to seem to get it to work; i belive it is something to do with passing the digits to makenode(). Any help would be … | |
How do I access the base class protected/public methods in a derived object ? For example A and B are as defined below... [code=cplusplus] class A { int a; protected: int set(int v){ a = v; }; public: A(){}; int foo(){ return 0;}; }; class B : A { int … | |
Hi, I'm using eclipse to write my programs but for some reason this code does not work can someone tell me whats wrong with it? here is the code. and sorry if i didnt use the code wrapper properly. package dataTypes; import javax.swing.*; public class Window { JPanel pnl = … | |
I know you can't usually define things in the class like this: [code] class MyClass { double DefaultForward[3] = {0.0, 1.0, 0.0}; }; [/code] but I have some values that don't really make sense to set in the constructor - they are more "deeply connected" as THIS SHOULD ALWAYS BE … | |
I have a Player class, a Weapon class and a Projectile class in my applet game. The weapon class uses Projectile objects when fired. For example, everytime I click I want this code to execute: [CODE]projectileList.add( player.weapon.fire() );[/CODE] player.weapon.fire() returns one or more projectiles that the projectileList handles every frame. … | |
word is a private variable. MAin [code] #include <iostream> #include "FrameThePhrase.h" using namespace std; int main() { Frame_The_Phrase frame; char in; ifstream input; bool a=true; bool b=true; bool c=true; string length; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' to get from file\n"; cin>>in; … | |
Hi All, I'm developing GUI for my project. I'm working in Windows and using VC++ 2008. I've found some examples, on internet using which I've developed a dailog box window (like shown in attached figure) using win32 api. The example has a list box and few buttons. I managed to … | |
hi i need help to sort a file in terms of CourseCode i have this file COURSE.DAT In the file this is the format.... <CourseCode>|<CourseName>|<SubjectArea>|<TeacherID|<Date>|<NoEnrolled>|<Support> <CourseCode>|<CourseName>|<SubjectArea>|<TeacherID|<Date>|<NoEnrolled>|<Support> eg of this file(raw) CS10|Computing|CS|20845|12-12-2008|12|1 MA10|Mathematics|MA|20845|12-12-2008|12|1 PH11|Physics Practical|PH|20845|12-12-2008|12|1 CS11|Computing Practical|CS|20845|12-12-2008|12|1 PH10|Physics|PH|20845|12-12-2008|12|1 i need it to be sorted (the end result should be this CS10|Computing|CS|20845|12-12-2008|12|1 … | |
I really am stumped by this problem and would appreciate some help.. I am tryiing to build a site on a computer running Wiindows XP and using, mainly, FrontPage 2003 although I have also used Notepad to try and solve a problem that has arisen. The problem is that IE6 … | |
Hi. I would like to build a web crawler, but I am only familiar with C and C++. Can any one give tips on how to develop one using those two environments. I have a Borland 4.5 compiler that I will be using. | |
I have a main.php page with multiple divs. I load whole pages in these divs using AJAX. Some of these pages have forms with submit buttons. The structure of the pages is like so: For acc_settings.php [CODE]<form enctype="multipart/form-data" method="post" action="acc_settings.php" > . . <button type='submit' name='update' >UPDATE</button> </form>[/CODE] So the … | |
I am trying to code some advertising banners on my page based on random picks from a table in my DB. I have successfully got my top banner to display and log an impression: [CODE] // Top Banner $query="SELECT * FROM sm_ADS WHERE id_Maze_Category='$Category_ID' and Type='large' and Active='1' ORDER BY … | |
Hi , i want to learn programming for android , so i download android sdk 1.5 and netbeans plugin . i have a problem when i run program that i Have written emulator not shown !!! and this message shown : select device please help me , what i should … | |
I have a class Banner that extends JFrame implements ActionListener and is responsible for thread handling via actionPerfmored. "launch banner", "pause banner" works. "resume banner" seems to be dead alltogether [code=java] import java.awt.*; import javax.swing.*; public class BannerP extends JPanel implements Runnable { int width, height, xPos=10; boolean stopT; public … | |
Hi, I'm having a very strange problem. I use lampp on centOS linux. My application has a upload Script (in PHP) which uploads file to file system. after upload and moving file to correct location, uploaded files are getting deleted. I check file upload and moving of file by putting … | |
I have downloaded a lyrics script, and that works, but the author of that script didnt create a file for submiting lyrics... i have tried to create a script but im not a php pro so i ask help from daniweb, to help & create that ""submit.php""... the one who … | |
![]() | Hey guys... I have some code here: [CODE] import os import threading import urllib import time a=0 class launch(threading.Thread): def start_now(): try: urllib.urlopen("http://www.google.com") except: a+=1 start_now() def end(): print("\nOut of 10000 requests, "+str(a)+" requests failed.") for x in range(10001): launch().start() print("http://www.google.com") end() raw_input("<Done>") [/CODE] This works, in the sense that … |
Hi all,:'( his for over a week now i cant get my head round it so i hope some one can help me... i have a dictionary which reads my file line by line and counts the occurance of tuples ...ok great. then for every key in my dictionary (which … | |
Hello, I'm starting in Java ME development, but i'm already a Java for desktop developer, but how i can build Jar files for my Java ME applications using my Eclipse or command-line, i want to build it only. Thanks, Nathan Paulino Campos | |
Hey guys, I'm making a program that asks the user to input a folder path (string), which it then displays the contents of said directory, but the problem I have is that it won't accept space bars, it just screws up and enters into an infinite loop. So is there … | |
not too sure why this problem is happening. I can update the dataset from a textbox but then when I click the update button it is showing an error "Object reference not set to an instance of an object." The dataset is empty when I try to run the update. … | |
the question given like this The TetraPek manager assumed that you are already familiar with the game rules. Now, the manager wants your program to be able to auto-generate some numbers before the player gets to key in their numbers into the empty boxes. It is up to you how … | |
Hello, I'm learning Java and i want to build a program that save emails to an [i]*.txt[/i] file, like this: One guy send me an email, then the program periodically search if i have emails every 10 minutes and if i have it saves all the emails in a single … | |
how can I align the link i mean i can i manage the 4 link two of them at the left corner two of them at the right corner? [code=html]<style type="text/css"> .sag {text-align: right} .sol {text-align: left} </style> <a class="sol" ... <a class="sag"...[/code] but it doesn't work | |
How to implement the activexcontrol at runtime. Activex control name is A32Control. | |
Hello, My problem is that when i try to see other datails of the person names selected in the list box, i can see the details of the firstname (first item) of the list box only and not the second onwards. So pl tell me the code to write so … | |
![]() | I have two class modules namely DbConnection and Database. Database has all methods which are required to manipulate the tables (Insert, update, delete, move). And DbConnection has connection related methods (Connect, Close, StartTrans, CommitTrans, RollbackTrans) I have a global instance of DbConnection in a standard module and I don't initiate … ![]() |
Since gotoxy() function can have maximum values (35,25) I want to know is there any alternative to this which i can use in Turbo C++ 4.5 version. I have to make a project and therefore i urgently require a one for a better look of my project. | |
guys my instructor gave me a project : a file that contain 5 text files 2 for sale_item( header file, cpp file_ 2 for sale file ( header file, cpp file 1 for main ------------------------------------------------------------- to start u need 2: 1. create new project 2. call it the same name … |
The End.