Hey all still putting some thought into my next module and wanted to find out if there are any "Special" rules for using JavaScript in my template files using pnRender. I am unsure if the script tags will conflict with pnRender or what the correct format would be to add javascript to a template. If anyone has an example of this could you please share.
Thanks all
-SUNADMN
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
using javascript in a module with pnRender?
-
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
problems would occur if you pnVarPrepHTMLDisplay your javascript and the site administrator has disabled the script tag - that would be my only comment
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Freshman
- Registered: Nov 29, 2004
- Last visit: May 28, 2009
- Posts: 69
its a good practice to include all your javascript from external files like this:
--
Cytopia - Download Psytrance
Athens Pub Crawl -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 379
How did this end up working out? I think I'm going to have to use some JS to disable/enable a form field, but I'm such a n00b at JS that I'm not quite sure where to start or what to do to make it work. -
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 413
Well what exactly are you trying to do here?? I have some code that I found on the net that will A) give you more form fileds and B) show/hide a full form depending on a selection.
-SUNADMN
- Moderated by:
- Support
