64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for maxxxx

Is there away to make javascript drop down menu with out CSS? i have 5 page website I would like to change my menu to.

Member Avatar for Airshow
0
80
Member Avatar for Pelle_3

I am learning C++ .net programming and was wondering why the code for creating a messagebox is [CODE=C#]MessageBox.Show("Hello, World!");[/CODE] in C# and [CODE=C++]MessageBox::Show("Hello, World!");[/CODE] in C++. Why is the dot substituted with a double colon in the C++ code? My source: [url]http://msdn.microsoft.com/nb-no/library/z9w2f38k[/url]

Member Avatar for Pelle_3
0
448
Member Avatar for maxxxx

I have a website that is 5 pages. Is there away I can link them useing javascript. instead of the old way? Thanks in advance.

Member Avatar for Airshow
0
63
Member Avatar for Ares08

Hi guys, I am fairly new to python. The problem I am having is manipulating the data that I read from a file. Example: if a line of the file is Monday = 0800, is it possible to break up that line so I can read Monday and 0800 separately …

Member Avatar for woooee
0
156
Member Avatar for libathos

I am using a JFreeChart from this link [ICODE]http://www.java2s.com/Code/Java/Chart/JFreeChartCategoryStepChartDemo.htm[/ICODE] the format of the datasetUtilities.createCategoryDataset is (new String[]{..,..,},new String[]{..,..,},data).Is there any way that i can pass an already filled arrays for countries and years? [CODE] public Chart(String tablenm,final double[][] data,String[] countries,String[] years) { super(); final CategoryDataset dataset = DatasetUtilities.createCategoryDataset( countries,years, data …

Member Avatar for libathos
0
198
Member Avatar for Dmiller071

Hi all, I have a slight problem with a java applet of mine. I play a video game that tracks realm and world ranks and I'm making this applet to put on my site to display current standings. My main problem is currently in the testing of this applet. Once …

Member Avatar for Dmiller071
0
273
Member Avatar for nuclear

Hi, I would like to get an advice, lets take SDL lib as an example. Recently I've been declaring sprite sheets that certain classes use ( player, enemy... ) globally and thought that a better way would be to load sprite sheets inside a class thats using it but if …

Member Avatar for Schol-R-LEA
0
151
Member Avatar for adohertyd

I am writing a spellchecker program and have some issues. First thing is that I need to make better use of the memory. My code iterates through a large dictionary file repeatedly. I know its better to read this into memory first then iterate through the block but I really …

Member Avatar for VernonDozier
0
212
Member Avatar for anon0

Hi all, I installed Ubuntu Server with the LAMP package and there is behavior I don't understand. If I access the web server by its local IP, my browser will display the index.html file located at /var/www/index.html, and PHP apparently works. But if I try to access it over the …

Member Avatar for fobos
0
1K
Member Avatar for akkbkht

Hello all. I am making an application like an antivirus, My question is that I am able to detect the infected hash value, can I delete or remove this infected hash value from this file? Thanks n Regards.:cool:

Member Avatar for gusano79
0
193
Member Avatar for libathos

I want to insert a record in some tables using a simple stored procedure.My question is: do i have to write several inserting procedures (one for each table) or is it possible that i can pass as a variable the name of the table in which i want to insert …

Member Avatar for libathos
0
380
Member Avatar for VB 2012

[CODE]Public Sub Makeready() Dim CurrentVersionFile As String = My.Computer.FileSystem.SpecialDirectories.Temp & "\Memory Freeo Plus Current Version.txt" Dim MemoryFreeoPlusVersionWriter As New IO.StreamWriter(CurrentVersionFile, False, System.Text.Encoding.Default) Dim StorageFile As String = My.Application.Info.DirectoryPath & "\Process Storage.MemFreoPls" Dim MemFreoPlsStorageWriter As New IO.StreamWriter(StorageFile, True, System.Text.Encoding.Default) If IO.File.Exists(StorageFile) Then MemFreoPlsStorageWriter.Close() Else MemFreoPlsStorageWriter.Write("") MemFreoPlsStorageWriter.Close() End If If IO.File.Exists(CurrentVersionFile) Then …

Member Avatar for VB 2012
0
200
Member Avatar for Hussam Alahmadi

in this assignment make the program read 10 integers and store them in an array. Then, pass this array to a method that finds the largest integer in the array, and counts its occurrences. Your method should return a string of the form largestNumber

Member Avatar for stultuske
0
143
Member Avatar for gerchi152

Hi!!! I'm having hard time in manipulating a combo box with list view. For example if the selected index in the combo box is "boy" then the list view will display a database table allotted for boys and if the selected index is "girl" then the list view will display …

Member Avatar for gerchi152
0
1K
Member Avatar for accra

[ICODE]I have two date fields in my db, one is a CURRENT_TIMESTAMP and the other Date. I use a date picker to input the date into the date fields in my form. All other date in the form is input into my db, except the two date fields. But when …

Member Avatar for it386
0
128
Member Avatar for daniel36

I am working on a project which needs to expire session after 24hr how it is possible.

Member Avatar for daniel36
0
99
Member Avatar for iPanda

How can I use the "datetime" class to get a different time zone than mine? (for example gmt = 0 or utc+2) Thanks!

Member Avatar for iPanda
0
131
Member Avatar for solomon_13000

I attempted to invoke a C# method using jQuery but it failed. The reason is because the method cannot be found. However the method exist in the class. Did I miss something? Your help is kindly appreciated. Thank You

Member Avatar for solomon_13000
0
230
Member Avatar for dennysimon

usualy I run java app ( I create by my self) by click it's jar file. How to run it via click an icon on desktop ( how to link between icon and the jar file thank you denny

Member Avatar for dennysimon
0
584
Member Avatar for Traicey

Guys I have been trying to figure this out until this very moment The problem is I need a piece of code that will not allow the user to enter any negative number in the text box This how it should work, if the user trries to enter this "-" …

Member Avatar for stultuske
0
166
Member Avatar for jcarbillon

guys,,need help :( I cannot upload file using this script [CODE]<?php if($_FILES["zip_file"]["name"]) { $filename = $_FILES["zip_file"]["name"]; $source = $_FILES["zip_file"]["tmp_name"]; $type = $_FILES["zip_file"]["type"]; $name = explode(".", $filename); $accepted_types = array('application/zip', 'application/x-zip', 'application/x-zip-compressed', 'application/octet-stream', 'multipart/x-zip', 'application/x-compressed'); foreach($accepted_types as $mime_type) { if($mime_type == $type) { $okay = true; break; } } $continue = …

Member Avatar for jcarbillon
0
108
Member Avatar for aishapot

Hello i want to the textbox that when I start to type in names it should be like this [B]Camille Aisha Cordova[/B] How do I do this?

Member Avatar for aishapot
0
2K
Member Avatar for sulagno

[B]I need to convert this xml into another one to send a soap message[/B] [CODE] <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:customerCustomerListResponse> <storeView SOAP-ENC:arrayType="ns1:customerCustomerEntity[2]" xsi:type="ns1:customerCustomerEntityArray"> <item xsi:type="ns1:customerCustomerEntity"> <customer_id xsi:type="xsd:int">1</customer_id> <created_at xsi:type="xsd:string">2007-08-30 23:23:13</created_at> <updated_at xsi:type="xsd:string">2008-08-08 12:28:24</updated_at> <increment_id xsi:type="xsd:string">000000001</increment_id> <store_id xsi:type="xsd:int">1</store_id> <website_id xsi:type="xsd:int">1</website_id> <email xsi:type="xsd:string">john.doe@example.com</email> <firstname xsi:type="xsd:string">John</firstname> …

Member Avatar for sulagno
0
312
Member Avatar for stupidenator

Hi everyone, I am having a problem while trying to do an operator overload of operator<< I am getting: [CODE]Stack.cpp:96: `std::ostream& Stack::operator<<(std::ostream&, const Stack&)' must take exactly one argument Stack.cpp:96: no `std::ostream& Stack::operator<<(std::ostream&, const Stack&)' member function declared in class `Stack'[/CODE] I can't seem to find why I am getting …

Member Avatar for journeyjie
0
10K
Member Avatar for Labdabeta

I am getting extra garbage at the end of the string returned by this function. Why? [CODE]char *read(char *fname) { FILE *file=fopen(fname,"r"); printf("Opening input file...\n"); if (file==NULL) return NULL; int length=0; char *ret=new char[length]; while (!feof(file)) { char ch=fgetc(file); char *temp=new char[length+1]; for (int i=0; i<length; i++) temp[i]=ret[i]; delete[]ret; if …

Member Avatar for mike_2000_17
0
242
Member Avatar for iamcreasy

What is the most efficient way to take input of a character array or string of 25 ASCII characters using scanf? They are not formatted, just a sequence of character. i.e. ABCDEFGHIJKLMNOPQRSTUVWXY One more point is that, after input I have to find a sequence of character within this string, …

Member Avatar for Narue
0
434
Member Avatar for moonL!ght

hi im having this error i dont now where is the mistake can you halpe me? this is the exception: java.lang.NullPointerException at shape.shape.<init>(shape.java:14) at shape.rectangle.<init>(rectangle.java:17) at shape.listOfSHAPES.init(listOfSHAPES.java:73) at sun.applet.AppletPanel.run(AppletPanel.java:424) at java.lang.Thread.run(Thread.java:619) these are part of my code were it show the error list of shapes class:[CODE] else if(shape.charAt(0)=='R'||shape.charAt(0)=='r') { int …

Member Avatar for stultuske
0
209
Member Avatar for sufyan2011

Unable to load DLL 'OraOps9.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E). Following is my scenario: 1 - Previoulsy I had Oracle 09 in my asp.net 4.0 applicaiton working fine on Windows XP. 2 - I updated the windows to windows 7 and installed Orcale 11g. …

Member Avatar for sufyan2011
0
925
Member Avatar for BilalAKhan

Hi, Can anyone please tell me whats wrong with this piece of code? I am trying to insert email (user name)in the database. This thing is now getting on my nerves. [CODE] if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form")) { $insertSQL = sprintf("INSERT INTO blog (title, specialization, message) VALUES (%s, %s, …

Member Avatar for fobos
0
200
Member Avatar for rotten69

G'day everyone, I'm just wondering about what's actually the best option out of these PHP sessions(server-side) and JavaScript sessions(client-side)? If the server-side session is not stored on client's machine, where else would it be stored? Are there any pros and cons of each option? Thanks folks.

Member Avatar for phorce
0
163
Member Avatar for talisien

Hi all, How do I use data from json in a javascript function? I have something like this! $('#monday').click(function(){ test(); }); function test() { $.getJSON('singleday.php?dld='+ id+'&chkdag=' + 1, function(json) {sday=json}); OtherFunction(); } Now I want to transfer the json date into an other function. something like this function OtherFunction() { …

Member Avatar for talisien
0
200
Member Avatar for Raik.48

Hello, I am a project on my hand to develop a 2D game like "contra". I have chosen to use C++ as my programming language. Which will be better for my 2d game SMFL, SDL or ClanLib? I have decided to use ClanLib, but is it powerful or flexible as …

Member Avatar for Chuckleluck
0
161
Member Avatar for thejoker011

Hey guys....Namastey!! Am here for your suggestions. I am right now working on a software project which needs to communicate with an custom ECU(Engine/Electronic Control Unit) of a car via a USB-TO-RS232 cable. Before moving ahead i want to be sure, [B][COLOR="Red"]do you think Java is appropriate for such kind …

Member Avatar for thejoker011
0
409
Member Avatar for Mr.BunyRabit

i got an example form roseindia on how to send an email. Now it works perfectly like this, and i can send mail to my email adress with that code (thats just a part of it) [CODE]String host = "192.168.1.14"; String from = "Admin@Admin.com"; String to = "myEmailadress.com";[/CODE] but the …

Member Avatar for Mr.BunyRabit
0
433
Member Avatar for Stickie

I have this query, but the ordering by is not working. It should order by value, but doesn't react. you'll see what I mean in the code. [ICODE]<table class="pme-main"> <tr> <th class="pme-header">Bestemming</th> <th class="pme-header">Naam Klant</th> <th class="pme-header">Aantal Manden</th> <th class="pme-header">Aantal Duiven</th> <th class="pme-header">Naam Bestemmeling</th> </tr> <?php $con = mysql_connect("****","****","****"); if …

Member Avatar for Stickie
0
407
Member Avatar for phorce

Hello I need some advice (I'm not expecting code - Just want to know if it's possible / references) Basically, I want to create a class that I can check if the email has been submitted AND also, if it's formatted right (e.g. does it contain a @ but also …

Member Avatar for pritaeas
0
85
Member Avatar for poojavb

Hello, Please tell me how to add a string item to a text box, returned from another form that has a list box? I have two forms. on the first form I have a button which calls another form that has a List Box. When I select the value from …

Member Avatar for vb.netfreak
0
179
Member Avatar for hovestar

I'm trying to devise a program that attempts to solve the Collatz Conjecture, Wikipedia, but when I run it I get this error: [CODE] What value would you like to find if the collatz works for below?6 Traceback (most recent call last): File "/private/var/folders/fL/fL1lGxccGCypPBSIUXNGZGpkwIg/-Tmp-/Cleanup At Startup/Playground-345866896.786.py", line 27, in <module> …

Member Avatar for TrustyTony
0
250
Member Avatar for naveedqadri

Dear Experts, Thanks for your time. My application developed in 2003 asp.net and C#, there are some important java scripts these scripts are working in IE but when i tried in Firefox, Google Chrom, it does not work. [B]WHERE I AM WRONG IN CODING ?[/B] [B]Important[/B] When i try to …

Member Avatar for naveedqadri
0
194
Member Avatar for Stefan_Lam88

Hi Guys, I have a problem here. I can't manage to get the slidesshow display on my aspx. After a few tried. take a look at tis link. [url]http://www.serie3.info/s3slider/[/url] I m trying out this link and many people say it works. But still I failed to display.. mycode: [CODE]<div id="slider1"> …

Member Avatar for dineshsjce
0
191
Member Avatar for Andy90

There is DateDiff() function in VB.NET but which function is equivalent to it in c#? I m facing problem in converting this vb.net code to c# [CODE] Private LastPointWhenClicked As Point Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick If LastPoint = Cursor.Position AndAlso LastPointWhenClicked <> …

Member Avatar for Andy90
0
831
Member Avatar for Zssffssz

What would happen if I (somehow) made an enum bigger than unsigned int? Each item in one is assigned a numerical value, I'm guessing that is unsigned int. Would it be boring like an error message or fun? Knowing what's allowed with naming the values there is more than enough …

Member Avatar for vijayan121
0
147
Member Avatar for opticaltim

Hi, I'm making a login application but i have the following problem. When an user clicks the button "Login" it is allways correct. I would like to check in my sql database if the user and password match. Does anyone have an idea? [B]Database.cs[/B] [CODE]using System; using System.Collections.Generic; using System.Linq; …

Member Avatar for opticaltim
0
222
Member Avatar for ztdep

Dear friends: I am using " Seldon c++ libary for linear algebra, http://seldon.sourceforge.net/" in my heat transfer code. the paltform is vs2010. I use the Seldon::Vector<double> in my class mesh to store the x y coordinates. I include the "Mesh.h" in my main.cpp.but it gave me some error about seldon …

Member Avatar for ztdep
0
272
Member Avatar for PrimePackster

Well I just want to know, how to give variable size for an array(Particularly, second subscript). For example, like this [CODE]#include<iostream> using namespace std; int main() { int a,b; cout<<"Enter the size for the 2D array"<<endl; cin>>a>>b; int*A=new int[a][b];[/CODE] for a its ok, But how to make it work for …

Member Avatar for PrimePackster
0
316
Member Avatar for kutuup

Hello, I am putting together a shoddy game for a 48 hour game contest and I have a problem. When I run the program from within VS2008 (by clicking the start debugging button) the program runs fine. I'm doing this in release mode btw. However, If I try and run …

Member Avatar for kutuup
0
143
Member Avatar for ng5

I am trying to make a program that randomly selects a name. i have a prompt that allows me to enter the number of names and the names themselves. but i dont know how to save or open the information into an array... can anyone help me with this?

Member Avatar for codeorder
0
247
Member Avatar for esesili

Hello All, I have been using c++ console applications for a while. I need to develop some graphical user interfaces. Even though there are many ways of developing a gui, I am not sure what is the most easy to learn and use. There is a library called Q4 library, …

Member Avatar for LdaXy
0
330
Member Avatar for Griff0527

I am working on a project of converting VB code to C# code and I am lost as to how to read data from a prompt in C#. Here is the snippet I am concerned with fixing, but below I will post the entire code. [CODE] private void Button1_Click(System.Object sender, …

Member Avatar for Griff0527
0
2K
Member Avatar for PF2G

Hi, DaniWeb I'm doing a website for a music school and i have a table with all the instruments: [img]http://img195.imageshack.us/img195/427/50490685.jpg[/img] And i want to click in one image and it goes to other page where's the instrument program. I mean, each image has 1 page with its own program.

Member Avatar for diafol
0
120

The End.