DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Javascript in XMOD PRO

Sort:
You are not authorized to post a reply.





Growing Member





    i have alreasy asked this on the xmod pro site, but thought I would ask here as well.

    I am trying to follow this https://www.experts-excha...ipt-or-vbscript.html

    I have a scriptblock and a ip address, but for some reason the javascript doesn't get called, no matter where i put the scriptblock or even if i just put a alert('Hello') instead of it actually doing anything.

    Has anyome here managed to get this working,if so, what issues did you have so I can try and delve into why this isn;t.






    Veteran Member





      Yes I have used JS in my templates.

      I found an example were i put it in the   < FooterTemplate> and it works
      But I must say I always create asx templates and I don't use the editor.

      BTW, the link you posted is 14 years old, what's described there is most likly no going to work.
      (looks like classic ASP)






      Growing Member





        Hi Timo

        Thanks for this, do you have an example of using the footer, or can you point me to a link that shows how to do this, I have had to take a step back from this to build some new screens, but have this sorted now, so can look at this again.






        Veteran Member





          Yes, but this is an ascx template I edited directly:

           < FooterTemplate >
            < /div >
              < s cript  >
          alert("test");

            < / s cript >
            < / F ooter Template >

           

          Sorry for the paces.. :-)






          Growing Member





            Hi Timo.

            Ok, so I added the script above, and sure enough, everytime I enter the page, the alert fires, however, when i add the javascript, this doesn't get called, what am I doing wrong here, is this just not going to work?






            Growing Member





              Ok, so do have this sort of working, it is going into the function, but not opening the cmd window and running the ping command, so half way to getting this working.

              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved