[TYPO3-english] mh_omsqlio says "loading..." but gives no results

Nils Hodyas post at dietantejensen.de
Mon Feb 23 11:06:14 CET 2015


Hi, glad I could help!

Am 20.02.2015 um 14:12 schrieb Nico Deblauwe:
> Hi Nils, all,
>
> *> ​Currently, jQuery seems to be included via "includeJSFooterlibs" [...]
> or something *
> *> similar. [...] You'll have to change that to "includeJSLibs" (or the
> like), so that it gets *
> *> included at the top.*
> I went looking for the typoscript files in the bootstrap_package extension,
> altered it there and this works fine. Thanks for the hint, was just what I
> needed!
>
> *> ​​​​​​Or, the other way round, get mh_omsqlio to be included at the
> bottom of the page.*
> ​This will not be possible I guess, as it is the script in included inside
> the <body> tag, on the place where the content is (results list) that
> triggers the error, not the include of the generic library. But then again,
> I'm not an expert in this field.
>
>
>
>
>
>
> *> ​You don't have to touch either TS, you can alter the behavior using
> your root page > Typoscript Setup.> 1. (negate/ empty the Footer
> statement:>       includeJSFooterlibs.jquery >> 2. and include it at the
> top:>       includeJSlibs​​.jquery = ...*
> ​I didn't try this yet, but t
> ​This actually makes ​
> ​even more sense, as the changes are in the site and not somewhere in a
> file in the bootstrap_package extension​.
>
>
> Thank you for your valued input,
>
> Nico​
>
> On Fri, Feb 20, 2015 at 9:33 AM, Nils Hodyas <post at dietantejensen.de> wrote:
>
>> Hi Nico,
>>
>> actually, you'll have to inspect your typoscript code to find out where
>> the inclusion is stated.
>>
>> ​​
>> Currently, jQuery seems to be included via "includeJSFooterlibs" <
>> http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Page/Index.html#
>> includejsfooterlibs-array> or something similar. (see here:
>> http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Page/Index.html)
>>
>> You'll have to change that to "includeJSLibs" (or the like), so that it
>> gets included at the top.
>>
>> ​​
>> Or, the other way round, get mh_omsqlio to be included at the bottom of
>> the page.
>>
>> Inclusion of jQuery should be stated in the Introduction Package, the
>> other one in the extension.
>>
>> ​​
>> You don't have to touch either TS, you can alter the behavior using your
>> root page Typoscript Setup.
>>
>> (negate/ empty the Footer statement:
>>
>> includeJSFooterlibs <http://docs.typo3.org/typo3cms/TyposcriptReference/
>> Setup/Page/Index.html#includejsfooterlibs-array>.jquery >
>>
>> and include it at the top:
>>
>> includeJSlibs <http://docs.typo3.org/typo3cms/TyposcriptReference/
>> Setup/Page/Index.html#includejsfooterlibs-array>
>> ​​
>> .jquery = ...
>>
>> )
>>
>> Hope this helps!
>>
>> Nils
>>
>>
>>
>>
>>
>> Am 19.02.2015 um 02:18 schrieb Nico Deblauwe:
>>
>>   Hi guys, girls,
>>> I've done some further research and think that I start to understand the
>>> problem, but don't see a solution so far...
>>>
>>> In the console, I see 2 errors popping up:
>>>
>>>> Uncaught ReferenceError: jQuery is not defined
>>>> index.php:121 Uncaught ReferenceError: $ is not defined
>>>>
>>> Apparently this happens typically [3] when the jquery loading happens
>>> after
>>> the function that calls for it. So I went looking in the source of the
>>> page
>>> (see [1]) and noticed that:
>>>
>>>      - the function call of mh_omsqlio happens at line 121 (in the body of
>>>      the html)
>>>      - the linking of the jquery only happens at line 166 (last line of the
>>>      <body>)
>>>
>>> Could this be the the cause of the problem? And if so, how do I move the
>>> linking to the header - is this in the bootstrap package or in mh_omsqlio?
>>>
>>> Thanks for your input in this!
>>>
>>> Regards,
>>>
>>> Nico
>>>
>>> For some strange reason, I don't manage to get the plugin working in even
>>>
>>>> it's most basic form - it continues to say "loading..." and no results
>>>> appear [1].
>>>>
>>>> *​​What did I do?* 1/ I've initiated a "TYPO3 6.2 LTS Introduction
>>>> Package" on launchr, 2/ did an update of the extension repository, 3/
>>>> installed
>>>> the "mh_omsqlio" extension, and 4/ created a new page [1] and added the
>>>> extension to it as explained in the excellent manual (section 2.2 on p7
>>>> of
>>>> [2]).
>>>>
>>>> *​​Some extra info. Even stranger is that it actually seems to work in
>>>> the
>>>> back-end: I can select the table that I want, and set which fields I want
>>>> to show. Currently it is configured to work with the TYPO3 "pages" table,
>>>> but before I tried as well with an external table, and there the same
>>>> story
>>>> applies: it seems to work (and connect to the db) in the backend, but
>>>> infinite "loading..." in the front-end.*
>>>>
>>>> Is there anyone who can point out (probably something obvious) what I
>>>> forgot?
>>>>
>>>> Thanks for your input!
>>>>
>>>> Nico
>>>>
>>>> Ps:
>>>> [1] See for yourself at
>>>>http://vfc4e93d8.launchr.com/index.php?id=38&no_cache=1 *updated link*
>>>> [2] Manual: http://transfer.marioonline.at/mh_omsqlio.pdf
>>>>
>>>>   ​[3] E.g. mentioned in
>>> https://forum.jquery.com/topic/uncaught-referenceerror-
>>> jquery-is-not-defined-21-6-2013
>>>>>>
>>>
>>>
>> --
>> Nils Hodyas - Webdesign von die Tante Jensen · Großherzog-Friedrich-Straße
>> 117 · 66121 Saarbrücken · (0681) 925 63 43 · 0160 318 183 7 ·
>> http://dietantejensen.de · DE 2757 96974 · Registergericht Saarbrücken
>>
>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>>
>
>

-- 
Nils Hodyas - Webdesign von die Tante Jensen · Großherzog-Friedrich-Straße 117 · 66121 Saarbrücken · (0681) 925 63 43 · 0160 318 183 7 · http://dietantejensen.de · DE 2757 96974 · Registergericht Saarbrücken



More information about the TYPO3-english mailing list