Hi Suri,
Thanks for this tip !
But IMHO in your case I think that the problem is in the hosted page:
Try replacing:
var testVar = %= request.getAttribute(someValue) %
by:
var testVar = %= request.getAttribute(someValue) %
Notice the quote !
Then the generate js will be:
var testVar =
Aha. You're right too Olivier. Thanks for the tip. Tottally missed
that. Appreciate it.
On Nov 21, 3:55 am, olivier nouguier [EMAIL PROTECTED]
wrote:
Hi Suri,
Thanks for this tip !
But IMHO in your case I think that the problem is in the hosted page:
Try replacing:
var testVar = %=
Hi Olivier,
I actually saw your post later on another thread and used the default
solution. Thanks for that. Pretty neat.
A different question now, I observed that after obtaining the value I
wanted, I could not convert it to a Long type. i.e
in my client java code after retrieving the value
There is no long datatype in javascript !
http://www.google.com/search?q=GWT+long+emulationsourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enFR258FR258
On Thu, Nov 20, 2008 at 3:31 PM, Suri [EMAIL PROTECTED] wrote:
Hi Olivier,
I actually saw your post later on another thread and used the default
Thanks Olivier. That makes sense. I'll have to use the String and
validate it at the server side I guess.
Suri
On Nov 20, 10:08 am, olivier nouguier [EMAIL PROTECTED]
wrote:
There is no long datatype in javascript !
http://www.google.com/search?q=GWT+long+emulationsourceid=navclient-...
Hi Olivier,
I just thought I'd let you know. The script you have works great
however needs one additional modification.
public static native String jnsiGetString(String jsVar, String
defaultValue)/*-{
var value = eval('$wnd.'+jsVar);
if(value){
return value.toString();
Hi,
This must've been asked a million times and I tried looking but the
only answer I got was JSNI in most cases. I just want to be sure its
the only way. Assuming I was passing data to my JSP after my action
has completed. Lets say a value for a studentID.
Now in my GWT module I'll need this
As an update question as well,
Does anyone know if this is correct syntax and if not what would be
the correct way to go about this.
I'm trying to copy the value of my javascript variable set in the JSP
to the GWT client.
JSP FILE --
script language=javascript
Suri,
I'm pretty sure you can just create the input and adopt the element
in GWT.
On Nov 19, 2:46 pm, Suri [EMAIL PROTECTED] wrote:
As an update question as well,
Does anyone know if this is correct syntax and if not what would be
the correct way to go about this.
I'm trying to copy the
Hi there,
I'm not sure how you would do that. Please explain.
Thanks
Suri
On Nov 19, 3:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Suri,
I'm pretty sure you can just create the input and adopt the element
in GWT.
On Nov 19, 2:46 pm, Suri [EMAIL PROTECTED] wrote:
As an update
10 matches
Mail list logo