Changing login through JavaScript

View: New views
6 Messages — Rating Filter:   Alert me  

Changing login through JavaScript

by Valerie Nyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear experts

Yes - thanks - it is possible to use Javascript flow to access URL
parameters and update user roles.

Question:
Is it possible to use a JavaScript flow to automatically change the user
login?



Thank you

Valerie Nyre
Maas High Tech Software






 
_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

Re: Changing login through JavaScript

by karel_vervaeke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm not sure what you are asking.  Did you try the obvious?
i.e. I am starting to feel like a helpdesk, this is not how things work
here.   Please show me that you did at least some research, preferably
by showing what code you already have, indicating what does work, what
does not work, why you think it does not work, what do you expect your
code to do, what it actually does etc etc.

Here is something  that may you get started with scripting the
repository:

http://cocoondev.org/daisydocs-1_3/repository/interfaces/153-cd.html

Karel

On Thu, 2008-06-26 at 17:48 +0200, Valerie Nyre wrote:

> Dear experts
>
> Yes - thanks - it is possible to use Javascript flow to access URL
> parameters and update user roles.
>
> Question:
> Is it possible to use a JavaScript flow to automatically change the user
> login?
>
>
>
> Thank you
>
> Valerie Nyre
> Maas High Tech Software
>
>
>
>
>
>
>  
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy@...
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

Parent Message unknown Re: Changing login through JavaScript

by Valerie Nyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello


Yes I understand. In fact I am slowly learning Daisy for about 2 months
or so.

To explain: I am the typical lonely technical writer with very limited
capabilities (editing tools, basic CSS, XML, XSLT, a little JavaScript)
and very enthusiastic about finding Daisy.

Last week, I could recommend using Daisy and we actually accomplished a
documentation task in about 1 week. We produced our first PDF book in a
collaborative fashion without disturbing each other. It took only a week
to gather the information, tweak the PDF layout and then print the book.
Even my chef had to admit that we succeeded. More important, I want to
convince the developers that we make our lives more easier. I hope that
we can migrate to Daisy one day.

Now I want people to "jump" into "their" sites, without the need to
login first. But after attempting I assume that I need to know more
about cocoon pipelining. There is a user cache that needs to be
contextualized some how.. .   So at the moment I fear that I am not
capable of doing this.


I think I will have to do more and the first inspiration might be:
daisy_mailinglist_programmatically_logging in users_008841.html
[daisy] Integration with Tomcat User Authentication_000469.html



My level of programming sophistication is very low and I assume short
questions would not waste your time , but if you think it worth while I
glady show what I am trying out today.


Taking the guestbook example, i start with replacing the first function
call ....
Now after successfully updating the user ... I want to enter the Daisy
WIKI site again under this user's identity - if possible.

The l
What works today (only the possibility to change the user roles / define
a user):


    // get the parameters from the request
    var helpUserLogin = cocoon.request.getParameter("user");
    var helpUserPassword = cocoon.request.getParameter("pass");
    var helpUserEmail = cocoon.request.getParameter("mail");
    var defaultRoleToSet = "OHELP";
   
    var rolesRequested = "";
    var collections = "";
    collections = cocoon.request.getParameter("collections");
    outputString = "collections = "  + collections;
    if (collections) {
        var collpattern = ",";
            rolesRequested = collections.split(collpattern);
        }

   
    // access Daisy and use the predefined administrator to get
available roles and to maintain the user
    var daisy = getDaisy();
    var admin = "OADMIN";
    var adminPassword = "mhtmht";

    var repository = daisy.getRepository(admin,adminPassword);
    var userManager = repository.getUserManager();
    var adminUser = userManager.getUser(admin, true)
    var adminInfos =  repository.getUserInfoAsXml();

    // prepare roles to add
    var userDefaultRole = userManager.getRole(defaultRoleToSet,true);
    var rolesToAdd = new Array;
    var k = 0;


    // this query returns roles of the admin user - which makes it
