[AWPR-3] In awpr-example-webscripts whatsnew gives javascript error and does not display searched content Created: 09/Jul/09  Updated: 09/Jul/09  Resolved: 09/Jul/09

Status: Closed
Project: Alfresco Web script Portlet rivet
Component/s: awpr-liferay-portal
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: nilendra Assignee: Al El-Nattar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Alfresco 3.0 labs liferay 5.2.3 with amp patches for star1.1 and awpr-example-webscripts and IE 6.0

Attachments: File javascript error on whats new.bmp     Text File whatsnew[1]source.txt    
MoSCoW: Must do

 Description   
Java script error is displayed on IE 6.0 with mozilla it works fine when alfresco webscript is hit but gives displays only whatnew when the script url is set in awpr prefernce tab

 Comments   
Comment by nilendra [ 09/Jul/09 ]
Please find teh screen shots
Comment by Al El-Nattar [ 09/Jul/09 ]
Hi,

There's a bug in the code for the whatsnew script:

var oConfigs = {
                paginator: new YAHOO.widget.Paginator({
                    rowsPerPage: 15
                }),

        };

has an extra comma that should be removed:

var oConfigs = {
                paginator: new YAHOO.widget.Paginator({
                    rowsPerPage: 15
                })

        };

I will upload a new AMP with the fix and update this jira issue when that's done.

Cheers.
Comment by Al El-Nattar [ 09/Jul/09 ]
There's another syntax error (only in IE) that you would need to fix:

var myColumnDefs = [
            {key:"name", label:"Name"},
            {key:"description", label:"Description"},
         ];

also has an extra comma that needs to be removed:

var myColumnDefs = [
            {key:"name", label:"Name"},
            {key:"description", label:"Description"}
         ];

Cheers.
Comment by Al El-Nattar [ 09/Jul/09 ]
A new amp with the fixes has been uploaded to our wiki:

http://wiki.rivetlogic.com/download/attachments/4983599/awpr-example-webscripts-1.4.0.amp?version=2
Generated at Sat Feb 10 05:45:59 GMT 2024 using Jira 8.1.3#801003-sha1:6b6f07cffadda9a0d6efe24639daed8ce94dcdd6.