199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aashishn86

i am using this function to add rows dynamically [code] function addRow() { var tbl = document.getElementById('applications'); var lastRow = tbl.rows.length; // if there's no header row in the table, then iteration = lastRow + 1 var iteration = lastRow; var row = tbl.insertRow(lastRow); // left cell var cellLeft = …

Member Avatar for aashishn86
0
110
Member Avatar for Piya27

Hi All, How can I accomplish splitting of data(string). For eg, If I want to split the 'Date Of Birth' ( given in the format dd/mm/yy) into its constituents dd, mm and yy separately. Specifically, I have a DOB field in my database(sql) and in the form, I have three …

Member Avatar for Piya27
0
80
Member Avatar for firoz.raj

I Simple want when user click on the combo box .the other corresponding detail should come in a text box.i have written a code but it is not working .Kindly help me. any help would be Greatly appreciated.here is the code what i have written. [code=vb] Private Sub CboEmpName_Click() Dim …

Member Avatar for firoz.raj
0
108
Member Avatar for Clawsy

Hello, I'm making an application in Visual C++ that hides/shows an application window from taskbar by clicking a button. First problem (googled it) is that I don't know how to retrieve the information about a window state (SW_HIDE,SW_SHOWNORMAL, etc.). Is it hidden, minimized, normal or maximized? I only know how …

Member Avatar for Clawsy
0
4K
Member Avatar for linkingeek

Here is the code building a table of contents which i felt correct from every sense but output is somewhat unsatisfactory. [code=c] #include<stdio.h> #include<limits.h> #include<stdlib.h> int**buildtable(void); void filltable(int**table); void processtable(int**table); int smaller(int first,int second); int larger(int first,int second); int rowMinimum(int*rowPtr); int rowMaximum (int*rowPtr); float rowAvg(int*rowPtr); int main() {int**table; table=buildtable(); filltable(table); …

Member Avatar for linkingeek
0
109
Member Avatar for JohnE1

O/S: Linux Shell: BASH I know of 4 different ways to use a for loop: 1. for I in {1..10}; do echo $I; done| 2. for I in 1 2 3 4 5 6 7 8 9 10; do echo $I; done| 3. for I in $(seq 1 10); do …

Member Avatar for sknake
0
93
Member Avatar for OffbeatPatriot

[code=c] #include <stdio.h> int main() { printf("hello\n"); return 0; } [/code] It's all the more frustrating because I've designed stuff MUCH more complicated on this computer. My errors seem to be all linking errors. I've done all I can think of, which was really just to make sure my subsystem …

Member Avatar for OffbeatPatriot
0
592
Member Avatar for lancevo3

Today is the first day I have attempted Operator Overloading and am running into a few errors so any assistance would be great! The first one I'm having issues with is here: const MyString& operator=(const char* rightOp) The assignment operator should also be overloaded to allow assignment of a C-style …

Member Avatar for wildgoose
0
248
Member Avatar for kramer4583

I have been working on this program for school, it does some things right but with a few things I am struggling. [QUOTE]For this assignment you will be writing a two person chip game. You will start out with a pile of 1000 chips. Each player will have the chance …

Member Avatar for kramer4583
0
187
Member Avatar for Humbaba

[code] int number; char letter; cout << "\nEnter a number\n"; cin >> number; cout << "\nEnter a letter\n"; cin >> letter; cout << "\nThanks!"; [/code] Let's say I had 5 of these questions lined up, it seems the user could just type something like "1 a 2 3 4" on …

Member Avatar for Dave Sinkula
0
87
Member Avatar for ihatehippies

If I wanted to save the binary information of an executable as a string object in a .py file what would be the easiest way to go about that without receiving null byte and EOF errors.. I've messed around with converting each char to its ordinal and then separating them …

Member Avatar for vegaseat
0
147
Member Avatar for MansoorAhmedK

[B]How i save Picture 'BMP File' in Sql Server Image Field, Plz send me full Code in VB.6[/B]

Member Avatar for tom curren
0
112
Member Avatar for Mahesh_J

I try to show sever time but but will not show properly.......... and i user the Vertrigo server. is ther any setting ? if anyone have the answer, reply me. Regards........

Member Avatar for jbennet
0
99
Member Avatar for VinayRok

Hi friends... am uploading a image file to folder... and as show below am using using a panel with ajax pop up extender.. in that i added the textbox control and fileupload control... but when click the button to upload.. the textbox value will be null... so how i to …

Member Avatar for kvprajapati
0
1K
Member Avatar for whizzell

[code] <?php include('./Connections/hostgator.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; …

Member Avatar for cwarn23
0
263
Member Avatar for atrophiedsoul

Ok so I have a form, where I am taking an amount of entries from admin_images and sending that value to the second page (i'll probably tweak the first page, but thats not what im worried about here) 1st step, I need the hidden divs to be included in the …

Member Avatar for atrophiedsoul
0
103
Member Avatar for iliketacos

this script give me a memory error in parse()...what is a memory error and how can i fix it? [code] import cgi class COM: def __init__(self): f=open('C:/site/commentlog.txt', 'r') self.lines=f.readlines() f.close() def writecom(self, post): f=open('C:/site/commentlog.txt', 'a') f.write(post) f.close() def getcom(self): try: form=cgi.FieldStorage() q=form.getvalue("posts") if q: writecom(q) return q except: return 0 …

Member Avatar for vegaseat
0
117
Member Avatar for jlm699

I feel like I'm losing my mind... I uninstalled wxPython this morning and was going to reinstall with the latest version as I'm having peculiar problems with UliPad that I just downloaded yesterday. Well after uninstalling the wx package and docs & demos I went to the wxPython page and …

Member Avatar for vegaseat
0
221
Member Avatar for Ather14

I am trying generate even fibonacii numbers less than four million, but I keep getting negative numbers at some point and eventually it converges to a positive answer, which is obviously wrong. Can anyone please help me out? #include <conio.h> #include <stdio.h> void main (void) { clrscr(); int f1=1; int …

Member Avatar for NathanOliver
0
181
Member Avatar for geoamins

the below code accessing the report from the given IP Address... initailly i was facing problem during loading business report from the client computer because the i was used this code Dim cryRpt As New ReportDocument cryRpt.Load("D:\Reports\PTC_1.rpt") on server the above code doing best work because the path is identifing. …

Member Avatar for di.arie
0
188
Member Avatar for gianniszaf

Hi there, I have the following string which is tab seperated [code]dasj dhsahdwe dhasdhajks ewqhehwq dsajkdhas edward das dsaw das daswf fjdk ewf jken dsajkw dskdw hklt ewq vn1 daskcn daskw[/code] How can I format it in python in order to make each column to have the width of the …

Member Avatar for vegaseat
0
553
Member Avatar for Zetlin

Ok so for the last couple of days I have been struggling with file handling. Here is my problem I create a new file and write some text into it. Then I open it again to add more text to it but somehow the new text is being written in …

Member Avatar for Zetlin
0
249
Member Avatar for Jonx

So after some scrambling around trying to find a good beginner programming language, i have found python, and with my ultimate goal being game development, also pygame. I have just started learning some basics, and I was going through a tutorial when i ran into an error that im not …

Member Avatar for vegaseat
0
2K
Member Avatar for kes_ee

What is the difference between these two methods; [CODE=python]# Solution 1 list1 = ['a', 'b', 'c', 'd'] temp_list1 = list1 for i in range(len(list1)): temp_list1[i] = "1" print list1; # ['1', '1', '1', '1'] print temp_list1; # ['1', '1', '1', '1'] # Solution 2 list2 = ['a', 'b', 'c', 'd'] …

Member Avatar for vegaseat
0
130
Member Avatar for mrnutty

How could one share a .exe that loads textures. I am using c++ and openGL. I want to share the .exe that I made using rapidshare.

Member Avatar for tux4life
0
84
Member Avatar for si_f

Hi All I am writing a C# windows application and it needs to run in a standard user account, however, the application should allow a standard user to create further standard user accounts using Vista\Windows 7. In order to create new accounts you need to be part of the administrator …

Member Avatar for serkan sendur
0
236
Member Avatar for monkey_king

If I simply just want to tokenize the first element of a string and then output the remainder of the string, how can this be accomplished? thanks [CODE=c] #include <stdio.h> #include <string.h> int main(){ const char* line= "0 firstline"; char* l = strdup(line); printf("beforeToknization:\t%s\n",l); char *tok = strtok(l," "); printf("firstToken:%s\trestOfLine:%s\n",tok,l); …

Member Avatar for jephthah
0
3K
Member Avatar for emint

hi, i got class A which class got some graphics to display. when i run the program in class A its fine, but i when run from class B it display like 40 sec delay. any one who can help me? really need help!

Member Avatar for emint
0
107
Member Avatar for daviddoria

I'm trying to start writing tests for all of my functions as per Test Driven Development. My question is, say I construct a test for "rotate vector". It would be something like this: [code] int TestRotateVector(const Vector &V) { Vector Original(1.0, 2.0); Vector Rotated = Original.Rotate(10); //rotate 10 degrees if(Rotated …

Member Avatar for StuXYZ
0
186
Member Avatar for mypicturefaded

I swear this code worked a few minutea ago...but now it is coming up with the Parameter is not valid error. What am I missing here? sigpic is a public local variable. [CODE] private void SaveFile(string fileName, byte[] bytes) { //MessageBox.Show("Saving file '" + fileName + "' of length " …

Member Avatar for mypicturefaded
0
377
Member Avatar for ivanhuk

I've created a class and create two new objects from that class. 3 variables are stored as private. I have mutator and access functions for these variables. When I try to write a value through these functions, they don't seem to change the variable in the class. What am I …

Member Avatar for Lerner
0
145
Member Avatar for tdeck

I'd like to extract a column from a dataGridView and add it to a dataSet. Apparently I can't cast a dataGridViewColumn to a dataColumn like this [ICODE]DataColumn col = (DataColumn)inputGrid.Columns[0];[/ICODE] even though they seem like they're holding essentially the same thing. Any suggestions you have would be great, I'm still …

Member Avatar for ddanbe
0
106
Member Avatar for Phaelax

Most web forums will state next to each board how many threads or posts have been been. Would you calculate that with a query for each board to count the number of "post" entries in the table for that board, or simply increment a number in the board table whenever …

Member Avatar for davidn
0
111
Member Avatar for jasscat

How do I format a decimal number so that, if there are one or two digits to the right of the decimal point, that shows up (e.g. 123.45) but, if there are digits of zero to the right of the decimal point, the number is formatted as a whole number …

Member Avatar for jasscat
0
180
Member Avatar for orangejuice2005

Hello. I've been messing around with applying textures and i managed to apply one with no hiccups. By subsequent attempts , however, keeps turning my spheres blue! I don't know what to do. I'm attaching what i've done so far because it's kind of long. If anyone can help me …

Member Avatar for wildgoose
0
160
Member Avatar for naziatarannum

[B]Hi All, I'm new to this community, please help in this ...[/B] [CODE][B]do while not rst.eof i=0 End if blnOdd = Not(blnOdd) colName = UCase(colName) do while (i < rst.fields.count) if (rst.Fields.Item(i).Name = colName ) then ValueSelected(j)=rst(i) selectedName="val"& j Response.write("<td align='center'><B><a href= ""#"" onClick=""return returnSingleValue(this,window.opener.document." & frm & "." & …

Member Avatar for Airshow
0
189
Member Avatar for vamshi099

how can i autofill a username and password into a websiteB username nd password fields when i click a link present in websiteA. The username and password vl b stord in a database. and when i click on the link referring to websiteB, present in websiteA , i shuld get …

Member Avatar for diafol
0
279
Member Avatar for sharal

hi forum i was trying to fetch records from database against id but it gives error Warning: mysql_result() [function.mysql-result]: Unable to jump to row 1 on MySQL result index 3 in C:\xampp\htdocs\regadmin.php on line 52 [code] <?php $dbhandle = mysql_connect('localhost', 'root', ''); if ($dbhandle == false) { die ("Unable to …

Member Avatar for sharal
0
98
Member Avatar for shopnobhumi

What could be the possible explanation of this program output? I am trying to learn c++ so please help [code]#include <iostream> using namespace std; int main( ) {int b[3][2]; cout<<sizeof(b)<<endl; cout<<sizeof(b+0)<<endl; cout<<sizeof(*(b+0))<<endl; // the next line prints 0012FF68 cout<<"The address of b is: "<<b<<endl; cout<<"The address of b+1 is: "<<b+1<<endl; …

Member Avatar for Ancient Dragon
0
174
Member Avatar for Talguy

I am trying to make a java sever code communicate with and iphone hello world app. When I run the iphone app it sends the length of the string first then sends the string. the Length of the string should be 2 but my server code prints out 33554432. Also …

Member Avatar for Talguy
0
175
Member Avatar for walter clark

I have a Windows program (Visual C++ CLI Type) that displays video in a sub window. When something happen the user makes a note of the event by hitting a button. The problem is that the event involves a number of choices and finding the right button to click is …

Member Avatar for walter clark
0
73
Member Avatar for teddyg18

I have a program in which i open a a text file, access it's values and create and array with it. for example the text file may contain these values: 1 44 3 4 33 6 7 8 61 10 ; that's 10 integers what c++ tools could i use …

Member Avatar for teddyg18
0
6K
Member Avatar for JakShelar

I want to create fairly simple custom control that has group box and checkbox on it. This control should act as normal groupbox control ... user should be able to drag it onto form and then add some other controls to this groupbox (by draging thom on groupbox)... i managed …

Member Avatar for ddanbe
0
89
Member Avatar for wonderland

Hi, I'm having a small problem with JS drop down menu. The problem occurs only in IE6 and IE7 (surprisingly in IE8 everything works fine). The problem isn't big though. when you put pointer over drop down in IE, the drop down part loads 2/3 of drop down and in …

Member Avatar for Airshow
0
141
Member Avatar for ragnarok511

I am having trouble with a project that is used to create a simple library database. The code does compile but during runtime, it throws a nullPointerException. It points to addBook in my main method. Here is my code: [code]public class Library { Book[] books; int numBooks; String address; static …

Member Avatar for ragnarok511
0
365
Member Avatar for sugumarclick

hi pals, i want to hide one select box to the web page background color.. i can set the backcolor color for select but it cant hide the dropdown triangle at the end. need help. thanks my code is [code]<script language="javascript"> function Turnover(sel){ sel.style.backgroundColor=sel.options[sel.selectedIndex].value=='yes'?'green':'' } </script> <select onchange="Turnover(this)"> <option value="yes">yes</option> …

Member Avatar for kireol
0
109
Member Avatar for VernonDozier

OK, I haven't done much with Serialization. I have a simple program that creates four JPanels with different background colors and adds them to a larger JPanel using a 2 x 2 GridLayout. That larger JPanel is added to a JFrame. I've written my own serialization code to override the …

Member Avatar for VernonDozier
0
1K
Member Avatar for sharal

hello can any 1 give me the idea if we use single web page for both admin and user then how to hide admin priviliges from user??

Member Avatar for sharal
0
118
Member Avatar for noamco

I have a strange bug in vs2008. ostream open fails when called in the following manner: [CODE=c++]ofstream filestr; filestr.open((filename.c_str()),ios::in|ios::out);[/CODE] when called like this it works without a hitch: [CODE=c++]ofstream filestr; filestr.open("blahblah.txt",ios::in|ios::out);[/CODE] Any ideas? Thanks

Member Avatar for noamco
0
177
Member Avatar for iamwa

i am an IT STUDENT MY INSTRUCTUR HAS GIVEN ME ATASK TO BUILD WEB BROWSER IN JAVA AFTER GUI WHAT I HAD TO DO PLEASE HELP ME!!! NOT GIVE ME THE CODE JUST TELL ME EASY STEPS COMPLETE IT THANKS!!!

Member Avatar for saggy4
0
112

The End.