Re: Collapsible fields
Daniel Roseman wrote: > On Nov 9, 8:47 am, Lars Stavholm <st...@telcotec.se> wrote: >> Hi All, >> >> I'm looking to implement collapsible fields in a django powered >> page, so far with no luck. >> >> Any hints on the best way of doing it? >> >> In the mean time, I checked out how it's done in the admin interface, >> and came up with a simple test page as follows: >> >> >> >> > href="http://localhost:8000/media/css/forms.css; /> >> > src="<a rel="nofollow" href="http://localhost:8000/media/js/core.js"">http://localhost:8000/media/js/core.js"</a>;> >> >> > src="<a rel="nofollow" href="http://localhost:8000/media/js/admin/CollapsedFieldsets.js"">http://localhost:8000/media/js/admin/CollapsedFieldsets.js"</a>;> >> >> >> >> >> Job Details >> >> >> Jdate: >> > class="vTextField" maxlength="30" >> type="text" id="id_jdate" /> >> >> >> >> >> >> >> But for some reason, it does not work. The collapsed >> field shows up (I guess) by ways of the Job Details >> showing up, but nothing else. >> >> Any hints? >> >> I admit, I'm a newbie at these things, but still. >> >> Any advice appreciated. >> >> R >> /Lars > > None of the admin scripts will work without the 'jsi18n' script, which > is actually accessed via an admin view. Include this line before the > other scripts: > http://localhost:8000/admin/</a> > jsi18n/"> > and it should work. > > Firebug is great for debugging this sort of thing - it would have told > you 'gettext is not defined' which would have helped track down the > problem. Great advice, thank you.Just started using firebug and of course encountered the gettext error. I put the script link in there as you suggested, and it's all working very nicely now. Many thanks /Lars --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Collapsible fields
On Nov 9, 8:47 am, Lars Stavholm <st...@telcotec.se> wrote: > Hi All, > > I'm looking to implement collapsible fields in a django powered > page, so far with no luck. > > Any hints on the best way of doing it? > > In the mean time, I checked out how it's done in the admin interface, > and came up with a simple test page as follows: > > > > href="http://localhost:8000/media/css/forms.css; /> > src="<a rel="nofollow" href="http://localhost:8000/media/js/core.js"">http://localhost:8000/media/js/core.js"</a>;> > > src="<a rel="nofollow" href="http://localhost:8000/media/js/admin/CollapsedFieldsets.js"">http://localhost:8000/media/js/admin/CollapsedFieldsets.js"</a>;> > > > > > Job Details > > > Jdate: > class="vTextField" maxlength="30" > type="text" id="id_jdate" /> > > > > > > > But for some reason, it does not work. The collapsed > field shows up (I guess) by ways of the Job Details > showing up, but nothing else. > > Any hints? > > I admit, I'm a newbie at these things, but still. > > Any advice appreciated. > > R > /Lars None of the admin scripts will work without the 'jsi18n' script, which is actually accessed via an admin view. Include this line before the other scripts: http://localhost:8000/admin/</a> jsi18n/"> and it should work. Firebug is great for debugging this sort of thing - it would have told you 'gettext is not defined' which would have helped track down the problem. -- DR. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Collapsible fields
Hi All, I'm looking to implement collapsible fields in a django powered page, so far with no luck. Any hints on the best way of doing it? In the mean time, I checked out how it's done in the admin interface, and came up with a simple test page as follows: http://localhost:8000/media/css/forms.css; /> http://localhost:8000/media/js/core.js"</a>;> http://localhost:8000/media/js/admin/CollapsedFieldsets.js"</a>;> Job Details Jdate: But for some reason, it does not work. The collapsed field shows up (I guess) by ways of the Job Details showing up, but nothing else. Any hints? I admit, I'm a newbie at these things, but still. Any advice appreciated. R /Lars --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---