64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for old_apache
Member Avatar for turpentyne

Quick question. I want to make a variable from just a section(substring?) of an id in javascript / or jquery. I've got four possible id names: link_north, link_south, link_east, link_west. I want to pull just the direction from the link to use as a variable, with this: var header_change = …

Member Avatar for LastMitch
0
116
Member Avatar for Papa_Don

Hi group, I recognize the today, most people navigate from control to control within a form with their mouse. However some old school people may want to use a "enter" key or a up, down, left or right arrow. I'm curious to know if these kinds of events (if that's …

Member Avatar for Maligui
0
568
Member Avatar for TempoGnome

Hi! I've been making this game for fun and have run into a few problems, a friend recommended me to ask you guys for help. I have three problems: 1. The player doesn't recongnize when it's not on a platform and because of this it won't fall down. I've narrowed …

Member Avatar for zjtpjs4
0
352
Member Avatar for martjojo1

Hey all, i've a form with a textinput for links, but at submit, it won't send any links started with http. for example: <form acion="result.php" method="post"> <input type="text" name="link" /> <input type="submit" name="submit" value="submit" </form> <?php //---Result.php: echo $_POST['link']; // if links start with http:// it won't be there ?> …

Member Avatar for pixelsoul
0
456
Member Avatar for shanki himanshu

there is function : int median(int a[], int b[]) { } how do i find the number of elements in a and b? i am doing sizeof(a)/sizeof(int) but it does not give right results. P.S. i need to submit the function only in online compiler so i dont know what …

Member Avatar for shanki himanshu
0
380
Member Avatar for IsaacMessi10

Public Class Close Inherits Windows.Forms.Button Public Sub New() Me.Size = New System.Drawing.Point(25, 25) Me.FlatStyle = Windows.Forms.FlatStyle.Flat Me.BackgroundImage = My.Resources.CloseNormal Me.BackgroundImageLayout = Windows.Forms.ImageLayout.Stretch Me.BackColor = Drawing.Color.Transparent Me.Font = New System.Drawing.Font("Calibri", 10, Drawing.FontStyle.Regular, Drawing.GraphicsUnit.Point, CType(0, Byte)) Me.ForeColor = Drawing.Color.Black Me.FlatAppearance.BorderColor = Drawing.Color.DeepSkyBlue Me.FlatAppearance.MouseDownBackColor = Drawing.Color.Transparent Me.FlatAppearance.MouseOverBackColor = Drawing.Color.Transparent Me.FlatAppearance.BorderSize = 0 End …

Member Avatar for tinstaafl
0
214
Member Avatar for kyle.mace.35

Alright so I have a problem with EventQueue and Event. In Event my second constructor gets an error saying expected initializer. If anyone can point me in the right direction to what is wrong that would be great. Now if i comment that out i get an error with EventQueue …

Member Avatar for kyle.mace.35
0
161
Member Avatar for tony75

Hi I have 4 files in directory on my desktop? My question is 1.How can I display for each file only the name, the size and the date in this order? 2. How can I display all files sorted accorded their name? #!/usr/bin/perl use strict; use warnings; my $dir = …

Member Avatar for tony75
0
4K
Member Avatar for MasterHacker110

I program in C++/C/C#/Java but recently started in web programming. I like javascript and i am wondering if one can use it to make desktop program like one would in c++ for creating e.g. console applications... Or is it only a language that can be used in inside a browser …

Member Avatar for IIM
0
137
Member Avatar for lucky banda

drawing multi-colored warms on a vb form.an individual warm will consist of number of segments and segment will be a line of certain width and colour

Member Avatar for Begginnerdev
0
91
Member Avatar for OsaMasw

hey there I don't know if this mentioned earlier but I want to do this sql statment $sql1 = "SELECT product FROM products WHERE cat = 2"; $sql2 = "SELECT product FROM products WHERE cat = 3"; $sql3 = "SELECT product FROM products WHERE cat = 4"; I want these …

Member Avatar for diafol
0
121
Member Avatar for Aven.Seven

