I really advice you to fully read this page and try out all the examples : http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
That page was enough for me to create a GWT Flash player widget by writing a GWT wrapper using JSNI around the Javascript code of flowplayer. I don't think anyone can give you any more information as is given on that page as it is really explained in good detail on that page. Frank On Dec 9, 10:51 am, yashujn <[email protected]> wrote: > Ohhh....sry if i create confusion abt my query....... may me my post > will be quit long but plz read it and tell me the solution plz plz > plz.... > > the thing is ... i knw javascript and html quit well but i hv to > devlop one website using gwt ( college project)... so i just want to > use javascript and html as much s possible........... > > like u post one link for accordian panel using java ............ same > type of panel can develop in javascript also....but i dnt knw where > to wirte tht java script code(i mean in using which widget or any > other thing...) ......... > > <html> > <head> > <script type="text/javascript"> > function displayDate() > { > document.getElementById("demo").innerHTML=Date();} > > </script> > </head> > <body> > > <h1>My First Web Page</h1> > <p id="demo">This is a paragraph.</p> > > <button type="button" onclick="displayDate()">Display Date</button> > > </body> > </html> > > for example if i write above JS code into htmlpanel.set content > section thn only tht "This is a paragraph" line is appearing on the > browser and button is not appearig (bcz the function of tht button > written in javascript)......... ultimately no java script function > work in tht htmlpanel ............so is thier any other panel > available > or i hv to include any library or any other solution for > tht............... > > thnks to give me time and i hope i clear my problem to u......... :) > > On Dec 9, 2:32 pm, Frank <[email protected]> wrote: > > > > > > > > > I am not sure what you are trying to achieve with Javascript, cause in > > the supplied code I don't see any Javascript. > > > Anyway. Maybe you should read the following page > > :http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI... > > I followed that one and never had any problems using Javascript in GWT > > (I created a GWT wrapper around Flowplayer using JSNI (internal > > project) and did some more stuff with JSNI). > > > Frank > > > On Dec 9, 10:27 am, yashujn <[email protected]> wrote: > > > > Frank thnks for ur rply ....and tht panel is working fine......but > > > still i want to knw how javascript code can be use in gwt ?? bcz some > > > time it is vry useful to use java script code.......... i dnt hv any > > > idea abt it............ plz gudie me ... > > > > On Dec 9, 2:19 pm, Frank <[email protected]> wrote: > > > > > Maybe it is a good idea to implement an accordian panel in native GWT > > > > (check > > > > outhttp://timepedia.blogspot.com/2007/10/designing-really-simple-gwt-acc...) > > > > ? > > > > > I always use as less plain Javascript as possible to keep things clean > > > > (maybe that is just a personnel preference of me though). > > > > > On Dec 9, 9:49 am, yashujn <[email protected]> wrote: > > > > > > hi..sry for nt posting the code ............here is my code.... > > > > > > HTMLPane pnPane = new HTMLPane(); > > > > > pnPane.setContents("<div style=\"height:40px\">" + > > > > > "<table border=\"0\" cellpadding=\"1\" > > > > > cellspacing=\"1\">" + > > > > > "<tbody>" + > > > > > "<tr>" + > > > > > "<td style=\"color:#ca0002\"; valign=\"center\">• > > > > > </td>"+ > > > > > "</td>" + > > > > > "<td valign=\"top\">" + > > > > > "<a > > > > > href=\"http://www.cnn.com/2011/11/27/us/egypt-americans-freed/ > > > > > index.html?eref=igoogledmn_topstories \" target=\"_blank\" class = > > > > > \"common-links-1\">Three American students detained in Egypt back in > > > > > U.S.</a>" + > > > > > "</td>" + > > > > > "</tr>" + > > > > > "</tbody>" + > > > > > "</table>" + > > > > > "</div>"); > > > > > > now in tht set content section above html code is working perfectly > > > > > but i want to create one vertical accordian panel and want to put > > > > > above data in tht panel........... but java script code of tht > > > > > accordian panel is not working with html panel........ is their any > > > > > way exist by which i can use java script code to devlop my required > > > > > application...... > > > > > > On Dec 9, 1:21 pm, Ed <[email protected]> wrote: > > > > > > > I don't understand what you are trying to do. > > > > > > But have a look at the GWT class HistoryImplTimer which defines a > > > > > > javascript method and then uses it. Maybe the example will help you. > > > > > > The GWT code contains more of these kind of examples. > > > > > > > You are talking about "my htmlpanel" but you don't show the code of > > > > > > your panel so it's hard to help you. > > > > > > > - Ed > > > > > > > On Dec 9, 8:30 am, yashujn <[email protected]> wrote: > > > > > > > > hi , I want to add some javascript function in my htmlpanel like > > > > > > > accordian plane... but htmlpanel not accepting javascript ... can > > > > > > > some > > > > > > > bdy tell me how to use javascript function in gw portlet?? -- 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.
