|
function unloadfun()
{
if (window.event.clientX < 0 && window.event.clientY < 0)
{
alert("in");
}
}
call this method in
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Hi Friend
i think calling javascript from unload function will have no meaning as you can't do anything as the page is unload event use onbeforeunload event there you have chance
Check this code i just tried and it working fine
function SomeFunctoin()
{
here i am checking 2 conditions
if(window.event.clientX > 500 && window.event.clientY < 0 || window.event.clientX > 1000 && window.event.clientY < 0)
{
var bool = confirm("Do you really want to close this window ");
if(bool)
{
// do the things that you want to do if user want to close the window
return true;
}
else
{
// do the things that when user don't want to close he window
return false;
}
}
call this function from
lt body onbeforeunload="return SomeFunctoin()"gt
-- modified at 4:41 Wednesday 20th June, 2007
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
hi Sandeep ,
i tried your code.its working finw for the if loop.
i.e
if(bool)
{
// do the things that you want to do if user want to close the window
return true;
}
but its not working fine for else part.
what i need to do is when they click cancel button in the confirm message box, i need to be in the same page.but the code closes the window for cancel option also.
give me the solution.
thanks
Regards
Senthilraj
|
|
|
|
|
hi all,
i implemented the concept.
we raised the issue to client and we changed the way of implementing it
thanks
|
|
|
|
|
A tracking device is sending data (in querystring format, suppose three parameters, p1, p2 & p3) to my server. How can read these data in ASP.NET?
|
|
|
|
|
Request.QueryString["p1"]
Request.QueryString["p2"]
Request.QueryString["p3"]
|
|
|
|
|
Thanks
I would like to mention u that the device is sending data to my IP/Server like
http://202.34.43.23/mydata.aspx?p1=p1data&p2=p2data&p3=p3data
202.34.43.23 is my server ip where mydata.aspx is hosted
and the device is on different network.
Will ur answer work in the above scenario?
|
|
|
|
|
M Irshad Qureshi wrote: Will ur answer work in the above scenario?
Yes, It will work.
|
|
|
|
|
Hi all,
I want to display a slide show with next prev button and below the control i want to display the image number ie eg ( Image 1 of 10)
Ramesh
|
|
|
|
|
I presume that images are stored in server. On the page loading count the number of images on the particular directory from server side and assign the number in one public variable. Now assign this variable value to a javascript variable to display the image number. Change image controls src using javascript when button is clicked.
|
|
|
|
|
hi,
Thanks for quick replay.
but i am using slideshowextender control from ajax toolkit. in that no proivsion to display the slide number(1 of 10).
is there any solution.
Ramesh
|
|
|
|
|
I think for this no need to use that control, you can do this with a simple picture control without ajax support
|
|
|
|
|
Thanks for replay,
i am not able to find picture control.
can you please provide some details.
i want to rotate the images with auto play functionality for every 3 secs with page numbers(1 of 10).
so i am using SlideShowExtender for showing slideshow images with some message .
when it is in play mode or when i click the next button or previous pubutton.
i want to show the current image number(1 of 10). is there any provision given in this control.
any help.
Thanks
P.Venkata Ramesh.
Ramesh
-- modified at 3:27 Wednesday 20th June, 2007
Ramesh
|
|
|
|
|
how to store cookie object in encrypted form and decrypt cookie object get back
|
|
|
|
|
Cryptography classes.
Hope this [^] will help you.
Regards,
Satips.
|
|
|
|
|
Friends a have written a sample code using AJAX concepts in a project. I used Script Manager,Update Panel. That project is working fine. But my problem is when the same code is used in another project entire page is being postbacked to the server i.e., that code is not working fine. Please tell me what might be the problem.
Thank you
|
|
|
|
|
What code you have written for that ?
We can tell without knowing it?
Regards,
Satips.
|
|
|
|
|
Hi,
that is ok u r using script manager and update panel,,,,, first check in another application which is not working .. script manager place shoul be top and 2 thing is that this appliction is ajex enable website or not..if not solve then post the error..
Amit Soam
Software Engineer
|
|
|
|
|
Hello to EveryOne,
In panel we need to move objects using enter key or space key..
Is ther any way to place the object just by using mouse
Thank You..
|
|
|
|
|
Hello to everyone,
i'm using two logins in my form, one for administrator and other for user.
I have used two panel each for administrator and user logins...
i want that when i click administrator login then user login should be disabled or when i click user login then administrator login should be disabled....
suggest me how can this be possible...
Thank You
|
|
|
|
|
Hemant Garg wrote: i'm using two logins in my form, one for administrator and other for user.
Why don't you use same login form and differentiate administrator and user with a customer type value stored in your DB ?
|
|
|
|
|
hi, i am building an application in which i have to send a mail when a field in a row of a sql table changes..
I am new to asp.net please help & provide full & sufficient answer
hiiiiii
|
|
|
|
|
hkchauhan wrote: i have to send a mail when a field in a row of a sql table changes..
what?
Regards,
Satips.
|
|
|
|
|
i mean that i have to send a mail to a user immediately when he register with our site . when he register a value in a sql table row changes from 0 to 1.
Thanks for your interest.....
hiiiiii
|
|
|
|
|
Go with SMTP. ie., System.Web.Mail namespace
SMTP[^] this will help you.
Regards,
Satips.
|
|
|
|