199,114 Archived Topics
Remove Filter ![]() | |
![]() | Hi all, I need a little bit help in creating a small thesaurus like application in java. The application consists of some 50-100 categories and each category have some 2-10words of similar meaning. e.g Close-{shutdown,fold,end,come together} The words are hard-coded but I don't know which data structure suits the best. … |
First let me tell you what my program is doing. its basically a shopping list program. Whereby the user will input the values and it is then inserted into a text file. There will be 3 inputs (Item Description,Unit Price,Quantity Purchased) and is stored into the text file as (Shoes:$200:2) … | |
Hey, I have the following script... [CODE]if(!opendir($image_dir)){ echo info_msg("Ooops... This Album contains no images"); }else{ /* step one: read directory, make array of files */ if ($handle = opendir($image_dir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && preg_match("/t/",$file) && $file != … | |
hi, my website was working fine, then I have added this code in my master page: [CODE] Dim css As New HtmlLink css.Href = ResolveClientUrl("~/JS/jquery_ui_1.8.1.4/jquery-ui-1.8.14.custom.css") css.Attributes("rel") = "stylesheet" css.Attributes("type") = "text/css" css.Attributes("media") = "all" Page.Header.Controls.Add(css) Dim jquery_ui_core_min As New HtmlGenericControl("script") jquery_ui_core_min.Attributes.Add("type", "text/javascript") jquery_ui_core_min.Attributes.Add("src", ResolveClientUrl("~/JS/jquery_ui_1.8.1.4/jquery.ui.core.min.js")) Me.Page.Header.Controls.Add(jquery_ui_core_min) Dim jquery_ui_widget_min As New HtmlGenericControl("script") … | |
can i using gridview to create friends list like this? [URL="http://www.4shared.com/photo/xxPeJoHG/tanya.html"]http://www.4shared.com/photo/xxPeJoHG/tanya.html[/URL] | |
Hello, I am very new to PHP and hope that someone here might be able to help with a challenge I cannot solve (yet). I have created a simple hmtl form and corresponding php file which send some information to the designated email. However, I am not sure how to … | |
Hi Mates, Actually the below code only creates dynamic DIV in IE, but for Firefox it does not create any DIV. Also it does not create the event onclick to be triggered when clicking on any area inside the DIV. I want to create dynamic DIV in firefox and IE … | |
![]() | How would I do this in 1 line [code] $name = $firstName + " " + $lastName; //output: 0 [/code] the problem is what I think it is, is that its trying to add like mathematics. whilst I want the '+ " " +' to become a space in between … |
hi, i looking for a class that can handle with winrar and zip files i have found a lot of resource for zip but none for winrar... any one know something that work in both of the type files? thanks :) | |
[CODE] using System; using System.Diagnostics; using System.Threading; using System.Runtime.InteropServices; //using System.Windows.Forms; using System.Reflection; using System.IO; namespace Record { /// <summary> /// Uses reflection to set up test information available in the Assembly. All classes /// containing a public static method named TestProc will be enumerated. /// </summary> public class MainTest … | |
Hi brothers,i am creating an application that i want to load a pre-designed crystal report from database records and print it in pdf format and send it as e-mail attachment. I know how to send it as an attachment but i don't know how to print it in pdf automatically … | |
I'm trying to get the properties for the following objects: 0: [object Object] 1: [object Object] 2: [object Object] 3: [object Object] This was generated by using the following code: [CODE] var s = ""; for (var property in this.oProducts.Product) { s = s + "\n "+property +": " + … | |
Hi, I have a question. I want my page to register the previus page the visitor comes from. If my visitor comes from google, i want the url to add this in the Url. Is this possible in php5? I had this in php4, men it didnt work when it … | |
I'm currently in progress of designing a web platform in regards to a personal project of mine, and came upon a frustrating conflict in my script. I am using DHTML windows and a CSS Fisheye Dock Menu, and when I click on a dock item to load a DHTML window, … | |
whenever I start programing,i.e. #include<stdio.h> and compile it. An error is shown and message is displayed as "unable to open the file stdio.h". Please help me to remove the error. | |
I have set up the following structs: [CODE]typedef struct lineList { int lineNum; struct lineList* Next; }*Line; typedef struct DictionaryList { char* word; Line lines; struct dictionaryList* Next; }*Dictionary; and then I have defined: Dictionary head = NULL; /*is a pointer to head of dictionary list */ Dictionary node = … | |
Hi, I would like to display my database data in text fields form. I would like to have all the text fields to be locked (read only), so I added readonly attribute into the text fields. Moreover, I would like to add a button "EDIT" at each row, so that … | |
hi how can i creat a ocx file and call to install in a browser? thanks for your help :) | |
Hi, My requirement is to delete a selected row in the datagrid from SQL server. If no row is selected then nothing should happen. Below is my code [CODE] Private Sub BT_Remove_Click() On Error GoTo ErDsc: Dim MyConn As ADODB.Connection Dim MyRecSet1 As New ADODB.Recordset Set MyConn = New ADODB.Connection … | |
i've created a jframe with a jpanel with certain things as you can see in the attachment (page1.java) ..............can anyone tell how to print that jpanel(not the whole jframe) and all its contents ........ | |
Hi, i am trying to read from a random access file and display its contents to screen, however when i run the code nothing is displayed. I'm using a struct call "Menu" to store each record in the file and display it as the program moves through the file. Can … | |
Hello all, I have created the setup/installer for my application using the PDwizard. The installation is working all good (as its expected). For uninstallation, I have used a custom program (created by me) instead of directly calling the st6unst.exe. This program is called from both programs shortcut menu as well … | |
Hye again , I have problem to get Backup file .my code is bellow [CODE]Dim strB As String 'On Error Resume Next strB = "D:\backup\db" & Date$ & ".mdb" FileCopy "C:\Database\MyDb.mdb", strB MsgBox "Backup Complete!!"[/CODE] I always receive Run-time error '70' "Permission denied" please help me | |
Hello, everyone! I have a problem with the code of Javascript, and I cannot find out the solution. I write a form in a div in this way: [CODE]var divTag = document.createElement("div"); divTag.id = "ch00"; divTag.className = "chzerr"; divTag.innerHTML = '<form action="foo.php" method="post" name="leh00" onsubmit="change_alert()">'; divTag.innerHTML += '<input type="hidden" name="usr00" … | |
Hello all, I am having a hash_map with key: char *. I have defined it like this: [CODE] struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) == 0; } }; ... hash_map<char *,map<uint16_t,set<float>>, hash<const char *>,eqstr> symbol_hm; [/CODE] but I get an error … | |
I have this code, which creates the pages, taken from the DB: [CODE] function subject_navigation($connection){ $sqlCommand = "SELECT id, linknavn, pos FROM subjects ORDER BY pos ASC"; $query = mysqli_query($connection, $sqlCommand) or die (mysqli_error()); while ($row = mysqli_fetch_array($query)) { $sid = $row['id']; $linklabel = $row['linknavn']; echo '<li><a href="index.php?sid=' . $sid … | |
Im trying to get the smallest number out of a series of user generated numbers. i can correctly get the largest number but i always get the negative 99 for the smallest. im working out of a c++ book that does not provide solutions, i tried to catch the -99 … | |
I was thinking of doing some simple animations in python,Tkinter and my biggest problem was getting things to move together. so I was wondering if there was a way to make say an arc and rectangle into one object to rotate and such. thanks in advance | |
Hey folks. I'm tying to carry out a simply task of writing a variable double value to a label on my form. The label is called 'lblTotalSeats'. Here's my code below: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace ABCDEFG { … | |
Hi there; I've received a irritant problem in my php code. Here is "index.html": There are some javascript functions defined in the "head" tag. [CODE] <form autocomplete="off" action="result.php" method="post"> <p> <label>Name:</label> <input type="text" id="name" /> </p> <p> <label>Nachname: </label> <input type="text" id="surname" /> </p> <p> <label>Abteilung</label> <input type="text" id="department" /> … | |
I created a new item > local database. I'd like to access the data from the database but I can't open a connection. I have, [CODE]SqlConnection con = new SqlConnection("DataSource=|DataDirectory|\\testDB.sdf");[/CODE] debugging will always halt at [CODE]con.Open();[/CODE] | |
I create a table that contain rows and on last 'td' on each row there is an 'img' to insert new row onClick="addRow()". I want this new row to insert below clicked row. Clearly, if i have row X and row Y and i click on the 'img' on X … | |
I am working on an advert website where people can come and post their ads on it. I am wondering can people help me code it. I am not great at PHP once I have the code I can put it in the DB its just making the code. Once … | |
I'm having problems with my code in c#. Our prof didn't really asked for anything fancy or specified anything. He just told as our program should be able to add and subtract a 2x2 to a 5x5 matrix. Upon opening the program, I created a form with a combo box … | |
Hi, I need help to go about doing this. If I have a table, in the database containing fruits, price, quantity. I want to arrange the price of the fruits into 3 groups of around the same average. How do I do this? Thank you | |
Hi all, I've been struggling with something for a number of weeks now and I just can't seem to solve it. I've got a bit of code that looks as follows: [CODE] class classA { public: classA( ); ~classA( ); classBBase* pointerToClassBBase; protected: private: }; class classBBase { public: classBBase( … | |
Hello, I am trying to write a function that will read an array of numbers with the count of the numbers. I want to take the numbers and assign them to letters.Then print out the counts of A's, B's,C's,D's and F's. What i have isnt finished but im really frustrated … | |
hello friends..got a problem again.. I'm developing a software for one of our assignments.I have coded that program using Netbeans but we have to upload the assignment as one java file.So I created one java file and again checked in netbeans as a single file.It works perfectly.And then I tried … | |
I am new to windows programming, I was trying to compile the following code and it gives me the following errors: C:\Program Files\Microsoft Visual Studio\MyProjects\hook\hook.cpp(14) : error C2065: 'KeyboardProc' : undeclared identifier C:\Program Files\Microsoft Visual Studio\MyProjects\hook\hook.cpp(22) : error C2373: 'KeyboardProc' : redefinition; different type modifiers C:\Program Files\Microsoft Visual Studio\MyProjects\hook\hook.cpp(30) : … | |
Hello im currently having problems with the storing of String to an array im currently using a GUI output so it reads inputs from the textfield here's my code: [CODE]import java.util.*; import javax.swing.*; public class Contents { int listLength; String []word; String []meaning; String []sentence; String []classification; public Contents(int l) … | |
Hi, I need to eliminate all special characters in my file except "space" .. Please check the program below and tell me what I need to change [CODE] import java.io.*; import java.util.Scanner; public class TestScript { public static void main(String args[]) throws Exception { System.out.println("Please Enter the filename\n"); Scanner sc … | |
im trying to enable a button that is disabled within an itemTemplate, if theres a session then the button will be enabled. however i cannot access the button object in the code-behind file. HTML CODE ---------- [CODE] <div id="gal_wrap"> <asp:ListView ID="ListView1" runat="server" EnableModelValidation="false" OnPagePropertiesChanging="listItems_PagePropertiesChanging"> <LayoutTemplate> <asp:PlaceHolder ID="itemPlaceholder" runat="server" /> </LayoutTemplate> … | |
I'd like my form to remain in the same place the entire time until closed or not opened. How do I make this happen? | |
Hello Genius I want develop a software which user can download from my website and that software must me use less after specified period, Can any one guide me in right direction what's the logic I have implement to accomplish this task. Thanks | |
hello, i'm making a random graph generator the coordonates are loaded from a file i've managed to draw the points but can't manage to draw the lines between these points here's the code [CODE] private void button2_Click(object sender, EventArgs e) { pictureBox1.Refresh(); gr = pictureBox1.CreateGraphics(); SolidBrush redBrush = new SolidBrush(Color.Red); … | |
So I made a quiz that have 14 question each one have 3 radiobuttons as options, the quiz is in 4 forms, each form has 4 questions except the last one it has 2 questions..Now I need to sum all the selected answers..How can I do that?? [CODE]public class page1 … | |
hi, I'm working on a project which has a text form and submit button. It is a tracking code. When user key in the track number, it will show the result. This service is available on the web. How I actually build my own apps and connect with their database, … | |
Hi. I've made a code. The code is not 100% working, so i ned help with that. The tiny litle program is gonna work so it move the mouse, and then click with it. Both right and left click. And i don't know how to do that? [CODE]#include <iostream> #include … | |
[code] <html> <head> <script> function selectCheckBox() { if(document.getElementById('id11').checked==true) { document.frm.id2.checked=true document.frm.id3.checked=true document.frm.id4.checked=true } if(document.getElementById('id11').checked==false) { document.frm.id2.checked=false document.frm.id3.checked=false document.frm.id4.checked=false } } function selectCheckBox1() { if(document.getElementById('id12').checked==false) { document.frm.id1.checked=false } } function selectCheckBox2() { if(document.getElementById('id13').checked==false) { document.frm.id1.checked=false } } function selectCheckBox3() { if(document.getElementById('id14').checked==false) { document.frm.id1.checked=false } } </script> </head> <body> <form name="frm"> All … |
The End.