199,111 Archived Topics
Remove Filter ![]() | |
Hey! I'm using an ajax script to load external html pages into a div tag. The script works just fine, however I would like to use it in a jump menu. [CODE]<select name="Jumpmenu" > <option value="1" onclick="ajaxpage('page1.php', 'DivId');" >Option 1</option> <option value="2" onclick="ajaxpage('page2.php', 'DivId');" >Option 2</option> </select>[/CODE] The script works … | |
Hi everyone, I need your help on deciding what type of mobile game should I create for my project, I will also need help on how to create a mobile game from scratch if anyone has good source such as website or books please let me know I will really … | |
I have been programming a compressor based on lz for my school project.When i used fixed block sizes there were no problems but now when i started using variable block sizes it crashes.The compression takes place without much problem but decompression crashes and debuggers does not report any error. Uncompression … | |
Hi, how would I get the temperature and percentage of load for my CPU, GPU, and other things like the hard drive? I'm on Windows XP. Is there something in the Win32 API or what? | |
Hey, I have the following query which I would like to insert into another table which I guess would demand some kind of loop or such. The query: [CODE]$colname_GetName = "-1"; if (isset($_SESSION['MM_Username'])) { $colname_Name = $_SESSION['MM_Username']; } mysql_select_db("db_name"); $query_Recordset = sprintf("SELECT * FROM Table WHERE UserName = %s", GetSQLValueString($colname_GetName, … | |
anyone has an idea where i can setup the language (the dateformat) for my ms sql database?? Allways thought i can configure the DB user so that the DB accepts german datetime values- any ideas?? | |
which can pick up executable if it is available in PATH like [code] int execv(const char *path, char *const argv[]); [/code] I do not want to specify full path , I want it to search in my PATH and execute . | |
Hey, I'm working my first program that includes structures. For some reason though I have having errors with my getline. [code=cplusplus] inFile.getline( studentar, 20 ); [/code] My getline is being used in a function, so I don't know if that effects anything. The studentar array is declared as type student … | |
I need to add elements in the middle of a user created array. The closest I found was splice, but from what I read it can only replace. example of what I want to do it take list monkey marble oreo sandle monkey marble smile phone oreo sandle | |
I am a 3rd year student.this is my minor project.i have to make a project using vb as front end & oracle as back end.In this i have to design a form in vb which contains company information.The companies which are coming in campus for selecting students have some criteria.these … | |
Do i still need to append? and do i get the string break. i try cannot only the first line break. how are you? I am fine. What about you? I fine too! the txt file is : How are you? I am fine. What about you? I fine too! … | |
I have over 50 sites on a host that provides Cpanel for each site. Through the Cpanel, I can do manual backups of the public_html directory, was well as the MySQL databases for each site, and have had those backups mailed to me quite successfully, but to do each site … | |
I need to write the while loop to terminate with a '|' character program does not terminate correctly when using two cin numbers in the same line or even on separate lines (i.e. cin>>num1>>num2;) when the program does terminate with ^Z it just scrolls a long list of the last … | |
Hey, Does anyone know how I can draw lines between the textfields? If I ask for x and y then this is relative to the component itself.. Also now I have made a separate class but this means that when I draw the lines the textfields disappear they cannot exist … | |
New python autodidact: please help with sorting the list "weather" in python using bubble sort, insertion sort, merge sort, quick sort, and selection sort. | |
I'm having a problem with cin.get(). I'm prohibiting the user, that he can only enter 5 keys. and each key does something, like a MENU. Press 1, if you want this, etc. [ICODE]char choice[5]; cout<<"ENTER YOUR CHOICE"<<endl; cin.get( choice, 5); switch (choice)[/ICODE] Okay, when I run this, the compiler gives … | |
Hi, Consider there are 3 tables as following: Table1 ============================================================================================= | SerialNum | Date | B | C | D | Table2Number | Table2_Amount | Table3Number | Table3_Amount| ============================================================================================= | | | | | | | | | | | | | | | | | | | | | … | |
Hi, Everybody! I have one problem, I want to use same sql query in MySql and SqlServer. In case of Sql Server generally you have to write query in this way- select * from databasename.dbo.tablename but in case of MySql you have to write query in this way- select * … | |
i am trying to validate a form so that all required fields are filled before submission. If they are not filled then an error message should appear.. But I keep getting this error: "Parse error: parse error, unexpected '{' in C:\Program Files\wamp\www\template1\updateReceipt.php on line 31 " Here is the code … | |
Hey guys, With this defintion: sss.hpp [code=cpp] #include <fstream> #include <string> #include <map> namespace sss { using namespace std; class node { public: multimap<string, string> values; multimap<string, node> children; string &value(const string name, int index = 0); node &child(const string name, int index = 0); //... }; typedef pair<string, string> … | |
I'm working on updating a website using as much AJAX as possible to give it a very streamlined feel. I've been able to do it for the most part, but have hit a snag. Let me first explain what I have working. I have tabbed navigation at the top of … | |
Hi please can anyone run this code for me in Linux .. i want to know what's the output [CODE=c++] #include <stdio.h> #include <unistd.h> #include <sys/types.h> int main(){ for (i = 0; i < 3; i++) { if (fork() != 0) { printf("ONE"); if (fork() == 0) { printf("TWO"); } … | |
I return result like this. [code] $xmlDoc=simplexml_load_file("myXML.xml"); $search = $xmlDoc->xpath("/customer[@id='$ID']"); foreach ($search as $key => $customer) { echo $id = $customer["id"]; } [/code] Is there any chance to DELETE or UPDATE above particular record without creating whole XML file again like we do in database? Thanks | |
I was thinking about making an avatar system (like Gaia Online; I've tried befor but it's hard). Can anybody help me with one? I'm gonna make an open source site like Gaia... I can't do it by myself, though. | |
Hi. I am working on a php-mysql project. My table contains a field called "ID", which i have declared as teh PRIMARY key. but what i want is, that when the user tries ot insert record B into the table, an **ERROR message** should be displayed, showing that a record … | |
Hi, I wish to add the following to my web.config file: [code] <appSettings> <add key="networkDrive" value="C:\test"/> </appSettings> [/code] But everytime I add it i get the following error: [code] Sections must only appear once per config file [/code] I looked in the file to see if it appeared more than … | |
Hey, i'm writing a client-server, so far i've got this: my structure [CODE]typedef struct mesg{ long type; pid_t pid; char data[64]; } MSG;[/CODE] the client [CODE]int main(int argc, char *argv[]){ int MSGid, msglen, mpid; MSG m; MSGid = msgget(KEY, 0600); while(1){ memset(&m, 0, MSGLEN + sizeof(long)); m.type = 1; mpid … | |
Hi Friends, I just want to output the xml using php and mysql. Like If i have data in jan month and feb. I wanted to display that in xml sheet. How to go about this please help me. Regards Raghu | |
hi all, i have a problem with the array search in php.I have an array like ("apple","orange","mango") and i have a variable as $var="apple 1". Now i want to search this $var is exist in the above array and if so want to retreive that element from the array? that … | |
hey everyone need some help with a little homework assignment i need to make a program where a user is trying to book a seat on an airline in either first class or coach and if the seat that the passenger has choose is taken it either gives him another … | |
I included a file in one of my sites via an iframe (simplest solution and by FAR not permanent), just to get a feel for the way it might look on the site However, after adding the iframe to the site, i have no other data, the page is saved … | |
Hello, I have several Objects in switch I need to set the text that should be in a string, ill show an example of how i have done it. It´s all made in a JPanel using NetBeans. private void comboBoxMajorChoosingActionPerformed(java.awt.event.ActionEvent evt) { comboBoxMinorChoosing1.addItem("English"); comboBoxMinorChoosing1String = comboBoxMinorChoosing1.getSelectedItem().toString(); } private void comboBoxMinorChoosing1ActionPerformed(java.awt.event.ActionEvent … | |
Hi I'm having a problem with this piece of inheritance code. When compiling it displays this error " 'getAverage' : is not a member of 'Person' " but shouldn't the casting overcome that problem? Do i really need to have a virtual function in "Person" for this to work? Thanks … | |
Hi, Im creating a website that will be used to monitor servers, the user can add and remove servers and the servers list will be constantly chaning. I need to create a generic page to display the monitoring results that will adapt depending on which server the user selects. The … | |
In this code : [CODE] #include <iostream> using namespace std; class Singleton{ private: Singleton(){} public: static Singleton* getInstance(); void myFunction(){ cout<<"\nmyFunction() called.."; } }; Singleton* Singleton :: getInstance(){ static Singleton* obj = NULL; if(obj == NULL){ cout<<"\nCreating new instance..."; obj = new Singleton(); cout<<"\nReturning instance..."; } else{ cout<<"\nan old instance … | |
Hello all. For getting the values from text field, we use [COLOR="Red"]".get"[/COLOR] function. I would like to get all the contents from the [COLOR="Red"]text area[/COLOR]. What is the function to use. | |
I have been surfing the net for hours but couldn't find anything as to whether it is possible to make a groupbox readonly. So if you can make it read-only how do you go about?Is there any code?Thanks | |
So Ive been working really hard to get a working ASP captcha to incorporate into my form (note, classic ASP not .net). I FINALLY got it working in a test area, the form looks like this: [CODE] <form action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method="post"> <table border="0" width="570" align="center" cellpadding="1" cellspacing="0"> <tr> <td align="right" valign="center"><%=font4%><font … | |
I have done half of my project on microsoft visual studio express edition 2008. However as the express edition does not support reporting i will have to use the professional edition. My question is will my project open in the professional edition. | |
hi everyone.. i have a face recognition project to do in any language.. i have no clues on how to begin this.. can anyone plz send me an algorithm on face recognition using neural networks?? thanks | |
Hi all, Could you please sugest me some code for building the GUI to browse a file and to upload using Swing. Thanks, | |
Hi, This is my first post to this forum. I am just a beginner so I am not really sure what everything in my code does. Below is my python code. I would like to change the code to ask the user where the files are located and automatically update … | |
I'm creating a new class called album which is supposed to make an album and show pictures with caption. so.. Ok my problem is the methods section... i need help to set the array in the picture album and set the captions too can any one please help me out … | |
-------------------------------------------------------------------------------- Hey all. I'm a newbie at C++ and hope that you guys can guide me along. I recently got assigned a project and is needed to code it in C++, which I have almost zero experience with, so bear with me. =) I need to delete 3 log files … | |
[B]is there any way to disallow more than one login [/B] I mean , in IE we can log in a yahoo Mail with a number of mail id at the same time...But this is not allowed in Mozilla..... I want to implement this(like that in Mozilla) restriction in our … | |
Good afternoon, all! I'm in the process of writing a chat program. The server is completed, and if I simply telnet into the server with 2 different windows, 2 people can chat in fluid fashion. However, when I connect 2 clients, the chat appears in lock-step fashion. (ie. Client 1 … | |
Hi, just doing a uni assignment and have completed a majority of it, just asking if someone could please proofread and help me out with the last line as i can't get it to compile. heres my instructions: All objects that float through space are instances of the SpaceObject class … | |
hello guys, just want to ask if you have a module for adding/deleting of registry key easily, I have tried reading some articles and they have given some of their examples.. but its not working... i'm working now on adding this registry key HKEY_CLASSES_ROOT Folder\shell\Use Zip Help\command ValueName = (Default) … | |
Hi, i have been trying to use the javascript confirmation box to delete files from a Gridview, however when ever i click "cancel" on the box it still deletes the file! i really need some help, heres the code i have: [code=c#] <asp:TemplateField HeaderText="Delete File"> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" … |
The End.