A) What is that Login() function that you are calling supposed to do?
B) Have you tried this?
<input type="button" onclick="Login(); return false;">
Hope this helps
As long as the file types that you are sending are not viewable by the browser (jpg, gif, html, txt, etc), this should trigger a download.
<form name="my_form">
<select name="file_list">
<option>document1.xyz</option>...
Single ( ' ) and double ( " ) quotes in JavaScript function identically and have to be balanced. You need more levels of quotes. JavaScript let's you do this by "escaping" quotes inside quotes by inserting a backslash ( \ ) character before it. For instance:
var foo =...
You have to reference the frame that you want the new page to load in. So if you have two frames named "frm_1" and "frm_2" and you have your form in frm_1 then you would use:
"onclick=top.frm_2.location=document.your_form.url.value;"
You should try to familiarize...
Your function "onClick" may or may not confuse the JavaScript interpreter, come up with another, more descriptive, name for your function like "displayEmail()."
write() is not a method of the window object, but rather of the document object, so you want to say...
trc
Try this on:
If you set a global variable "url_start" to be something like "http://www.yourdomain.com/sendmsg.asp?command=" and another global "url_end" (only if you need it) then you can use:
<select onChange="url_start = url_start +...
hoffa2:
To go back in the bottom frame from a link in the top frame:
<a href="javascript:top.frames[1].history.back();">Back</a>
where frames[1] is the second frame the the frames array. You could also use the_name_of instead of frames[1].
Hope this helps,
/johnny
indigojo:
Are you sure you want your button to imply that the user is going back? It should, in human interface design terms, suggest that they are going to return to the search window. The way to do this is:
var search_win = window.open(url,name,attributes);
Here you are setting the...
The first problem is that "document.fomr1.cbosecondary" doesn't exist in the document (at least not what you posted) so you will get an "object expected" error on that.
You do not need to attach the enable() function to an object (you may get errors from this anyway). But...
Netscape does this bizarro thing where it calculates absolute frame sizes by determining the percentage that the frame size represents in the window (whatever size it is), and then converting that percentage back into pixels. This results in in very erratic behavior because of all the rounding...
You need to refer to the frame that you want to go back in because each frame has it's own history. The easiest way to do this is pass a reference to the frame that you want to go back in to the goBack() function and then go back in it.
You can go back in multiple frames by sending multiple...
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.