199,114 Archived Topics
Remove Filter ![]() | |
[ICODE] <!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 runat="server"> <title>Events !</title> <script type="text/javascript"> window.onload = function() { [B]//Only this occurs[/B] document.getElementById('anImage').onclick = function() { alert('F-14 Tomcat !'); } [B]//This gives the result of the first[/B] document.getElementById('anImage').ondblclick = function() { alert('Not again ! !'); } [B]//Nothing … | |
Hii, I am trying to get a content of a php page(Dynamic) with the help of Ajax by sending Get request to the server page.Like the script should fetch the content of server page (Can be changeable with time )into a certain div tag that i will define. I dont … | |
Well, all I want is to pass a variable, just one, to an iframe, I know that is something like: [CODE]<iframe src= 'http://blabla.com/bla.php?variable=string'</iframe>[/CODE] and inside the iframe something like: [CODE]$myvar = $_GET['variable'];[/CODE] But my problem is that my variables are URLS, with "?" and "&" so when I parse that … ![]() | |
I'm trying to figure out the best way to replace apostrophes in various user input which is all formatted first using [B]mysql_real_escape_string[/B]. Of course this replacement should take place after all input has been sanitized and anything funny removed. :) Any help would be awesome! | |
please view the attached file... i just want to know how to insert data in a Null Column in just one click... ex: ID UserName PassWord Category Status 1 Me1 You one Null 2 Me2 You one Null 3 Me3 You one Null 4 Me4 You one Null 5 Me5 … | |
I am trying to open multiple ports in a computer with PYTHON Sockets. Here is my code.. [CODE]import socket import thread from threading import * BUFSIZ = 1024 clientsock = socket.socket() def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: break def function(): for n in range(1,5): var = … | |
![]() | I was looking at this [url]http://www.daniweb.com/web-development/web-design/html-and-css/threads/97183[/url] post and I did everything the guy said, but he did not say how to make up all the files. I made the login, members, and every other file he said make. But now im stuck with a bunch of files and I do … |
Next quiz is posted as code snippet. It is quite interesting code. What it does? And where [B]in your system[/B] you already have this code? (in little different format) (If you have not follow tip in page [url]http://python.org/download/[/url]) | |
Hello, i'm roughly new to c# and i was wondering how to Have my program make a decision based on a percentage. For example there's a 56% chance that a sprite on a map will move left and a 54% chance it will move right. Then there's another sprite that … | |
I have being tryn to send and recieve sms from j2me emulator. I cameup with following code inorder to send the sms [CODE] String mno=toWhom.getString(); // mno= massage number String msg=message.getString(); try { clientConn=(MessageConnection)Connector.open("sms://"+mno); //MessageConnection clientConn; } catch(Exception e) { alert = new Alert("Alert"); alert.setString("Unable to connect to Station because … | |
Ok I am stumped. I am inserting the data fine into the table and database so i know its not the config.php nor opendb.php. I used a code like this before and it work, i've only altered the $sql, the td's, and the $rows[]. Table name is hotspots (all lower … | |
Guys before i post my problem , lemme say that, i HAVE gone through the previous blogs/forums on daniweb, so please dont get annoyed with this topic again. But none of them answer my question My question is, "How do you write a structure to a file and retrieve data … | |
I made myself a little autoclicker in c++, but after it's done, I want the console window to come up again, so the user can decide wether to do it again, or end the program. How do I do that? | |
So.. I want information on drawing on top of a DirectX game, like how Steam does it. I would consider naively trying to obtain a "device context" of the client area of the game's window, and then try some 2D drawing functions. D: I don't know if that's going to … | |
Hello guys! i really need your help. In my program, I am reading the contents of the file. File looks like this: [CODE] 1 ART ACE APE 2 BAT BOY 3 CAT COP CUP CAP CUT [/CODE] I want to store the words in an array. one array per line. … | |
hey guys.. i have trying for 2 weeks now to connect 2 tables in the way that i need them to print out.. [B]to understand the table structure please see attachment 001[/B] Now... i have managed to join both table but the problem is that each time i insert a … | |
Hello everyone, I have some code to sort a random array of integers, although im getting an error whenever I try to run the method. It prints the input and then I get an error. The code is below and the error is below that. If anyone could help me … | |
Hi everybody! Well my question is as follows, I need to search for a div with a specific ID using php under wordpress, till now I found images and links, but I need to find a specific div ID and copy it, for now tested with this: [CODE] $html->find('$html->find('#divid');'); $html->find('div[id=divid]');[/CODE] … | |
Hi guys, Im starting a new project this week for my computing course and to be honest - i didnt like my last one as it had many forms which i thought was quite tacky. So i had a thought, how can i use for example, 1 or 2 forms … | |
Hello friends i'm new in php programming, i'm using wampserver with php5.3.5 , but it shows error on this code [CODE] <?php $to = "bkstha2010@gmail.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "someonels@example.com"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> [/CODE] as well as … | |
Hey folks. I currently have the below code:- [CODE] int double weeksInYear = 52; int double num; while (num <= weeksInYear) Console.WriteLine("Week " + num); num += 2; [/CODE] Now when my code runs, it produces approximately 26 lines of text as below:- Week 1 Week 3 Week 5 etc..... … | |
hi just wanna ask how to transfer a file from a peer-to-peer wired connection a character input from a node to another node. this is my simple code: [CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> int main() { char x; printf("Enter a character: "); scanf("%c", &x); getche(); }[/CODE] when the 1st … | |
[CODE]tomashqooo@Tomashqooo:~$ python Python/tcrack.py File "Python/tcrack.py", line 86 ostring2 = ostring2' -c 'station' mon0' ^ SyntaxError: invalid syntax[/CODE] That`s my error message when ostring2 and station are string variabiles and ' -c ' and ' mon0' is text. Please help me what`s the problem here??? | |
Hi all, I'm trying to get an octal number from console and store it in an int variable using scanf. Here is my code. [CODE] int n; scanf("%i", &n); printf("\nEntered number in dec = %d", n); printf("\nEntered number in hex = %x", n); printf("\nEntered number in oct = %o", n); … | |
Hi everybody! I am implementing my undergraduate thesis with subject "object extraction in a video shot". I haven't studying signal processing topic when i majored in computer science, so this subject is very strange to me. I knew this problem associates with image segmentation issue,thats all, maybe having else one … | |
Hi Guys, Help me solve this... First I fetch values from DB and shows it in a table with check boxes. Once clicking OK button, it shows selected check box values. User modify any values and click edit, it should update the DB. I don't know where to fix the … ![]() | |
Hi All, Couldnt figure out to obtain the nearest date in query properly. find below the sample. Insert Fsample (ESN varchar(10), optn_type int, auditdate datetime) values('123',2,'2011-1-03') values('123',11,'2011-2-20') values('123',2,'2011-03-02') values('123',2,'2011-4-10') values('123',11,'2011-5-18') 2=shipdate 11=returndate result ESN|Shipdate|returndate 123|2011-01-03|2011-02-02 123|2011-02-20 123|2011-04-10|2011-05-18 Thank you in advance. Jonel | |
Original question:[url]http://forums.sun.com/thread.jspa?threadID=5323307[/url] [quote]So I would like to include a bean into the same project (as a separated library of course) that uses it, so the project would be self containing, and the bean's code would stay in syncron with the program's one, even if I move it to another computer. … | |
Let me start off with this disclaimer: [B]This scenario is completely contrived.[/B] The scenario proposed is analogous to an actual problem that I am trying to solve. Problem: I'm going to cheat on a test that uses Scan-tron style cards. I've stolen the test before it was handed out and … | |
When we define a new variable for frame it hold "null" value, but what it contain when we close that frame? | |
Hey, this one is agaain from File-handling How do you replace a word in a file with another word. The algorithm should be somewhat like this 1)Read (fgets) the entire line into a buffer. Locate the word/ position of the word. 2)From that point onwards, OVERWRITE the contents in the … | |
How to limit the number of checkboxes to be selected using php??? | |
Hi I'm currently creating a property website and it allows users to submit upto 7 images/property. Currently on clicking the 'submit' button to Add A Propety my code checks for image size, file type and then moves the file from a tmp location to images/propertyimages file. All the images from … | |
A [URL="http://bit.ly/appcelerator_idc_q4_mobile_developer_report"]new survey[/URL] jointly conducted by Appcelerator® and International Data Corporation (IDC) released September 27, 2010 reveals Appcelerator Titanium developers favor Android over iOS in TVs and other devices.[ATTACH=right]17397[/ATTACH] Although the market shows that Apple currently leads in iPhone/iPad sales and popularity, the survey reveals that of the approximately 2,300 … | |
Hi all! I have a datatable with 3 columns : A, B, C and 5 rows. I want to delete value of the A column. How can I do that, please help me!!!! Thanks a lot | |
Guys hi there)) pleace tell me - Is this default attribute correct (it doesn't work in my costom control) - [CODE][Bindable(true), Category("BrushOptions"), Description("end color"), DefaultValue(typeof(Color), "White")] public Color EndColor { get { return endColor; } set { endColor = value; OnChangeProperties(); } }[/CODE] thanks in advance)) | |
Hi I am developing an application that has two parts 1) client machine 2) server i.e. (internet web data). i want to access the table on the server (internet) how i can use the connection string. how i can connect to client to server can anybody help me. | |
This is code generated for my Algorithm Implementation's class. I was to create my own RSA public and private keys using modPow and modInverse and use that to implement a digital signature. That works great, not the problem here. For extra credit I am implementing a digital envelope that will … | |
![]() | Um, How do these work? I know you do something like [CODE]Blah Blah {Get; Set;}[/CODE] but how does that work? how does it know what to get and set? |
I have created a subdomain mapped to a sub - directory of the website. The default page of the sub directory ([url]http://www.mydomain.com/foldername/default.asp[/url]) works fine, but [url]http://foldername.mydomain.com[/url] shows error Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified … | |
Hi, I know how to do it in the console, but when it comes to Win32, I can't I've tried all those #includes(with Windows.h), and it doesn't let me. Anyways, if you guys know how, please share, I'd like to know. | |
Hi everyone, I want to implement an ADT Queue class (pointer base) use Template with following public interfaces: enqueue,dequeue,dequeueAll,peek,and size. I have 2 problems: 1.not sure how to dequeueAll which is removes all elements from the queue with Postcondition: size( ) returns 0 2.for dequeue and peek I need to … | |
I've been learning php and following the examples on w3schools until I came to this example and now I'm pretty stuck after having tried to make it work for countless hours. This is the bit I'm on: [url]http://www.w3schools.com/php/php_mail.asp[/url] I try to send the email using the following code: [CODE]<?php $to … | |
I'm new to java and having trouble. I need to take a class I wrote and write a test applet for it to see if it works. The applet is supposed to have a length label, an input for it, an width label, an input for it, a button to … | |
I'm a first timer with RPG-IV and am trying to write a D-spec. I don't know what the source type should be... tried PF, DSPF, D, DS.... I try to compile the file and it gives me an error involving DDS. Any advice would be great... if I knew what … | |
Hi Guys, After trying to port a C++ program which was a console application where it crawled the forums with the url provided and in the end stored the result inside a database for further analysis. Now, with very limited time I have decided to replicate this in vb.net as … | |
Hi all, Here is mu scenario.I am trying to open multiple port on a compute. I am trying to make the code multi threaded.So here is my code: [CODE]import socket import thread from threading import * s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) def handler(clientsock,addr): while 1: data = clientsock.recv(BUFSIZ) if not data: … | |
![]() | Hi all, I searched this topic and found a couple of posts but I couldn't find what I am looking for. Here's the problem - I am trying to send an image to a client (browser in this case) over a socket. After the image is received I am trying … ![]() |
I just started leaning c programming, and i have been doing alright, but now am stuck with a problem, I do not know how to read information from a file in c. the file contains info like; 123456789123456789123456789123456789...and so on. i have to read the file in, and then group … | |
I am reading murach's book about jsp and servlets. He uses netbeans(I am using intellij idea) and I am at a point when he uses the META-INF folder that netbeans creates to save a context.xml file there that contains a Resource tag with information about a connection pool. The problem … |
The End.