Re: ResourceBundle in Javascript?

2007-03-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nitin, Dave Newton wrote: > Message bundles are server-side. You want to access it on the client. [snip] > If you just need to access a single message out of a bundle, maybe > this is okay, although I'd probably just put the message into scope > v

Re: ResourceBundle in Javascript?

2007-03-14 Thread Dave Newton
--- Musachy Barroso wrote: > >var myMessage = ' />'; > >function sayit() { > alert(myMessage); >} > Or that ;) d. 8:00? 8:25? 8:40? Find a flick in no ti

Re: ResourceBundle in Javascript?

2007-03-14 Thread Dave Newton
--- Nitin Ahuja <[EMAIL PROTECTED]> wrote: > What is DWR ? http://getahead.org/dwr > I have to assign the the value of message resource > key to an html object in jsp. Message bundles are server-side. You want to access it on the client. So you need to build a representation of the message bun

Re: ResourceBundle in Javascript?

2007-03-14 Thread Musachy Barroso
var myMessage = ''; function sayit() { alert(myMessage); } On 3/14/07, Nitin Ahuja <[EMAIL PROTECTED]> wrote: Hi Dave, What is DWR ? I found a simple wayout, but there is dependency i.e I have to assign the the value of message resource key to a

Re: ResourceBundle in Javascript?

2007-03-14 Thread Nitin Ahuja
Hi Dave, What is DWR ? I found a simple wayout, but there is dependency i.e I have to assign the the value of message resource key to an html object in jsp. Here is what i did.. in jsp and in java script function display(button) { alert(button.value); } this will display the value of

Re: ResourceBundle in Javascript?

2007-03-14 Thread Musachy Barroso
I think you are confusing client side and server side code. musachy On 3/14/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Nitin Ahuja <[EMAIL PROTECTED]> wrote: > Does anyone know how can I acces Message > ResourceBundle key/values in Javascript? ?! You'd have to pass in something that [had

Re: ResourceBundle in Javascript?

2007-03-14 Thread Dave Newton
--- Nitin Ahuja <[EMAIL PROTECTED]> wrote: > Does anyone know how can I acces Message > ResourceBundle key/values in Javascript? ?! You'd have to pass in something that [had] rendered a JavaScript representation of the bundle. I haven't given it any thought, but you *might* be able to use DWR to

ResourceBundle in Javascript?

2007-03-14 Thread Nitin Ahuja
Hi, Does anyone know how can I acces Message ResourceBundle key/values in Javascript? Thanks, -Nitin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]