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

jncraig
Nuke Master I
Nuke Master I
Posts:1844

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
jncraig
Nuke Master I
Nuke Master I
Posts:1844

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: Set print button to be off by default by jncraig
As noted elsewhere, you can use a container that doesn't include those features. You can also edi...
RE: Can't edit settings by robax
This appears to be happening because of McAfee products. I'm testing it now. Rob
Set print button to be off by default by hollis3162
One of my templates has 8 modules on it.  I don't want 8 print buttons and I don't want 8 visibility...
RE: FCKEditor and dynamic css by DavidWSnow
Didn't touch and FCKedit files. originally I all I had to do was follow Lee's tutorial on the FCKedi...
need help to show breadcrumb in different way by smyagnik
hi.. i m new to DNN & i m makeing intanet site in DNN  i want the information regarding the page ...
RE: Subscriber token? by jncraig
I'm glad that was useful. If you "module" doesn't do any data access, the code if really simple. ...
RE: FCKEditor and dynamic css by jncraig
Did you modify one of the FCK editor's files to do this? If so, you probably overwrote that when yo...
RE: Can't edit settings by jncraig
I haven't seen that problem with IE, but I'm always finding differences. Using an XHTML skin is usu...
RE: Can't edit settings by Liz
You have hit the nail on the head. I was using IE 7, just tried it in FF and it works fine. Must be ...
RE: GoDaddy by greenflash
Hello aggiedan97, i have experience hosting multiple domains under a single dnn portal, for Godaddy ...
RE: GoDaddy by aggiedan97
Does anyone have any experience with hosting multiple domains on a single dnn portal @ Godaddy? I h...
RE: Subscriber token? by johnr
ok... at first I was a bit intimidated by the prospect of making a module!  Geez... it is "SuperSimp...
RE: Open menu links in new window? by ericb1
This forum re-names attachment files, so the old skin is called '171818187454.zip' and the new skin ...
RE: Open menu links in new window? by ericb1
Thank you so much for your help, I really appreciate it.  Ididn't realize that the code I tried to p...
RE: Upgrading Problemo by mgordon
Thanks Joe.  That did the trick.  A shame I have to update all the various skin .ascx files, but, he...
FCKEditor and dynamic css by DavidWSnow
I used to be able to have my styles from the skin.css be used inside the FCKedit while I was editing...
RE: Module menu skinning issue by jncraig
Try a different container and see if it works.
RE: Security Roles won't work for registered users by daniela
I have installed dnn 4.8.2 to realized my site but I have this problem: I have created role group an...
RE: Module menu skinning issue by dp6ai
I'm using blankcontainer.ascx there's not much to it and no css: ...
RE: Showing error after changing the settings in Container by jncraig
Some other things that you can do are: Look at the event log for a more detailed report and post ...
DotNetNuke Modules
RSS Feeds