: 4581 | 108544 | 12346

Make it easier to get XPage components by rendered id - XSP.byId 
New idea submissions, commenting and voting are no longer available on this site. Logins have also been disabled.
Use this IdeaSpace to post ideas about Domino Designer.

: 21
: 21
: 0
: Domino Designer
: xpages
: Tommy Valand2746 11 Sep 2009
: / Email
The current implementation of id's in XPages is -very- cumbersome, and makes it harder to write unobtrusive JS. A workaround for this would be to make a hashmap (converted to a JS object in the browser) of all the element names/their rendered id.
I would think this shouldn't be too hard to implement in the compiler-engine..?
// Pseudocode for the browser (I don't know the XSP API)
XSP.byId = function( id ){
id = XSP.pageIds[id] || id;
return document.getElementById( id )


Welcome to IdeaJam™

You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>

IdeaJam developed by

Elguji Software Logo