1. #1
    Ext User Mike Amberg's Avatar
    Join Date
    Jun 2007
    Posts
    32
    Vote Rating
    0
    Mike Amberg is on a distinguished road

      0  

    Question Notes Server Login - How to redirect to Ext.Nd Login

    Notes Server Login - How to redirect to Ext.Nd Login


    Is it possible to intercept the standard Notes Server Login form and display an Ext.nd Server login form? Currently when I right-click on a view to edit a document the Standard Server Login form is displayed. I would like to present an Ext.nd style of form.

    Environment:
    Ext Version: Ext.nd 2.01 Beta
    Notes Server: Release 6.5.5FP2 on Windows NT 5.2
    Last edited by Mike Amberg; 15 Feb 2008 at 5:29 AM. Reason: Fix spelling mistake

  2. #2
    Ext User mdm-adph's Avatar
    Join Date
    May 2007
    Posts
    187
    Vote Rating
    0
    mdm-adph is on a distinguished road

      0  

    Default


    (This may be a silly question, but I just need to know...)

    Why's the login form coming up? Are you viewing the view with a different login that you'd use if you edit a doc?

  3. #3
    Ext User Mike Amberg's Avatar
    Join Date
    Jun 2007
    Posts
    32
    Vote Rating
    0
    Mike Amberg is on a distinguished road

      0  

    Default


    The database has maximum internet access set to "editor", the form has an author field, restricting who can edit the document (in this case users with the role "admin").

    Anyone can view the documents (its our companies global addressbook of our offices and partners) but only specified individuals will be allowed to edit selected documents.

  4. #4
    Sencha - Services Team
    Join Date
    Mar 2007
    Location
    Foristell, MO
    Posts
    1,108
    Vote Rating
    3
    jratcliff is on a distinguished road

      0  

    Default


    When we merged Domino YUI (Rich), Domino Web Tools (me), and DExt (Jake Howlett), there was a 'login' method that Jake had that when called would open a modal dialog asking for your username and password to log you in. We never converted that to work with our Ext 2.x version so I'll look into what it would take to do so and see if we can get it in an upcoming release (maybe the next beta if it isn't too difficult)

    ~Jack R.

  5. #5
    Ext User mdm-adph's Avatar
    Join Date
    May 2007
    Posts
    187
    Vote Rating
    0
    mdm-adph is on a distinguished road

      0  

    Default


    Well, I don't know the accepted solution in Ext.nd is, but my awful hack for this situation is to:

    1) Run an ajax request for the document you're trying to load in edit mode (with the whole ?EditDocument business on the end).

    2) Test the responseText to see if it's the default login page (just search for action="/names.nsf?Login" ).

    3) If it is the default login page, present your pretty Ext one, fire away a request at "/names.nsf?Login" to get the server authorization, and then try and load the original requested document again.

    Seriously, though -- don't do this.

  6. #6
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Hi,

    I
    Attached Images

  7. #7
    Ext User mdm-adph's Avatar
    Join Date
    May 2007
    Posts
    187
    Vote Rating
    0
    mdm-adph is on a distinguished road

      0  

    Default


    Hey, doesn't look bad -- I was lazy though, so I just tacked mine on to the "requestcomplete" handler of the global Ext.Ajax object. :P

  8. #8
    Ext User
    Join Date
    May 2008
    Posts
    3
    Vote Rating
    0
    wcdulanyjr is on a distinguished road

      0  

    Default


    So how is it coming along? Are you still at 85 percent?