I think it mighr be something to do with the way Ruby on Rails is
serving the JS (this is in a Rails 3 app)

When I view the source of the working page in FF, I see the below:

<script src="/assets/bootstrap-dropdown-4baff1e7be01cf45bd44100f12f4bad7.js"
type="text/javascript"></script>
<script 
src="http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js";></script>

The first line, is the file served by Rails, the second a direct link
to Twitters JS file - do you think this could be the problem?

Andrew

On 1 February 2012 22:53, Andrew Doades <[email protected]> wrote:
>
> OK, this is getting silly.
>
> If I add this line, to use the JS file from twitter's github WITH mine it 
> works!
> <script 
> src="http://twitter.github.com/bootstrap/assets/js/bootstrap-dropdown.js";></script>
>
> If I remove mine line, it doesn't work - I haven't got time to work it out, 
> but for some reason this works so I'm sticking with it.
>
> Andrew
>
>
> On 1 February 2012 21:44, Andrew Doades <[email protected]> wrote:
>>
>> I've upgraded the jquery to 1.7.1 and I now get this when clicking the 
>> button or navigation drop down:
>>
>> [21:43:45.289] Empty string passed to getElementById(). @ 
>> http://localhost:3000/briefs/list#
>>
>> Andrew
>>
>>
>> On 1 February 2012 21:29, Andrew Doades <[email protected]> wrote:
>>>
>>> Hi Seb,
>>>
>>> I'm using version 1.3.2.. could this be the problem?
>>>
>>> Andrew
>>>
>>>
>>> On 1 February 2012 21:08, Sebastien Cesbron <[email protected]> wrote:
>>>>
>>>> Hi
>>>>
>>>> Which version of jquery are you using ? For me it works with jquery 1.7.1
>>>>
>>>> Regards
>>>> Seb
>>>
>>>
>>
>



--
Andrew
http://www.doadesweb.co.uk/
http://twitter.com/adoades93

Reply via email to