|
I'm wondering if there's a way we could make an <x:script> tag
that would make available certain components that we want to use in
_javascript_ for example: You have an inputText you want to be able to access: <h:inputText id="myInput"/> Then you use the x:script like so: <x:script> function foo(){ myInput.value = "xyz"; } </x:script> And x:script would output based on whether an explicit id was specified for a component so the end result would look like this: <script> // component references output first var myInput = document.getElementById("theActualIdAssignedToMyInput"); function foo(){ myInput.value = "xyz"; } </script> Travis Craig McClanahan wrote: On Sat, 1 Jan 2005 10:56:40 -0600, Heath Borders <[EMAIL PROTECTED]> wrote: -- Travis Reeder Ecommstats Web Analytics www.ecommstats.com |
- Re: Javascript getElementById Issues Sean Schofield
- Re: Javascript getElementById Issues Craig McClanahan
- Re: Javascript getElementById Issues Sean Schofield
- Re: Javascript getElementById Issues Travis Reeder
- Re: Javascript getElementById Issues Heath Borders
- Re: Javascript getElementById Issues Sean Schofield
- Re: Javascript getElementById Issues Heath Borders
- Re: Javascript getElementById Issu... Sean Schofield
- Re: Javascript getElementById Issues Martin Cooper
- Re: Javascript getElementById Issu... Heath Borders
- Re: Javascript getElementById ... Martin Marinschek
- Re: Javascript getElementB... Sean Schofield
- Re: Javascript getElementB... Sean Schofield
- Re: Javascript getElementB... Martin Marinschek

