javascript toggle not working
newtonpage - September 29, 2009 - 03:39
| Project: | Flag |
| Version: | 6.x-1.1 |
| Component: | User interface |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
In my test bed, the javascript toggle feature works great, but on my site, the link to "flag a node" does not - - it does a full page-reload. Note that every other aspect works great. Also, I have triple-checked all the settings and they appear consistent between the test bed and the site and I cannot see conflicts with other modules.
All of us appreciate all the time and effort you-all devote to this excellent module.
Any help here would be greatly appreciated
thx
N

#1
I'd guess you might have two versions of Flag on your server, or you have an incomplete version (such as missing the flag.js file). You should check that flag.js is being loaded on the page, and that the file exists on the server. If both of these things are fine, open the error console in your browser and see if you're getting JavaScript errors.
#2
I finally had time to circle back to this and - - indeed - - flag.js was not being loaded. I used drupal_add_js in the node tpl and viola! it worked.
I must say this is one of the best modules I have worked with - - and well-documented. And - - not least - - very well-supported.
thanks for all your work!
#3
Yay, thanks for the followup.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.