199,114 Archived Topics
Remove Filter ![]() | |
[code]<html> <body> Enter your firstname <input type="text" fname="submit"> Enter your lastname <input type="text" lname="submit"> <html> <head> <script type="text/javascript"> if(submit(lname==null)) { alert(" be careful"); } </script> </head> <input type="submit" onclick="submit()" value="Submit" style="color:white; background-color:red;"> [/code] i need help with writing if loop for submit button an alert message that show we forgot … | |
Hello, I have many controls on my form ( textboxes, radiobuttons, dropdownlist, checkboxes inside gridview) i want to clear them all once the form is submitted. Please any one tell me how to do it? I am looking for somegeneric method which will help me to solve it... Awating response. … | |
Ola! This is my first post so i hope its not a stupid one ^_^ ok, I have large quantities text i want to read into my jTextArea, to keep it all nice and clean i use tabs(6 chars long), the problem is that sometimes the words or strings get … | |
I'm trying create a system flowchart which shows ms access as the database. I'm going to create a patient database and a invenroty database and a few others. I believea system flowchart does not show individual programs but rather the computer devices that make up the system and the basic … | |
[CODE]/* < newton.c > */ #include "smp.h" main() { void USERF(double *,double *,double); double x0,e; int n,NMAX; /*** ステップ1 データの入力 ***/ printf("\n初期値 x0 = "); scanf("%1f",&x0); printf("\n収束判別定数 p = "); scanf("%1f",&e); printf("\n最大反復回数 NMAX = "); scanf("%d",&NMAX); /*** ステップ2 ニュートン・ラプソン法の計算 ***/ S_NEWT(&n,&x0,e,NMAX,USERF); /*** ステップ3 計算結果の出力 ***/ printf("\n反復回数:N=%d 解:X(N)=%10.71e",n,x0); } /* < … | |
Below is my textarea class. I want to make it sticky..help please. I have the same problem with my drop down boxes (that post is still unanswered) [CODE]class Textarea extends TextBox { private $rows; private $cols; private $sub_head; function __construct($n,$d=NULL) { $this->name=$n; $this->default=$d; } function setHeight($h) { $this->rows=$h; } function … | |
Hi I don't really know where to put this but how does one use WxWidgets with c++. I just need to know the syntax or structure of it. For example: What would wxwidgets equivalent be for the native code... [CODE] #include <iostream> int main() { int num1, num2, total; std::cout<<"Enter … | |
![]() | Hello, I'm a Python/SPSS (DANIWEB) beginner and I'm having a hard time getting classes, functions and methods into the right order. I want to write a script for SPSS where I can read text out of an text object from the SPSS-output file. My code looks like this: [CODE=Python] import … ![]() |
Hello all, I have for two days now been trying to debug what appears to be a serious logical error in my code, now I think I need to make it public. I am working on a dynamically loaded user control, this usercontrol has two dropdownlists, followed by textboxes.The second … | |
Hi... Any idea on how to embed this flash so it will stay behind other content, e.g. a lightbox? [CODE]<td align="left" id="container" valign="middle" z-index="0"><!-- see notes for files included --> <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player to see this rotator.</a> <script type="text/javascript" src="my/path/to/file.js"></script> <object><script type="text/javascript"> var s1 = new SWFObject("my/path/to/flash.swf","rotator","415","120","7"); s1.addParam("allowfullscreen","false"); … ![]() | |
In the below code i m trying to send my request attribute from req.jsp page to retr.jsp. i would like to know if we can pass request attributes from one jsp page to other jsp page the below is my req.jsp [CODE] <html> <head> hey i m page 1 </head> … | |
I want to give different colors to alternate rows of listview Control in asp.net(c#). How can i do this? | |
Hi. I have just been introduced to string tokenizer in one of the java lessons. It can remove characters from an array of strings. So, I am wondering if it could remove a string from an array of string. For example: "the fish was eaten by the cat". I'd like … | |
![]() | [code=php] <?php if($_POST){ $password=$_POST["password"]; $confirm=$_POST["confirm"]; if($password != $confirm){ ?> <span style="color:red">Error: Passwords do not match!</span> <?php } else { $dbhost ="localhost"; $dbuser ="root"; $dbpass =""; $dbname ="users"; require_once"/wamp/scripts/config.inc.php"; $conn =mysql_connect($dbhost,$dbuser,$dbpass) or die ("Error connecting to mysql"); echo mysql_error (); mysql_select_db($dbname); $query=sprintf("SELECT *FROM users WHERE username ='%s'", mysql_real_escape_string($_POST['username'])); $result=mysql_query($query); if($result){ ?> … |
hi Foo, Just read the code and give me a solution.My question will be after the code... <html> <head> <title> working with jscript</title> <script> function appendtable() { var parent = document.getElementById("divide"); div = document.createElement("div"); var tbl=div.appendChild(document.createElement("table")); var tb=tbl.appendChild(document.createElement("tbody")); var tr=tb.appendChild(document.createElement("tr")); var td=tr.appendChild(document.createElement("td")); parent.appendChild(div); var oSelect=document.createElement("select"); var oOption = document.createElement("option"); var … | |
This is my table which I used to get access time of users at every single minute. [CODE]-- -- Table structure for table `members_log` -- CREATE TABLE IF NOT EXISTS `members_log` ( `SrNo` int(11) NOT NULL AUTO_INCREMENT, `UserName` varchar(25) NOT NULL, `access_time` datetime NOT NULL, PRIMARY KEY (`SrNo`) ) ENGINE=MyISAM … | |
Hi everyone, I would like to parse this text file PREVIT:nmrValidate_166w.pdb atoms "A -750 -GLU -CG " and "B -54 -GLN -CG " 3.8759 A apart atoms "A -750 -GLU -CD " and "B -54 -GLN -CG " 3.8447 A apart atoms "A -750 -GLU -C " and "B -51 … | |
Hi! All I need to know how can I secure my program by the serial number of local pc or WMI Code Creator? I want to secure my program by client`s hard disk`s serial number so that he cant sell it or use this program there in another pc. Please … | |
Hi, I have table in Database and i need to get the get the values of column and check for the values. If the value in row of that column is null...the imagebutton in grid view should be disabled. I am unable to get the rows values. Can anyone help?? … | |
i m having a webpage which is having a gridview which is displaying data from database........now on the same same web page their exists some hyperlinks namely A, B ,C.....upto Z ............can anybody plz help me out on how to display the new data (clicking of hyperlink A result in … | |
I am trying to change some data indside a txt file, based on the input given by the user.The input file is [B]indata.txt[/B](The commented part is, what it holds).And the output file is [B]"outdata.txt"[/B]... The problem is with line 52 and 53.Notice that in the loop from line 55 to … | |
Hey guys, this is my first post. I'm having problems with a flat-file unique hits counter which I found online at [URL="http://inobscuro.com/tutorials/simple-php-unique-visitors-counter-30/"]in obscuro[/URL]. I installed everything properly, but whenever I try going to the "showcounter.php" file to display the total amount of hits I have received, the page freezes up … | |
Problem: when the user prints the JTextArea, the text at the right-hand side of the "paper" is cut off, despite the fact that it is visible on the screen. Question: How can this be solved? I've tried two ways of printing the text area, and neither has worked as I'd … | |
Hello all, i've just found source from planet source code, and from this source i just want to make program can record the streaming voice into .wav or .mp3... is that possible?? what should i do?? Thx b4.... | |
hai guys i am new to this community and i wish do a project can you guide me with some ideas to match to the up coming trends.. | |
Respected Seniors, I have no knowledge about creating report in Crystal Report. Kindly tell me step by step process for making crystal report and what application need for install on my system current time i have vb 6.0 and ms office 2003. Thanks in advance. Pradeep | |
Dear Experts, I need a process for disabling windows key of keyboard through coding. Kindly help Thanks Pardeep | |
Hi I want to create a mobile website with a restricted login page. That is, such that to view the login page, a link with a protection code should first be sent to you via sms or other way. That is something like [url]http://m.mobilesite.(com)/login.php/243948[/url] The link should expire say after … ![]() | |
Hi, I'm new to getting info from a website and rendering it but have been asked by a potential employer to create such a feature on a website. What would be useful is if someone could point me in the right direction and possibly some scripts to look at? Cheers. | |
Hello, I have the following problem with Ajax : - The files I will mention here are copied at the end of this mail, so anyone can look if necessary. - My intention is to bring the contents of SubOne.php into the area defined by the DIV tag named "MyDiv" … | |
hello...im new in vb world.so please help me if someone can..my problem in details: 1.have created a ms access database file named Database2.mdb which has 5 columns as follows a,b,c,d and result.it has 5 row and a,b,c,d are filled with data but result column is empty. 2.have created a datagrid … | |
Hi guys, I have a code in C++ that was written way back in 1995.Back then,I guess even in C++,#include<iostream.h> was used unlike nowadays, #include<iostream> using namespace std;.....im rite now trying to compile that code with a g++ compiler.It gives the error at lots of places:"cout not declared in this … | |
Can anybody help me with setting up a cron job to run a PHP file. Here is the code that I inserted in the PHP file: [CODE]#!/usr/local/bin/php <?php include_once "connect_to_mysql.php";[/CODE] Here is the code that I used in the command line in the control panel: [CODE]*/5 * * * * … | |
Hey there! I'm new to c++ and programming in general and have a quick question to why the program below works. I had most of it completed but for hours i couldn't figure out why every time i tried to enter input for the "make" member of my dynamic structure … | |
Hello, I'm learning PHP from w3schools.com but they didn't explain everything clearly, see that page, [TEX]http://www.w3schools.com/php/php_file_upload.asp[/TEX] I want to know the meaning of this line , how it is checking the error in uploading ? [CODE]if ($_FILES["file"]["error"] > 0)[/CODE] | |
Hey guys! I also have a question about how to autogenerate these types of links. (Pardon my tacky english) What i am looking for is a way to autogenerate a "personal" och "unique" link for every user. These unique links are suppose to point to "registration.php". The idea is that … | |
My error occurs on line 191 and 156. For some reason it is saying it cant find the default constructor when I have supplied the right amount of parameters. The error it is giving me is "Cannot find default constructor to initialize base class" code: [url]http://pastebin.com/WLMvBMyy[/url] If anyone could offer … | |
[CODE]class Test: def __init__(self, number): self.number = number def getnumber(self): return self.number x = Test(54) y = 'number' print x.getnumber() try: print(eval('%s.%s'% (x, y))) except Exception, e: print(e)[/CODE] This isn't the code I want to fix, but it has the same error. I am trying to return a class function … | |
Hello I am very new to daniweb but have been using it for many years to help me learn web development. I am struggling with some code that I hope you guys might be able to help me with. I want to send checkbox data from a form my email … | |
Hello guys, I'm working on a new project in C++ and I need to parse some XML files, by reading some articles on the web I found that the most commonly used one is the Xerces library. However, I'm currently having troubles. Can anyone tell me how can I include … | |
![]() | I am trying to create a code that receives up to 50 integers from the keyboard, sorts the array from largest to smallest, then counts the instances of each number and displays the number inputted and the count of the number of instances. For example, if the number 11 was … |
I am trying to set up the GUI Library FLTK but cannot find a way to set it up for MSVC++ 2010 Express. I looked on Google but failed to find any tutorials on doing this. I also tried CMake but ended up with an error in CMake and an … | |
Hi everyone! I'm trying to learn assembly x86 using tasm but a doubt stoped me. I need to create a file and copy an array of characters for him. I know I need to use 3Ch to create, 40h to write and 3Eh to close him but I can't implement … | |
I am using the php mail code to send emails from a website very successfully. However when the email address to send to is in the format [email]xxx.yyy@zzz.com[/email] it won't send. Any ideas? I am able later to post any code samples needed if necessary but all seems to be … | |
Hello, I don't have technical problem. I was just thinking the difference between arrays and SQL. I am currently learning OOP in java and C# but my employment history is based on SQL Server. So I was thinking about this subject in my head and I don't see why bother … | |
There is a multinational company. In the company, there are deductions from the salary of the employee according to following rules: i) If salary is less than 10,000 then no tax deduction and 4% of salary will be deducted as Well-fare fund every month. ii) If salary is more than … | |
hello there, anyone can help... is this possible? i have a string value of form names in my DB so when my condition passes, the variable string will take over the value , then that value will call the form(variable) as string. i got an error when i use this … |
The End.