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

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

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: Problem in front end by leesykes
The first place I would look is in your skin code, the code for the ControlPanel should look somethi...
RE: Registration Module - Title Repeating Twice by leesykes
Yes, most of the work has been already done for you in the free skins that are available on DNN crea...
Problem in front end by kaustav_kar
Hi,In my website which is in Dot Net Nuke is showing the control panel in the front end in all the p...
RE: Registration Module - Title Repeating Twice by jncraig
Creating a custom container isn't necessary!Lee has been including a "transparent, no title" skin wi...
RE: Registration Module - Title Repeating Twice by Tripytaka
Leesykes, Thank you for your prompt reply. I have un-ticked the display container setting and it ...
RE: Free website monitor by inetwiz
Another free site monitor website is http://www.contentsitemonitor.com This site allows to you to pe...
RE: PowerDNN by jazzylily
I have spoken with Tony Valenti today.  He seems like a nice man and has assured me that he will loo...
RE: Any Idea On A Module For The Following? by leesykes
I haven't seen anything that will do this in one area. Looks like you may need a custom module for t...
RE: Google Maps Tutorial Website by mgordon
Hi,I took a look at your site.  It was not bad at all.My only suggestion would be to somehow delinea...
RE: PowerDNN by DavidWSnow
I have been with PowerDNN for about a year now. No performance degradation issues.They do seem to go...
RE: PowerDNN by mgordon
JazzLilly,Please let us know if your issues get resolved.  I'm getting ready to start a contract for...
RE: Any Idea On A Module For The Following? by mgordon
OK, thanks Joe. Anyone else have any ideas? Thanks! Mark
RE: Any Idea On A Module For The Following? by jncraig
Yikes! I guess my answer is no. I don't know of a module that will meet your needs on this one.
RE: Any Idea On A Module For The Following? by mgordon
Hi Joe, No, you were answering someone else's question. Please re-read my question at the top. ...
RE: Changing top navigation bar item by jncraig
Great!
RE: Creating anchors across modules by jncraig
I have had no problem inserting anchors. If you want to place anchors at the top or bottom of modul...
RE: Registration Module - Title Repeating Twice by leesykes
That's interesting, I have never seen that before!But, after adding the user accounts module to the ...
RE: PowerDNN by MobileNow
Hi JazzLilly,Is there a phone number I can reach you at?  I'd like to talk with you about your issue...
RE: Creating anchors across modules by leesykes
it should be possible to add anchor points anywhere on a page, all you need to do is work out how to...
RE: Media in internet explorer. by leesykes
if you are only adding images to the page, I would simply use the text HTML module and this should g...
AppTheory
RSS Feeds