199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mpc123

Hi Hope someone can help with this. I have javascript set up how i want it in a normal html page but now need to ensure i can call a result using php with it. My code throws out an error The code states Parse error: syntax error, unexpected T_STRING, …

Member Avatar for mpc123
0
156
Member Avatar for tomparker

This may be a little 'outside the box' as far as mega menu's go, but I'm trying to do a 'flyout' or submenu off of a mega. Take a look at http://morningstartv.com, and hover over 'Channels'. When 'Sunday Services' is hovered over, I want a menu to appear to the …

Member Avatar for tomparker
0
289
Member Avatar for yaragalla_mural

Hi i am working with an web application. in my webapp on the browser i am intiating an ajax call to update part of the page. I get the response as html from the server and i will insert the complete response into the div which displays it. I got …

Member Avatar for yaragalla_mural
0
330
Member Avatar for radeon09
Member Avatar for clouds_n_things

So my program is progressing quite nicely, and I'm semi-proud of myself for getting this far (I'm a newbie), but I had 2 questions. One question is that my program recognizes a .CFG extension...but never finds games with any other extension (.smc, .srm). I type it in EXACTLY as it …

Member Avatar for clouds_n_things
0
169
Member Avatar for efth

public class ClickListener implements ActionListener { public void actionPerformed(ActionEvent e) { System.out.println(e.getSource().setText("Changed")); } } Eclipse tells me that `setText()` is undefined for type Object. This tells me that `getSource()` doesn't actually return the JButton object. How do should I do this then? How I change the text of the clicked …

Member Avatar for efth
0
17K
Member Avatar for mano7859

Hi :) I don' know how to hide some div with special class. This is my html code: <div id="subMain"> <div id="archivesResult_Content"> <div id="box"> <div id="categorie" cat="2"> ... </div> </div> <div id="box"> <div id="categorie" cat="14"> ... </div> <div id="categorie" cat="5"> ... </div> <div id="categorie" cat="14"> ... </div> </div> <div id="box"> …

Member Avatar for AleMonteiro
0
287
Member Avatar for SQLpower

Hello guys, I am still encountering a problem regarding my combobox. I am trying to populate it from my MySQL table but I am unable to so far.... Dim connectionstring As String Dim dbCon As MySqlConnection Dim strQuery As String = "" Dim SQLCmd As MySqlCommand Dim DR As MySqlDataReader …

Member Avatar for TnTinMN
0
223
Member Avatar for Aaron_JY

Hey there. I'm having a bit on an issue with adding new data to an SQL table on my webserver. I'm trying to update data in the table through php, but for an unknown reason the script returns no errors but refuses to update the SQL table with the content …

Member Avatar for Aaron_JY
0
173
Member Avatar for chira.laura.9

If I have relation schema R(A, B, C, D, E) with functional dependencies: AB->C, CD->E, C->A, E->D: a)find all the (minimal) keys for R b)state the normal form for R and describe functional dependencies that violate higher NF c)decompose R into 2 (or more) relations that are in highest possible …

Member Avatar for drjohn
0
230
Member Avatar for ska_defender

In my country youtube is blocked. my website is based on embedding youtube videos through a custom player (jwplayer), so id like to have a php proxy for embedded videos to unlock those for my contry users i dont have a clue how to solve this issue and hope to …

Member Avatar for cereal
0
832
Member Avatar for asaidi

Hi i have a checkbox in my script <input type="checkbox" name ="pulse[]" value="1" checked>1<br> <input type="checkbox" name ="pulse[]" value="2" checked>2<br> <input type="checkbox" name ="pulse[]" value="3" checked>3<br> <input type="checkbox" name ="pulse[]" value="4" checked>4 and in my program i read the value and i test if the choice was 1 send it …

Member Avatar for asaidi
0
135
Member Avatar for kamilacbe

Hi, Can anybody help me out to solve string handling without using predefined spilt function , here come the questions for eg i have a input string as "hai welcome to the sample " so i should display as follows hai welcome to the sample pls advice, thanks for your …

Member Avatar for kamilacbe
0
188
Member Avatar for cerealBoxx

