The method you mentioned does sound a little unreliable so I think I'll just pop-up an alert letting the user know they shouldn't use the navigation buttons.
Thanks Dan
Rois Cannon
thread216-1125568 was not answered and I'm curious. I'm writing a web based application and I'd like to query window properties for possible action. For instance:
if(window.toolbar.visible == true) {
window.open('/startup.html','','width=700, height=500, left=0, top=0, screenX=0, screenY=0...
I took a look at prototype and it looks good. I do try to us pre-done stuff when it works for me but I'm still learning JS so the experience of writing my own is help me learn more.
Thanx
Rois
Well, I setup a test script to send numbers 1 to n to the server and have the server send back a js to put that number in the innerHTML of an anchor. Worked perfectly. Even 1 to 1000.
I think I figured out what the problem was. Most of my ajax requests are done before I close the window...
I added the 'new' object
win[x] = new ajaxRequest(document.forms[0],'','ajax_ee_tc_sub');
x++;
but I'm still having the same issue and yes it is doing the same thing on 2 completely different machines with XP IE.
I'll give your test script idea a try and see if I have the same problem.
Thanx...
I didn't know you could submit multiple checkboxes with the same name. I usually do it with an array name in html
<input type="checkbox" id="mumu[0]" value="john">
<input type="checkbox" id="mumu[1]" value="ralph">
<input type="checkbox" id="mumu[2]" value="steve">
If they are checked and...
PHP is not in these scripts. This is an external script file.
I'd have to admit I'm still kinduva js novice and I'm probably doing way more complicated stuff than I ought but but that seems to be the way I learn best.
I'm wondering if calling the routine the way I do...
I forgot to mention I'm calling it usually like this:
<button onclick="ajaxRequest(document.forms[0],'','ajax_ee_tc_sub');return false;">gogo</button>
Rois
My Ajax routine runs a dozen times (or so) with no problem and then stops all internet connections. Javascript is still working since I have some js popup windows that still activate but my ajax routine (saving data to the server) stops working and I can't post/get a form to the server. I read...
That was an error. Should have been window.close(); but the script isn't hitting that in this instance since ajax is connecting and getting a response back.
I got it to work correctly by replacing window.myClose(); with self.setTimeout('window.close();',500); in the server return response...
Dan,
I added
function myClose(){
window.close();
}
to my page and changed my scripts to use window.myClose
and changed the server returned code to be
if(opener.prm06)opener.prm06['04']['uid']='john';
window.myClose();
But it's still crashing ALL FF windows.
Thoughts?
Rois
I've only done this for child windows but I believe the same principal should apply. You'd need to have named the window you want to look for when you opened it.
eg. winapp=window.open();
Then you should be able to look for it with
if (winapp && winapp.open && !winapp.closed) {[somecode]}...
My onreadystatechange is calling the function updatePage(see below.)
function updatePage() {
if(document.getElementById('readystate')){
document.getElementById('readystate').innerHTML='Ready State is '+doc.readyState;
}
if (doc.readyState == 4) {
if (doc.status == 200) {
var...
I found an obscure, unrelated script source that assigned everything I want to send,including the external javascript, to a variable first and then write the variable. That appears to be the trick.
Thanx for the input.
Rois
<html>
<script>
var win151122;
function closeDep() {
if...
Whether '/weblib/lib_ajax.js' is blank, has ONLY 'var a=4;' OR is full of lots of functions, when I activate the child in IE it crashes windows. No problems in Firefox. If I leave
win151122.document.write('<script type="text/javascript" src="/weblib/lib_ajax.js"><\/script>');
out of the...
This is everything in lib_ajax.js.
Could the problem be because I'm building the popup instead of calling the contents from a server? Since my src is a relative path instead of fully stated I'm wondering if ie is having a problem finding it sometimes???. I guess that doesn't make that much...
I need to open multiple child windows and have them close if the parent closes or browses away. Here is the essence of the code I'm using. The showreg function can be call multiple times for various 'type,code' and I'm re-using the same window name (win1234) for all the popups so I can make...
I had tried the 'new Option' command a couple weeks ago. It would work sporadically and then crash IE. (I had to restart windows when it happened.) I'm sure I had something wrong but finally just gave up and used the write command to build the options. I'm kind of new to using javascript to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.