64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for shaikh_mshariq

I have one table which is generated using javascript dynamically. In have write one function which creates table dynamically for IE i have writed [B]mytable.onClick=some_function();[/B] for onclick event it works fine. But when i generate more than one table dynamically using the same function then onclick does not work. If …

Member Avatar for nish123
0
180
Member Avatar for bubbafunk1

I have recently taken over the running of an e-commerce website. Once in a while i will need to increase the prices of certain products by any given percenatge. The products all have a code starting with 3 letters and then digits. for instance: ffc1234, ffc1245, dcc4544, dcc5799, vff300, and …

Member Avatar for bubbafunk1
0
971
Member Avatar for johndoe444

Dear friends, I have this code which attempts to get the last modified date of an http resource: [CODE]request = urllib2.Request('http://www.imdb.com') >>> opener = urllib2.build_opener() >>> request.headers {} >>> first = opener.open(request) >>> first.headers.dict {'transfer-encoding': 'chunked', 'set-cookie': 'session-id=209.251.138.146.1246519635845007; path=/; domain=.imdb.com, uu=bN4RO5T1YWqLBgRAupwcdgCRSyzj0j26pvJ+qYPCXqmT117Zs9L+/LfGO4zGx50bwJFtjNPSXuqj8g4pgDJ+meCRbaoGcS2aoNZb7PiBbbqjkm66I/I+qSAyfpnj8l7qA/I+qTAyfpngkW2KBnEtmqDXe20AkW26oLFtuqC3KyrjwW26o5IOuZOyLtnAgc0ZsLFtuqCRbergwR2Ko=;expires=Thu, 30 Dec 2037 00:00:00 GMT;path=/;domain=.imdb.com, cs=xOA2Pyx3xsSbt7wMU8ZOhAbGfbqgkW2NmIHl2qPyXuoj8j6pMDJ+meCRbYoGES2aoJFb/feFHbqjsg7/p9HNySCRWyxAGW26oKdbraCRbbqgsW26oJFt+uDBHYqg==;expires=Fri, 03 Jul 2009 …

Member Avatar for siddhant3s
0
219
Member Avatar for sarithak

Hi frnds... Here i am going to display albums in a table...But, all albums is display in only one row.Its looking not good in my page...So,i want to display in 2 or 3 rows..plz change this code as my requirement.. .[CODE] <table width="142" height="188" border="0" align="center"> <tr align="center"> <?php $gquery="SELECT …

Member Avatar for sarithak
0
114
Member Avatar for kes_ee

How to acheive this in Python? [QUOTE]Converting the string "HelloPythonWorld" to "HELLO_PYTHON_WORLD"[/QUOTE]

Member Avatar for shadwickman
0
178
Member Avatar for makymakaru

hi.. i'm very new in this programming thing but i need to make this hello world program work in windows and linux environment. thing is i encoded the program below and i used cygwin and andlinux to compile and i still get i think some errors. I'm lost.. really i …

Member Avatar for makymakaru
0
182
Member Avatar for kerek2

Hi Alls, I'm really need your's help... I develop console application as a engine to pull data from oracle to SQL...the connection to both database is ok..but when to insert got problem....somebody help me plz.... [CODE] 'Connection To Sql Dim sqlcn As SqlConnection Dim sqldr As SqlDataReader Dim sqlda As …

Member Avatar for kvprajapati
0
166
Member Avatar for caquake

I am trying to create a program that uses nested loops to create a box. Only one of the overloaded functions need the details of nested loops.. the other 3 should call the one that has the details.. my problem is the last function and the for nested loops. Here …

Member Avatar for shadwickman
0
406
Member Avatar for jhappy

hi there, im a php trainee and really need a help in my javascript ..anyone? i have my code here that injects a patient name ..i need to know if the patient is already injected..if so..it should not be allowed and should pop an alert that say...'sorry the name has …

Member Avatar for jhappy
0
134
Member Avatar for vizy

Hi Friends, I am using update Panel to update the records without being page refreshed... and using updateProcess control to lock the screen with ModalPopup div Css.. After Updating the Record from the CS Files, giving the alert message using ScriptManager.RegisterStartupScript method. But this message is displayed on the modalPopUp …

Member Avatar for vizy
0
147
Member Avatar for ayesha789

Passsword Strength Checker [CODE=php]<?php function testPassword($password) { if ( strlen( $password ) == 0 ) { return 1; } $strength = 0; /*** get the length of the password ***/ $length = strlen($password); /*** check if password is not all lower case ***/ if(strtolower($password) != $password) { $strength += 1; …

Member Avatar for ayesha789
0
254
Member Avatar for goody11

I was working on a program for spanish where I want to input the spanish and english and then the programputs the words in 2 listboxes when "ADD" is clicked. Here is my code and it does compile so you can kind of get an idea of what I want …

Member Avatar for goody11
0
211
Member Avatar for Debby0424
Member Avatar for dchaosblade

Hey, I'm hoping someone can give me a hand here...I'm currently writing a JApplet which uses several buttons on several different JPanels. Two of these buttons use an image and label (e.g. I did [icode]contestant.setIcon(cc); contestant.setText("C.C.");[/icode] where contestant is the button, and all formatting occurs just after and the Image …

Member Avatar for dchaosblade
0
159
Member Avatar for Debby0424

[code=JAVA] import java.util.Arrays; // Class that hold a collection of CD objects class Inventory { // maximum number of CDs that will be held static public final int MAX_NUM_OF_PRODUCTS = 10; private CD products[] = new CD[MAX_NUM_OF_PRODUCTS]; // number of CDs currently in the inventory private int numOfProducts; // default …

Member Avatar for Debby0424
0
233
Member Avatar for jen140

Hello all. I would like to add a small handler. Imagine that i have a listbox, and when i right click i want to appear a menu with two options . How can i do it ? Thanks in advance.

Member Avatar for sknake
0
63
Member Avatar for mustafaneguib

hey all i need some help in redirecting my page. following is my code. here is the scenario: when the user enters the admin panel from another website set up on a different host/server (a cms actually) the user is redirected to this page and the data from the main …

Member Avatar for digital-ether
0
170
Member Avatar for Hockeyfreak889

how would i display a yes/no dialog that would return one value if the user clicks yes and another value if they click no. I know you can do it using some part of JOptionPane but im not sure what

Member Avatar for BestJewSinceJC
0
73
Member Avatar for Democles

I am attempting to take names and weights from strings and just simply output them. For some reason it can't get out of the while loop, it just sets there waiting for the users to input names and weights. Here's my code [code=C++] #include <iostream> #include <string> #include <vector> using …

Member Avatar for VernonDozier
0
11K
Member Avatar for pmyk

How to use the name of one Userform which is received in another Userform as a variable? P. Michael

Member Avatar for vb5prgrmr
0
89
Member Avatar for serkan sendur

in the custom installer i want to differentiate between if the windows installer run by command prompt or by GUI. i can check for custom parameter but my command line is already long, i want to use something built-in(parameter). Thanks

Member Avatar for sknake
0
150
Member Avatar for serkan sendur
Member Avatar for Hiroshe

Hey guy's. Can't get this seemingly simple function to work. It is suppost to get a string and return the first 10 characters, than the next time you call it, it returns the second 10 cheracters and so on. I did this in basic a while ago without problems, C …

Member Avatar for Hiroshe
0
142
Member Avatar for shadiadiph

I am having problems with a data entry issue i have a field in my database which is called headline it is set to varchar 255 when i insert for example something with for eample. [code] The 'dogs' are very big. [/code] the code is sent by normal $headline=$_POST["headline"]; then …

Member Avatar for uesuva
0
302
Member Avatar for goody11

I was going through a tutorial and had some trouble with an example program. Here's the coding I have and I can't fix it. Here is the main cpp file. [code] #include <windows.h> #include "resource.h" BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: …

Member Avatar for goody11
0
208
Member Avatar for fatalbert55

Hello All, I am trying to learn C++ on my own, but I think I am having some problems with Code::Blocks. I am familiar with Java (I did some CS as an undergrad) and I feel that the C++ basics are pretty easy to translate from Java; however, I am …

Member Avatar for fatalbert55
0
287
Member Avatar for erms

Hi, I am having trouble replacing this pattern. Could someone help please? FROM: (URL="http://google.com") google website (/URL) The sign () is actually [] but vbulletin is changing it to a link, so made a () sign instead. TO: <a target="_blank" href="http://google.com"> google website </a> Thanks :)

Member Avatar for erms
0
71
Member Avatar for mypicturefaded

I need to pull out the information in the Document\Property(label = Individual Information)\value. The code I am using does not work, or I am not using it correctly. What would be the correct syntax? [ICODE] <?xml version="1.0"?> <fnApiResponse status="ok" xml:space="preserve"> <document idmId="12214" name="214214" label="me" class="Signature" version="1" mime="image/x-win-metafile" library="mylib" user="me" group="blah" …

Member Avatar for mypicturefaded
0
122
Member Avatar for johndoe444

Hi, This is the existing code: [CODE]for c in chartNames: chartUrl = baseChartUrl+c hd = extractChart(chartUrl) writeChart(hd,c) for key in hd: if key in chart: chart[key].append(c) else: chart[key] = [c] [/CODE] when i wanted to insert a line before [CODE]chartUrl = baseChartUrl+c[/CODE] by putting the cursor to the end of …

Member Avatar for jlm699
0
162
Member Avatar for serkan sendur

in windows installer user interface i want to have check box dialog and according to what checkboxes are checked, i want to display textbox dialog. how is that possible? thanks.

0
70
Member Avatar for MrNoob

Hello people i got a h.w to do Using nested loops to produce the following pattern: F FE FED FEDC FEDCB FEDCBA I had idea to do it but that will require array and strlen(char first int of the outer loop) and the thing says that I must do it …

Member Avatar for MrNoob
0
230
Member Avatar for Zetlin

Hi everyone it's been almost a year since I gave up programing in python so I have forgotten a lot of things, so just bare with me. Ok so I was playing around with python and ended up with this little program. [code=python] def test(): number = input("Number: ") scale …

Member Avatar for jlm699
0
114
Member Avatar for sonia sardana

I want to read just the last record of file....I m able to read the whole file. Secondly I want to know that in VB.Net we have ubound to get the upper bound of the array..What is the equivalent in ASP.net? [code] protected void Page_Load(object sender, EventArgs e) { string …

Member Avatar for sonia sardana
0
146
Member Avatar for painless

plz help me out ... i m using the following code to display an image which resides on my pc (C:\Users\vivek\Pictures\firefox,JPG)... but when i run the code ....there is no compile time error..n also not any run time error..n the output is a empty frame :'( [code=java]import java.awt.*; import javax.swing.*; …

Member Avatar for painless
0
133
Member Avatar for u8sand

Hey guys, I've been programming in consoles/visual C++. But i've been wanting to learn WindowsAPI programming WITHOUT the stupid visual interface for a while now. Could someone provide me some pointers on a good place i can learn this? Right now I'm using [url]http://www.winprog.org/tutorial/start.html[/url]

Member Avatar for u8sand
0
105
Member Avatar for kingben

Hi All... Any way to auto-increment the last inserted numerical value in the field "id" and then insert the newer value (id+1) in the database upon submitting the form ??? ...... How do i resolve that last submitted "id" ?? ..... I thought of doing that using a txt file …

Member Avatar for kingben
0
99
Member Avatar for kes_ee

I am having a text file contaning the following: "int Function1 (int arg1, "0|1", char * arg2); int Function2 (int arg1, " ", char * prt1); ..." I need to open this file, split the each word and store it as global variable. I did this in Perl but now …

Member Avatar for Lardmeister
0
808
Member Avatar for mimsc

Hey fellas, I need some help doing on action changes This is what I got. I have a loop that has the form name "autoEmailRedirect" [code] <form name="autoEmailRedirect" method="post" action="autoEmailContact.jsp"> <td valign="top" class="paddingLeft10 paddingTop9"> <div class="paddingBottom2 boldFont paddingTop20"><%=(String)autoName.elementAt(i)%></div> </td> <td class="paddingTop9 paddingLeft" valign="top"> <div class="paddingBottom2 paddingTop20"><%=(String)autoEmail.elementAt(i)%></div> </td> <td class="paddingLeft11 paddingTop9 …

Member Avatar for sysel
0
92
Member Avatar for llemes4011

I'm writing an Email Client, and I need a JSplitPane that splits 4 or 5 JPanels instead of 2. I looked around and didn't really see anything that looked like what I need. I need it so I can adjust the size that is allotted to the subject, sender, date, …

Member Avatar for llemes4011
0
834
Member Avatar for mands

Hi I need some help, I currently have a timer that counts down and what I would like is when the times runs out it then displays text or html (answer to question). I currenlty have the timer counting down and a seperate js show answer link that will show …

Member Avatar for essential
0
1K
Member Avatar for stevnlon

I wonder if i could pick anyones brains on somthing? [CODE]public void show(String add) { try { statement.execute("select * from Staff_Details WHERE Address2 =" + add); [/CODE] This is a section of code im working on. The string variable add at the end of the SQL statement is not working …

Member Avatar for masijade
0
137
Member Avatar for r0n

hi everyone how should i move the data of the multiple text file to another text file... (for instance you have two text files readFile1.txt and readFile2.txt and you have to move the data of the two text files in another file which is writeFile.txt ) how should i read …

Member Avatar for r0n
0
4K
Member Avatar for Ardvarks

I have been coding a GUI program as a MySQL database manager/utility... The idea of the section I am focusing on is, your enter a guild's name, and it queries the database and displays the guild's info in a textbox. As a test I have used this query: [code]SELECT * …

Member Avatar for Ardvarks
1
139
Member Avatar for lotrsimp12345

here's my code, don't see why it doesn't print out [code] #include <iostream> using namespace std; int main() { cout<<"enter a passage into input to find out how difficult it is to read\n"; string passage; cin>>passage; char letter; int space=0; while(letter!='\n') { if(isspace(cin.peek())&&letter=='\n') { cout<<"from space"; space=space++; } } cout<< …

Member Avatar for Nick Evan
0
243
Member Avatar for ayesha789

Hi, I want to calculate age of the person using this code [CODE=php]<?php /*** a date before 1970 ***/ $dob = strtotime("april 20 1961"); /*** another date ***/ $tdate = strtotime("june 2 2009"); /*** show the date ***/ echo getAge( $dob, $tdate ); ?>[/CODE] but it gives error [ICODE]Fatal error: …

Member Avatar for digital-ether
0
160
Member Avatar for scholar

Hi friends, I am trying to add multiple LABEL controls in my program using a GROUP.I am using the folllowing code [CODE]Label newlabel = new Label(); void functionname(..... , ....) { int i = 0; foreach (string s1 in s2) { newlabel = new Label(); newlabel.AutoSize = true; newlabel.Text = …

Member Avatar for ddanbe
0
313
Member Avatar for babbu

i want to enable or diable some controls on another form depending on the action in the current form. how can i write the code for this in the current form

Member Avatar for kvprajapati
0
101
Member Avatar for teked

Hi i want to display the version number of my application in VB6, I know the solution is going to be really simple.. please help!

Member Avatar for teked
0
4K
Member Avatar for ayesha789

Hi, Its Ayesha, I am new to PHP and MYSQL , I am working on a Project in which I have to give rights to one user to UPLOAD a JPEG picture Using Browse . So Any one can Help? I want to store my JPEG Files in a Folder …

Member Avatar for diafol
0
104
Member Avatar for TrintiyNoe

Hey,can u ppl tell me a simple way of converting a string into a integer? I have something like [ICODE] string str1 ("1000"); string str2 ("2000"); [/ICODE] i wanna convert them into integers and add them,any idea how?

Member Avatar for TrintiyNoe
0
128

The End.