Greetings guys i'm stuck in this problem for 2 days now can you guy tell me the problem? here's the code If errorMsgLbl.Text = "Password match" Then sqlCmd = New SqlCommand("INSERT INTO registered_cust_tbl([customer_fname], [customer_lname], [customer_DoB], [customer_Contact], [customer_Email], " & _ " [customer_Address], [customer_Gender], [customer_Ailments], [customer_Username], [customer_Password], " & _ " …

Member Avatar for Hazuan Nazri
0
219
Member Avatar for Violet_82

Hi there, on one of my pages I am working on [url]http://www.antobbo.webspace.virginmedia.com/photography/category_1.htm[/url] I have a script which works in firefox, opera but it doesn't in chrome and IE. Now, let me explain first what the script is supposed to do. On the above page if you click on the second …

Member Avatar for 1@3RaJa
0
2K
Member Avatar for akkbkht

Hello. I have a user defined function in start of an Html page. I want to add textfields in the innerHtml. Please guide me what should I do. When I enter string in the innerHtml on line 10 and 11, It show "New" in the cells. BUt i am adding …

Member Avatar for akkbkht
0
190
Member Avatar for <M/>

I found a resource that can help some people learn programming a bit better. The resources are provided by Harvard (presented by their students) and I watch a couple of their videos and they were really good. So I thought I should share it with you guys. Here is the …

Member Avatar for pritaeas
2
111
Member Avatar for jalpesh_007

i have made one program,but it will give none of the port number. Following files i have made **SimpleRead.java** import java.io.*; import java.util.*; import javax.comm.*; import java.nio.ByteBuffer; public class SimpleRead extends SpeedometerExample implements Runnable, SerialPortEventListener { static CommPortIdentifier portId; static Enumeration portList; byte[] readBuffer=null; InputStream inputStream; SerialPort serialPort; Thread readThread; …

Member Avatar for JamesCherrill
0
338
Member Avatar for harbi.dayah

I'm new to php and dymanic web applications using PHP I'm tyring to read from table Id(primary key) to other form and save othe table as forign key. I appreciat for you help

Member Avatar for harbi.dayah
0
1K
Member Avatar for yy886

I am thinking to implement a forum like Private Message into my website for those who are a registered member. (<100 Member anyway) So Member A can send a message to Member B. Member B will have a notification popup within some seconds saying that he received a new message …

Member Avatar for masterjiraya
0
231
Member Avatar for rexmatthew

I've been having trouble with just the map area and the calendar piece of my website. But more focused on the map piece. The map does not want to load properly or won't load at all in the second tab of my jquery tabs. I need help, I think I …

Member Avatar for rexmatthew
0
162
Member Avatar for LeNenne

Hi I am going to solve a problem and have now idea of how, I will that in the list1 only those people that correspond to the date of the date is showing. No one else than that one of the day the word Prn is standing for birthday in …

Member Avatar for LeNenne
0
176
Member Avatar for Kniggles

Hi all this should be an easy one, Trying to move an input from text box1 to text box2 and return back to page1. page 1 reads, <HTML><HEAD><TITLE>php scenario move text </TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 9.00.8112.16457"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE></HEAD><BODY><P> </P><P><FORM method=post action=2.php> <TABLE border=1 …

Member Avatar for masterjiraya
0
378
Member Avatar for virusisfound

How to divide a number into multiple parts so that the resulting sum is equal to the input? for ex : input from textbox : first input is(txt_val1) :5 second input is(txt_val2) :3 output : 3+2=5 2+3=5 4+1=5 1+4=5 or any other combinations like these. both input are dynamic always.

Member Avatar for virusisfound
0
432
Member Avatar for victoria.lim.773124

#include<iostream> #include<cstdlib> #include<string> using namespace std; class Menu { public: Menu(); virtual void showMenu(); private: }; Menu::Menu() { } void Menu::showMenu() { cout<<"\nFood Selection:"<<endl<<endl; cout<<" ~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*~~*\n"; cout<<" Food Category "<<endl; cout<<" __________________________________\n"; cout<<" 1. Appetizer *"<<endl; cout<<" 2. Main Course *"<<endl; cout<<" 3. Drinks *"<<endl; cout<<" 4. Dessert *"<<endl; cout<<" …

Member Avatar for victoria.lim.773124
0
260
Member Avatar for Necrozze

Im doing this game for school and it's supposed to be finished real soon and then of course al the problems start coming up, the game now crashes, sometimes after a few seconds and sometimes directly on start. Don't really know why, a thought is that its doing to much …

Member Avatar for Necrozze
0
389
Member Avatar for ppstyle

Hi, I am making a richtextbox to html convertor, I have added features like bold italic underline left align right align center align etc. I found a code to convert richtextbox to html but i am not sure how to use that function. Public Shared Function FromRtf(ByVal rtf As RichTextBox) …

Member Avatar for ppstyle
0
322
Member Avatar for dhani09

This is my first PHP script, to add a user to my website but i keep getting these errors Cannot send session cache limiter - headers already sent Cannot modify header information - headers already sent mysql_num_rows expects parameter 1 to be resource boolean given I have a basic understanding …

Member Avatar for diafol
0
278
Member Avatar for dusto

Ok, I'm not sure how to format the readline to skip the header columns of the file that is being read in the code that I wrote/spliced in my class. I was wondering if anyone can point me in the right direction here. Thanks in advance! Private Sub btnLoadFromText_Click(ByVal sender …

Member Avatar for dusto
0
2K
Member Avatar for mferarri

i got this problem from: http://codingbat.com/prob/p178318 This is the question: > Given a string, return the count of the number of times that a substring length 2 appears in the string and also as the last 2 chars of the string, so "hixxxhi" yields 1 (we won't count the end …

Member Avatar for mferarri
0
242
Member Avatar for elbeato

I'm having trouble with cross-browser compatibilty with a jQuery click function. I want it to return the width of #bbox and have it play the animations based on what it returns. I have set the width of #bbox to 0px in my CSS as the starting state. THE PROBLEM: w …

Member Avatar for pixelsoul
0
789
Member Avatar for mlesniak

Hello. I have a listbox that I would like to display and I would like to set a default selected item, which I will not be able to determine until run-time. Is it possible to set a default item in the program code? I have looked at the Index property …

Member Avatar for mlesniak
0
166
Member Avatar for nouth

this time I have only one textfile and I want to remove all duplicate lines so that each and every single line in it is unique unto itself. with open("textfile") as w: for line in w: W = line with open("textfile") as d: c = 0 for line in d: …

Member Avatar for TrustyTony
0
362
Member Avatar for mossman mudas

i want to find the total space used for the files owned by me from my current directory. i have du -sh `find ./ -user $USER -type f` which gives 8.0K ./.a 8.0K ./t 4.0K ./cat/A 4.0K ./a using -s has no effect. using du -sh by itself includes the …

Member Avatar for mossman mudas
0
162
Member Avatar for subrata.roy.7583992

Hi I would like to know :- 1. after developing a program with vb 6 then I would like to run the setup n install it in different computer,but when i run it adodc not connected with database Can I connected adodc in my computer ? Because my intention is …

Member Avatar for Jx_Man
0
853
Member Avatar for akkbkht

Hello. Please guide me about how to get the options of select tab from mYSQL table. Where to insert php code and how to? Have a look on the code. <td><select name="tby" size="1"> </select></td> <td colspan="2">&nbsp;</td> </tr> <tr> <td colspan="4"><label>Issue/ Tests : <textarea name="issue" wrap="physical"></textarea> </label></td> Regards. Aamir Karim.

Member Avatar for akkbkht
0
262
Member Avatar for jalpesh_007

i am new to spring framework. i have learned basic concept of Spring.Now i am trying to simply run one hello world application using spring. i am getting following error.i dont know why? i am using netbeans 7.2 and spring framework 3.1.1 Release. **hello.java** public class hello { private String …

Member Avatar for jalpesh_007
0
1K
Member Avatar for somjit{}

hi everyone :) im trying to open this project , but when i double click it , vs2010 opens with error on the forms. double clicking the forms shows that the file doesnt exist at the particular directory , even when its visibly there. its probably a trivial thing , …

Member Avatar for somjit{}
0
100
Member Avatar for LastMitch

Hi I'm trying figure why I'm getting this error **Undefined offset: 1**. I'm practicing with **list()** function and with a **explode()** function. When I ran the code it kept mention this error: Undefined offset: 1 The line is this: list($bagsize, $candyprice)=explode("#", $_GET["size"]); The list is not an array. It's on …

Member Avatar for LastMitch
0
27K
Member Avatar for amith_ami

hi all pls help me.... im trying to select all related items of a particular product... related items are also another products... here is an example of my table product... prod_id related_id 100 101,102,103 101 104,105 102 101,100 103 100,101 104 103 105 104 if i select product with prod_id …

Member Avatar for diafol
1
146
Member Avatar for otengkwaku

class Frame(Widget): def __init__(self, master=None, cnf={}, **kw): what is the meaning of **kw in this function, and what does it represent?

Member Avatar for dashing.adamhughes
0
693
Member Avatar for treasure2387

What is the difference between displayClassA and DisplayClassb? When creating classes should i put them outside of the Stuff Class or insisde? What's the difference? using System; using System.Collections.Generic; namespace Empty { public class DisplayClassA { public DisplayClassA(){Console.WriteLine("This Class is outside of STUFF");} } public class Stuff { public class …

Member Avatar for treasure2387
0
113
Member Avatar for jithinjohny

Last Day I have installed wamp server 2.2 and I was using wamp server 2.0c till then. I have a strange problem, when i start wampserver and try to load pages on browser it shows the error > Deprecated: Function ereg() is deprecated http://tinypic.com/r/206g8is/6 Please help me , thanks in …

Member Avatar for jithinjohny
0
481
Member Avatar for SLMQC

I am trying to validate two text boxes in VB 10 Express. The first validation (parts) is working as desired, and the form will not proceed to the next step until zero or a positve number is entered. The second validation (labor) is not working as I would like. If …

Member Avatar for SLMQC
0
269
Member Avatar for san.ssj

Hello, I tried to use the textbox validation snippet available here - http://www.daniweb.com/software-development/vbnet/code/414248/textbox-validation# and Im getting this error. Please help :\ [IMG]http://i45.tinypic.com/9zxbvt.png[/IMG] Thank You

Member Avatar for san.ssj
0
120
Member Avatar for gbhs

Hi to all, As a newbie, I am not able to have the following columns into a datagrid. (see database diagram attached) (I don't want to select ID columns because users may not be able to identify the students). I don't master JOINS . Infact I want to select all …

Member Avatar for gbhs
0
311
Member Avatar for eburlea

Hello. I am curious if it is possible to create functions dynamically in such a way, that (1) the names of the functions to be retrieved from an array and (2) these names could be used also inside the functions. I have a code that is solving the first problem, …

Member Avatar for eburlea
0
348
Member Avatar for nova4005

Hello everyone I just finished my last program for class this semester and would love to have some feedback from the memebers here on things that I still need to improve on or good coding practices that I may not know about that can help me become better. I have …

Member Avatar for nova4005
1
468
Member Avatar for Hazuan Nazri

HI, I buy a SNMP board for my project and i got some problem to understand SNMP code with VB, Can somenone help me?, i got this code under another project, and i want to use it in my project but, when i copy and paste it in my project, …

Member Avatar for Hazuan Nazri
0
2K
Member Avatar for McLaren

SELECT getdatabaseencoding(), current_setting('client_encoding'), current_setting('lc_ctype'), current_setting('lc_collate'), version(); returns UTF8 UNICODE C C PostgreSQL 9.1.7 on x86_64-unknown-linux-gnu, compiled by gcc-4.5.real (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit select lower('ČĘĖĮ') returns ČĘĖĮ Actually what I want is to seach surnames with ILIKE which is not working for those chars. WHy this can be?

Member Avatar for McLaren
0
2K
Member Avatar for oXHutchXo

i tried this, [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 WindowsFormsApplication1 { public partial class Form1 : Form { int carX = 178; int carY = 161; public Form1() { InitializeComponent(); this.KeyDown += new KeyEventHandler(Form1_KeyDown); this.KeyUp += new KeyEventHandler(Form1_KeyUp); …

Member Avatar for AlickIMAGE
0
163

The End.