[ckan-dev] R: R: R: JS error in recline.js on IE 8

Salvatore Altiero salvatore.altiero at linksmt.it
Thu Jan 10 16:09:39 UTC 2013


Dear Rufus,
if you want to see the live site, you can look at this url:

http://opendata.comune.bari.it/dataset/organico-comune-di-bari/resource/3a250fd7-926d-4e85-a71e-bfeee009f5e5

You can see an JS error with IE8

Messaggio: 'this._container._leaflet' è nullo o non è un oggetto
Linea: 6
Carattere: 12348
Codice: 0
URI: http://opendata.comune.bari.it/scripts/vendor/leaflet/0.3.1/leaflet.js


Many Tanks

-----Messaggio originale-----
Da: ckan-dev-bounces at lists.okfn.org [mailto:ckan-dev-bounces at lists.okfn.org] Per conto di Rufus Pollock
Inviato: giovedì 10 gennaio 2013 11:48
A: CKAN Development Discussions
Oggetto: Re: [ckan-dev] R: R: JS error in recline.js on IE 8

Dear Salvatore,

Unfortunately it is pretty hard to debug that further without seeing the live site - essentially the element is not being found in the DOM by IE which is pretty odd!

Rufus

PS: we recommend asking general tech questions on StackOverflow with the CKAN tag: http://stackoverflow.com/questions/tagged/ckan

