• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
JavaScript / WOBuilder Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JavaScript / WOBuilder Question


  • Subject: JavaScript / WOBuilder Question
  • From: John Shepardson <email@hidden>
  • Date: Fri, 02 Mar 2007 21:08:23 -0800
  • Thread-topic: JavaScript / WOBuilder Question

I asked my first question a week ago and I would like to thank the list for
all of the help I received.

This is a really easy one and has to do with JavaScript in WOBuilder.

I have a WOTextField with one binding which is   value     myTextFieldValue

I want to activate this textfield by calling focus(); during the onload
event in JavaScript.
I tried to add a binding to the text field to call a JavaScript function for
the attribute onload, but it never fired.
After a little study, I deleted that binding and added the onload binding to
the <body> of the main.wo field, so now the event is firing, but I'm not
sure how to activate the textfield.

I have used
function activateTextFieldValue()    { document. myTextFieldValue.focus();}
and
function activateTextFieldValue()    { this.myTextFieldValue.focus();}

But the text field remains not focused.

Could someone help me to write this function into my javascript file (I know
it runs because
function activateTextFieldValue()  { alert("test");}
does work.

Thanks,

John


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: JavaScript / WOBuilder Question
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WANTED: WebObjects 4.51/Objective-C tutor
  • Next by Date: Re: JavaScript / WOBuilder Question
  • Previous by thread: Re: entity relationships and userinfo
  • Next by thread: Re: JavaScript / WOBuilder Question
  • Index(es):
    • Date
    • Thread