Questions tagged [google-closure-library]

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

Important links:

374 questions
0
votes
1 answer

XhrIo making multiple calls onclick

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, …
Arjun
  • 97
  • 11
0
votes
1 answer

Closure: --namespace Foo does not include Foo.Bar, and related issues

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,…
miracle2k
  • 29,597
  • 21
  • 65
  • 64
0
votes
1 answer

Read value from servlet in .js file and alter DOM structure

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…
Arjun
  • 97
  • 11
0
votes
2 answers

Google closure library blocked

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…
blueFast
  • 41,341
  • 63
  • 198
  • 344
0
votes
1 answer

javascript: Google Closure - RichTextEditor plugin

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…
0
votes
1 answer

Google Closure add onclick to button after adding this button with custom editor plugin

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 =…
0
votes
1 answer

Google Closure — XhrIO: getting URL of redirection

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…
Matthew H
  • 5,831
  • 8
  • 47
  • 82
0
votes
1 answer

Add a listener to an element created by string concatenation

I want to add a listener inside of the img tag. '
'+ ''+ '
crystal_ss
  • 171
  • 1
  • 3
  • 14
0
votes
1 answer

How to call an EventType on a goog.ui.tree.Basenode?

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…
0
votes
1 answer

Creating on popupmenu on a right-click(contextmenu) event on a document not working as expected

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…
SherinThomas
  • 1,881
  • 4
  • 16
  • 20
0
votes
2 answers

Does Google Closure have support for accordion?

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…
runners3431
  • 1,425
  • 1
  • 13
  • 30
0
votes
1 answer

Bad type annotation. Unknown type

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…
0
votes
2 answers

Eclipse code assist and closure compiler annotations

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…
HMR
  • 37,593
  • 24
  • 91
  • 160
0
votes
1 answer

Creating Dom Structure or Only Manipulating (Best Practice) (Hows does Google do it)

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…
Christian Schmitt
  • 837
  • 16
  • 47
0
votes
2 answers

how to create a style selector in google closure editor

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…
bebbi
  • 2,489
  • 3
  • 22
  • 36