Questions tagged [google-closure]

Google Closure is a framework for writing large-scale applications in JavaScript. It includes an extensive library, a linter, a compiler, a template system, and a stylesheet language.

Google Closure is a framework for writing large-scale applications in JavaScript. It includes an extensive library, a linter, a compiler, a template system, and a stylesheet language.

Closure is an Object-Oriented framework which borrows many concepts from Java, such as support for strong typing for compile-time checking, and deep object inheritance hierarchies.

532 questions
0
votes
1 answer

How to use Google's closure quadtree

Looking at Google's closures quadtree: http://docs.closure-library.googlecode.com/git/class_goog_structs_QuadTree.html I am unable to find the methods that give it any more useful properties than a hashmap (unless, I manually walked the tree). So,…
Heptic
  • 3,076
  • 4
  • 30
  • 51
0
votes
1 answer

MouseOver performance

I am trying to build something like this in jQuery UI ( http://jqueryui.com/selectable/#default ) Click on item 1 and then drag your mouse - you will see a [outline rectange] as visual cue for selected items. while i was trying thsi in Google…
aked
  • 5,625
  • 2
  • 28
  • 33
0
votes
1 answer

Check Box using Google Closure

I retrieve a list of users from database and display it in a JSP. Each user has a status(Active or Inactive) associated with them and the status can be updated based on check-box selection on click of either activate or deactivate user. How do we…
0
votes
0 answers

How to create a ModalPopup with a form

I'm trying to create a popup menu which when clicked opens a form to accept user details.Is there a way to create a popup which has a form using Google Closure??
Arjun
  • 97
  • 11
0
votes
1 answer

ModalPopup or Dialog Using Google Closure

When "add Employee" link is clicked a ppopup must appear with fields to accept user details. I tried many things but ended up opening a new window and not a popup. how to get the following code to work in a popup or a dialog or a ModalPopup function…
Arjun
  • 97
  • 11
0
votes
2 answers

I can't access labels via "for" attribute in Firefox, but can in Chrome

I have a form which I need to dynamically populate the labels of (which was generated with Google Closure). I got it working in chrome, but when I tried it in Firefox it wouldn't work, and fails with the following error: TypeError:…
dstudeba
  • 8,878
  • 3
  • 32
  • 41
0
votes
2 answers

Include html pages with Google Closure

I'm working with Google Closure. I'm trying to include some html files in another one. Just like A.html import B.html and C.html, but actually, I don't get how to do that. Can anyone could give some orientation please? Thx in advance.
Rhigo HR
  • 93
  • 1
  • 1
  • 8
0
votes
1 answer

Adding plugin to Google Closure editor

I am using Google Closure editor and I would need to change the functionality of one button (namely Link). I thought that either I would inherit the responsible plugin (BasicTextFormatter in this case), or I would create a new plugin, whichever was…
0
votes
1 answer

prevent default in IE

I have event function like this: ###* Function to show all items ### showAllItemsToggle_: ( e ) -> e.stopPropagation() e.preventDefault() element = e.target .... and it is on tag with href="#" and only in IE after…
0
votes
1 answer

goog.locale: TypeError: Cannot read property 'COUNTRY' of undefined

I am using `goog.locale.getlocalizedcountryname' function in my code to get localized full country names from country codes eg 'en-US'. goog.locale.getLocalizedCountryName('en-US') // Actual implementation contains variablename. gives TypeError:…
0xc0de
  • 8,028
  • 5
  • 49
  • 75
0
votes
1 answer

Constructing a valid JSON object with Javascript

I'm using the code below to construct a JSON object that looks like…
drecute
  • 748
  • 4
  • 11
  • 29
0
votes
1 answer

Activate a combobox from a checkbox using google closure

I have a set of check boxes with Id's user1,user2 and so on and also set of combo boxes with Id's usersel1,usersel2 and so on in a dialog. When a check box is checked (say suppose with Id user1) then corresponding combo box must be activated(i.e…
0
votes
1 answer

Can we create a dialog box with a checkbox and a combobox using google closure

I am trying to create a dialog box with a checkbox, a user name and a combobox for roles which is enabled only when the checkbox is checked. I have the basic code running on a jsp page but how do i get it to work in a dialog box? All the components…
Arjun
  • 97
  • 11
0
votes
1 answer

Add json response content to a dialog box as links using google closure

I am getting the json content sent from a servlet properly but when I'm trying to set it inside the dialog box using a for loop I'm not able to,only the last element is getting updated. I can set it manually by specifying each element which i do not…
Arjun
  • 97
  • 11
0
votes
1 answer

How to xlf-translate soy template by plovr?

{msg desc="Says hello and tells user to click a link."} Hello {$userName}! Please click here. {/msg} what set config file or request params in plovr?
constantant
  • 1,192
  • 1
  • 13
  • 25