That was the ticket Thomase. Too bad Google sites don't bother to present 
the version, but perhaps it is an obscurity/security justification. Still, 
my point in doing this is to raise GWT awareness, so advertising the 
presence of GWT is more important than a precise version number.

var gwtVersion = null;var frames = document.getElementsByTagName('iframe');for 
(var i=0; i<frames.length; i++) {
    // prevent security access errors
    try {
        if(frames[i].contentWindow.$gwt_version) {
            gwtVersion = frames[i].contentWindow.$gwt_version;
            break;
        }
    }
    catch(e) {}
}


Sincerely,
Joseph

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/b6ugP1Adt_gJ.
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.

Reply via email to