I copied tried example ofbiz website within Ofbiz with and without AJP
(port 8009). Everything else works properly except that javascript scripts for showing slides on the home page do not work with AJP. I get following errors: Error: Prototype is not defined Source File: http://localhost/xxxx/script/effects.js Line: 73 Error: $w is not defined Source File: http://localhost/xxxx/script/search.js Line: 34 Error: Class is not defined Source File: http://localhost/xxxx/script/slides.js Line: 20 Error: document.observe is not a function Source File: http://localhost/xxxx/# Line: 104 Everything works just fine on port 8080 and 8443........ What may be wrong here? Please, advise. |
It looks your JS is not loaded properly. Check page source and see if
files are loaded. Thanks, Raj On Friday 28 September 2012 04:52 PM, Parm Lehal wrote: > I copied tried example ofbiz website within Ofbiz with and without AJP > (port 8009). Everything else works properly except that javascript > scripts for showing slides on the home page do not work with AJP. > > I get following errors: > > > Error: Prototype is not defined > Source File: http://localhost/xxxx/script/effects.js > Line: 73 > > Error: $w is not defined > Source File: http://localhost/xxxx/script/search.js > Line: 34 > > Error: Class is not defined > Source File: http://localhost/xxxx/script/slides.js > Line: 20 > > Error: document.observe is not a function > Source File: http://localhost/xxxx/# > Line: 104 > > Everything works just fine on port 8080 and 8443........ What may be > wrong here? Please, advise. > |
Hi Parm,
js loading hierarchy is not correct or you are not loading prototype.js file. On Fri, Sep 28, 2012 at 5:07 PM, Rajbir Saini <[hidden email]> wrote: > It looks your JS is not loaded properly. Check page source and see if > files are loaded. > > Thanks, > > Raj > > > On Friday 28 September 2012 04:52 PM, Parm Lehal wrote: > >> I copied tried example ofbiz website within Ofbiz with and without AJP >> (port 8009). Everything else works properly except that javascript >> scripts for showing slides on the home page do not work with AJP. >> >> I get following errors: >> >> >> Error: Prototype is not defined >> Source File: http://localhost/xxxx/script/**effects.js<http://localhost/xxxx/script/effects.js> >> Line: 73 >> >> Error: $w is not defined >> Source File: http://localhost/xxxx/script/**search.js<http://localhost/xxxx/script/search.js> >> Line: 34 >> >> Error: Class is not defined >> Source File: http://localhost/xxxx/script/**slides.js<http://localhost/xxxx/script/slides.js> >> Line: 20 >> >> Error: document.observe is not a function >> Source File: http://localhost/xxxx/# >> Line: 104 >> >> Everything works just fine on port 8080 and 8443........ What may be >> wrong here? Please, advise. >> >> > -- Thanks Brajesh Patel Salmonllc.com http://bigfish.salmonllc.com/bfDemo.html skype: brajesh.patel11 Cell:- +91 8750709907 |
In reply to this post by Rajbir Saini
The files are loaded...that's why it is pointing to the error in the
javascript files with line numbers......... Is there anything else which needs to be loaded other than three scripts in the script folder? On Fri, Sep 28, 2012 at 4:37 AM, Rajbir Saini <[hidden email]> wrote: > It looks your JS is not loaded properly. Check page source and see if > files are loaded. > > Thanks, > > Raj > > > On Friday 28 September 2012 04:52 PM, Parm Lehal wrote: > >> I copied tried example ofbiz website within Ofbiz with and without AJP >> (port 8009). Everything else works properly except that javascript >> scripts for showing slides on the home page do not work with AJP. >> >> I get following errors: >> >> >> Error: Prototype is not defined >> Source File: http://localhost/xxxx/script/**effects.js<http://localhost/xxxx/script/effects.js> >> Line: 73 >> >> Error: $w is not defined >> Source File: http://localhost/xxxx/script/**search.js<http://localhost/xxxx/script/search.js> >> Line: 34 >> >> Error: Class is not defined >> Source File: http://localhost/xxxx/script/**slides.js<http://localhost/xxxx/script/slides.js> >> Line: 20 >> >> Error: document.observe is not a function >> Source File: http://localhost/xxxx/# >> Line: 104 >> >> Everything works just fine on port 8080 and 8443........ What may be >> wrong here? Please, advise. >> >> > |
Thanks Brajesh and Rajbir,
Problem was that I was only forwarding one app from Ofbiz via AJP and prototype.js and some other files are server from images app in Ofbiz framework so I needed to forward that too in proxy configuration. On 9/28/12, Parm Lehal <[hidden email]> wrote: > The files are loaded...that's why it is pointing to the error in the > javascript files with line numbers......... Is there anything else which > needs to be loaded other than three scripts in the script folder? > > On Fri, Sep 28, 2012 at 4:37 AM, Rajbir Saini <[hidden email]> wrote: > >> It looks your JS is not loaded properly. Check page source and see if >> files are loaded. >> >> Thanks, >> >> Raj >> >> >> On Friday 28 September 2012 04:52 PM, Parm Lehal wrote: >> >>> I copied tried example ofbiz website within Ofbiz with and without AJP >>> (port 8009). Everything else works properly except that javascript >>> scripts for showing slides on the home page do not work with AJP. >>> >>> I get following errors: >>> >>> >>> Error: Prototype is not defined >>> Source File: >>> http://localhost/xxxx/script/**effects.js<http://localhost/xxxx/script/effects.js> >>> Line: 73 >>> >>> Error: $w is not defined >>> Source File: >>> http://localhost/xxxx/script/**search.js<http://localhost/xxxx/script/search.js> >>> Line: 34 >>> >>> Error: Class is not defined >>> Source File: >>> http://localhost/xxxx/script/**slides.js<http://localhost/xxxx/script/slides.js> >>> Line: 20 >>> >>> Error: document.observe is not a function >>> Source File: http://localhost/xxxx/# >>> Line: 104 >>> >>> Everything works just fine on port 8080 and 8443........ What may be >>> wrong here? Please, advise. >>> >>> >> > |
Free forum by Nabble | Edit this page |