This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Oct 5, 2012, 3:16 PM
24 Posts

Client side JavaScript document.getElementById() is empty on web browser

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
I have client side JavaScript that runs behind a button that uses the getElementById() method.
 
Here is a sample of the code:
document.getElementById("#{id:sr_Name1}").value = jsonValue;
 
When it gets to the web, it appears as:
document.getElementById("").value = jsonValue; 
 
which causes errors.
 
I checked the Page Source and it looks like all "{#id:xxxxxxx}" are missing.  I have rebuilt the project and cleaned the project in Domino Designer, but those values are still missing on the web.
 
I have never seen this before -- an ideas?
 
Thanks!
Oct 6, 2012, 6:27 PM
366 Posts
Re: Client side JavaScript document.getElementById() is empty on web browser
 Is the document in read mode or edit mode?
 
That code will only work when the XPage document is in Edit mode. 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal