Closure Library is a JavaScript framework used by Google and one of three components to Closure Tools, an open source toolset to aid with developing front-end web applications
My .js file
function call() {
var val1;
var val2;
var b2 = new goog.ui.Button();
b2.decorate(goog.dom.getElement('but'));
goog.events.listen(b2, goog.ui.Component.EventType.ACTION,
…
I have a rather big library with a significant set of APIs that I need to expose. In fact, I'd like to expose the whole thing. There is a lot of namespacing going on, like:
FooLibrary.Bar
FooLibrary.Qux.Rumps
FooLibrary.Qux.Scrooge
..
Basically,…
I need to send the vaule read by li1 and li2 to a servlet which authenticates the user(no DB calls) and the servlet responds with a true or false.This boolean value must be read in my .js file and must alter only the DOM structure without reloading…
For one of my projects, I need to load the google closure library:
But I am getting:
[blocked] The page at http://xxx/index.html ran insecure content from…
I am making a custom plugin for the rich texteditor which sets a span with a certain class to a selected text, like:
text
Ok, so pretend I have the following text:
This is a test.
Now after selecting test and…
I am making a custom plugin for the editor provided by Google Closure. The plugin makes it able to add a button.
I am having problems by setting an onclick on the button, the other values are nicely set.
button.innerHTML =…
I'm using Google Closure's Xhrio facilities to send a POST request to a URL. When the response to this request is a 302 redirect, I'd like to redirect the user's browser to the URL being redirected to.
I've tried calling getLastUri on the object…
I am constructing a tree using the Google Closure Library. Now I want the nodes to expand on a single mouseclick, but I seem not to get it working.
I've tried calling goog.ui.component.EventType.SELECT, but it won't work.
At my tree-component class…
I'm trying to listen to a right-click event on a document, on which a pop-up menu (goog.ui.popupmenu) should be created. The very first time, the menu is created on right-click, but after that its created even on left clicks.
I tried detaching the…
I like the left menu style on this page:
https://developers.google.com/closure/utilities/docs/linter_howto.
If you click on the left arrow, it will drop down the folder.
Is this code included in the Google Closure library for the menu? I tried…
I keep getting the warning mentioned above but can't figure out why. I've added deps.js and deps.js contains a reference to the type.
Here is the offending…
Sorry for removing the original question but will try to save you from having to read through a lot of things I've tried that don't work very well.
Basically Eclipse with JSDT can't do the job. Tried to define all my namespaces with constructor…
What is the best Practice in creating a RIA via JavaScript and the Google Closure Library?
To Have one HTML Site that gets loaded and the Javascript will creating all Dom elements or is it better to have multiple html sites where only some elements…
I wonder how difficult it is to create a working "style selector" selector in the goog closure editor similar to the one in tinymce.
I mean a selector of text styles such as
heading 1
heading 2
heading 3
paragraph
From the documentation I take…