199,114 Archived Topics
Remove Filter ![]() | |
I would really appreciate help here. I think I'm just missing something small but I just can't figure it out. I have 2 questions about the following code: [CODE=php] <? if(isset($_POST['download'])) { $x = 0; $download_path = dirname(__FILE__).'/'; echo "<b>Downloading from $download_path:</b><br />"; $file = array(); while($x <= $_POST['download']) { … | |
Javascripts that I find on the net sometimes have pop up messages as part of the app / game, Id like to change the colors used in these pop ups, also Id like to get rid of the blue top bar we have in the pop up. See this image … | |
With the following code, the function only msgbox's "variable declaration" and "before for/each". i put them in there for debugging when i saw that my function wasn't getting all the way through. Any suggestions? [code=vb] Option Explicit Function ArrToCSV(ByVal array) msgbox "variable declaration" Dim strTemp Dim strQuote Dim x strQuote … | |
Hi, I am using PHP & mySql to grab the title and description that I have stored in a table in the DB. I am trying to dynamically change the <head> <title></title>, as well as <meta name="Description" content="" /> . I used document.title to change the title. I see the … | |
![]() | Hello, I've written a class, and I've created an instance. When I try to debug it gives me an error and I really don't understand what that means. I looked at some other web sites but I don't understand what do I have to do. Can somebody please help me? … |
This is driving me crazy and should be very easy. I am trying to pre-fill an html form with session data using echo. I can compile and run but the form field contains a / if the session data is blank. How can I get rid of the / Heres … | |
How to display gradient text effects without an image in HTML? | |
![]() | Hey guys, I have some code: [code='python'] import urllib2 as url import subprocess import os webs=open("url.txt",'r') read_webs=webs.read() def get_html(): try: req=url.urlopen(read_webs) res=req.read() return True except: print("<Error reading from the website>") def get_command(): if True: for x in res: if(x!='<'): command+=x else: break determine() command="" def determine(): format=command[len(command)-3:] print format get_html() … ![]() |
Hi, I'm looking to write a server/client system and I want to pass a hashtable between the two. I've found lots of tutorials on making a "Chat" system which passes strings, but how can I increase this to hashtables? Thanks. Andrew. | |
Help me to show the jquery confirm box. If I move the tags out of content panel it works well. http://www.clientsideasp.net/2009/06/16/showing-beautiful-message-boxes-in-aspnet-web-forms-using-jquery-impromptu/ By using the above site I wrote the code. But I use Ajax. Protected Sub babubabu_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles babubabu.Click 'If IsValid Then 'The … | |
I am having a problem in this program....can anybody help me create a BufferedReader out of this maze problem...then i have to create a text document entitled with maze.txt... well here is my program [code] import java.io.*; import java.util.*; public class Amazing{ public static void main(String[]args){ Scanner console=new Scanner(System.in); FileWriter … | |
Hi, I´m new to Python and right now I´m trying to learn to parse a text. Here is my code (that doesn´t work the way I want) [CODE]text = ['Mary', 'went', 'out', 'at', '7pm', 'to','buy','some','candy'] keyPerson = ['Mary', 'Clark', 'Steven'] keyTime = ['7pm', '6am', '2pm'] keyThing =['candy','eggs','fruit'] list = [] … | |
I am trying to link one variable in the search results to its corresponding variable which is in the same row but on a different field result. For Example [B]title || lyrics[/B] father || am i so proud to be your son... If I search for father, I get father … | |
I am aware that JavaScript arithmetic does not handle either really large numbers or decimals well. This is why I have made this library of functions. I am posting it here rather than under "code snippets" because I would like to learn from your comments. Along with the library is … | |
Folks....can u tell me how to pass an argument to the Javascript function written in source thru Code behind...?? here is my code: [Code] <head runat="server"> <title>Untitled Page</title> <script type="text/javascript"> function message(name) { alert("Hello" + name) } </script> </head> [/Code] In my code behind file : [CODE] btnok.Attributes.Add("Onclick", "message();"); // … | |
Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing … | |
Hi friends, i have a textbox where i have a path of the pdf file. now after pressing a cummand button i want this file to be opened. my code is as follows.. [I]Private Sub wazopen_Click() Dim myfol As String Dim myfln As String Dim myfpath As String myfol = … | |
| |
send me any resourceful info u have on JAVA to SNIP n I'll be sooo greatful. | |
Hi All, I want to run a java command thru java program. Can any one tell me how can i do it. Thanks , Smita | |
When several producer threads put items in a queue.Queue, and a consumer thread gets items from the queue, there is no way for the consumer thread to tell the producers that they should stop feeding the queue. This snippet defines a subclass of Queue with a close method. After the … | |
Hey, I`m trying to use MySql database in asp but I keep getting this error: The server tag is not well formed I think my problem is that I cant connect to mysql! Does anyone know how to use mysql database in asp.net? [CODE] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" … | |
Does a .jar file run on windows with out the JVM installed? | |
Hey guys, im having the weirdest problem with my ajax!! below is the function that is called when ever a if statement evaluates to true. Anyway the problem im having is that this if statement [code] if(xmlHttp.readyState == 4) [/code] with in the ajax functions runs when readyState is equal … | |
Hi :) anyone can help me for my problem 1) how to convert 'unsigned char' to 'unsigned int' ... 2) need more idea about casting for embedded c after making some calculation , value from char typed array element are changed some unknown value which can't be handled. Wanna know … | |
Hi All, I'm using application object in Application.Lock(). But some errors are coming.The errors has been given below. Error E:\...\StateMgmt\ 25 E:\infonet\in\StateMgmt\Default.aspx.cs 24 'System.Web.UI.HtmlControls.HtmlForm' does not contain a definition for 'Lock' and no extension method 'Lock' accepting a first argument of type 'System.Web.UI.HtmlControls.HtmlForm' could be found (are you missing a … | |
hi every body. i have a stored procedure with a select statment that looped by a cursor . this is the code [CODE] DECLARE res cursor READ_ONLY for (SELECT DISTINCT GroupNo FROM ppu_MajorPlan WHERE (PlanYear =(SELECT majorPlanYear FROM ppu_Student WHERE (StudentNo = @StudentNo))) AND (MajorNo =(SELECT MajorNo FROM ppu_Student WHERE … | |
Hello everyone. I am new here and would like to know what would be the best way to go about setting up a website account creation system that will also store there account into a mysql database but also add it to a game database witch is sql. Thanks | |
I'm experiencing alot of issues trying to create the $to field as a variable, PHP is reporting Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/shhdcouk/public_html/PHP/class_vcard.php on line 172 and I'm not sure why.... my code is. $send = $_POST['email1']; $to = $send; $subject = "Registered for xxxx"; $body="Thank … | |
I am trying to figure out the best way to deploy a python script that I wrote. Many of the users wont have python on their machines but might want to make slight alterations to the script. What I was thinking about doing was using Py2exe to compile a script … ![]() | |
Hi, I'm new to python, but I want to start learning :) I just wondered if anyone could tell me how to use a variable from a function outside the function? ![]() | |
hi all i have been using ASP... I basically wanna learn PHP and Drupal now.... I tried installing WAMPSERVER ..... I have got it installed , but i can't make it run... i already have IIS installed on my computer.. i changed this in the httpd.conf file [COLOR="Red"]Listen 8080 ServerName … | |
Hi there. I would like to know how to make a label blink. Like I have these 2 labels. I would like the first label to blink when the form is loaded. Then when I press a button, the blinking label will stop and I will have the second label's … | |
The program requires an integer input from a user at the command args and prints out the numbers backward. I have this so far, however, it only prints 1 number, which is the number entered into args. [code=java] public class KashiwabaraNicole7 { /******************************************************************************* * Initializes program * @ param commandlineArguments … | |
Write a Java Program that prompts the user to enter his/her first name and last name, then displays a message to welcome the user into the class CIS 226. If the user hits Cancel on either first or last name, show the error message: [code] import javax.swing.JOptionPane; public class Assign2 … | |
I'm attempting to learn Java. I'm finding it to be frustrating and quite foreign from most other languages. I have something here typed exactly as the book has it. According to the book, it should be working, but it's not. Any tips would be SO great! I really feel like … | |
Hi guys, im trying to insert data in different tables one after another, the first table is "Account" with P_key "Username" then have another table called "Student" with P_key "Alumnus_no". Username is a foreign key on "Student" table meaning in order to enter records on Student table Username must exist … | |
Protected Sub subdata(ByVal id As Integer) Dim myDataReader As System.Data.SqlClient.SqlDataReader Dim myConnection As New SqlConnection Dim myCommand As New SqlCommand Dim strSQL As String strSQL = "SELECT class_id,subject_id,subject_name FROM subject where subject_id =@class_id " myConnection = New SqlConnection(" Data Source=SAJJAD;Initial Catalog=ac;Integrated Security=True") myCommand.Parameters.AddWithValue("@class_id", id) myCommand = New SqlCommand(strSQL, myConnection) myConnection.Open() … | |
Please let me knw a way to create an exe file (.exe) with my java application..... | |
I get the following exception about 1 in 100 times. It does nothing to hinder my program at all from what I can see. What I need is the code to help me suppress this message or handle it myself, I have tried everything I have read in both help … | |
is it possible to add a reference from one project to another and at the same time visa versa. From A to B and from B to A? | |
I am trying to code a webpage that does the following: Listens for user key presses in an input box and dynamically writes them below the input box in a textarea. Any help? | |
hi all, i just started doing some uva problems.... first question was 3n+1 problem.... for those who don't know what it is..here is the question... [QUOTE]The Problem Consider the following algorithm: 1. input n 2. print n 3. if n = 1 then STOP 4. if n is odd then … | |
I had problem with mouse out in div. i tried for one long day in vain. can any one do it. it was an urgent issue.Thank you in advance. the code is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>The test</title> </head> <script type="text/javascript"> function changeStyle(div) … | |
Hello, I need help printing my results to an output file with the program that I have below. I am getting an error "too few arguements to function". It has been a couple of years since I did C++ using .txt, so any help is appreciated. Thank you. [B]Goals:[/B] - … | |
Ok so here's a part of the php file I'm using. There's already a toggle_it() function to show/hide rows, tables, anything. But now what I want to do is when the user clicks the link "add more", I want to show the hidden row AND hide that "add more" link. … | |
What I would like to do is have an area of my site where visitors can verify if a domain is registered through us. So basically we would manually ad the website names to a text list and would like the script to check the list and if the website … | |
I'm learning PHP & MySQL. While trying to folllow a tutorial I am not getting the erxpected result which is simply to retrieve a little data out of a table with a query. Here is my PHP code: [CODE=php]<?php //1. Create a database connection $connection = mysql_connect("localhost", "kingdomc_mtech", "busine$$"); if … | |
hi there. say i have a text file. in this text file is all the information i need for my output. the problem is, probably because i'm still very new at this, i don't know how to read this particular text file and output it onto the screen. suppose i … |
The End.