|
Hi list,
I am troubled with the error in the Name authority lookup function which occurs only in specific browsers. I am using my custom ChoiceAuthority plugin, but this error is reproduced in LCNameAuthority in the jspui version of the dspace demo site, When I click the zoom icon next to an author field with Internet Explorer 7 with Windows XP Home Edition ServicePack 3, I get the alert with the error "Failed to load choice data: Exception=[object Error]" and can not get choices. I received the information that IE8 with WindowsVista and IE9 with Windows7 also generate the same problem. But in my Windows XP Professional Service Pack 3 environment, this error is not occured with Internet Explorer 8, FireFox, Chrome, Opera and Safari. I know that this error is outputted by the OnException function of the Ajax.Request() in the DSpaceChoicesLoad() function in the choice-support.js. I have googled to solve this problem, but I could not find it so far. Does anyone have any information for this problem? Thank you in advance, Keiji Suzuki Ebetsu, Japan ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ DSpace-tech mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/dspace-tech |
|
Hi list,
Resolved. The following patch to dspace-jsp/dspace-jsp-webapp/ src/main/webapp/static/js/choice-support.js resolves this problem. --- choice-support.js.org 2012-02-21 10:47:16.482735352 +0900 +++ choice-support.js 2012-02-21 10:48:47.830748671 +0900 @@ -261,7 +261,11 @@ var ovalue = opt.getAttributeNode('value').value; var option = new Option(olabel, ovalue); option.authority = opt.getAttributeNode('authority').value; - select.add(option, null); + try { + select.add(option, null); + } catch(e) { + select.add(option); + } if (value == ovalue) selectedByValue = select.options.length - 1; if (opt.getAttributeNode('selected') != null) @@ -270,7 +274,11 @@ // add non-authority option if needed. if (!isClosed) { - select.add(new Option(dspace_formatMessage(nonAuthority, value), value), null); + try { + select.add(new Option(dspace_formatMessage(nonAuthority, value), value), null); + } catch(e) { + select.add(new Option(dspace_formatMessage(nonAuthority, value), value)); + } } var defaultSelected = -1; if (selectedByChoices >= 0) Thank you, Keiji Suzuki Ebetsu, Japan 2012/2/20 SUZUKI Keiji <[hidden email]>: > Hi list, > > I am troubled with the error in the Name authority lookup function which > occurs only in specific browsers. I am using my custom ChoiceAuthority plugin, > but this error is reproduced in LCNameAuthority in the jspui version of the > dspace demo site, > > When I click the zoom icon next to an author field with Internet Explorer 7 > with Windows XP Home Edition ServicePack 3, I get the alert with the error > "Failed to load choice data: Exception=[object Error]" and can not get choices. > > I received the information that IE8 with WindowsVista and IE9 with Windows7 > also generate the same problem. > > But in my Windows XP Professional Service Pack 3 environment, > this error is not occured with Internet Explorer 8, FireFox, Chrome, Opera > and Safari. > > I know that this error is outputted by the OnException function of the > Ajax.Request() in the DSpaceChoicesLoad() function in the choice-support.js. > I have googled to solve this problem, but I could not find it so far. > > Does anyone have any information for this problem? > > Thank you in advance, > > Keiji Suzuki > Ebetsu, Japan -- 鈴木敬二@江別市 ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ DSpace-tech mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/dspace-tech |
| Powered by Nabble | See how NAML generates this page |
