Help coderanch get a
new server
by contributing to the fundraiser

Ramesh Pappala

Ranch Hand
+ Follow
since Sep 14, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ramesh Pappala

Hi,

It is displaying the sub pop-up window on back of the main pop-up window. I kept java script code to set the focus on sub pop-up window when it is opened, eventhough it is displaying it on top of the parent window.

Thank you.
Hi,

When I open a pop-up window from a pop-up window it is going back of that main pop-up window. I used javascript to set the focus on the child pop-up window, even though it is being displayed on back of the parent pop-up window. It is working fine on my system (Vista, IE7), but when I tried to run the same one on user system (XP, IE7) it is not working. Can anyone tell me how to overcome this issue.

Thaks.
Hi,

Is it possible to open a Folder selection dialog box through java script. If possible tell me how can I do that.

Thanks.
Hi,

Is there any JSF UI component exists to show a Folder Chooser dialog window on client side and after selecting the folder it has to write a file in the selected client location.

I will explain in detail:
1) Onclick of a button it has to open a Folder Chooser dialog box on
client side.
2) After selecting the folder it has to run the code on server side and
then it has to write the file on the specified client location.

I don't know whether it is possible as I required. If possible can
anyone tell me in what way we can do this. Please tell me if there is
any other alternative also.

Thank You.
16 years ago
JSF
Thanks for your reply. But the problem is, I am using a template for the page. So, I included onkeyPress event on the body tag of the template. It will be difficult for me to change that function, because all the pages will use the same template. So as you said I think the second option is good. Can you explain or send me a code to do the second solution what you have told.
Hi,

I am disabling the Enter key event on page load and I want to enable it only on focus of a text area. Is it possible to do that or not. If it is possible, can anyone tell me how it can be done.

These are steps I followed to disable the Enter key.
In the body tag I am calling a function onkeypress and there I am
checking the key and returning false if it is an Enter key code.

Thank you.
Hi,

I have a datatable with scroll bar on 'A' screen and when I go to 'B' screen and come back to 'A' screen again the data table reloads and showing the table from the first record onwards instead of showing the selected n th record by holding the scroll bar state.

Is there any way to scroll the scroll bar of a data table to the particular record either by backend logic or by java script.

I used h:PanelGroup to the data table for scroll bar.
16 years ago
JSF
Yes Bibeault, if I can get solution in applet forum please move this to applet forum.

Thank you.
17 years ago
Hi Bear Bibeault, Thanks for your reply.
If you have any sample code could you post it.
17 years ago
Hi Eric, Thanks for your reply.

But I don't want to open the file on client side, I want to give the server side generated PDf file to the client side printer directly. That means for me the file will be created and placed on server side and I want to send that file to the printer that was configured on client side without opening the file.
17 years ago
Hi,

I have a PDF file on server side and I want that to be printed on client side, is there any way to print the file which exists on server to client side. Is it possible with javascript. If anyone knows could you help me regarding this.

Thank You.
17 years ago
Hi,

I am developing an application using JSF Framework. Is there any problem with creating the servlets more than one.

Is there any chance to face performance issues in RealTime if creates more number of servlets.
17 years ago
Hi Saif,

I am using the data base SQL Server 2000, we can know that by seeing the class name given in the statement Class.forName(".....");

Coming to my code I placed the above mentioned code in try block and I kept catch and finally also. I think pasting all the code is not good, that's why I didn't copied the complete program.

So, every thing is fine in my code but I am getting that exception. Could you know the reason why it is giving that exception.

The below one is the complete code :

import java.sql.*;

class ThinDriversForSqlServer
{
public static void main(String[] args)
{
Connection con=null;
CallableStatement stmt = null;
ResultSet rs=null;
try
{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con=DriverManager.getConnection("jdbc:microsoft:sqlserver://serverName:1433;SelectMethod=cursor;DatabaseName=databasename","username","password");
stmt = con.prepareCall("{call deleteDeliveryTicketDetails(?)");
stmt.setInt(1,15839401);
boolean result = stmt.execute();
System.out.println("Delete Delivery Ticket Status................. : "+result);
}
catch(Exception e)
{
e.printStackTrace();
}
finally
{
try
{
rs.close();
stmt.close();
con.close();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
}
Hi,

I am trying to call a procedure through JDBC programming.

This is the code I wrote :

Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con=DriverManager.getConnection
("jdbc:microsoft:sqlserver://ServerName:1433;SelectMethod=cursor;DatabaseName=databasename","username","password");
stmt = con.prepareCall("{call procedurename(?)");
stmt.setInt(1,15839401);
boolean result = stmt.execute();

But I am getting the following exception :

java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(Unknown Source)
at com.microsoft.jdbc.base.BaseSQLStringGenerator.generateSQL(Unknown Source)
at com.microsoft.jdbc.base.BaseSQL.getVerb(Unknown Source)
at com.microsoft.jdbc.base.BaseSQL.resultType(Unknown Source)
at com.microsoft.jdbc.base.BaseSQL.processSQL(Unknown Source)
at com.microsoft.jdbc.base.BaseSQL.<init>(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.preProcessSQL(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.<init>(Unknown Source)
at com.microsoft.jdbc.base.BaseCallableStatement.<init>(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.prepareCall(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.prepareCall(Unknown Source)
at ThinDriversForSqlServer.main(ThinDriversForSqlServer.java:16)
java.lang.NullPointerException
at ThinDriversForSqlServer.main(ThinDriversForSqlServer.java:35)


Can anyone tell what the problem was.
Hi,

Can any one send the javascript code to find the X,Y co-ordinates and
the height,width of a component in a page.

Ex: I want to send the object name to the function which can find the co-
ordinates and height,width of the component(ex: textfield).

Please urgent!