199,114 Archived Topics
Remove Filter ![]() | |
I trying [icode]Window.unload=setcookie(username,'xyz',365);[/icode] where [code=JavaScript]function setCookie(c_name,value,expiredays) { var exdate=new Date() exdate.setDate(exdate.getDate()+expiredays) document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : "; expires="+exdate.toGMTString()) }[/code] not working....... can anybody help me? | |
hi i need to store data more than 8000 char in varchar in sql server 2000 how can i? plz help. | |
hey well this program basically is a mathematics game...try the program out for yourself, it works, but im just wondering how to make an reset option so at the end of the program so the user can play the game again. thanks [ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print … | |
I'm having a bit of trouble reversing a string. Here's a code snippet of how I'm currently trying to do it: [code=c] index_s1 = strlen(num_s1); for (index_s2 = 0; index_s2 <= strlen(num_s1); index_s2++){ num_s2[index_s2] = num_s1[index_s1]; index_s1--; } [/code] | |
How in the hell do you divide by 7 using nothing but-- ~, ^, >>, <<, &, | -- In a set algorithm. I'm stumped. I've tried mapping out different numbers dividing by each other... it didn't work. I would map out a number subtracting from the other to see … | |
how would i write code so when someone enters 1 charcter it changes it to somthing else for example if someone entered 100 / 5 it would say 100 รท 5. | |
Hello, I want to be able to echo a redirect url, based on a few variables. The content type of this php script is set as Header("content-type: application/x-javascript"); here is my code: [CODE] $row = mysql_fetch_row($result); echo "window.location = \"http://myurl.com/test/".$row[0]."/index.php?name=".$row[0]."\";"; [/CODE] Right now the url just outputs the url as … | |
Hello People! Hope, you solve my problem. I program in VB.NET and have a WebForm that contain a client Javascript counter (min:sec) to zero. I use this code to show up a counter. [CODE]<script language="javascript"> var up,down; var min1,sec1; var cmin1,csec1,cmin2,csec2; function Minutes(data) { for(var i=0;i<data.length;i++) if(data.substring(i,i+1)==":") break; return(data.substring(0,i)); } … | |
Does anyone know a good way to do it? I've heard of itoa(), but it's non-standard and isn't included by default with the GCC compiler. If you believe that's the best way, how to I get my hands on the function? Ideas? HUGE EDIT: I made a stupid mistake and … | |
Hi all,,,, i want help i have created an inbox........which is very simple.....like as soon u click which will just display the mails.......from.date,subject.........but after that i dont how to proceed........ i want if i cilck on subjet it should display the contents.......how to do all these just explain me.................pls give … | |
HI i would be more than thankful if anybody can tell me why this don't work, the problem is that the JS counter won't work when there are more then 1 entrys in mysql. With one entry the script runs fine. Heres the code: [code] <table> <? //Connect to mysql … | |
I've been getting an "Access Violation" error while running this program: [code=c++]#include "SDL/SDL_ttf.h" class Font { private: TTF_Font *font; public: Font() { font = TTF_OpenFont( "c:\\windows\\fonts\\cour.ttf", 20 ); } ~Font() { TTF_CloseFont( font ); //Access violation } }; int main( int argc, char *args[] ) { if( TTF_Init() < 0 … | |
Dear All, I recently upgraded Python 2.3 to python 2.4 but still now my application searching python2.3 dll in System 32 how to solve this issue........... regards Mani. | |
Hey i have a few random questions that i can't seem to get my head around at the moment. Any help would be appreciated 1) What criteria would you apply in deciding which of the three forms of loop to use in a program? 2) What does this function prototype … | |
Hello, I made this program that has random values and you have to choose to say if the next number will be higher - or lower. I completed the code and successfully had no errors but when the user is mistaken nothing comes up. Am I missing something? [CODE=C++]// Code … | |
Hello, I am having a problem with a Glut function which is messed up, either by GCC or by OpenMP. I have GCC 4.3.1 20080626. The problem is, that I do not know which of the three is causing the "Segmentation fault" at the glVertex2f() function. The proggie works perfectly … | |
Hello all: I'm currently building a website for a radio station and I want to setup a programming lineup. The fields I'm using are: ID Title Dayofweek (Show Day) Timeslot (Show Time) AMPM (AM or PM) Description Name (Host Name) Bio (Host Bio) Photo (Host Photo) I set these all … | |
Hello :) Umm I have a small question :) Which do you recommend for fast searching BST or AVL tree? My answer: It might be the BST because it'll be noticed that in the right subtree all the numbers greater than the root will be there also for the smaller … | |
hi frds, I want to fetch data from a table who contain approx 10 million data or above. I am able to fetch approx 1 million within 3 min. but this is so slow. and also problem to fetch more then 1 million. I used to data adapter and dataset … | |
Hi Everyone, this is my first post so I hope I don't break any rules/codes of practice. I have developed an application and produced the appropriate setup files by adding a 'setup project'. I have no problems installing it on a standalone machine. However, I want to install it on … | |
hi all i have wrote a code for file uploader and it was working fine but now its getting sme problems...here am attaching my code plz check it out and replay me fast... [code] if ($_FILES["description"]["error"] > 0) { echo "Return Code: " . $_FILES["description"]["error"] . "<br />"; } else … | |
Hi, this is my first time doing this, I would like to know if there is a way of printing multiple Images on the client side. I am printing barcodes. I put the barcode as a image into a <div> and then use javascript to print the entire <div>. The … | |
Hi, I was wondering with the menu bar how to open, save and make a new file on the menu bar [code] case MENU_FILE_ID_OPEN: { //something to open the file } break; [/code] i have no idea at all how to do this, i have searched the net but it … | |
I'm writing a function that reads an IP address from input and generates its 32-byte values. If the input is correct, the whole thing can be done by this: [CODE=C++] int a, b, c, d; char buf; cin>>a>>buf>>b>>buf>>c>>buf>>d; ... [/CODE] If it's not, such as 256.0.0.0, or 1..2.3.4, I want … | |
[B]Array.h CLASS[/B] [code=c++] #ifndef __ARRAY_H #define __ARRAY_H template <typename DataType, int size, DataType zero> class Array { public: // set function, sets an index void Set(DataType p_item, int p_index) { m_array[p_index] = p_item; } // get function, gets the index DataType Get(int p_index) { return m_array[p_index]; } // clear function … | |
servlet package does not exist any idea [QUOTE] import java.io.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class EmployeeDetails extends HttpServlet{ static int i; Connection con; PrintWriter out; ResultSet rs; public void ini(){ i=0; con=null; out=null; rs=null; } public void doGet(HttpservletRequest request, HttpServletResponse respose) throws ServletException,IOException{ i++; out=response.getwriter(); out.println("<b>your are … | |
I need to copy the data from the top row of a worksheet to all those empty rows underneath it UNTILL you get to a row that has dataโฆthen start over and copy that new data into the empty rowsโฆ.and so onโฆ I have the code that we've written so … | |
I am currently using a database within my program and I have no problem backing it up or restoring it when i am simply debugging. However if it is published and downloaded it cannot find the path that it needs to get to the database to copy it. My code … | |
hi all, i am writing a script for shoutbox where users click on shout box two fields will appear message and name when they submit, their message will appear beside shout box. my problem is how to display table which has message and name fields upon clicking shout box. any … | |
if you use movefile and ofstream the ofstream file won't be made.. :s any way to solve this? | |
Hi Everyone! Need help in my new Project with Visual Basic 6.. I need to send a 5 volts signal from my pc using a VB6 program to the serial port where I could place a relay... Thanks :) Dexter A. | |
hi guys. i require some assistance of yours again. what i want is this: there is a form (say on page xyz.php) in which i have , say, 5 text-fields. but i also hav a button. upon clicking whihc, i want another text-field to appear. i do now want to … | |
hey guys. i hav this page (a.php), where i ask te user for his username and password. I match these with static values, and upon succesful matching, i redirect the user to b.php. my prob- what if somebody, instead of going thru the normal procedure (from a.php to b.php after … | |
Hello, I tried posting this earlier but i do not think it went through because my internet connection was cut off. In case it did i am sorry for the repeating it, but have not seen it on the site. Any ways. I am writing a class program and i … | |
[CODE] int count; for(count=10;count<=1;count--) { Console.write("Hello"); } [/CODE] Why Doesnt appear nothing when I run this code?? have logic for me... | |
Dear Group, I am trying the following code line: [code] def try2(n): a1=raw_input("PRINT A STRING:") a2=a1.split() a3="God Godess Heaven Sky" for x in a2: a4=a3.find(x) if a4>-1: a5=a3[a4] print a5 elif a4<0: a6=x print "It is not found" print a6 else: print "Error" s=a5+" "+a6 print s [/code] Here, if … | |
[ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print print "\t\t\t\tHello", name print "\t\t\tWelcome to my Mathematics Game" # Selecting the operation of Addition and Substraction followed by the difficulty print operation = str(raw_input("\t\t\tAddition (A) or Substraction (S)")) if operation == "A" or operation == "a": my_op = 'Add' difficulty = … | |
Hello everyone, I'm learning programming for the first time and my first book i bought from the book store is the new Deitel C++ 6th edition. After reading the first several chapters I got so overwhelm with the authors verbose; I went out and bought C++Primer. One thing I noticed … | |
hi, can anyone give me a brief example using mailx and heredoc to send an email? [CODE]#!/bin/sh mail -s "subject" target@address >>body hello all, this is supposed to be the body of the mail body[/CODE] -----------------------------------------> i think i need somethink like above code, with mailx instead of mail -s......... … | |
Hi, I am trying to write a class that uses vectors that contain another class. When I compile my code using g++ I get the following error that I don't understand: [B]In file included from cars.cpp:5: car.h:24: error: syntax error before `;' token car.h:25: error: syntax error before `;' token[/B] … | |
I have gotten my program to compile but it will not run: here is the error: init: deps-jar: Compiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication27\build\classes compile-single: run-single: java.lang.NoClassDefFoundError: javaapplication27/FGInventory2 Caused by: java.lang.ClassNotFoundException: javaapplication27.FGInventory2 at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) Exception in thread … | |
well in a program i m making i need a loading screen it wont be doing anything its just a prank thing im doing but i need like it to sit and look as if its loading for half a minute can anyone help im in the dos box still … | |
Hi, Iam very much new to programming and C++ please help me I have an application that uses socket++ classes on Unix (AIX) environment I have included #include<sockinet.h> in two of my .cpp files and I have socket++ source in my temp directory when iam trying to compile my application … | |
Wasnt sure where to post this but it uses php... help mods? i can get the number of messages and connect to a telnet server so i say top 1 and responds something along the lines of -ERR protocol error 16 or something... not sure if thats exactly what i … | |
does anybody know how to make bubble sort work in progressively smaller sizes and determine if a list is sorted on it's first try? i've got the basic bubble sort algorithm down. i just can't figure out the rest of it (my basic bubble sort code below) [code] def bubbleSort(list1): … | |
Hi everyone, I've written a test program, and I need help limiting the amount of characters a user enters in a char. I want it so that that maximum amount of characters is 1, and if they enter more than 1, it will display a message. Here's my code: [CODE]#include … | |
Hay everyone, first time poster. I am designing a program in Visual C++ 2008 Express Edition and i need the following code It is a console app. I need code to beable to create a directory on drive C. I also need some info about how to copy the programs … | |
i have two text boxes with the id as first and second respectively.In javascript i took the values using [code] var first=document.getElementbyId("first").value. var second=document.getElementbyId("second").value. var sum=first+second; [/code] But the problem is when i alert the sum i got the result as concatenated.i didn't get the original sum.I also tried it … | |
HI, i want to generate html file from xml and xslt documnet using java...pls,,, | |
I have a very large MS Access database with over 80 tables and 15 queries. My problem is I can get the data that's in the tables to show and load, but I can't add any new records and get them to save in the database, using the DataBase Wizard … |
The End.