We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How do I add JavaScript functionality to Module Control Panel?

Development and Programming

Zac G.'s avatar
Zac G.
268 posts
16 years ago
Zac G.'s avatar Zac G.

Hi,

I am working on a second build of a gradebook module. I would like to be able to add comments along with grades.

I have attached a screenshot of the module control panel. I would like to use a simple JavaScript input field popup when click on a link to add a comment and be able to enter in the comment.

What I am not sure about is best practice in adding JS to module templates. Any suggestions would be appreciated.

Thanks!

       
nadea.c's avatar
nadea.c
83 posts
16 years ago
nadea.c's avatar nadea.c

Hi Zac. Did you figure this out? I need to be able to do something similar.

       
Zac G.'s avatar
Zac G.
268 posts
16 years ago
Zac G.'s avatar Zac G.

Hi,

I haven’t had a chance to get back into it, but when I do, I will post up the solution I used 😊

Please let me know if you get there first!

Zac

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

The Display class lets you add additional data to the <head></head> section of the CP page by setting the

$DSP->extra_header

variable.

       
Zac G.'s avatar
Zac G.
268 posts
16 years ago
Zac G.'s avatar Zac G.

Thanks silenz! Where do you put your javascript? External file?

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

If it’s a considerable amount, yes.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.