<script>
document.formname.formfield.focus();
</script>

Which gets me on a thought that has been bouncing around inside my skull for
the last couple days. Just ignore me if this sounds crazy, but I was
thinking of something along the lines of a "template" scope for CF would be
cool. It would work like this...
Say you want to reference a custom tag or a bit of code in another template
which calculates sales tax, or generates an array, or whatever, just some
useful function. It could be called like this...

<cfset var = template.mypage.calctax(parameters)>

The second parameter, 'mypage' in the above example would refer to
mypage.cfm. In mypage.cfm the code would be surrounded by function name
statements (or methods...), so CF knows what part of the template to
execute.
None of this couldn't be done now, I just think it would be a real cool
shortcut.

jon
----- Original Message -----
From: "David Hannum" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, January 15, 2001 11:13 AM
Subject: OT: JS Question


> Hello,
>
> Is there a way to force the focus to a form field (text field) onLoad?
>
> Thanks,
> Dave
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to