You need to Register for free and Login to post a message in the forum.

Forum

Subject: Javascritp on HTML Text Modules
Prev Next
You are not authorized to post a reply.

Author Messages
Rodrigo Menucci
Nuke Newbie
Nuke Newbie
Posts:3

12 May 2008 3:36 PM  

Hey friends.

Let's see if can anyone help me with my application.
I'm using DNN to build a portal. The portal HomePage is completely different of the content of default DNN.
I'm traying to use a Javascript framework (Mootools - http://www.mootools.net/) inside a HTML Text Module, but it's not working.
I tried to find out some possible answears to my problem reading some forums here, but noone was able to solve my problem.

The main questions are: How can I put to work a simple Javascript inside a HTML Text Module? Which pages of DNN should I modify?

If you want to see exactly what I'm trayng to do, you can acces the html page on my Company Server: http://devcenter.essencebr.com/vitopel/index.html
The problem is what you can find under the "Nossos Produtos" lable (the language of the website is Portuguese).
The rest of the page is already done.

Thanks in advance.

Rodrigo Menucci

Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


12 May 2008 7:36 PM  
Hello, Rogrigo!

I don't see anything on your site that can't be done with DotNetNuke, and it's certainly possible to use Javascript with DotNetNuke.

Probably the first hurdle that you'll need to jump is getting familiar with DotNetNuke - the framework, the concepts, etc. To that end, I'd recommend that you start reviewing the "beginners" level of tutorials here. Just start, view them with an open mind, and don't try too hard to see how you'd use them right away.

Let the ideas settle into your brain first. You might even want to install a copy of DotNetNuke and build simple site or two, get some experience adding pages, modules, skins, and containers ... and rearranging them all.

Then com back to javascript.

A very simple answer is that you can paste javascript right into a text/html module if you make sure that the editor is in a "source" mode. I prefer to use the "header" of the module, mainly so that the javascript doesn't get mixed in with the text or html ...

Please ask lots of questions.

Here is a site that uses javascript and Lightbox to achieve a very non-DotNetNuke looking DotNetNuke site: http://staging.freedomyears.com:84

Joe Craig
DNN Creative Support
Subscribe to the website
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5354


12 May 2008 7:45 PM  
And, having seen Sebastian Leupold's answer to you over on the DotNetNuke forum, I think that's also a good approach. If there's lots of javascript, it's likely a much better approach, and will be available on all pages because it's built into the skin.

Joe Craig
DNN Creative Support
Subscribe to the website
Rodrigo Menucci
Nuke Newbie
Nuke Newbie
Posts:3

13 May 2008 8:52 AM  
Joe, thank you for the reply.

I have tried your tips. And so I tried Sebastian Leupold's. But it still not working

Here's exactly what I'm doing:
I have created a new skin called "Home.ascx" and put it on the folder "Portals/_default/Skins/". After that, I changed the settings of my HomePage inside DNN to point to that new Skin.
Everything worked but the JS.
So, I followed Leupold's tips and put all the 3 ".js" files inside the same folder above.

Inside "Home.ascx" file I called the scripts this way:

[script removed] Rodrigo Menucci
Rodrigo Menucci
Nuke Newbie
Nuke Newbie
Posts:3

13 May 2008 8:59 AM  

Ups, sorry placing the code here!

Here's the same post.

----

Here's exactly what I'm doing:
I have created a new skin called "Home.ascx" and put it on the folder "Portals/_default/Skins/". After that, I changed the settings of my HomePage inside DNN to point to that new Skin.
Everything worked but the JS.

So, I followed Leupold's tips and put all the 3 ".js" files inside the same folder above.

Inside "Home.ascx" file I called the scripts this way:

"File attached (scripts.jpg)"

No success at all!

Just to say I tried everyting, I also tried to call that inside the "Default.aspx" page. But... of couse it didn't work.

To finish, I tried to call that inside the HTML/Text module, like you said, using the editor in "source mode". It didn't work eighter.

As you can see, I tried everything!

Unless I didn't understand your tips, I think I'm in trouble with DNN.

Please... If you have another option, tell me! I would appreciate.

Thank you very much.

Rodrigo Menucci






You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Javascritp on HTML Text Modules



ActiveForums 3.7

Latest Forum Posts

RE: How to Create an Email Form with OWS - Issue 49 by CelesteT
Hi, Was also wondering if there was a way to incorporate ReCaptcha (www.recaptcha.net) into the emai...
RE: How to Create an Email Form with OWS - Issue 49 by CelesteT
Hi, Thanks for the great tutorial. I was wondering how I can hard code a "to" email address into th...
More AWeber / Dynamic Forms by ollep
Good Sunday Morning to you all.SE Queensland is very calm, a bit overcast, but a very nice Sunday mo...
Query On Dynamic Form Module by prithviraj
The source element with id dnn$ctr407$DynamicForms$imgMove_48b21a63-ca5a-425d-90ca-599a6e7d51e6 does...
RE: Folder permissions by saintX
Thanks for your answer Rashid! May you please kindly let me know - Which folders - AND for whom...
DNN with Javascript Disabled by aptrivedi
Hi All,I have found my self in bit of trouble.As per my application requriement, i need to handle th...
RE: Change Registration Redirect? by ollep
Well, that sounds good Lee.But I just spent $150.00 and a few days learning the Dynamic Forms  - bec...
RE: Folder permissions by Kazi
Hello FW, The easiest way to set permissions is your control panel, Log in to your CP, click on y...
Folder permissions by saintX
Hello, Can I set the folder permissions on the remote server myself using DW or WVD? If possi...
RE: How to do links? by Guy..L
It's really hard to tell quite how awesome DNN Nav v2 is given the documentation and search results ...
Regarding Editor by prithviraj
Pls let me know whar folders we need to upload when we are changing editors. Suppose i have cute edi...
RE: Change Registration Redirect? by leesykes
It would be best to use Dynamic Registration to avoid 2 registrations.With Dynamic Registration you ...
Indexing DNN pages by Google by Jake Vizner
I have two different DNN web sites. Using Google Webmaster Tools I can see the Google indexed 12 out...
Query Regarding RAD EDitor by prithviraj
Hi, I'm using R.A.D editor in my site. At the time of adding images through the editor I'm unabl...
RE: while installing bulk emailer module in my website by jncraig
Yes, this definitely is a file permissions issue. The default ASP.NET worker task needs to have ful...
RE: Background Music by jncraig
That will work.
RE: Auto create pages and content by dhassall
Hi Joe DNN Out of the box version 4.9 Login as Host with Firefox to create and IE8 to monitor, CTR...
RE: while installing bulk emailer module in my website by dub
Agiline, We have seen this problem before. It is caused by the Security on IIS. Please have a loo...
RE: Change Registration Redirect? by ollep
Probably still want to do it with Dynamic Forms now.My reason for changing (except from getting Aweb...
RE: Change Registration Redirect? by ollep
YES!http://www.dnncreative.com/Subscribe/tabid/81/Default.aspx
AppTheory
RSS Feeds