|
You might want to try jQuery's unload:
$(window).unload(function()
{
});
Cheers,
Edo
It is a paradox that paradoxes would actually exist in reality.
That means of course that they don't exist.
However, they do!
∫(Edo )dx = Tzumer
∑k( this.Kid) k = this. ♥
|
|
|
|
|
Thanks Edo For your rply,
But i have used window.close in several places in my product so need to override window.close.
|
|
|
|
|
You are most welcome, did it work?
It is a paradox that paradoxes would actually exist in reality.
That means of course that they don't exist.
However, they do!
∫(Edo )dx = Tzumer
∑k( this.Kid) k = this. ♥
|
|
|
|
|
It works but i want to close the window by overriding window.close. Please suggest anything else.
Thanks
|
|
|
|
|
Only one way
function close is a pre-defined property of window object.
Please use event bubbling of close() and window. Insert a new funktion that recives this event what you want (event handler).
Prototyping of a function ... try it.
events of window (IE)
Event Description
onactivate Fires when the object is set as the active element.
onafterprint Fires on the object immediately after its associated document prints or previews for printing.
onbeforedeactivate Fires immediately before the activeElement is changed from the current object to another object in the parent document.
onbeforeprint Fires on the object before its associated document prints or previews for printing.
onbeforeunload Fires prior to a page being unloaded.
onblur Fires when the object loses the input focus.
oncontrolselect Fires when the user is about to make a control selection of the object.
ondeactivate Fires when the activeElement is changed from the current object to another object in the parent document.
onerror Fires when an error occurs during object loading.
onfocus Fires when the object receives focus.
onhelp Fires when the user presses the F1 key while the browser is the active window.
onload Fires immediately after the browser loads the object.
onmove Fires when the object moves.
onmoveend Fires when the object stops moving.
onmovestart Fires when the object starts to move.
onresize Fires when the size of the object is about to change.
onresizeend Fires when the user finishes changing the dimensions of the object in a control selection.
onresizestart Fires when the user begins to change the dimensions of the object in a control selection.
onscroll Fires when the user repositions the scroll box in the scroll bar on the object.
onunload Fires immediately before the object is unloaded.
methods of window (IE)
Method Description
alert Displays a dialog box containing an application-defined message.
attachEvent Binds the specified function to an event, so that the function gets called whenever the event fires on the object.
blur Causes the element to lose focus and fires the onblur event.
clearInterval Cancels the interval previously started using the setInterval method.
clearTimeout Cancels a time-out that was set with the setTimeout method.
close Closes the current browser window or HTML Application (HTA).
confirm Displays a confirmation dialog box that contains an optional message as well as OK and Cancel buttons.
createPopup Creates a popup window.
detachEvent Unbinds the specified function from the event, so that the function stops receiving notifications when the event fires.
execScript Executes the specified script in the provided language.
focus Causes the element to receive the focus and executes the code specified by the onfocus event.
moveBy Moves the screen position of the window by the specified x and y offset values.
moveTo Moves the screen position of the upper-left corner of the window to the specified x and y position.
navigate Loads the specified URL to the current window.
open Opens a new window and loads the document specified by a given URL.
print Prints the document associated with the window.
prompt Displays a dialog box that prompts the user with a message and an input field.
resizeBy Changes the current size of the window by the specified x- and y-offset.
resizeTo Sets the size of the window to the specified width and height values.
scroll Causes the window to scroll to the specified x- and y-offset at the upper-left corner of the window.
scrollBy Causes the window to scroll relative to the current scrolled position by the specified x- and y-pixel offset.
scrollTo Scrolls the window to the specified x- and y-offset.
setActive Sets the object as active without setting focus to the object.
setInterval Evaluates an expression each time a specified number of milliseconds has elapsed.
setTimeout Evaluates an expression after a specified number of milliseconds has elapsed.
showHelp Displays a Help file. This method can be used with Microsoft HTML Help.
showModalDialog Creates a modal dialog box that displays the specified HTML document.
showModelessDialog Creates a modeless dialog box that displays the specified HTML document.
|
|
|
|
|
Thanks twseitex . i ll try n let u knw .
|
|
|
|
|
please, if possible can you give the example.
|
|
|
|
|
Hello,
I tried to apply this code here
http://www.appelsiini.net/projects/lazyload[^]
But the picture does not appeare, I do not know what is the problem
this is my code here
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="jquery.js" type="text/javascript"></script>
<script>$("img.lazy").lazyload();</script>
<script src="jquery.lazyload.js" type="text/javascript"></script>
<title>Your Website</title>
</head>
<body>
<img class="lazy" data-original="../img/66_Rafael20%Ginatulin20%-white20%GREEN20%LIFE20%001.jpg" src="mg/grey.gif" width="640" height="480" alt="No-Image">
</body>
</html>
Can any one give me some help please!
|
|
|
|
|
I try your code. It doesn't work. but below code works fine. Hoping it will help you.
$(function() {
$("img.lazy").lazyload();
});
|
|
|
|
|
Thank you, I had to put the script before the end tag of body. It does not work in the head.
modified 13-Aug-13 7:07am.
|
|
|
|
|
check your image path first is that one ok?
|
|
|
|
|
hi,
how can i start project on voip using java?
|
|
|
|
|
Start by understanding that Java != Javascript.
Use the best guess
|
|
|
|
|
|
hi,
i have a jquery horizontal accordition menu with code something like this
// Hide the old content
old.slideToggle(500);
// Show the new content
cur.stop().slideToggle(500);
But when the slideToggle function executes and shows new content, the page jumps to top.
how to solve this problem?
when i have searched in google i have found that it is problem with css height:auto etc, but i have not found a solution.
thanks
|
|
|
|
|
I guess you would have used anchors <a href="#">Link</a> in accordions to open the panel. This is making your page to jump to top. The solution can be in different ways. You can write like
<a href="javascript:void(0)">Link</a>
Or, you can remove the href and keep the <a> only, but in this case you need to set different styles which are default to anchor tags explicitely.
Or, you can use event.preventDefault() inside the handler for that link.
I hope I am making a right guess.
Thanks
|
|
|
|
|
correct solution to this problem
thanks
|
|
|
|
|
add
return false;
at last of your javascript function you don't provide much more detail but this could solve your problem
also add id of element instead
cur.stop().slideToggle(500);
use
cur.stop().slideToggle("id");
|
|
|
|
|
I have an html form that has a group of checkboxes that I need to have narrate, in an html textbox, the values of the checkboxes checked and in the order they were checked.
Currently the output to the html textbox with id=dxbox is the order in which the checkboxes are written in the html code and not the order in which they are checked.
I greatly appreciate anyone's help with this.
function gendx()
{
document.getElementById('dxbox').value = ''
var diag = document.getElementsByName('dxcb[]')
var dxselected = new Array()
var dxordernum = 0
for (i=0; i<diag.length; i++)
{
if (diag[i].type == 'checkbox' && diag[i].checked == true)
{
dxordernum = dxordernum + 1
dxcount = dxselected.push(dxordernum+': '+diag[i].value+' ')
dxout = dxselected.toString()
document.getElementById('dxbox').value = dxout
document.getElementById('dxmain').style.display = 'block'
}
}
}
modified 2-Aug-13 17:36pm.
|
|
|
|
|
Hi,
I want to get rid of the "X" button of the dialog box.
Please refer my code example and help me with the needful changes.
Thanks.
this is my code example :
<form data-dojo-type="dijit/form/Form" data-dojo-id="myForm1">
Application cannot be processed contact help desk.
<button data-dojo-type="dijit/form/Button" type="submit">OK</button>
</form>
modified 31-Jul-13 2:36am.
|
|
|
|
|
hi i have problem selecting the numbers that is not in the single/double qoutes . let say we have this text below .
123
/* you can count this 5454 */
<style color="#767676">
8787
i want to select just the 123 and 8787 , nothing else
how should i do this with regular expression in javascript
|
|
|
|
|
read out property .color
may be no standadrd value exists.
put <style color='#424242'>
123
into container like a DIV and use property .innertext or .innerHTML of DIV
|
|
|
|
|
hi
I would like to have the authority to send my information via $.ajax() when (at the time) I click the update button
How can I handle the update button click event kendogrid?
http://jsfiddle.net/psot98/Dyb9Y/18/embedded/result/
I wrote this code but does not work:
<pre lang="Javascript">
$(".table").on("click", "k-grid-update", (function () {
alert('xxx');
}));
thank you
|
|
|
|
|
log98 wrote: $(".table").on("click", "k-grid-update", (function () {
I doubt your update button is an element called k-grid-update ; that looks more like a CSS class. Try changing your code to:
$(".table").on("click", ".k-grid-update", (function () {
(Note the "." before the update button selector.)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
hi
I am going to use sparkline in the" usage" column, just in the way that the two sparkline chart cover each other
There is a problem because when I click on the button Edite "sparkline" disappears. Or click on "usage column" think that happens.
Why tooltip as bad as it can be displayed tooltip not regular.
Why sparkline "usage column" in all rows, there is only one row
http://jsfiddle.net/psot98/W6efG/1/embedded/result/[^]
thank you
|
|
|
|