possible to limit possible roles
    var rolesPossible = adminUser.allRoles.array;
    var regExpr = /\w+/;
    if ((collections != "")  && (rolesPossible != "" )) {
     for (var i=0; i<rolesRequested.length; i++) {
        for (var j=0; j<rolesPossible.length; j++) {
            var test1 = rolesPossible[j].name.toString() ;
            var test2 =  rolesRequested[i].match(regExpr);
            if (test1 == test2[0] )  {
                rolesToAdd[k] = rolesPossible[j];
                k=k+1;
                // break;
            }
        }
     };
    }


    // possible exceptions to catch
   var UserNotFoundException = /UserNotFoundException/;

    try {
            var helpUser = userManager.getUser(helpUserLogin, true);
            helpUser.clearRoles();
            helpUser.addToRole(userDefaultRole);
            if(rolesToAdd != "") {
                for (var i=0; i< rolesToAdd.length;i++) {
                    helpUser.addToRole(rolesToAdd[i]);
                }
            }
            helpUser.save();

     //
}
catch (UserNotFoundException) {

        var helpUser = userManager.createUser(helpUserLogin);
        helpUser.setFirstName("Pia");
        helpUser.setLastName("Studinger");
        helpUser.setEmail("valerie at maas.de");
        helpUser.setPassword(helpUserPassword);
        helpUser.setUpdateableByUser(false);
        helpUser.setConfirmed(true);
        helpUser.addToRole(userDefaultRole);
        for (var i=0; i< rolesToAdd.length;i++) {
            helpUser.addToRole(rolesToAdd[i]);
        }
        helpUser.save();

}

?????????????????????????????????????????
this is where I am "tinkering" at the moment:
?????????????????????????????????????????
 frontEndContext.login(helpUserLogin,helpUserPassword);
 
 showPage(helpUserLogin,helpUserPassword);








daisy-request@... schrieb:

>
> I'm not sure what you are asking.  Did you try the obvious?
> i.e. I am starting to feel like a helpdesk, this is not how things work
> here.   Please show me that you did at least some research, preferably
> by showing what code you already have, indicating what does work, what
> does not work, why you think it does not work, what do you expect your
> code to do, what it actually does etc etc.
>
> Here is something  that may you get started with scripting the
> repository:
>
> http://cocoondev.org/daisydocs-1_3/repository/interfaces/153-cd.html
>
> Karel
>
> On Thu, 2008-06-26 at 17:48 +0200, Valerie Nyre wrote:
>  
>> Dear experts
>>
>> Yes - thanks - it is possible to use Javascript flow to access URL
>> parameters and update user roles.
>>
>> Question:
>> Is it possible to use a JavaScript flow to automatically change the user
>> login?
>>
>>
>>
>> Thank you
>>
>> Valerie Nyre
>> Maas High Tech Software
>>
>>
>>
>>    

_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

Re: Re: Changing login through JavaScript

by karel_vervaeke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Much better ;-)


Note that I have never written an extension that logs in people programmatically, and I
have only seen frontEndContext.login being used in the context of the LoginApple.  Other than that, it seems your are doing well - I don't see why frontEndContext.login should not be used.

That being said, I assume that you are having problems with these lines:

> frontEndContext.login(helpUserLogin,helpUserPassword);
>  
>  showPage(helpUserLogin,helpUserPassword);

Can you tell us what the result is of these lines? Is there any logging output?

Karel


On Fri, 2008-06-27 at 13:05 +0200, Valerie Nyre wrote:

