It may be because you didn't use document before you reference the field in the parent window:
new_window.document.frm.UserID.value = board.UserID.value;
...try changing it to this:
new_window.document.frm.UserID.value = document.board.UserID.value;
----------
function new...
Use this as the base for your condition:
if (document.referrer.indexOf("http://www.blah.com") != -1)
{
// code if person did NOT come from your domain
}
else
{
// code if person came from your domain
}
----------
function new Programmer(name,age)
{
this.name = name;
this.age = age...
Hey all,
I was wondering, what is the syntax for showing a new form and hiding the form the user clicked from? Also, what code would I use to make a command button, when clicked, exit the program? All responses will be greatly appreciated. ----------
function new Programmer(name,age)
{...
Whoops, I messed up. I think the script should look like this:
[code]
if(window.location.search == "mypage.html?reload=true") {
window.location = "mypage.html?reload=false&random=" + Math.random()";
} ----------
function new Programmer(name,age)
{
this.name = name...
You can't set a value with window.location.search. I think your script should look like this:
if(window.location.search == "mypage.html?reload=true") {
window.location = "?reload=false&random=" +Math.random()";
}
----------
function new Programmer(name,age)
{...
Although it's syntax is a bit different. It looks like this:
document.getElementById("mylayer").adjacentHTML("text/html goes here");
Sure. Just use this code:
<script language="javascript">
<!-- Hide script from old browsers
if (document.referrer.indexOf("http://www.mydomain.com") != -1)
{
confirm("confirm this?");
}
// End hiding script -->
</script>
Hope that helps!
Happy coding! :)
Hey SpiderWoman,
I guess since you can use 'REMOTE_ADDR' you could also do 'REMOTE_HOST':
var host = '<!--#echo var="REMOTE_HOST"-->'
function hostval()
{
document.form.hostvalue.value=host
}
I think your error is here:
<a href="#" onClick="return ValLogin(document.LoginF.UserID.value,document.LoginF.Password.value)" onmouseover="changeImage('submit','but5h')" onmouseout="changeImage('submit','but5')">
You didn't put single quotes around...
You can save a file like this:
<script language="javascript">
<!-- Hide script from old browsers
function save()
{
document.execCommand("SaveAs")
}
// End hiding script -->
</script>
Note that this will only work in IE.
When you are using variables from a form in an SQL statement, such as the "INSERT INTO" statement, do you need to put <cfoutput> tags around the data?
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.