Daniel,

That was actually just me copying badly into my post. I had the " in
the dictionary variables.

I was able to remove the frames by putting the html file that includes
the <class>.nocache.js directly in the jsp and it was able to pick up
the variables. Unfortunately this is not the best solution, but is all
I have found as of yet.

Thank you for looking, though!
Kevek

On Oct 16, 1:04 am, "Daniel Kurka" <[EMAIL PROTECTED]>
wrote:
> Im using a dictionary to do the exakt same thing and it works very good even
> with large amounts of data.
> you simply have forgotten the closing " in the dictionary variables.
>
> 2008/10/15 Kevek <[EMAIL PROTECTED]>
>
>
>
> > Hello,
>
> > I have recently begun updating a web page for my company to be a bit
> > more 21st-century. I should state that I am new to Javascript, and
> > gwt, and I am not any sort of html wizard though I know the basics.
>
> > I have been looking for a way in which to pass parameters into the
> > Java class that is compiled into Javascript by gwt so that I might use
> > these parameters in a RPC call to the server.
>
> > I have read multiple posts on this discussion and have tried many
> > things including adding <div> or <input> tags and attempting to read
> > them, using JSNI to grab Javascript vars, and most recently attempting
> > to use Dictionary class from com.google.gwt.i18n.I18N
>
> > The post that I have been reading is the following thread:
>
> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> > When I attempt to use <div> or <input> the gwt grid no longer shows up
> > at all. It is still there, as far as I can tell (I've used the Firefox
> > Web Developer Toolbar to look at the included javascript) but I see
> > nothing in either Firefox or IE
>
> > When I attempt to grab the vars with JSNI I cannot get to it due to, I
> > imagine, a misunderstanding on my part due to frames and variable
> > scope when dealing with frames and Javascript.
>
> > When I attempted to use the Dictionary class I again cannot see the
> > gwt grid, identical problem as before. I believe in this case, though,
> > it is because Dictionary is failing to find the variable - most likely
> > due to aforementioned scope problems.
>
> > The .jsp that includes these scripts as well as the frame that directs
> > to the gwt application is as follows:
> > <%
> >        String jUser = request.getParameter("userId");
> >        String jAsOfDate = request.getParameter("asOfDate");
> >        String jCurrency = request.getParameter("currency");
> > %>
>
> > <script type="text/javascript">
> >        var user = <%=jUser%>;
> >        var asOfDate = <%=jAsOfDate%>;
> >        var currency = <%=jCurrency%>;
> > </script>
>
> > <frameset FRAMEBORDER="0" BORDER="0" framespacing="0">
> >        <frame SRC="/<classpath>/<class>.html" name="ICV" scrolling="yes"
> > noresize>
> > </frameset>
>
> > For the Dictionary attempt it is the same except the script is as
> > follows:
> > <script type="text/javascript">
> >        var params = {
> >                user: "<%=jUser%>,
> >                asOfDate: "<%=jAsOfDate%>,
> >                currency: "<%=jCurrency%>,
> >        };
> > </script>
>
> > If anyone can see any glaring mistakes that I am making please let me
> > know what I'm doing wrong. Else, a ulterior method to pass these
> > variables would be just as good if not better!
>
> > Thanks for reading, and for any help in advance,
> > Kevek
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to