Hi again, I have the simple code below, and I receive the error "best overloaded method match has some invalid arguments". I tried to return a string or an int and then it said that I can't implicitly convert void to string. Any ideas on how I can overcome it? …

Member Avatar for ddanbe
0
144
Member Avatar for khair.ullah

how to code vb.net connection string support to all computers? normally we are puting connction string like this. con = New SqlConnection ("Server=REHAN-PC \SQLEXPRESS;Initial Catalog=library;Integrated Security=true") con.Open() but the thing is when we are going to put this application to another computer we have a trouble. Now what to do? …

Member Avatar for Reverend Jim
0
296
Member Avatar for sk8ergirl

hi I've just started learning C# and I 'm working with excersice . There is something wrong with my add and remove button , but I don't know how to fix it here is the begining of my code and I'm sure that it correct also I have Item and …

Member Avatar for sk8ergirl
0
177
Member Avatar for McLaren

Hello, we are saving in the database time as our local time which is UTC+2 How to convert to other times? I found in that this should work: select sell_date, sell_date at time zone 'UTC+2' as UTC2 FROM cards order by id desc limit 1 This sql should return same …

Member Avatar for McLaren
0
280
Member Avatar for S2009

Hi, I want to keep track of the number of visitors to my site. I tried the following code in the Global.asax class, [code] public static int count = 0; void Application_Start(object sender, EventArgs e) { Application["myCount"] = count; } void Session_Start(object sender, EventArgs e) { count = Convert.ToInt32(Application["myCount"]); Application["myCount"] …

Member Avatar for mohan221
0
2K
Member Avatar for Borsund

Hello! I have a specific idea for the proram, but I don't really understand how to make it. What I need: Standard Window with Canvas which is divided in a 10x10 boxed field. When you move your mouse over one of these boxes, it must become red (each box is …

Member Avatar for ddanbe
0
95
Member Avatar for salty11

**I have this timeissorted.c file, and right now it's running at around about 8397599 usec. I'm looking for help toward improving the performance of this code to make it run faster.** #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <stdlib.h> static struct timeval start_ts, end_ts, diff_ts; void startClock() { gettimeofday(&start_ts, 0); …

Member Avatar for salty11
0
212
Member Avatar for swiss21

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> int main() { printf("\t//*****************St.Jago High School******************\\ \n\n"); printf("\t------------Courtney Athlone St.Michael Reid---------------\n\n"); printf("\t^^^^^^^^^Computer Science IA-Pay Roll System^^^^^^^^^\n\n"); char fname[50]; char lname[20]; printf("Enter the employee's First Name:\n"); scanf("%s",&fname[50]); printf("Enter the employee's Last Name:\n"); scanf("%s",&lname[20]); } int add_hours() { printf("\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); printf("\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); int hours; int mo, …

Member Avatar for zeroliken
0
161
Member Avatar for vinaysrk

`Inline Code Example Here`i have a page defalt.aspx <body> <div id="content"></div> </body> and i have genereated dynamic div through jquery reference to id "content" like #(document).ready(function(){ var a=$("#content"); $(a).append("<div class="scrollbar"><%--some content here-----%></div>") }); this above jquery work fine and seen in inside the "content" when i run the default.aspx but …

Member Avatar for menakshi
0
97
Member Avatar for abhilasha1

#include<iostream> #define MAX 1000000 #define loop0(i,j) for(int i=0;i<j;i++) #define loop1(i,j) for(int i=1;i<j;i++) using namespace std; bool flag[MAX]={0}; int tree[MAX]={0}; void update(long int node,long int b,long int e,long int i,long int j) { if(b>j || e<i) return; if(b>=i && e<=j) { if(flag[node]) { flag[node]=0; return; } else { tree[node]=e-b+1-tree[node]; flag[2*node]=!flag[2*node]; flag[2*node+1]=!flag[2*node+1]; …

Member Avatar for abhilasha1
0
111
Member Avatar for cerealBoxx

Hi guys, I have this code - I am trying to find if a number is present in a given array using recursion. The thing is, I get the error "not all code paths return a value". I don't know how to fix this. Please advise. using System; namespace checkArrayForValue …

Member Avatar for aaa_78600
0
547
Member Avatar for wrathofmobius

(Just to preface this, I am a Python noob, so parts may be stupid/less obvious to me) I am trying to compile a Python script to exe, with the following setup.py file: from cx_Freeze import setup, Executable includes = ["re", "PyVMF"] setup( name="Wall Tile Randomizer", version="1.2", description="Wall Tile Randomizer", executables=[Executable("WallRandomizer.py")], …

Member Avatar for wrathofmobius
0
8K
Member Avatar for jalpesh_007

I have doubt that what we are using in java as String, is it class or datatype? String str = "hello" String s1 = new String("Hi") What is the difference in above two statements? Which is object of String class and which is varialble of datatype String? Because as i …

Member Avatar for jalpesh_007
0
277
Member Avatar for NidhiSree

I have a custom ObjectCollection class in my custom control and a public property to access this collection. //My custom Property [Editor("System.Windows.Forms.Design.StringCollectionEditor",typeof(UITypeEditor))] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public ObjectCollection Items { get { return itemCollection; } } //My custom collection class [ListBindable(false)] public class ObjectCollection : IList, ICollection, IEnumerable { //code } However, the …

Member Avatar for TnTinMN
0
290
Member Avatar for staffmbm

I'm getting stuck with this code. I'm not getting data in second page after form submit. <?php session_start(); $user = $_GET['Type']; include "mysqlConnect.php"; //check for a page number. If not, set it to page 1 if (!(isset($_GET['pagenum']))){ $pagenum = 1; }else{ $pagenum = $_GET['pagenum']; } //query for record count to …

Member Avatar for LastMitch
0
385
Member Avatar for numbplum

Hi there, I'm currently working on a project that requires for me to print out data about a hexadecimal. It needs to print out signBit, expBit, and fracBits. I have tried to look onine but I haven't had any luck finding something useful. These are the requirements: Your code will …

Member Avatar for deceptikon
0
294
Member Avatar for sumbul.qaimkhani

i just started with C++ program so i know very little programming . i have to make a program that calculates tax the senerio is this Federal: 15% on the first $43 561 of taxable income, + 22% on the next $43 562 of taxable income, (on the portion of …

Member Avatar for Milton Neal
0
154
Member Avatar for needhelp88

Hi all, I have created a java program that reads in the number of rows and columns entered by the user, and creates a board of that size. Then, it takes in the position of cells (x, y) that the user wants to make live on that board. -1 will …

Member Avatar for needhelp88
0
256
Member Avatar for Kewne

Hi,... I tried to run the code using the java emulator but it only provides one phone emulator at a time I couldn't see if it does pass the word, what I did is that I downloaded the sun wireless toolkit which can run multiple number of mobile emulator. I …

Member Avatar for Kewne
0
248
Member Avatar for diether.silverious

Hi guys, this codes works perfectly to me, except that i would like to add pricetotal in session variable. my problem is pricetotal does not display values when i use print_r. Heres the output when i use print_r to display session variable: Array ( [0] => Array ( [item_id] => …

Member Avatar for broj1
0
221
Member Avatar for jo386

My code is rather basic so excuse my lack of shell scripting experience. I keep getting errors for line 3. I have tried changing "$1" to `echo $1` `cat $1` and even turning the whole line into a variable which i read in another forum and then calling that variable …

Member Avatar for jo386
0
2K
Member Avatar for sundog1

Hi Guys, I've just picked up an old projcet I was working on (about 6 months ago) and trying to get my head around my own messy N00b code. I've managed to get the grid views working with links back to the tables and showing data in the correct places. …

Member Avatar for Momerath
0
879
Member Avatar for aVar++

Hello I have made a simple program, but I have a problem with my IF...ELSE statement. Il explain under the code. Main Class: public class Learnt { //Main void in Learnt class public static void main(String args[]){ //Ask's user for name then prints it String AskForUsersName = "What is your …

Member Avatar for stultuske
0
190
Member Avatar for Noth

Hi guys. I'm just wondering why this function always returns true, no matter what the $user_id is. The $user_id variable is determined by what is retreived from the $_SESSION. I am well aware that mysql_* functions are being depreceated etc, no need to tell me :P Thanks guys! function user_mod() …

Member Avatar for veedeoo
0
199
Member Avatar for kenomote

Hey guys ineed help on how to install or which is first to install using VS 2008 and MS SQL server & and IDE server management tool for MSSQL 2005

Member Avatar for jeffreyk16
0
231
Member Avatar for pucivogel

I have this part of code, ajax will call a function saveContact with parameters name, phone, email, address, is this code ok? $.ajax({ url: 'addressbook.php', data: 'action=saveContact()','&name='+name+'&phone='+phone+'&email='+email+'&adresa='+adresa; dataType: 'json', type: 'post'

Member Avatar for AleMonteiro
0
2K
Member Avatar for ConfusedLearner

Im trying to get my program to do z=x*y and z=z+5.0 but not sure what I am doing wrong. #include <iostream> using namespace std; // Declaration: Tells the compiler how a function is called int multiply(int x, int y); int main() { // You can compile a call to the …

Member Avatar for deceptikon
0
115
Member Avatar for kitschkath

Hi there~ I am kinda coding a verrry simple information system which uses Javascript. I am not familiar with JS and I only know the basics, but maybe what I'll ask is a veeery simple one but oh well, should I be asking if I found a solution after searching …

Member Avatar for urtrivedi
0
226
Member Avatar for sofien.fkih

How can I display a color in java with a certain color, Please help with an example.

Member Avatar for Ene Uran
0
119
Member Avatar for romes87

Basically, I am trying to extract text between two strings within a loop as one of the two words changes after the information is extracted. so for example, the string is: string = alpha 111 bravo 222 alpha **somethingA** end, 333 bravo **somethingB** end 444 alpha 555 bravo So I …

Member Avatar for TrustyTony
0
251
Member Avatar for yaragalla_mural

i have to display a combo box with some dynamic values that comes from the database when user checked a checkbox on the currently being viewed html page. I am getting dynamic values from the webserver as json or xml. Now i have take the values from the json or …

Member Avatar for riahc3
0
115
Member Avatar for icohibari

I have quiz ID(Q1 for example) and below is the number of items in that quiz. My problem is, I need to display a dash when query cannot find a record in my database, if there is a record it will show up and the missing records will be filled …

Member Avatar for pritaeas
0
212
Member Avatar for london-G

Hello, I would like to build my application which is interacting with my localhost database. In netbeans before I run the program I need to turn on Wamp and "Start all services" in order for the program to run properly. My question is, when the jar file is made, will …

0
87
Member Avatar for AquaNut

Hi All, I have an xml which I am reading in a date: <DateOfBirthUpdate> <DateOfBirth>1951-04-25</DateOfBirth> </DateOfBirthUpdate> My code reads this in as 25/4/1951 00:00:00 but I need to convert it back to it's original format of 1951-04-25 so it can be used in a soap message. dateOfBirthUpdate.DateOfBirth = Convert.ToDateTime(record.Element("DateOfBirthUpdate").Element("DateOfBirth").Value); inUpdate.DateOfBirthUpdate …

Member Avatar for ChrisHunter
0
220
Member Avatar for nilesh7136

Hello,,, Im trying open flash file on button click event, but its didn't open, when i write Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click AxShockwaveFlash1.Movie = "D:\My Project\Practice Projects\SWF-File_As_SplashScreen\SWF-File_As_SplashScreen\Resources\back_blue.swf" AxShockwaveFlash1.Play() End Sub then its properly work and play,, but i build this app and published …

Member Avatar for nilesh7136
0
260
Member Avatar for pedders

I want to access some data in an Access MDB but I want to make sure that nothing can be accidentally altered. I have tried: conn = New OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Test.MDB;Mode=adModeRead;") I've also used conn = New OleDbConnection(Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Test.MDB;Mode=Read;") I then run a quick UPDATE WHERE query and it still alters …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for sk8ergirl

hi I'm using VS express for web and I'm using C# I know how to replace value in arrraylist in java , but I found it hard to do it in c# in the designe view in VS I have add button and textBox.. first I need to get what …

Member Avatar for ddanbe
0
189

The End.