tgext.debugbar collides with tw.dynforms

5 views
Skip to first unread message

Moritz Schlarb

unread,
Apr 13, 2012, 11:47:11 AM4/13/12
to turbo...@googlegroups.com
Hi everyone,

Alessandro, I am amazed about tgext.debugbar and it works fine, except
for a page on which I use tw.dynforms!
As you can see in this screenshot < http://i.imgur.com/454nt.png>, the
debugbar doesn't get rendered on top like it should but instead just
show up as plain text below the site.
It looks like there's some kind of collision between jquery from
tgext.debugbar and the js from tw.dynforms.

Do you have any idea what could cause this? I'd be glad to supply you
with further information if it helps the case!

Best wishes,
Moritz

Moritz Schlarb

unread,
Apr 13, 2012, 12:48:56 PM4/13/12
to turbo...@googlegroups.com
Oops, it seems like tw.dynforms isn't the only problem.
On another page, where I just entered this littled snippet, the same problem occurs!

Don't know why... :(

<script type="text/javascript">
function highline(number) {
var high = document.getElementsByClassName("hll");
for (var i=0; i < high.length; ++i) {
high[i].classList.remove("hll");
}
var line = document.getElementsByClassName("line-"+number);
for (var j=0; j < line.length; ++j) {
line[j].classList.add("hll");
}
}
</script>

Alessandro Molina

unread,
Apr 13, 2012, 1:56:45 PM4/13/12
to turbo...@googlegroups.com
Uhm,
that sounds strange.

Recently we did some work exactly to avoid collision between debugbar
and other jquery scripts.
Can you check that you have the latest debugbar version? Should be 0.0.5

Anyway I'll give a look tomorrow to be sure that it doesn't collide.

> --
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>

Moritz Schlarb

unread,
Apr 13, 2012, 7:05:27 PM4/13/12
to turbo...@googlegroups.com
Ooh, I'm terribly sorry! My bad, my bad, my bad...

My template had:

  <style type="text/css">
    ${c.style}
  </style

And that corrupt closing style-tag led to the debugbar stylesheet not being loaded...

So it was more a css bug and not javascript-related!

Sorry for the noise! ;) 

> To unsubscribe from this group, send email to turbogears+unsubscribe@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages