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.
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)
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.
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.. :-)
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?
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.
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:
Awesome! Simply post in the forums using the link below and we'll get you started.