Git Product home page Git Product logo

Comments (5)

jpmckinney avatar jpmckinney commented on July 25, 2024

Can you show me your changes?

On 2012-03-12, at 1:05 PM, Matteo Redaelli wrote:

Hello,

I changed the tutorial reuters to index/show results from a "db query". With IE7 and IE8 (firefox and chrome work fine) I get the error at line 30 of file reuters.theme.js

return $('').text(value).click(handler);

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; .NET4.0C; .NET4.0E)
Timestamp: Mon, 12 Mar 2012 16:45:32 UTC

Message: Object doesn't support this property or method
Line: 30
Char: 3
Code: 0
URI: http://XXXX/ajax-solr/data/lizeo/js/reuters.theme.js

Message: Object doesn't support this property or method
Line: 1
Char: 1
Code: 0
URI: http://XXXX:8983/solr/select?facet=true&facet.field=allText&facet.field=BRAND&facet.field=WEBSITE&facet.field=MARKET&facet.field=MATERIAL&facet.field=BI_SIZE&facet.field=SEASONALITY&facet.field=PREMIUM&facet.field=DISABLED&facet.field=ITEM_TYPE&facet.field=POSITIONING&facet.field=TREND&facet.field=PRICING_SIZE&q=_%3A_&facet.limit=100&facet.mincount=1&f.BRAND.facet.limit=50&f.MARKET.facet.limit=-1&json.nl=map&wt=json&json.wrf=jsonp1331570179826&_=1331570179873

Any suggestions?

Regards
Matteo


Reply to this email directly or view it on GitHub:
#8

from ajax-solr.

matteoredaelli avatar matteoredaelli commented on July 25, 2024

Hi,

I indexed a custom database.. the solution I found is chaning the file ResultWidget.js below the short modification...

AjaxSolr.ResultWidget = AjaxSolr.AbstractWidget.extend({
beforeRequest: function () {
$(this.target).html($('').attr('src', 'images/ajax-loader.gif'));
},

facetLinks: function (facet_field, facet_values) {
var links = [];
if (facet_values) {
for (var i = 0, l = facet_values.length; i < l; i++) {
/* old
links.push(AjaxSolr.theme('facet_link', facet_values[i], this.facetHandler(facet_field, facet_values[i])));
/
/
new */
if(facet_values[i] != undefined)
links.push(AjaxSolr.theme('facet_link', facet_values[i], this.facetHandler(facet_field, facet_values[i])));
else
links.push(AjaxSolr.theme('no_items_found'));
}
}
return links;
},

from ajax-solr.

jpmckinney avatar jpmckinney commented on July 25, 2024

Sounds like this issue is closed then?

from ajax-solr.

matteoredaelli avatar matteoredaelli commented on July 25, 2024

It solved my issue.

But, please, evaluate if my small patch of ResultWidget.js could be inserted in your git sources...

Regards
Matteo

from ajax-solr.

jpmckinney avatar jpmckinney commented on July 25, 2024

Done!

from ajax-solr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.