|
in body tag , i am calling onBeforeUnload() = "abc();"
function abc()
{
if( confirm('ok'))
return true;
still it does not keep the window open , while i am clicking the cancel button.
}
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Hi anthor way of doing the things.....
<head><br />
<script type="text/javascript"><br />
function close()<br />
{<br />
return window.confirm("Click ok to close");<br />
}<br />
</script><br />
</head><br />
<body onbeforeunload="return close()"><br />
</body><br />
</html>
Regards,
Sandeep Kumar.V
|
|
|
|
|
even now, the moment , i click the cancel button, the window is vanishing.
please help.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
The window object already has a method named close , so that is not a good method name.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
I think you're missing the else part of that if, where it will return false if not ok...
|
|
|
|
|
Sonia Gupta wrote: in body tag , i am calling onBeforeUnload() = "abc();"
Attributes in an html tag doesn't have parentheses. Also, you have to return the value from the function call to the event:
onbeforeunload="return abc();"
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi here is the code..........
<html><br />
<head><br />
<script type="text/javascript"><br />
function close()<br />
{<br />
event.returnValue = "Any string value here forces a dialog box to appear before closing the window.";<br />
}<br />
</script><br />
</head><br />
<body onbeforeunload="close()"><br />
</body><br />
</html>
Regards,
Sandeep Kumar.V
|
|
|
|
|
Sandeep Kumar Vuppala wrote: function close()
(Not a good name, but I already mentioned that elsewhere in the thread.)
Sandeep Kumar Vuppala wrote: event.returnValue
The window.event object only exists in Internet Explorer.
Just return the value from the function:
function closingMessage() {
return "Any string value here forces a dialog box to appear before closing the window.";
}
Sandeep Kumar Vuppala wrote:
You have to pass the value returned from the function on to the event:
onbeforeunload="return closingMessage();"
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
hi i want to publish my windows .dll file in web but it gives security error,it wants to create sn assembly,GAC so how to create it to run in web any body know please tell me.
thanks in advance
kiran
kiran kharat
|
|
|
|
|
kiran kharat wrote: windows .dll file in web
How windows dll can be used in web ?
kiran kharat wrote: it wants to create sn assembly,GAC so how to create it
Signing assembly with strong name[^]
|
|
|
|
|
hello all
i'm using report viewer and i need to show data. the report viewer uses some object to get data. i declared the fields i need to use in the report, editing them by hand. if i use textboxes imbedded in list or tables then everything looks ok. but if i try to put a texbox in a rectangle then i cannot choose any field from any dataset. if a copy a textbox with an expression in it and put it in a rectangle then the textbox shows "#error".
what must i do to be able to use datasets for the controls in a rectangle? what is the purpose of rectangle if i cannot link it to data?
|
|
|
|
|
What error it shows?
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
i already told you. it shows "#error", no other details. i observed one thing. i noted that i could not see any field to use with controls embedded in a rectangle. that might be because the rectangle cannot have any dataset. if for example you add a rectangle and then add a list in it, set a dataset for the list then the controls in the list cand select fields. it's a bit strange but at least it works this way.
it can be easily seen that the reportviewer is version 1 and there can be done a lot to improve it, but hey it's better than nothing!
|
|
|
|
|
on the form closing event , i am invoking the cofirmation button , which is having two buttons named ok and cancel.now my question is , the moment i click the cancel button is happens nothing , and while i click the ok button , at that time , can i delete a particular record from the database
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: can i delete a particular record from the database
Yes.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
if u can please provide the code.
thanks .
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
I cannot do your work Tell your problem in your code so that we can correct it and help you to solve your problem.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
The basic problem is , i am not being able to place , how i should delete the particular record from the database , when i click ok on the confirmation button.if u please provide the code?
Thank You
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
if you call javascript on button click event then put code on button event.
|
|
|
|
|
it is the window closing button, not the button control.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
Sonia Gupta wrote: if u can please provide the code.
thanks .
Hey it's Satips. it have some limitations. He would be glad to provide link than code
|
|
|
|
|
Cool Navaneeth.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Navaneeth please provide any code or link .It is very urgent.
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|
|
We cannot provide code for this it is very simple.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
then give the code and prove it......Come on sir(Satips)SSK
Soniagupta1@yahoo.co.in
Yahoo Messenger Id = soniagupta1
|
|
|
|