> Hello
>
>
> Yes I understand. In fact I am slowly learning Daisy for about 2 months
> or so.
>
> To explain: I am the typical lonely technical writer with very limited
> capabilities (editing tools, basic CSS, XML, XSLT, a little JavaScript)
> and very enthusiastic about finding Daisy.
>
> Last week, I could recommend using Daisy and we actually accomplished a
> documentation task in about 1 week. We produced our first PDF book in a
> collaborative fashion without disturbing each other. It took only a week
> to gather the information, tweak the PDF layout and then print the book.
> Even my chef had to admit that we succeeded. More important, I want to
> convince the developers that we make our lives more easier. I hope that
> we can migrate to Daisy one day.
>
> Now I want people to "jump" into "their" sites, without the need to
> login first. But after attempting I assume that I need to know more
> about cocoon pipelining. There is a user cache that needs to be
> contextualized some how.. .   So at the moment I fear that I am not
> capable of doing this.
>
>
> I think I will have to do more and the first inspiration might be:
> daisy_mailinglist_programmatically_logging in users_008841.html
> [daisy] Integration with Tomcat User Authentication_000469.html
>
>
>
> My level of programming sophistication is very low and I assume short
> questions would not waste your time , but if you think it worth while I
> glady show what I am trying out today.
>
>
> Taking the guestbook example, i start with replacing the first function
> call ....
> Now after successfully updating the user ... I want to enter the Daisy
> WIKI site again under this user's identity - if possible.
>
> The l
> What works today (only the possibility to change the user roles / define
> a user):
>
>
>     // get the parameters from the request
>     var helpUserLogin = cocoon.request.getParameter("user");
>     var helpUserPassword = cocoon.request.getParameter("pass");
>     var helpUserEmail = cocoon.request.getParameter("mail");
>     var defaultRoleToSet = "OHELP";
>    
>     var rolesRequested = "";
>     var collections = "";
>     collections = cocoon.request.getParameter("collections");
>     outputString = "collections = "  + collections;
>     if (collections) {
>         var collpattern = ",";
>             rolesRequested = collections.split(collpattern);
>         }
>
>    
>     // access Daisy and use the predefined administrator to get
> available roles and to maintain the user
>     var daisy = getDaisy();
>     var admin = "OADMIN";
>     var adminPassword = "mhtmht";
>
>     var repository = daisy.getRepository(admin,adminPassword);
>     var userManager = repository.getUserManager();
>     var adminUser = userManager.getUser(admin, true)
>     var adminInfos =  repository.getUserInfoAsXml();
>
>     // prepare roles to add
>     var userDefaultRole = userManager.getRole(defaultRoleToSet,true);
>     var rolesToAdd = new Array;
>     var k = 0;
>
>
>     // this query returns roles of the admin user - which makes it
> possible to limit possible roles
>     var rolesPossible = adminUser.allRoles.array;
>     var regExpr = /\w+/;
>     if ((collections != "")  && (rolesPossible != "" )) {
>      for (var i=0; i<rolesRequested.length; i++) {
>         for (var j=0; j<rolesPossible.length; j++) {
>             var test1 = rolesPossible[j].name.toString() ;
>             var test2 =  rolesRequested[i].match(regExpr);
>             if (test1 == test2[0] )  {
>                 rolesToAdd[k] = rolesPossible[j];
>                 k=k+1;
>                 // break;
>             }
>         }
>      };
>     }
>
>
>     // possible exceptions to catch
>    var UserNotFoundException = /UserNotFoundException/;
>
>     try {
>             var helpUser = userManager.getUser(helpUserLogin, true);
>             helpUser.clearRoles();
>             helpUser.addToRole(userDefaultRole);
>             if(rolesToAdd != "") {
>                 for (var i=0; i< rolesToAdd.length;i++) {
>                     helpUser.addToRole(rolesToAdd[i]);
>                 }
>             }
>             helpUser.save();
>
>      //
> }
> catch (UserNotFoundException) {
>
>         var helpUser = userManager.createUser(helpUserLogin);
>         helpUser.setFirstName("Pia");
>         helpUser.setLastName("Studinger");
>         helpUser.setEmail("valerie at maas.de");
>         helpUser.setPassword(helpUserPassword);
>         helpUser.setUpdateableByUser(false);
>         helpUser.setConfirmed(true);
>         helpUser.addToRole(userDefaultRole);
>         for (var i=0; i< rolesToAdd.length;i++) {
>             helpUser.addToRole(rolesToAdd[i]);
>         }
>         helpUser.save();
>
> }
>
> ?????????????????????????????????????????
> this is where I am "tinkering" at the moment:
> ?????????????????????????????????????????
>  frontEndContext.login(helpUserLogin,helpUserPassword);
>  
>  showPage(helpUserLogin,helpUserPassword);
>
>
>
>
>
>
>
>
> daisy-request@... schrieb:
> >
> > I'm not sure what you are asking.  Did you try the obvious?
> > i.e. I am starting to feel like a helpdesk, this is not how things work
> > here.   Please show me that you did at least some research, preferably
> > by showing what code you already have, indicating what does work, what
> > does not work, why you think it does not work, what do you expect your
> > code to do, what it actually does etc etc.
> >
> > Here is something  that may you get started with scripting the
> > repository:
> >
> > http://cocoondev.org/daisydocs-1_3/repository/interfaces/153-cd.html
> >
> > Karel
> >
> > On Thu, 2008-06-26 at 17:48 +0200, Valerie Nyre wrote:
> >  
> >> Dear experts
> >>
> >> Yes - thanks - it is possible to use Javascript flow to access URL
> >> parameters and update user roles.
> >>
> >> Question:
> >> Is it possible to use a JavaScript flow to automatically change the user
> >> login?
> >>
> >>
> >>
> >> Thank you
> >>
> >> Valerie Nyre
> >> Maas High Tech Software
> >>
> >>
> >>
> >>    
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy@...
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

