•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 397,658 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,376 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 745 | Replies: 6
![]() |
i only need this to work in i.e. and im sure it does but i am getting a "closed is null or not an object" exception message
declared in HEAD::
called in BODY
declared in HEAD::
<script type="text/javascript">
function reloadwin(w){
if (w.closed) alert('window is closed')
else return setTimeout('reloadwin()', 500)
}
</script>called in BODY
<script language='javascript'>reloadwin(w)</script>
Last edited by Fungus1487 : Jun 6th, 2007 at 7:44 am.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
•
•
•
•
i only need this to work in i.e. and im sure it does but i am getting a "closed is null or not an object" exception message
declared in HEAD::
<script type="text/javascript"> function reloadwin(w){ if (w.closed) alert('window is closed') else return setTimeout('reloadwin()', 500) } </script>
called in BODY
<script language='javascript'>reloadwin(w)</script>
and sorry i call the window using this
<script language='javascript'>
w=window.open('CIPFATree.aspx', 'CIPFA',
'width=360, height=160, status=yes, menubar=no, resizable=yes,
'scrollbars=yes');
</script> When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
You need to post the entire code as it is for someone to help you out. Posting in bits and pieces would just make it difficult.
And BTW, that kind of error is normally given when the variable 'w' doesn't refer to any window, i.e. function is called before window is created.
And BTW, that kind of error is normally given when the variable 'w' doesn't refer to any window, i.e. function is called before window is created.
Last edited by ~s.o.s~ : Jun 6th, 2007 at 12:32 pm.
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
very sorry. here we go.
<HTML>
<HEAD>
<script type="text/javascript">
function reloadwin(w){
if (w.closed) alert('window is closed')
else return setTimeout('reloadwin()', 500)
}
</script>
</HEAD>
<BODY>
<script language='javascript'>
w=window.open('CIPFATree.aspx', 'CIPFA',
'width=360, height=160, status=yes,
menubar=no, resizable=yes,
'scrollbars=yes');
reloadwin(w);
</script>
</BODY>
</HTML> When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
You forgot to pass 'w' to the function passed in the setTimeout().
"I don't accept change. I don't deserve to live."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
"Working a real job is a win if you're lazy, greedy, or unmotivated. If you're average, you fit right in. And if you're above average, the basic terms of employment and premise of the arrangement is against your interests."
i love you
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
access activation ajax api asp blogger blogging blogs code combo dani daniweb data debugging developer development dreamweaver dropdownlist firefox gdata google gpl home html innovation internet javascript key linux microsoft module msdn net news office openbsd product programming reuse rss serial site software source sql tags vista web wysiwyg xml
- Uploading File Not Working...simple code, what's wrong? (PHP)
- simple code (C++)
- What is Wrong in this simple code ? (Assembly)
- CAn anyone provide me a very simple code for shopping cart? (PHP)
- what is wrong with yhis code? (PHP)
- help! I don't know what's wrong with my simple code (C)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: javascript+php
- Next Thread: applets



Linear Mode