• Anonymous
  • Login
  • Register
Xpages Dojo Login Custom Control - Feature Request: Adjust code to work with users who have no access to the NAB ( example below )

Created on Oct 20, 2010 Last modified on Oct 21, 2010
Created by sean cull Last modified by F. Kranenburg
Status Added to app

The code has names.nsf hardcoded as the database to authenticate against.

If you replace this code

<xp:scriptBlock id="scr_Login">
        <xp:this.value><![CDATA[function login(data){
        dojo.xhrPost({
                url: '/names.nsf?login',
                handleAs : "text",
                content: {

with this code

<xp:scriptBlock id="scr_Login">
        <xp:this.value><![CDATA[function login(data){
        dojo.xhrPost({
                url: window.location.href.split('.nsf')[0] + '.nsf?Login',
                handleAs : "text",
                content: {

the login can be used where users do not have access to names.nsf which is the case in many of our applications

Sean




Taken Actions by Owners

Specify the new property 'urlLoginNSF', if using current database, use:

'facesContext.getExternalContext().getRequest().getContextPath()'



Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.