Parent Message unknown Re: Changing login through JavaScript

by Valerie Nyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Excuse me - i forgot to update the subject line....





Hello Karel


Thank you for responding.

(after updating the user's roles, I would like to login under the user's
identity from a Javascript flow:

but it seems wrong to try do this with the following statement:

 frontEndContext.login(helpUserLogin,helpUserPassword);
 showPage(helpUserLogin,helpUserPassword);



The error message I receive probably indicates that I might need to
import a missing class or must initialize and establish or work on a
different level:
Message: ReferenceError: "frontEndContext" is not defined.
(file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js#120)


my regards

Valerie





the detailed error stack is:


Error
Error calling flowscript function OHELPhelp
ReferenceError: "frontEndContext" is not defined.
(file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js#120)


Show Details
Hide Details
Cocoon Stack Trace
Message: ReferenceError: "frontEndContext" is not defined.
(file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js#120)
file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js -
120:0    ReferenceError

Message: Error calling flowscript function OHELPhelp
file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js -
120:0    [EcmaError]
file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js -
120:-1  
file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/sitemap.xmap
- 23:41    <map:call>
file:/D:/Programme/Daisy/daisy-2.2/daisywiki/webapp/daisy/sitemap.xmap -
909:154    <map:mount>

Java Stack Trace
Message: Error calling flowscript function OHELPhelp
Class: org.apache.cocoon.ProcessingException
Stacktrace:
org.apache.cocoon.ProcessingException.throwLocated
(ProcessingException.java:145)
org.apache.cocoon.components.flow.javascript.LocationTrackingDebugger.getException
(LocationTrackingDebugger.java:132)
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction
(FOM_JavaScriptInterpreter.java:768)
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke
(CallFunctionNode.java:139)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:118)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke
(ActTypeNode.java:139)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:118)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.Cocoon.process (Cocoon.java:699)
org.apache.cocoon.servlet.CocoonServlet.service (CocoonServlet.java:1154)
javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1098)
org.outerj.daisy.frontend.util.CharacterEncodingFilter.doFilter
(CharacterEncodingFilter.java:35)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1089)
org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:365)
org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216)
org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181)
org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712)
org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java:405)
org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle (Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:502)
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:821)
org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:513)
org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:208)
org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:378)
org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:368)
org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Message: ReferenceError: "frontEndContext" is not defined.
(file:/D:/Programme/Daisy/wikidata/sites/900.OHELP-HELP/cocoon/flow.js#120)
Class: org.mozilla.javascript.EcmaError
Stacktrace:
org.mozilla.javascript.ScriptRuntime.constructError
(ScriptRuntime.java:3229)
org.mozilla.javascript.ScriptRuntime.constructError
(ScriptRuntime.java:3219)
org.mozilla.javascript.ScriptRuntime.notFoundError (ScriptRuntime.java:3292)
org.mozilla.javascript.ScriptRuntime.nameOrFunction
(ScriptRuntime.java:1636)
org.mozilla.javascript.ScriptRuntime.name (ScriptRuntime.java:1575)
org.mozilla.javascript.Interpreter.interpretLoop (Interpreter.java:3162)
org.mozilla.javascript.Interpreter.interpret (Interpreter.java:2251)
org.mozilla.javascript.InterpretedFunction.call
(InterpretedFunction.java:161)
org.mozilla.javascript.ContextFactory.doTopCall (ContextFactory.java:340)
org.mozilla.javascript.ScriptRuntime.doTopCall (ScriptRuntime.java:2758)
org.mozilla.javascript.InterpretedFunction.call
(InterpretedFunction.java:159)
org.mozilla.javascript.ScriptRuntime.call (ScriptRuntime.java:915)
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction
(FOM_JavaScriptInterpreter.java:764)
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke
(CallFunctionNode.java:139)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:118)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke
(ActTypeNode.java:139)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:47)
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke
(MatchNode.java:108)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke
(MountNode.java:118)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke
(PipelineNode.java:143)
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
(AbstractParentProcessingNode.java:69)
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke
(PipelinesNode.java:93)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:235)
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
(ConcreteTreeProcessor.java:177)
org.apache.cocoon.components.treeprocessor.TreeProcessor.process
(TreeProcessor.java:253)
org.apache.cocoon.Cocoon.process (Cocoon.java:699)
org.apache.cocoon.servlet.CocoonServlet.service (CocoonServlet.java:1154)
javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1098)
org.outerj.daisy.frontend.util.CharacterEncodingFilter.doFilter
(CharacterEncodingFilter.java:35)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1089)
org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:365)
org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216)
org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181)
org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712)
org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java:405)
org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle (Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:502)
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:821)
org.mortbay.jetty.HttpParser.parseNext (HttpParser.java:513)
org.mortbay.jetty.HttpParser.parseAvailable (HttpParser.java:208)
org.mortbay.jetty.HttpConnection.handle (HttpConnection.java:378)
org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:368)
org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)




