Re: how to pass hash map to native java script method

2011-06-12 Thread rsutton
My Apologies and thank you Thomas. This is perfect. I failed to see that you had added the alternate code to the quote. Thanks again. Robert. On Jun 11, 1:32 am, Thomas Broyer t.bro...@gmail.com wrote: Wouldn't it be easier to rewrite your openReportWindow in Java rather than JSNI? On

Re: how to pass hash map to native java script method

2011-06-11 Thread Thomas Broyer
I wasn't talking about FormPanel and its SubmitCompleteEvent. Go back read my previous message, I gave you almost all the code (if not all). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: how to pass hash map to native java script method

2011-06-11 Thread Thomas Broyer
Also, you can get a FormPanel to post to target=_blank if you like (or target=whatever, or a NamedIframe widget if you prefer not opening a window/tab). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web

Re: how to pass hash map to native java script method

2011-06-10 Thread Derek
Actually I don't think it's as simple as you'd think. Gwt java objects are pretty opaque to JSNI. Depending on what you need, i'd suggest using JSONObject as a replacement for HashMap. That should probably work for you. On Jun 8, 9:19 pm, rsutton rsut...@asteriskit.com.au wrote: I am trying to

Re: how to pass hash map to native java script method

2011-06-10 Thread Thomas Broyer
Wouldn't it be easier to rewrite your openReportWindow in Java rather than JSNI? On Thursday, June 9, 2011 3:19:05 AM UTC+2, rsutton wrote: var form = document.createElement(form); FormElement form = Document.get().createFormElement(); form.setAttribute(method, post);

Re: how to pass hash map to native java script method

2011-06-10 Thread rsutton
when I do a post from gwt, the generated html page is returned in an object. there are 2 problems with this. 1. I want the browser to render the returned page 2. this report could be excess of 1GB. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: how to pass hash map to native java script method

2011-06-10 Thread rsutton
OK, I'll try this. Thanks On Jun 11, 12:03 am, Derek derekad...@gmail.com wrote: Actually I don't think it's as simple as you'd think. Gwt java objects are pretty opaque to JSNI. Depending on what you need, i'd suggest using JSONObject as a replacement for HashMap. That should probably work

how to pass hash map to native java script method

2011-06-09 Thread rsutton
I am trying to pass a Hashmap to a native method as can be seen below. I have been unable to find any suitable example code. Any assistance would be greatly appreciated. I know this is simple, I just haven't done it before. Thanks. public void onClick(ClickEvent event) { MapString,

GWT Native Java Script Method Error invalid argument

2010-12-13 Thread Jan
Hi all, In my actual GWT Project, i have a strange error. I have a native Javascript method for resizing the div, where my google map is in it. The method works fine in the normal browser, but as soon as i run it in the hosted mode, i get an error. The method is: public static native void

Re: native java script

2010-03-19 Thread Pondmouse
You can add the javascript through GWT like so: // A Java method using JSNI native void sayHelloInJava(String name) /*-{ $wnd.sayHello(name); // $wnd is a JSNI synonym for 'window' }-*/; For more examples go here:

native java script

2010-03-18 Thread sigi
Hi I have no experience with javascript at all. In order to talk with an addServer I need need to add following code to my gwt app: script type='text/javascript'!--// ![CDATA[ /* [id120894] spood.me - Sky */ OA_show(120894); // ]] --/scriptnoscripta target='_blank' href='http://