Gaurav Goyal

Greenhorn
+ Follow
since Apr 25, 2006
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 Gaurav Goyal

For the foll prepared stmt

ps=Connection.prepareStatement(select * from EMPLOYEE
where emp_name IN ? );

Suppose i have 3 names to find "black", "brown" and "green"

what shd I pass to setString method

ps.setString(1,_______);
Can any one tell me about the onbeforeclose event in javascript.
I could not find much helpful stuff on the net regarding this.
Thanks in advance

Following are my queries :

1. Does this event exist in javascript ?
Pls Proceed only if ans for 1 is yes
2. When is it exactly called ? Is it on the click of close(x) button of the window or is it something similar to onunload event
3. How can I use it ? I am asking this because I tried several ways like putting it in the HEAD section etc but it didnt work. As per the info what I have gathered till now this works only with IE. I am using IE but was not able to make it work
The iframe will not help with that. This really is a job for user training if it is in in house application and session end on the server.

Eric
[ August 18, 2006: Message edited by: Eric Pascarello ]
Thanks Debashree this works & solves my purpose. But wanted to know the purpose of || w.resizeTo ( 300, 200 ); || here, as its presence or absence or a diff set of arguments is not affecting the output. Pls correct me if I am wrong, I guess it is not working as we have already set the resizable property of window as 'no'.
My purpose is solved but would be thankful if someone can tell about the specific event which is called on the click of close(cross)(X) button.
Alright. So is there any particular event which specifically gets called only when the close(cross)(X) button is clicked.
The onUnload event gets called on the click of this button but is also called when the form is submitted(rather than a solution this becomes a problem).
I am opening a window using window.open. I want to disable the close(cross)(X) button which appears on the right hand top corner of the window.
I tried
window.open(popurl,"","width=1000,height=700,titlebar=0,top=5,left=5,screenX=100,screenY=100");
and
window.open(popurl,"","width=1000,height=700,titlebar='NO',top=5,left=5,screenX=100,screenY=100");
but none works as desired.
In the specs at w3schools.com I found

===========================================================================
titlebar = yes | no | 1 | 0
whether to display the title bar. Ignored unless the calling application is an HTML Application or a trusted dialog box. Default is yes
===========================================================================

I am calling this from a JSP of the same application.
Please help. Thanks in Advance.