_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

Parent Message unknown Re: Changing login through JavaScript

by Valerie Nyre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Karel Vervaeke


My greatest thanks for this update and functionality. This will "convince" even our hardiest programmers of the capabilities of interfacing with Daisy with the smallest footprint possible.

Hope to continue collaboration with you at a higher level one day.  For now, we will use it and use Daisy as-is, until we have established a daisy repository.
 


Thanks again

Valerie Nyre
Maas High Tech Software






Message: 1
Date: Mon, 30 Jun 2008 09:49:51 +0200
From: Karel Vervaeke karel@...
Subject: Re: [daisy] Re: daisy Digest, Vol 45, Issue 43
To: "Daisy: open source CMS - general mailinglist"
	daisy@...
Message-ID: <1214812191.7399.12.camel@banana>
Content-Type: text/plain

  
Message: ReferenceError: "frontEndContext" is not defined. 
    

=> This should be fixed by declaring the variable frontEndContext.
There is a helper-method in daisy-util.js called getFrontEndContext();

See here for more information: 

http://cocoondev.org/daisydocs-2_3/374-cd/60-cd/198-cd.html

(In short, you need 'cocoon.load(...)', 'getDaisy()' and 'getFrontEndContext()')

HTH,
Karel

  


_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy
LightInTheBox - Buy quality products at wholesale price