i want to create a form for my client. My client require to create a dynamic for him. suppose, i want to insert 1 record in main table of mysql, and record multiple records in secondary table which has reference key of main table. I dont know how many records against the main table, it maybe one at time or multiple records at time. I want to do it with single form. If client click add more button it show another text field to insert more data. how i can do it ?????

Member Avatar
Member Avatar
+0 forum 8

Hello. I have a form with captcha element. The text field displays on the right of the image. How can I make it displaying below the image? $path = Zend_Controller_Front::getInstance()->getBaseUrl(); $captcha = new Zend_Form_Element_Captcha( 'captcha', array( 'label' => 'Type the characters you see in the image below:', 'attribs' => array('id' => 'captcha', 'class' => 'required'), 'required' => true, 'captcha' => array( 'captcha' => 'Image', 'wordLen' => 6, 'timeout' => 300, 'font' => APPLICATION_PATH . '/../public/css/LeagueGothic/League_Gothic-webfont.ttf', 'imgDir' => APPLICATION_PATH . '/../public/images/captcha/', 'imgUrl' => $path . '/images/captcha', 'dotNoiseLevel' => 5, 'lineNoiseLevel' => 2, 'width' => 220) )); I used its id in …

Member Avatar
Member Avatar
+0 forum 1

Hi everyone, Does anyone have an idea of how to skip a line in a JTextField? In System.out.println, I would normally type n but it didn't work for me when I used it in a textfield: text1.setText(**"n"**+coloumn[counter]); where the output displays well as desired excpet that it doesn't skip a line.(Forget about the actual line of code since there is a loop so multiple values are expected in a new line each). The fact is that I need to know how to skip a line. Thanks. By the way, this is the full program: import javax.swing.JFrame; import javax.swing.JOptionPane; import java.awt.event.*; …

Member Avatar
Member Avatar
+1 forum 2

Hi everyone, I'm working in a project where its required a dynamic insertion of a grup of 3 textfields where one hiels dates. So far I manage to do the insertion part, but Im still with the problem of jquery datepicker only working right on the first(original) textfield. I notice an error when inserting new textfield and trying to access the jquery datepicker "Uncaught TypeError: Cannot read property 'append' of undefined"! I searched the web and i found that it can ve fixed by creating a class on the textfield and adding "'removeClass' or the 'not' ". $('.datepicker').removeClass('hasDatepicker'); I tried …

Member Avatar
Member Avatar
+0 forum 5

