have you tested your code(after adding sqljdbc.jar to your project build path)?
and let me know the status
have you tested your code(after adding sqljdbc.jar to your project build path)?
and let me know the status
hai joseph.lyons,
you need to take the input value for pub name to search from either of the one mechanism
by using this way-1
String pubName = JOptionPane.showInputDialog("Please Enter the pubs name you wish to search.");
// this mechanism expects value for pubname from its input box
or using this way-2
String pubName = sc.next(); // this mechanism expects input value for pub name from the command prompt
i think this might be the one reason:
when you came after the vale given into the JoptionPane.ShowInputDialog() method your programs is waiting for the user input which takes from command prompt until you enter the value (i mean this sc.next() makes your program like that)
but you did not do that i think.
thats the reason your program was stopped there without executing the remaining statements
please use one of the above ways for getting input from the user
and make changes to your program accordingly the ways what i described above
i think you will get my point
let me know if you have any doubts in my calrification as well as the status after the modification of your program
any comments are appreciated
[modified]
could you please mark this thread as solved if you got your answer
thanks
hai Shania_01,
you can also connect ms access database by creating Data Source Name For your access file otherwise you need to add ms access connector related jar file to your application as stultuske said
you may try the following urls, it helps you a lot
http://www.hossainkhan.info/content/using-ms-access-java-through-jdbc-odbc-connection
this URL is for different ways of connecting ms access database from java application
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2691&lngWId=2
hai silvercats,
instead of onblur() use onkeyup() or onkeypress() for this requirement
check it once by adding any of the actions to the feild
let me know the status
happy coding
hai Naruse,
the following URL may helps you
let me know the status
happy coding
hai darylglenng and to all,
along with the modifications which are specified in above posts
please also do the following things:
2.at line no 39 and 44 you missed the '(' for if condition
it should be like
if(course.value =="")
{
// your code
}
if(year.value =="")
{
// your code
}
and also you stylesheet code would be like as follows
<style type="text/css">
.style1{
font-family: Arial, Helvetica, sans-serif;
color: #00000000;
}
</style>
your form tag should be like as
<form action="" method="POST" name="TheForm" class="style1" onsubmit="JavaScript: return(validate());">
check it once by changing the code as desribed above
let me know the status
happy coding
[Modified]
hai turpentyne,
i am getting confusion about your requirement
can you clearly explain me about the requirement?
If I clicked 'name_2', (this), i need to set a variable from 'name_b', within it
so that i will try to give a way to solution
happy coding
hai shipley,
mysql update query not working
what does it mean (how can we understand by posting a problem like that) ?
colud you please explain me clearly whats the problem you got?
hai kert,
in the given url (a new problem),
i have seen nothing in test.js except alert('your book is overdue') but you are asking something related to that test.js related code.
could please explain me clearly about the problem or Show me an image of that problem?
so that we will try to give you a way to solution
happy coding
hai milkman93
as somjit{} said along with that, you may use static block concept for your requirement like as follows
class SampleTest
{
static{
ArrayList<String> arr = new ArrayList<String>()
arr.add("A");
arr.add("B");
// code for printing these array list values values
}
}
and these static blocks are executed while class is loading without creating object
let me know if you have any dioubts in my clarification
hai jmw5598,
i am not much aware of Connector J but
i forgot to tell one more thing
you need to add/copy/include the mysql related jar file to your project libraries that jar file you can find in your database installation folder
i mean YOUR_DB_instalation_folder/lib/ (please check there you can find it there)
please try to do like that
and let me know the status
haooy coding
hai chdboy,
please do as follows
Right click on Your Project
->then click on BuildPath
-> then go to Libraries
->then click on Addexternaljar
and then click ok
thats it
hai chdboy,
please add/include sqljdbc.jar file to your project build path
check it once after adding the jar file to your project
let me know the status
hai jmw5598,
i think you have not loaded the mysql related driver in order to provide communication between your application and databse
for this , add this line before at line 20 in your ConnectionManager class
Class.forName("com.mysql.jdbc.Driver");
then everything goes fine
please refer this url it explains everything
http://www.vogella.com/articles/MySQLJava/article.html
check it once and let me know
please mark this thread as solved if you got your answer
hai subratbehera,
i think you need to store inwardBean in any of the scope(like request or session) in PagingCIFAction
before forwarding the request to display the values of it.
so that the values will be available for the page where you want to display
try to place this line at line 10 in PagingCIFAction
request.setAttribute("inwardBean",bean); // like this
check it once and let me know
in addtion to the above post:
try to do as follows
place this call $("#candidatetable").tablesorter(); inside the bellow function in your script code
$("#showTable").click(function(event){
// your code here
$("#candidatetable").tablesorter();
}
check it once and let me know the status
any comments are appreciated
hai Kert
what i guessed is
in your dynamic version page, you have to call the bellow method
$("#candidatetable").tablesorter();
the time after loading the results in table, not on the page load (what i mean is while loading the page there is no content in the table)
i think you got the point
check it once and let me know if you have any doubts in my clarification
happy coding
hai Lamirp
your code works fine for the first time.
when you call that method makeCheckBox(Jobs object) for second time it throws an error to you
because you are creating the Jcheckbox with the same reference of the Jcheckbox what you created for first time
so i think you need to change your code
let me know am i correct or not
happy coding
hai gyno,
you dont have to download any plugins seperately for activating those two servers.
those will be installed with netbeans installation process but you need to select those servers at the time installation process starts........
netbeans installer will take care of installing these 2 servers in your system
come to the point for activating servers:
it depend on the application what you want to create.
for example if you want to create java web application
while creating a new web application it will ask for server type apache tomcat or glassfih
then while runnning the application the underlying server will be activated
let me know if you have any doubts in my clarification
please go through the following url: it explains everything what i said above
http://netbeans.org/kb/docs/web/mysql-webapp.html
thats it,
[modified]
hai Yarra,
could you tell me how you initialize the values for these bgReady,heroReady,monsterReady variables in your script?
based on the values of these variables you could not run the render() method directly i think (what i mean is if the values of all these variables are 'false' then the function not works)
and also you have forgotten to give the code relating to these variables
it will be easy for us if we look at that code (post that code also)
happy coding
i saw just you missed the echo keyword for displaying the value
but you got it
thats great you found it yourself
please mark it solved if you got correct answer
thnx
please mark this solved if you got your answer
thnx
hai,
java.sql.Time or java.sql.Date both are perfect(as of my knowledge)
but in this case you go for java.sql.Time
try like this
java.sql.Time t = rs.getTime();
SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss");
sdf.format(t) // return string
check it once
note : pls post output too incase if you haven't got the output as you expected
[modified]
yeah Neha290791,
if the data type is of date or datetime type
try to do as follows
first get the column value
your_date = rs.getDate("open_time");
then use SimpleDateFormat class to display the time as you like (as follows)
SimpleDateFormat formatter = new SimpleDateFormat("your_format_here");
formatter.format(your_date); // returns string then display it whareever you want
check it once and let me know the status
happy coding
@Neha290791,
could you post structure of the table?
but you are talking about time column and you are displaying/getting that data by using rs.getString() instead of using rs.getDate()
so i need data type of open_time column of your table.
[modified]
hai BoDuke1835
i think you are operation form is not like this
if (BMI = > 18.5 && BMI < 24.9)
i guess its like this
if (BMI >= 18.5 && BMI < 24.9)
try to change it as above
check it once
let me know the status
hai Neha290791,
could you post the code how you get the date data from database?
so that we try to give a way to solution
you may use shortcut.js as pritaeas said
the following url gives the full description about handling combination/short cut of keys using java script
http://www.openjs.com/scripts/events/keyboard_shortcuts/
but its java script library
i dont know whether it is your exact solution or not
let me know if you have doubts
hai riahc3,
i think this code will help you (this code can handle the Alt + k combination key event)
<script language="JavaScript" type="text/javascript">
var isAltPressed = false;
document.onkeyup=function(e){
if(e.which == 18)
isAltPressed=false;
}
document.onkeydown=function(e){
if(e.which == 18) isAltPressed=true;
if(e.which == 75 && isAltPressed == true) {
alert(" Alt + k is pressed" ); // or do whatever you wnat
//return false; // incase if you click predefined shot cut key combination
}
}
</script>
let me know if you have any doubts
happy coding
hai toldav,
yeah thats exactly correct what JamesCherrill said,
in simple words(as of my knowledge),
Note 1:
if the instantiation of a class is necessary,then its better to make the methods of that class as instance methods only.
Note 2:
if the instantiation of a class is not necessary then its better to make the methods of that class as static methods only
reason is same as described by JamesCherrill
my apologies for my poor written skills
i hope that you got the point.
happy coding.
any comments are appreciated...........................
i think it may be $clientcom reference
try to use that reference in mysql_query($query,$clientcom) function
because in your first post you called GetMarks() method by using client connection
getmark.php
<?php
//import connection file and appropriate php file
$con=new server();
$client1=new client();
$con->connect();
$x=$client1->GetMarks();
?>
so thats the reason you have to pass $clientcom reference
check it once and let me know the status
happy coding
hai solomon_13000,
this is just suggestion only :
i think that might be problem with your class couldn't find the path what you specified for ImageIcon class Objects
so try to change the creation of ImageIcon class Object like as follows at line no 11 and 12 in your code
ImageIcon ONE = new ImageIcon(getClass().getResource("/IFDesign/images/green.jpg"));
check it once and also do same for the remaining image icons creation code
let me know the status
happy coding
i think you need to pass connection reference to mysql_query() function as follows
$query=mysql_query("SELECT users.name, marks.MarksHighest FROM marks,users WHERE marks.name=users.name ORDER BY MarksHighest ASC",**$your_conn_reference_here**);
check it once
let me know the status
what i mean is your php page also (paste the php page code here)
because we will check whether you are calling the html input element values in javascript properly ot not
hai afidah,
could you post your code here?
so that it will be easy for us to give a solution
we know you got stuck at java script
yeah you are right
hai techyworld,
if you dont have any parameter then remove the entry from the $ajax() request like as folows
$.ajax( // this is also valid ajax call
{
url:"marks.php",
type:"POST",
dataType: "json",
success:function(data){
//do something.
}
};
passsing data to the resource is not compulsarily in ajax concept (based on your requirement you need to pass those data values to the particular resource)
go through the following url it will explains different modes of $ajax() calls
http://api.jquery.com/jQuery.ajax/
let me know if you have any doubts in my clarification
happy coding
hai waqar100,
as of my knowledge AJAX is concept where you want to provide synchronous/asynchronous communication between two pages with out submit the page dynamically.
we can use this concept in jquery as well as in java script because these two are scripting languages
but i dont know exactly what does it mean 'jquery in place of AJAX'
lets see, what will say our experts here?
hai toldav,
can you post the details of LinearEquation class once here? (if you have no problem)
so that we try to give a way of solution
as harinath_2007 said
you have to call doSet(ApplicationForm myApplicationForm) method before calling connectMeToDatabase(ApplicationForm myApplicationForm) method
at where you are calling these methods
at line 8 you have declared but not instantiated yet
try to call doset() method before calling connectMeToDatabase() method
let me know if you have any doubts in my clarification
thats it
happy coding
hai rouse
i am confused about one thing as shown bellow
In the display the two <div>s are stacked vertically which is one of the problems
could you explain me clearly about the requirement?
and in the second thing,
you have seen some red marks right
its border style which applied by css class for your two divs called pictureBoxRight,pictureBoxleft
go in your css and find for the classes of both divs (bellow is what you are given in your css):
pictureBoxRight {
display: block;
width: 500px;
height: 475px;
border: 1px solid red; // this css property makes that red borders around divs on your page
padding: 0.2em;
float: right;
}
pictureBoxLeft {
display: block;
width: 450px;
height: 475px;
border: 1px solid red; // this css property makes that red borders around divs on your page
padding: 0.2em;
float: left;
}
if you want to change that then try to change the border property as follows
border: 1px solid red(or) blue (or) black; // whatever color you want here
(or)
border:none; // set this, if want no borders around divs
let me know the status
happy coding
**any comments are appreciated on my clarification **
hai Tewhano
have you included the scripts which is relating to getting datetime and get-map() methods in the above post while running the page?
i mean your final script would be like as follows
<script type="text/javascript">
var timeStr = showDateTime();
var mapNum = get-map();
document.getElementById("sky").src= "sky' + mapNum + '.jpg";
document.getElementById("datetime").inneHTML= timeStr;
</script>
please check it once
let me know the status
hai Tewhano
instead of this in your code
<div id="maps">
<!-- <img id="sky" src="sky0.jpg" alt="" /> original code to be replaced by the script -->
<script type="text/javascript"
document.write('<img id="sky" src="sky' + mapNum + '.jpg" alt=" " />');
</script>
<img id="mask" src="mask.gif" alt="" />
<div id="datetime">
<script type="text/javascript">
document.write(timeStr);
</script>
</div>
</div>
try to replace code (like this)
<div id="maps">
<img id="sky" src="sky0.jpg" alt="" /> <!-- this is justsetting for intial image to display -->
<img id="mask" src="mask.gif" alt="" />
<div id="datetime">
// date time content is to display here
</div>
</div>
<script type="text/javascript">
document.getElementById("sky").src= "sky' + mapNum + '.jpg";
document.getElementById("datetime").inneHTML= timeStr;
</script>
check this let me know the status
and also let me know why you are used <img id="mask" src="mask.gif" alt="" /> this image ?
happy coding
hai chandub,
this is not correct place to ask questions like above
this is related javascript/DHTML/Ajax forum only
but your question is related JAVA forum
pls redirect your requirement post in JAVA forum of daniweb
you may get help from there
happy coding
hai MICHAEL,
go through the following URL
http://www.daniweb.com/software-development/java/threads/449703/randomnumber-without-duplicate
read the bguild post there (i feel thats the great solution for this kind of requirement and make that logic as you needed)
it may helps you for requirement (Random Numbers without duplicates)
happy coding
my apologies to all of you for giving this kind of response for the above requirement
hai MICHAEL,
colud you explain me clearly what you are going to do
whether you want 5 random numbers between 0 to 78 or something else
can you make me clear on this requirement
so that we are here to help you
happy coding
please go through the following URL it may helps you for this requirement
http://www.oraclenerd.com/2011/09/drop-database.html
happy coding