Re: Manipulate a section in the html page

2011-08-31 Thread Kevin Courtney
Jeff & Thomas,

Thanks to both of you, both of your solutions work great.

Jeff, from what I've played with it so far, I tend to agree with you
that I'll want to use a GWT widget to display to the user the final
output instead of this HTML in my home page.

But I think this is going to allow me to get that HTML in the home
page so the search engine robots will parse it.  Everything I've been
reading about SEO is that one of the major keys is to have HTML that
the robots will see.   Using GWT, we seem to have very little HTML for
the robots.

Thanks again for your help,

Kevin


On Aug 29, 11:55 am, Thomas Broyer  wrote:
> On Monday, August 29, 2011 8:03:21 PM UTC+2, jchimene wrote:
>
> > HTML.wrap(Document.get().getElementById("theId")).setVisible(false);
>
> I didn't follow the thread, but you should wrap an element in a widget just
> to call a few methods. For setVisible, use the static method in UIObject:
>
> UIObject.setVisible(Document.get().getElementById("theId"), false);

-- 
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: Manipulate a section in the html page

2011-08-29 Thread Kevin Courtney
Hello,

As a followup, I'm having a heck of a time trying to find an example
and figure out the syntax and values for the properties to set.

I've tried this:

DivElement divIntroPageElement =
DivElement.as(Document.get().getElementById("introPage"));

//divIntroPageElement.setPropertyString("visibility",
"hidden");
//divIntroPageElement.setPropertyString("display", "none");
divIntroPageElement.setPropertyString("style.display",
"none");

...and none of them work.

Do any of you any of you have any insights on what I should pass to
the setPropertyString method (assuming that is the method I should be
using).?

Thanks,

Kevin

On Aug 28, 5:40 pm, Kevin Courtney  wrote:
> Thanks Jeff, exactly what I'm looking for,
>
> Kevin
>
> On Aug 28, 1:23 pm, Jeff Chimene  wrote:
>
>
>
>
>
>
>
> > On 08/28/2011 12:09 PM, Kevin Courtney wrote:
>
> > > Hello,
>
> > > In my default html page that drives my GWT app, I would like to have
> > > some html text, etc. within a  section.  Then in GWT be able to
> > > make that  section invisible and visible.
>
> > > Is this possible and if so, what is the syntax?
>
> > There are a variety of ways to do this. I'm sure others will provide
> > their solutions.
>
> > Here's one to get you started:
> > Attach an id to the div tag, then in the GWT, use
> > DivElement divElement =
> > DivElement.as(Document.get().getElementById("theId"));
>
> > Although this will give you the hook you need, you probably want to just
> > delete the element from the DOM, then replace it with one or more GWT
> > widgets.
>
> > > My goal is to have my home page intro text and images in the HTML page
> > > so that the search engine robots will parse it but then once the user
> > > is using the site, hide the section and replace it with the content
> > > from the GWT code.
>
> > > Thanks,
>
> > > Kevin Courtney
> > >http://www.beatlessongsandvideos.com/

-- 
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: Manipulate a section in the html page

2011-08-28 Thread Kevin Courtney

Thanks Jeff, exactly what I'm looking for,

Kevin


On Aug 28, 1:23 pm, Jeff Chimene  wrote:
> On 08/28/2011 12:09 PM, Kevin Courtney wrote:
>
> > Hello,
>
> > In my default html page that drives my GWT app, I would like to have
> > some html text, etc. within a  section.  Then in GWT be able to
> > make that  section invisible and visible.
>
> > Is this possible and if so, what is the syntax?
>
> There are a variety of ways to do this. I'm sure others will provide
> their solutions.
>
> Here's one to get you started:
> Attach an id to the div tag, then in the GWT, use
> DivElement divElement =
> DivElement.as(Document.get().getElementById("theId"));
>
> Although this will give you the hook you need, you probably want to just
> delete the element from the DOM, then replace it with one or more GWT
> widgets.
>
>
>
>
>
>
>
> > My goal is to have my home page intro text and images in the HTML page
> > so that the search engine robots will parse it but then once the user
> > is using the site, hide the section and replace it with the content
> > from the GWT code.
>
> > Thanks,
>
> > Kevin Courtney
> >http://www.beatlessongsandvideos.com/

-- 
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.



Manipulate a section in the html page

2011-08-28 Thread Kevin Courtney
Hello,

In my default html page that drives my GWT app, I would like to have
some html text, etc. within a  section.  Then in GWT be able to
make that  section invisible and visible.

Is this possible and if so, what is the syntax?

My goal is to have my home page intro text and images in the HTML page
so that the search engine robots will parse it but then once the user
is using the site, hide the section and replace it with the content
from the GWT code.

Thanks,

Kevin Courtney
http://www.beatlessongsandvideos.com/

-- 
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.