Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2004, 03:21 PM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cursor Positioning using BEA/WLW HTML

I am using BEA/WLW and need to place the cursor at the first open <netui:textBox>. I have tried using onLoad setting focus and a few others w/o success.

I am a relatively new to WLW so if you do answer... use small words like "the", "or" and "how" (kidding).

You would think WLW would have an automatic cursor positioning feature like CICS (old mainframe programmer here).

Any help is appreciated. The following doesn't work. However, I was told it should've worked.

example:


<body onload="this.document.userIntfNumb.focus()">

<script language="javascript">
    function infocus() {
    var field = document.getElementById("userIntfNumb");
    field.focus(); }
</script>
 
Old October 18th, 2004, 08:25 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

What is the code for the textbox? Is there an ID assigned to it, called userIntfNumb? Replace the body onload event handler with onload='infocus()', and let me know how it works.

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Magnetic Cursor - Target Area Cursor? gcarcass .NET Framework 2.0 1 May 5th, 2008 07:20 AM
bea exam preps ? pinna Need help with your homework? 0 November 12th, 2006 02:12 AM
deploying to BEA aadz5 EJB 0 August 26th, 2006 09:07 AM
Positioning Problem harpua CSS Cascading Style Sheets 5 May 27th, 2005 08:03 AM
cursor positioning alihussein3 Javascript How-To 1 October 22nd, 2003 03:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.