Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Java Script question
Previous Previous
 
Next Next
New Post 4/10/2006 4:49 PM
User is offline Tony Thompson
102 posts
9th Ranked


Java Script question 
Modified By Tony Thompson  on 4/10/2006 8:25:08 PM)
I have an html page that refrences java script from a .js file. I know the Iframe will allow me to run that page in my portal, but there's a few problems with doing that. So I was wondering if its possible to place everything between the <html> and </html> into the text/html module, modify the <script> src= location and run it in the module? So far I haven't been succesful in getting it to run, not sure if my src location is incorrect, or if the module just won't run java script.

I just found the js folder inside DotNetNuke and placed my .js files there, but the java script still isn't working correctly. The js is a slideout menu which slides out a div when you mouseover a link. The biggest problem i notice is the cell needs to say <td class="actuator"> though the module seems to strip the quotes off for some reason, and the anchor tag needs to be <a href="#" onmousover: "ypslideoutmenu.showmenu('menu1');" onmouseout:"ypslider.hidmenu('menu1')"> but the module keeps making it  say <a onmousover: "ypslideoutmenu.showmenu('menu1');" onmouseout:"ypslider.hidmenu('menu1')" href="#">
 
New Post 5/5/2006 6:03 AM
User is offline steve conard
95 posts
10th Ranked


Re: Java Script question 

Did you ever find an answer to this?

 

Thanks

 
New Post 5/6/2006 7:39 PM
User is offline Samsen Rohm
5 posts
10th Ranked


Re: Java Script question 

See the response to:

Re: Running Javascript in text/html module Old Post
Posted: 13 Jan 06 8:07 AM

By Jon Henning. in this text/html forum

With that information I was able to take an html page that had inline Java script and make it work in the Text/HTML module.

Since one cannot in DNN have a <form name=...> tag in the Text/HTML module html, elements (i.e. fields and buttons) in the form cannot be referenced with a path that requires a form name.

In Jon's example html that contained

   <form name="FWform" ...>

with JS references like

   FWform.AL1.value

needed to be changed to

   document.getElementById('AL1').value

or to:

   document.forms[0].AL1.value

What I did was make a copy of my HTML that worked outside of DNN and changed all the JS references from ones that referred directly to the formname to ones (according to Jon's instructions) to ones that did not.

After making sure that this changed HTML copy worked, I then cut  the necessary pieces from it (making sure I did not bring over the <form name=...> tag) and pasted them into my DNN text/HTML module. And voila, it worked.

Hope this helps

Samsen.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  HTML / Text Mo...  Java Script question
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP