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:1735

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:1735

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

Missing subscriber access by stefanheskjaer
I subscribed on 07-01-2008 and received my confirmation from PayPal. Still unable to access the vid...
Define Style by Vereen84
A style sheet is a free-flowing document that can either be referenced by, or included into a HTML d...
Tell a Distribution List Module by greenglow
We're looking for a DNN Tell a Friend module that allows people to forward the page to a distributio...
XML settings for Feedback Module by saintX
Hello,I don't want the help (blue question marks) to be dispalayed besides the fields of the feed ba...
shadowmu by gunitshadow
Server Info:XP: 100xDB: FreshDrop: 85%Version: S3 Episode1 PremiumShops: FULLSpots: FULLUptime: 24/7...
RE: Calendar Strobe? by leesykes
Hello,Welcome to th forum, when I hover over a link in IE7, IE6 they display just the same as FF2 - ...
RE: Custom HTML Skin - link module center overridden with left align by leesykes
Not sure what is happening here, I tested again in FF2 in view mode and the links are centered.I hav...
RE: HouseMenu doesnt work by leesykes
Hello,Check out this forum post for some quick tips with HouseMenu
RE: Issue 34 New Skins and House Menu by leesykes
Thanks, hopefully this will be useful to other readers,
RE: Open menu links in new window? by leesykes
Hello,If you attach the code in a zip file to your forum post we can have a look, thanks,
RE: File Manager with Limited Access by leesykes
Hello,I have just tested this and have the same problem. Perhaps it would be worth looking for docum...
RE: how to develop skins in dotnetnuke by leesykes
Hello,If you go to the main tutorials page and scroll to the bottom you will see a big list of skinn...
RE: deploy developed wedsite by leesykes
Hello,You may find these tutorials useful,How to transfer a localhost DotNetNuke installation to a l...
RE: Please help me in choosing web hosting by leesykes
I would recommend you view the comments on hosting providers in the hosting section of this forumI w...
RE: Is posible creating multiple website (portal) in a single DNN installation? by leesykes
You can do that approach, if it is a localhost installation, you may find it quicker to create child...
how to develop skins in dotnetnuke by rao_babu24
how to develope skins for dotnetnuke  thanks advance
deploy developed wedsite by rao_babu24
how to  deploy developed wedsite thanks advane
Please help me in choosing web hosting by 0xyGen
Hi everyone,I am sorry for possible offtopic, but I need your help in find new web hosting provider ...
RE: Is posible creating multiple website (portal) in a single DNN installation? by aravinthkula
Thanks for your reply. Actually we followed a approach like created different portal like portal1 a...
File Manager with Limited Access by tds_softwaredev
Hi Everyone, I was hoping someone might have a solution for a little problem I have run into. I w...
DotNetNuke Modules
RSS Feeds