Re: Refresh page on loading
Hi Ian, Sorry for the late reply The code which you wrote above is the same effect i am trying to make, but i do it like: a) Parse an xml file which has 6 or 7 enteries, so i make 6 to 7 vertical panels b) Each entry calls another xml file which has 20 to 30 textboxes in tht. It prints the textboxes on it c) now after adding all textboxes to the vertical panel, I add submit button to each vertical panel so first time it comes it shows on top but later it shows on bottom I will try to give a sample demo so you could see that problem yourself soon On Aug 24, 12:31 pm, Ian Bambury wrote: > Hi Rahul, > I tried the code below but it seems to work OK. Is it the kind of effect you > are trying to get? > > VerticalPanel[] v1 = new VerticalPanel[5]; > TabPanel tabpanel = new TabPanel(); > for(int j = 0; j < 5; j++) > { > v1[j] = new VerticalPanel(); > tabpanel.add(v1[j], " [XXX] "); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new TextBox()); > v1[j].add(new Button("Submit")); > } > RootPanel.get().add(tabpanel); > tabpanel.selectTab(0); > > Ian > > http://examples.roughian.com > > 2009/8/24 Rahul > > > > > Hi Ian, > > Sorry for the late reply, I was out of office for last few days > > > here is part of the code > > for ( j = 0; j < URLs.getLength()-1; j++) > > { > > v1[j] = new VerticalPanel(); > > String str = > > URLs.item(j).getAttributes().toString(); > > // System.out.println(str); > > > tabpanel.add(v1[j],str.substring(13,16)); > > > fucn(v1[j],str.substring(13,16),drag); > > > v1[j].setTitle(str.substring(13,16)); > > b1 = new Button ("Submit"); > > b1.addClickHandler(handler2); > > v1[j].add(b1); > > > //end of for loop > > } > > > the button b1 is an public button > > > Sincerely, > > Rahul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Refresh page on loading
Hi Rahul, I tried the code below but it seems to work OK. Is it the kind of effect you are trying to get? VerticalPanel[] v1 = new VerticalPanel[5]; TabPanel tabpanel = new TabPanel(); for(int j = 0; j < 5; j++) { v1[j] = new VerticalPanel(); tabpanel.add(v1[j], " [XXX] "); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new TextBox()); v1[j].add(new Button("Submit")); } RootPanel.get().add(tabpanel); tabpanel.selectTab(0); Ian http://examples.roughian.com 2009/8/24 Rahul > > Hi Ian, > Sorry for the late reply, I was out of office for last few days > > here is part of the code >for ( j = 0; j < URLs.getLength()-1; j++) >{ >v1[j] = new VerticalPanel(); >String str = > URLs.item(j).getAttributes().toString(); >// System.out.println(str); > > tabpanel.add(v1[j],str.substring(13,16)); > > fucn(v1[j],str.substring(13,16),drag); > > v1[j].setTitle(str.substring(13,16)); >b1 = new Button ("Submit"); >b1.addClickHandler(handler2); >v1[j].add(b1); > > >//end of for loop >} > > > the button b1 is an public button > > Sincerely, > Rahul > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Refresh page on loading
Hi Ian, Sorry for the late reply, I was out of office for last few days here is part of the code for ( j = 0; j < URLs.getLength()-1; j++) { v1[j] = new VerticalPanel(); String str = URLs.item(j).getAttributes().toString(); // System.out.println(str); tabpanel.add(v1[j],str.substring(13,16)); fucn(v1[j],str.substring(13,16),drag); v1[j].setTitle(str.substring(13,16)); b1 = new Button ("Submit"); b1.addClickHandler(handler2); v1[j].add(b1); //end of for loop } the button b1 is an public button Sincerely, Rahul On Aug 20, 1:08 pm, Ian Bambury wrote: > Hi Rahul, > That seems very odd to me. If you want to post of send me some code, I'll > have a look. I wouldn't know how to make my code do that if I wanted it to > :-) > > Ian > > http://examples.roughian.com > > 2009/8/19 Rahul > > > > > Hi Ian, > > > Yes sure i can give an example from my code. > > I have a tab panel that has 7 tabs. Each tab has 10 composite widgets. > > Each composite widget is composed of a label and textbox. I creating > > these widgets and first adding them to all a vertical panel. Then at > > last i am adding an Submit button to each vertical panel. and then to > > the tabpanel. > > > the first time i run my application, i see the submit button on the > > top of each tab above all the composite widgets, when i refresh it, it > > comes to the bottom, below all the composite widgets. > > > Now the cascading tabs: Some of the composite widgets when click open > > into more composite widgets. I created those widgets as separate > > tabpanel. and did the same thing as earlier. Now the first time the > > program runs, the composite widgets for example label 3 (thinking i > > have ten composite widgets from Label 1 to label 10 and they should be > > placed in order from 1 to 10) is placed after label 10. when refreshed > > once, it comes to its right place which is after label2 and before > > label4. > > > I hope I was more clearer this time, if not, please ask, ill elborate > > more > > > On Aug 19, 2:36 pm, Ian Bambury wrote: > > > Hi Rahul, > > > For some reason I didn't get the email Chad has replied to. > > > > I'm sure there must be a way to create the layout you want in the right > > > order first time. Do you have an example? > > > > Refreshing should create exactly the same effect as running it the first > > > time (all other factors being equal - i.e. you are not setting a bookmark > > or > > > anything like that) > > > > Also, I'm not sure I understand what you mean by 'cascading tabs'. > > > > Ian > > > >http://examples.roughian.com > > > > 2009/8/19 Chad > > > > > Rahul, > > > > > Instead of trying to refresh the page, you should probably defer the > > > > loading of your buttons, labels, and tabs. Use a DeferredCommand for > > > > making the call to the method(s) for creating those widgets. It sounds > > > > like they are loading before something that they rely on loads. > > > > Although, this may have no effect whatsoever. :-/ > > > > > HTH, > > > > Chad > > > > > On Aug 18, 9:32 am, Rahul wrote: > > > > > Hi, > > > > > I am loading buttons in individual tabs of a tab panel. In the tab > > > > > panel i have some labels in order and also some cascading tabs in > > > > > order. > > > > > The first time the page is loaded, the buttons (which i want at the > > > > > bottom) are at the top of each tab and the cascading tabs which i > > want > > > > > in order are at the bottom of each tab. But whenever i refresh the > > > > > page once, everything comes to the place i want. So i figured that if > > > > > i refresh the page once it has been loaded, i can get the widgets > > > > > where i want them > > > > > > is this the right approach or theres a better way to do this ? > > > > > > On Aug 17, 11:06 pm, Ian Bambury wrote: > > > > > > > Why do you want to reload the page as soon as it has just loaded? > > > > > > Can't you just get it right the first time? > > > > > > > What do you want to happen the second time that didn't happen the > > first > > > > > > time? > > > > > > > Ian > > > > > > >http://examples.roughian.com > > > > > > > 2009/8/18 Rahul > > > > > > > > HI Ian, > > > > > > > thanks for replying > > > > > > > i have started looking at some tutorials for javascript > > > > > > > but i have some more confusion. > > > > > > > > all coding i did in gwt was in java in the client class, so for > > this > > > > > > > functionality also i need to code in the client class? or not? i >
Re: Refresh page on loading
Hi Rahul, That seems very odd to me. If you want to post of send me some code, I'll have a look. I wouldn't know how to make my code do that if I wanted it to :-) Ian http://examples.roughian.com 2009/8/19 Rahul > > Hi Ian, > > Yes sure i can give an example from my code. > I have a tab panel that has 7 tabs. Each tab has 10 composite widgets. > Each composite widget is composed of a label and textbox. I creating > these widgets and first adding them to all a vertical panel. Then at > last i am adding an Submit button to each vertical panel. and then to > the tabpanel. > > the first time i run my application, i see the submit button on the > top of each tab above all the composite widgets, when i refresh it, it > comes to the bottom, below all the composite widgets. > > Now the cascading tabs: Some of the composite widgets when click open > into more composite widgets. I created those widgets as separate > tabpanel. and did the same thing as earlier. Now the first time the > program runs, the composite widgets for example label 3 (thinking i > have ten composite widgets from Label 1 to label 10 and they should be > placed in order from 1 to 10) is placed after label 10. when refreshed > once, it comes to its right place which is after label2 and before > label4. > > I hope I was more clearer this time, if not, please ask, ill elborate > more > > > > > On Aug 19, 2:36 pm, Ian Bambury wrote: > > Hi Rahul, > > For some reason I didn't get the email Chad has replied to. > > > > I'm sure there must be a way to create the layout you want in the right > > order first time. Do you have an example? > > > > Refreshing should create exactly the same effect as running it the first > > time (all other factors being equal - i.e. you are not setting a bookmark > or > > anything like that) > > > > Also, I'm not sure I understand what you mean by 'cascading tabs'. > > > > Ian > > > > http://examples.roughian.com > > > > 2009/8/19 Chad > > > > > > > > > Rahul, > > > > > Instead of trying to refresh the page, you should probably defer the > > > loading of your buttons, labels, and tabs. Use a DeferredCommand for > > > making the call to the method(s) for creating those widgets. It sounds > > > like they are loading before something that they rely on loads. > > > Although, this may have no effect whatsoever. :-/ > > > > > HTH, > > > Chad > > > > > On Aug 18, 9:32 am, Rahul wrote: > > > > Hi, > > > > I am loading buttons in individual tabs of a tab panel. In the tab > > > > panel i have some labels in order and also some cascading tabs in > > > > order. > > > > The first time the page is loaded, the buttons (which i want at the > > > > bottom) are at the top of each tab and the cascading tabs which i > want > > > > in order are at the bottom of each tab. But whenever i refresh the > > > > page once, everything comes to the place i want. So i figured that if > > > > i refresh the page once it has been loaded, i can get the widgets > > > > where i want them > > > > > > is this the right approach or theres a better way to do this ? > > > > > > On Aug 17, 11:06 pm, Ian Bambury wrote: > > > > > > > Why do you want to reload the page as soon as it has just loaded? > > > > > Can't you just get it right the first time? > > > > > > > What do you want to happen the second time that didn't happen the > first > > > > > time? > > > > > > > Ian > > > > > > >http://examples.roughian.com > > > > > > > 2009/8/18 Rahul > > > > > > > > HI Ian, > > > > > > thanks for replying > > > > > > i have started looking at some tutorials for javascript > > > > > > but i have some more confusion. > > > > > > > > all coding i did in gwt was in java in the client class, so for > this > > > > > > functionality also i need to code in the client class? or not? i > need > > > > > > to do javascript for tht. and if i can do in java, what is the > > > function > > > > > > ( because when searched it always shows me how to do with > javascript > > > > > > and not in java) > > > > > > > > On Aug 17, 6:00 pm, Ian Bambury wrote: > > > > > > > 2009/8/17 Rahul > > > > > > > > > > Hi > > > > > > > > I want to refresh my webpage once after loading completely. I > am > > > using > > > > > > > > this code for this > > > > > > > > > > > > > > > > > >function MyReload() > > > > > > > >{ > > > > > > > >window.location.reload(); > > > > > > > >} > > > > > > > > > > > > > > > > > > and calling > > > > > > > > on body part of my html file > > > > > > > > > > but this is not working > > > > > > > > can anyone tell me where am i going wrong? > > > > > > > > > First problem is that you are asking a JavaScript question in a > GWT > > > group > > > > > > > :-) > > > > > > > > > Second problem is that your webpage will loop, endlessly > loading > > > and > > > > > > > reloading. This a pretty basic a mistake, so maybe it would be > a > > > good > > > > > > idea > > > > > > > to search for some JavaScript tutorials or sign
Re: Refresh page on loading
Hi Ian, Yes sure i can give an example from my code. I have a tab panel that has 7 tabs. Each tab has 10 composite widgets. Each composite widget is composed of a label and textbox. I creating these widgets and first adding them to all a vertical panel. Then at last i am adding an Submit button to each vertical panel. and then to the tabpanel. the first time i run my application, i see the submit button on the top of each tab above all the composite widgets, when i refresh it, it comes to the bottom, below all the composite widgets. Now the cascading tabs: Some of the composite widgets when click open into more composite widgets. I created those widgets as separate tabpanel. and did the same thing as earlier. Now the first time the program runs, the composite widgets for example label 3 (thinking i have ten composite widgets from Label 1 to label 10 and they should be placed in order from 1 to 10) is placed after label 10. when refreshed once, it comes to its right place which is after label2 and before label4. I hope I was more clearer this time, if not, please ask, ill elborate more On Aug 19, 2:36 pm, Ian Bambury wrote: > Hi Rahul, > For some reason I didn't get the email Chad has replied to. > > I'm sure there must be a way to create the layout you want in the right > order first time. Do you have an example? > > Refreshing should create exactly the same effect as running it the first > time (all other factors being equal - i.e. you are not setting a bookmark or > anything like that) > > Also, I'm not sure I understand what you mean by 'cascading tabs'. > > Ian > > http://examples.roughian.com > > 2009/8/19 Chad > > > > > Rahul, > > > Instead of trying to refresh the page, you should probably defer the > > loading of your buttons, labels, and tabs. Use a DeferredCommand for > > making the call to the method(s) for creating those widgets. It sounds > > like they are loading before something that they rely on loads. > > Although, this may have no effect whatsoever. :-/ > > > HTH, > > Chad > > > On Aug 18, 9:32 am, Rahul wrote: > > > Hi, > > > I am loading buttons in individual tabs of a tab panel. In the tab > > > panel i have some labels in order and also some cascading tabs in > > > order. > > > The first time the page is loaded, the buttons (which i want at the > > > bottom) are at the top of each tab and the cascading tabs which i want > > > in order are at the bottom of each tab. But whenever i refresh the > > > page once, everything comes to the place i want. So i figured that if > > > i refresh the page once it has been loaded, i can get the widgets > > > where i want them > > > > is this the right approach or theres a better way to do this ? > > > > On Aug 17, 11:06 pm, Ian Bambury wrote: > > > > > Why do you want to reload the page as soon as it has just loaded? > > > > Can't you just get it right the first time? > > > > > What do you want to happen the second time that didn't happen the first > > > > time? > > > > > Ian > > > > >http://examples.roughian.com > > > > > 2009/8/18 Rahul > > > > > > HI Ian, > > > > > thanks for replying > > > > > i have started looking at some tutorials for javascript > > > > > but i have some more confusion. > > > > > > all coding i did in gwt was in java in the client class, so for this > > > > > functionality also i need to code in the client class? or not? i need > > > > > to do javascript for tht. and if i can do in java, what is the > > function > > > > > ( because when searched it always shows me how to do with javascript > > > > > and not in java) > > > > > > On Aug 17, 6:00 pm, Ian Bambury wrote: > > > > > > 2009/8/17 Rahul > > > > > > > > Hi > > > > > > > I want to refresh my webpage once after loading completely. I am > > using > > > > > > > this code for this > > > > > > > > > > > > > > > function MyReload() > > > > > > > { > > > > > > > window.location.reload(); > > > > > > > } > > > > > > > > > > > > > > > and calling > > > > > > > on body part of my html file > > > > > > > > but this is not working > > > > > > > can anyone tell me where am i going wrong? > > > > > > > First problem is that you are asking a JavaScript question in a GWT > > group > > > > > > :-) > > > > > > > Second problem is that your webpage will loop, endlessly loading > > and > > > > > > reloading. This a pretty basic a mistake, so maybe it would be a > > good > > > > > idea > > > > > > to search for some JavaScript tutorials or sign up to a JavaScript > > > > > > beginners' group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~
Re: Refresh page on loading
Hi Rahul, For some reason I didn't get the email Chad has replied to. I'm sure there must be a way to create the layout you want in the right order first time. Do you have an example? Refreshing should create exactly the same effect as running it the first time (all other factors being equal - i.e. you are not setting a bookmark or anything like that) Also, I'm not sure I understand what you mean by 'cascading tabs'. Ian http://examples.roughian.com 2009/8/19 Chad > > Rahul, > > Instead of trying to refresh the page, you should probably defer the > loading of your buttons, labels, and tabs. Use a DeferredCommand for > making the call to the method(s) for creating those widgets. It sounds > like they are loading before something that they rely on loads. > Although, this may have no effect whatsoever. :-/ > > HTH, > Chad > > On Aug 18, 9:32 am, Rahul wrote: > > Hi, > > I am loading buttons in individual tabs of a tab panel. In the tab > > panel i have some labels in order and also some cascading tabs in > > order. > > The first time the page is loaded, the buttons (which i want at the > > bottom) are at the top of each tab and the cascading tabs which i want > > in order are at the bottom of each tab. But whenever i refresh the > > page once, everything comes to the place i want. So i figured that if > > i refresh the page once it has been loaded, i can get the widgets > > where i want them > > > > is this the right approach or theres a better way to do this ? > > > > On Aug 17, 11:06 pm, Ian Bambury wrote: > > > > > > > > > Why do you want to reload the page as soon as it has just loaded? > > > Can't you just get it right the first time? > > > > > What do you want to happen the second time that didn't happen the first > > > time? > > > > > Ian > > > > >http://examples.roughian.com > > > > > 2009/8/18 Rahul > > > > > > HI Ian, > > > > thanks for replying > > > > i have started looking at some tutorials for javascript > > > > but i have some more confusion. > > > > > > all coding i did in gwt was in java in the client class, so for this > > > > functionality also i need to code in the client class? or not? i need > > > > to do javascript for tht. and if i can do in java, what is the > function > > > > ( because when searched it always shows me how to do with javascript > > > > and not in java) > > > > > > On Aug 17, 6:00 pm, Ian Bambury wrote: > > > > > 2009/8/17 Rahul > > > > > > > > Hi > > > > > > I want to refresh my webpage once after loading completely. I am > using > > > > > > this code for this > > > > > > > > > > > > > >function MyReload() > > > > > >{ > > > > > >window.location.reload(); > > > > > >} > > > > > > > > > > > > > > and calling > > > > > > on body part of my html file > > > > > > > > but this is not working > > > > > > can anyone tell me where am i going wrong? > > > > > > > First problem is that you are asking a JavaScript question in a GWT > group > > > > > :-) > > > > > > > Second problem is that your webpage will loop, endlessly loading > and > > > > > reloading. This a pretty basic a mistake, so maybe it would be a > good > > > > idea > > > > > to search for some JavaScript tutorials or sign up to a JavaScript > > > > > beginners' group. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Refresh page on loading
Rahul, Instead of trying to refresh the page, you should probably defer the loading of your buttons, labels, and tabs. Use a DeferredCommand for making the call to the method(s) for creating those widgets. It sounds like they are loading before something that they rely on loads. Although, this may have no effect whatsoever. :-/ HTH, Chad On Aug 18, 9:32 am, Rahul wrote: > Hi, > I am loading buttons in individual tabs of a tab panel. In the tab > panel i have some labels in order and also some cascading tabs in > order. > The first time the page is loaded, the buttons (which i want at the > bottom) are at the top of each tab and the cascading tabs which i want > in order are at the bottom of each tab. But whenever i refresh the > page once, everything comes to the place i want. So i figured that if > i refresh the page once it has been loaded, i can get the widgets > where i want them > > is this the right approach or theres a better way to do this ? > > On Aug 17, 11:06 pm, Ian Bambury wrote: > > > > > Why do you want to reload the page as soon as it has just loaded? > > Can't you just get it right the first time? > > > What do you want to happen the second time that didn't happen the first > > time? > > > Ian > > >http://examples.roughian.com > > > 2009/8/18 Rahul > > > > HI Ian, > > > thanks for replying > > > i have started looking at some tutorials for javascript > > > but i have some more confusion. > > > > all coding i did in gwt was in java in the client class, so for this > > > functionality also i need to code in the client class? or not? i need > > > to do javascript for tht. and if i can do in java, what is the function > > > ( because when searched it always shows me how to do with javascript > > > and not in java) > > > > On Aug 17, 6:00 pm, Ian Bambury wrote: > > > > 2009/8/17 Rahul > > > > > > Hi > > > > > I want to refresh my webpage once after loading completely. I am using > > > > > this code for this > > > > > > > > > > > function MyReload() > > > > > { > > > > > window.location.reload(); > > > > > } > > > > > > > > > > > and calling > > > > > on body part of my html file > > > > > > but this is not working > > > > > can anyone tell me where am i going wrong? > > > > > First problem is that you are asking a JavaScript question in a GWT > > > > group > > > > :-) > > > > > Second problem is that your webpage will loop, endlessly loading and > > > > reloading. This a pretty basic a mistake, so maybe it would be a good > > > idea > > > > to search for some JavaScript tutorials or sign up to a JavaScript > > > > beginners' group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Refresh page on loading
Why do you want to reload the page as soon as it has just loaded? Can't you just get it right the first time? What do you want to happen the second time that didn't happen the first time? Ian http://examples.roughian.com 2009/8/18 Rahul > > HI Ian, > thanks for replying > i have started looking at some tutorials for javascript > but i have some more confusion. > > all coding i did in gwt was in java in the client class, so for this > functionality also i need to code in the client class? or not? i need > to do javascript for tht. and if i can do in java, what is the function > ( because when searched it always shows me how to do with javascript > and not in java) > > > On Aug 17, 6:00 pm, Ian Bambury wrote: > > 2009/8/17 Rahul > > > > > > > > > > > > > Hi > > > I want to refresh my webpage once after loading completely. I am using > > > this code for this > > > > > > > >function MyReload() > > >{ > > >window.location.reload(); > > >} > > > > > > > > and calling > > > on body part of my html file > > > > > but this is not working > > > can anyone tell me where am i going wrong? > > > > First problem is that you are asking a JavaScript question in a GWT group > > :-) > > > > Second problem is that your webpage will loop, endlessly loading and > > reloading. This a pretty basic a mistake, so maybe it would be a good > idea > > to search for some JavaScript tutorials or sign up to a JavaScript > > beginners' group. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Refresh page on loading
HI Ian, thanks for replying i have started looking at some tutorials for javascript but i have some more confusion. all coding i did in gwt was in java in the client class, so for this functionality also i need to code in the client class? or not? i need to do javascript for tht. and if i can do in java, what is the function ( because when searched it always shows me how to do with javascript and not in java) On Aug 17, 6:00 pm, Ian Bambury wrote: > 2009/8/17 Rahul > > > > > > > Hi > > I want to refresh my webpage once after loading completely. I am using > > this code for this > > > > > function MyReload() > > { > > window.location.reload(); > > } > > > > > and calling > > on body part of my html file > > > but this is not working > > can anyone tell me where am i going wrong? > > First problem is that you are asking a JavaScript question in a GWT group > :-) > > Second problem is that your webpage will loop, endlessly loading and > reloading. This a pretty basic a mistake, so maybe it would be a good idea > to search for some JavaScript tutorials or sign up to a JavaScript > beginners' group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Refresh page on loading
2009/8/17 Rahul > > Hi > I want to refresh my webpage once after loading completely. I am using > this code for this > > >function MyReload() >{ >window.location.reload(); >} > > > and calling > on body part of my html file > > but this is not working > can anyone tell me where am i going wrong? First problem is that you are asking a JavaScript question in a GWT group :-) Second problem is that your webpage will loop, endlessly loading and reloading. This a pretty basic a mistake, so maybe it would be a good idea to search for some JavaScript tutorials or sign up to a JavaScript beginners' group. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Refresh page on loading
Hi I want to refresh my webpage once after loading completely. I am using this code for this function MyReload() { window.location.reload(); } and calling on body part of my html file but this is not working can anyone tell me where am i going wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---