Fork me on GitHub

using javascript in a module with pnRender?  Bottom

  • 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
  • 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
  • its a good practice to include all your javascript from external files like this:



    --
    Cytopia - Download Psytrance




    Athens Pub Crawl
  • that's a great idea I will look into that method and let you know how it works.

    Thanks all
    -SUNADMN
  • 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.
  • Worked like a charm Jedi, I have some examples of so JS stuff if you need to enable disable form fileds that is actually what I am doing in some fashion.



    -SUNADMN
  • I managed to get it hidden, but no luck yet getting it to disable. Any hints or links or functions on that would rock! :)
  • 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

This list is based on users active over the last 60 minutes.