Hey Guys, I am working on a search that takes in a value via textfield. Once taken in it should display another Jframe with the info but the searchbox crashes the second I run it. Its some stupid mistake I have made or i have gone about it the wrong way but at this stage my brain is fried from lookin at this code and i am not making any head way. The search box Code: import com.sun.rowset.JdbcRowSetImpl; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Joe Lyons */ public class BB_Value_SearchBox extends javax.swing.JFrame { /** * Creates …

Member Avatar
Member Avatar
+0 forum 3

Hello to everyone, I´m having problems on retrieving data from mysql to a textfield in html, the data appears with queston marks inside of a "black diamond"! I researched and followed the steps like putting the database charset utf8, the table too! When I insert for example Alimentação its goes to the database like this and when i show it with a table made in php! but when i try do retrieve the data to another php page into textfields in html code, it substituts ção by queston marks inside of a "black diamond". When, again, I put this code …

Member Avatar
Member Avatar
+0 forum 1

hi i have been working on my project to create a store and i have to add items and sell items, and once i add items i store them into a textfile separated by commas, and i made the add item button work perfectly but i am having trouble with the sell button. import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintStream; public class text_feild implements ActionListener { JPanel titlePanel, buttonPanel; JButton button, Sell_button; InputStreamReader input_stream = new InputStreamReader(System.in); BufferedReader read_Buffer; FileOutputStream file_out_put; PrintStream print_stream; FileReader read_from_file; …

Member Avatar
Member Avatar
+0 forum 3

Hello Friends, I want to set the length of the textfield in java... Please check my below code....it works finely if I press the keys one by one slowly... But suppose if I press any key for a longer time the actual length exceeds and so the validation is not done correctly... Can anyone help me to set the length?? public class TextValidation extends KeyAdapter { public void keyReleased(KeyEvent key) { Object txt=key.getSource(); if(txt==txtPatientId) { char ch=key.getKeyChar(); String specialchar="!@#$%^&*()~?>'<:{}|+_/\".,;'][=-` \\"; if (txtPatientId.getText().trim().length() <= 10) { if (specialchar.indexOf(ch)>-1) { JOptionPane.showMessageDialog(null, "SPECIAL CHARACTER IS NOT ALLOWED","Title",JOptionPane.WARNING_MESSAGE); txtPatientId.setText(txtPatientId.getText().substring(0, txtPatientId.getText().length()-1)); } } else { …

Member Avatar
Member Avatar
+0 forum 5

hi, another question here. i'm a beginner at php and i need a php script to automatically retrieve data from a database and fill in a form. all the data is in the database and I already have a script to search and return the results. I just don't know how to generate a form that will be automatically filled from the search. I hope you can help!

Member Avatar
Member Avatar
+0 forum 1

I know this is a basic question. I asked the same question a while ago, even then thinking it was a simple question. The answer I got seemed to be what I already know and was obvious.. however, when I tried it, it did not work, so I just worked around it for a while... But now the same question is coming up, and this method is still not working... [CODE]<p>Name : <input type="text" id="theName" name="theName" value=""></p> <p><input type="button" name="btnGo" value="Go" onClick="goNow(document.getElementByID('theName').value)"></p>[/CODE] that is what I currently have, and for some reason it is not working... am I doing something …

Member Avatar
Member Avatar
+0 forum 10

I need to have a update button to update a edited textfield and save it to the database. I have created the button but have no idea on how to make it update the edited textfield and update the SQL database automatically. Pls help!!): This is my code: [CODE]private JButton getJButtonUpdate() { int centralize_width = (screenSize.width/2) - 150; if (jButton_Update == null) { jButton_Update = new JButton(); jButton_Update.setText("Update"); jButton_Update.setLocation(new Point(centralize_width, 300)); jButton_Update.setSize(new Dimension(150, 30)); jButton_Update.setHorizontalTextPosition(SwingConstants.CENTER); jButton_Update.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { System.out.println("Moving on to Existing Panel!"); if(Selected != null) { JPanel panel = new Case_Details(frame, Analyst_ID, Selected); frame.getContentPane().removeAll(); …

Member Avatar
Member Avatar
+0 forum 14

I am writing a Java program, a MP3 Manager, but I have problems to work with buttons, TextFields, and TextArea. Here are the problem descriptions. Create a class MP3 with instance variables for: artist, song, album, track length (in seconds). Provide a constructor, get/set methods, and a toString. method. The toString method should convert the track length into minutes and seconds. For example, 265 seconds would be displayed as 4:25. Create a class MP3Manager that extends JFrame with the following: a JPanel with a GridLayout that contains 4 labels, 4 textfields, and 4 buttons. This will be added to the …

Member Avatar
Member Avatar
+0 forum 35

hello all I have one textField and one textArea. How to move the cursor to the end of Text of TextArea when -cursor is in textField,and keyboard [Enter] pressed thank you denny

Member Avatar
Member Avatar
+0 forum 4

Hi! I am creating a desktop Java application using Netbeans. My task is to generate an array and than sort it (InsertSort, SelectSort, BubbleSort). My question is how do I show the value of all elements from generated array into the textfield? What i have tried to do is: [CODE] Random R = new Random(); String arrayLength = arrayLength_TF.getText(); String randomValue = randomValue_TF.getText(); int a = Integer.parseInt(arrayLength); int b = Integer.parseInt(randomValue); int []array = new int[a]; for (int i=0; i< array.length; i++){ array[i]= R.nextInt(b); } String generatedArray = array.toString(); generatedArray_TF.setText(generatedArray); [/CODE] Instead of getting the elements value i get value …

Member Avatar
Member Avatar
+0 forum 2

i m trying to update a table in my sql database using stored procedure. i have executed my stored procedure and dat works fine, no problem in that. i knwo because the values are updated when i execute it. however when i try to do so through asp.net code that i have created, it doesnt update in the table plus it doesnt show me any error, all it does is displays the previous values as it was. can someone tell me wat d error cud be. my code is given below: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Web; using …

Member Avatar
+0 forum 0

Hello Lovely People, Please have a look at my GUI first, before reading the rest (I've attached a picture, see at the end of my post). I'm having two problem with this GUI. 1) I don't want my Start button to be as long as it is. I want it to be about the half of if its current size and at the centre (as it is). how do I fix this? 2)As you can see, my text fields are quiet big as well. I would like to shorter both, in height and length (it should have enough room for …

Member Avatar
Member Avatar
+0 forum 4

I made a simple application that have a combobox which is loaded with database value and a textfield which should display text related to combo box selection. Name Number number1 1234 number2 2345 number2 5678 number3 2212 So combo box will have values number1, number2, number3. when user selects number1, i have to load textfield value with 1234 and if number2 is selected 2345,5678. Below is my code which retrieves from database ... but problem is the value is loaded only when i press enter key instead of clicking submit button... [CODE]<head> <title>Sample Numbers</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body …

Member Avatar
Member Avatar
+0 forum 2

Hi:)the problem im facing is that i created a control Textfield.Example :the user types in 75000 in the textfield and after he or she presses enter the List view appears. But i want them to hit a button so after hitting the button the list view appears?plz help

Member Avatar
Member Avatar
+0 forum 2

Let's say, user input on prompt is 1 so JavaScript will create one textfield. We'll test Assess() if its working. Type "1" on textField and click "Assess" button. No alert message appears. Please help. Thanks in advance. [CODE]<html> <head> <title>JavaScript</title> <style type="text/css"> font{ color:#663300; font-variant:small-caps; font-family:calibri; font-size:15; } </style> <script type="text/javascript"> var n = '\n'; var inp; do{ inp = prompt("Number of inputs to assess." + n + n + "Maximum of 10.");//asks user how many input will the program assess }while (inp > 10 || inp <=0); document.write("<form name=\"myForm\" action=\"\"><font>"); var txt1 = "<input type=\"text\" name=\"t>"; var txt2 = …

Member Avatar
Member Avatar
+0 forum 1

No idea if this could be done by just javascript but don't know where else to post it... I have a contact forum where i want the visitor to select if they're a member of not, if they select no, nothing happens but if they select yes a new text field pops up where they have to fill out their username. thing is, i've researched a lot and just cannot find out how to do it... Anybody know how to? \\ Vic

Member Avatar
Member Avatar
+0 forum 7

Hi all, i have a DOB input that I am trying to output to a textfield called "StarSign" The DOB works great, uploads to the database fine, What I would like to do is from the given DOB - Output the StarSign to a textfield called starsign. i have dob_y dob_m & dob_d - On selection of the dob_d I wish the correct starsign to automatically populate. I am working on creating the script for the starsign, but im not sure how to populate the textfield ?? Any help \ pointers on this would be great as a learning curve, …

Member Avatar
Member Avatar
+0 forum 4

This is a program for generating a state table for flip flop circuits. My problem is that the program does not get anything from the Textfield which gets the value for KAEquation, but for JAEquation, it works just fine. [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; /** * @author Jenielle Gabriel * */ public class FFGen extends JFrame{ private String FlipflopType = ""; private boolean isOneFlipflop = true; private boolean isInput = false; private boolean isOutput = false; String JAEquation = ""; String KAEquation = ""; String JBEquation = ""; String KBEquation = ""; String OutputEquation = ""; public void …

Member Avatar
Member Avatar
+0 forum 2

please guys... help me to connect a textfield on my mobile app to be connected in ms access... thanks alot :)

Member Avatar
+0 forum 0

The End.