On 9 January 2013 10:49, Salvatore Altiero <salvatore.altiero at linksmt.it> wrote:
> Many Thanks to Rufus Pollack,
> I've resolved my JS errro on IE8 with this actions:
> - fixing recline.js (https://github.com/okfn/recline/pull/237 rename 
> delete methods in remove methods, remove comma end line)
> - adding ecma-fixes.js 
> (http://okfnlabs.org/recline/docs/src/ecma-fixes.html)
> - adding ecma-fixes.js include in recline.js
>
>
> Now I've another JS error only in IE because in my recline.js, the this.$map.get(0) is undefined for IE and not FF.
>
> The line(1873) in recline.js:
>
> - this.map = new L.Map(this.$map.get(0));
>
> And the problem is in the line (1609) in recline.js:
>
> - this.$map = this.el.find('.panel.map');
>
> In FF I've this.$map.length = 1 and in IE this.$map.length = 0.
>
> Can someone help me ?
>
> -----Messaggio originale-----
> Da: ckan-dev-bounces at lists.okfn.org 
> [mailto:ckan-dev-bounces at lists.okfn.org] Per conto di Rufus Pollock
> Inviato: lunedì 19 novembre 2012 16:02
> A: CKAN Development Discussions
> Oggetto: Re: [ckan-dev] R: R: JS error in recline.js on IE 8
>
> You could try and apply the IE fixes directly to your Recline version:
>
> https://github.com/okfn/recline/pull/237
>
> Also I note that recline.js still supports the v1.7 style datastore via the ElasticSearch backend.
>
> Rufus
>
> On 19 November 2012 14:51, Salvatore Altiero <salvatore.altiero at linksmt.it> wrote:
>> I cannot use 1.8 recline.js library in my 1.7.1 installation because change the the datastorer technology.
>>
>> I've tried to replace the recline.js file and nothing to do.
>>
>> Have you any ideas to solve my problem ?
>>
>> -----Messaggio originale-----
>> Da: ckan-dev-bounces at lists.okfn.org
>> [mailto:ckan-dev-bounces at lists.okfn.org] Per conto di Fumihiro Kato
>> Inviato: lunedì 19 novembre 2012 13:30
>> A: CKAN Development Discussions
>> Oggetto: Re: [ckan-dev] R: JS error in recline.js on IE 8
>>
>> Hi Salvatore,
>>
>> I have used js and css files of the master branch, not v0.5.
>>
>>   https://raw.github.com/okfn/recline/master/dist/recline.js
>>   https://raw.github.com/okfn/recline/master/dist/recline.dataset.js
>>   https://raw.github.com/okfn/recline/master/dist/recline.css
>>
>> Fumi
>>
>> On Mon, Nov 19, 2012 at 8:52 PM, Salvatore Altiero <salvatore.altiero at linksmt.it> wrote:
>>> Hi Fumi,
>>> where I can download the latest recline library ?
>>>
>>> I've installed this:
>>> https://raw.github.com/okfn/recline/v0.5/dist/recline.js
>>>
>>> In folder
>>> /home/opendata/pyenv/src/ckan/ckan/public/scripts/vendor/recline
>>>
>>> But now I've problem also with FF, so I've to restore old version.
>>>
>>>
>>> -----Messaggio originale-----
>>> Da: ckan-dev-bounces at lists.okfn.org
>>> [mailto:ckan-dev-bounces at lists.okfn.org] Per conto di Fumihiro Kato
>>> Inviato: venerdì 16 novembre 2012 14:50
>>> A: rufus.pollock at okfn.org; CKAN Development Discussions
>>> Oggetto: Re: [ckan-dev] JS error in recline.js on IE 8
>>>
>>> Hi,
>>>
>>> I had just encountered a similar error with CKAN v1.8, too. It was fixed after changing to the latest recline library.
>>>
>>> Fumi
>>>
>>> On Fri, Nov 16, 2012 at 9:57 PM, Rufus Pollock <rufus.pollock at okfn.org> wrote:
>>>> Any way to use CKAN v1.8 or even the 2.0 beta (current master). A 
>>>> bunch of work to improve IE compatibility was done that went into v1.8.
>>>>
>>>> Rufus
>>>>
>>>>
>>>> On 16 November 2012 12:06, Salvatore Altiero 
>>>> <salvatore.altiero at linksmt.it>
>>>> wrote:
>>>>>
>>>>> Hi all,
>>>>>
>>>>> I’ve installed CKAN 1.7.1 on Ubuntu 10.4 from source code.
>>>>>
>>>>>
>>>>>
>>>>> I’ve plugged in Datastorer support to enable data resource Preview.
>>>>>
>>>>>
>>>>>
>>>>> The Preview feature is ok on Firefox 16 but on Internet Explorer 8 
>>>>> I’ve not preview with this js error:
>>>>>
>>>>>
>>>>>
>>>>> Messaggio: Previsto identificatore
>>>>>
>>>>> Linea: 3206
>>>>>
>>>>> Carattere: 23
>>>>>
>>>>> Codice: 0
>>>>>
>>>>> URI:
>>>>> http://opendata.comune.bari.it/scripts/vendor/recline/recline.js
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Messaggio: 'recline' non è definito
>>>>>
>>>>> Linea: 1569
>>>>>
>>>>> Carattere: 7
>>>>>
>>>>> Codice: 0
>>>>>
>>>>> URI:
>>>>> http://opendata.comune.bari.it/scripts/application.js?lang=${c.loc
>>>>> a
>>>>> l
>>>>> e
>>>>> }
>>>>>
>>>>>
>>>>>
>>>>> Can you help me ?
>>>>>
>>>>>
>>>>>
>>>>> Salvatore Altiero
>>>>>
>>>>> Delivery Leader | Divisione PA & Industries Links Management and 
>>>>> Technology S.p.A.
>>>>>
>>>>> Via R. Scotellaro, 55 - 73100 Lecce
>>>>> Tel: +39 0832.443911 - Fax: +39 0832.443926
>>>>> Mobile: +39 3939681336
>>>>> e-Mail: salvatore.altiero at linksmt.it
>>>>> Web:   www.linksmt.it
>>>>> Link:   Nota di Riservatezza
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> This email was Virus checked by Astaro Security Gateway.
>>>>> http://www.astaro.com
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ckan-dev mailing list
>>>>> ckan-dev at lists.okfn.org
>>>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Co-Founder, Open Knowledge Foundation Promoting Open Knowledge in a 
>>>> Digital Age http://www.okfn.org/ - http://blog.okfn.org/
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>>
>>> --
>>> This email was Virus checked by Astaro Security Gateway.
>>> http://www.astaro.com
>>>
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>> --
>> This email was Virus checked by Astaro Security Gateway.
>> http://www.astaro.com
>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> --
> Co-Founder, Open Knowledge Foundation
> Promoting Open Knowledge in a Digital Age http://www.okfn.org/ - 
> http://blog.okfn.org/
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
> --
> This email was Virus checked by Astaro Security Gateway. 
> http://www.astaro.com
>
>
> --
> This email was Virus checked by Astaro Security Gateway. 
> http://www.astaro.com
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev



--
Co-Founder, Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age http://www.okfn.org/ - http://blog.okfn.org/

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev

--
This email was Virus checked by Astaro Security Gateway. http://www.astaro.com





More information about the ckan-dev mailing list