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
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


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
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


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

Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
RE: backend is changing from sql2005 to sql2008 by leesykes
hello,There should not be any code changes needed, but you'll need to make sure that SQL 2008 upgrad...
RE: skinning trouble by leesykes
Hello,I would need to see your code to help you with this one, you can zip up your files and attach ...
RE: Installing DotNetNuke 4.9.00 on VWD 2005 w/ SQL server 2008 by leesykes
I have run a test with SQL Server 2008 express and DotNetNuke installed in exactly the the same way ...
RE: Issue 39 Interview by leesykes
thanks Bill, glad it was useful, we will have a think about the best way to approach this,Thanks,
RE: Issue 39 Authentication by leesykes
yes I have a live site in 4.9.0 at it seems stable as well.
DotNetNuke Modules
RSS Feeds