Register   Login
     
  Latest Posts  
custom field type:url
by aviavia on 11/23/2008 7:13 PM
Module Development Techniques
by hchattaway on 11/23/2008 5:14 PM
Customizing the URL a little further
by tmahmud on 11/23/2008 4:11 PM
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
  Forums  
Subject: Bug when using Property Agent and Simple Galery on the same page
Prev Next
You are not authorized to post a reply.

Author Messages
Patrick ChanezUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:22

2/26/2008 5:23 AM  

I have a small problem ... On my home page, I have the "Simple Galery Random" and the "Property Agent Latest" modules ... this create a javascript error, because of duplicate script/object definition

 

<script type="text/javascript" src='/DesktopModules/simplegallery/js/lightbox/jquery.js'>script>
<script type="text/javascript" src='/DesktopModules/simplegallery/js/lightbox/jquery.lightbox-0.4.pack.js'>script>

<script type="text/javascript" src='/DesktopModules/PropertyAgent/js/lightbox/jquery.js'>script>
Joe MaierUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:181

2/26/2008 7:58 AM  
I believe Scott is aware of this problem.
He will need to manage the jquery-references in his modules.

Before Scott started to add jquery to his modules, i did the newsticker tutorial ( http://www.wolfsbau.de/Joe/JQueryNewsTicker.aspx ), and i proposed him to add a generic "RegisterScript" setting, which would allow for adding a reference to a Javascript library of my choice.

Now that Scott has adopted jquery as an integral part of this modules, he must take care of multiple instances anyway.

Something like this code

if (!Page.ClientScript.IsClientScriptIncludeRegistered("jquery"))
{
Page.ClientScript.RegisterClientScriptInclude("jquery", "/DesktopModules/VentrianScripts/jquery.js");
}

would be needed in all the modules using jquery, so that at least all Ventrian modules would take care of multiple instances and ideally would rely on an identical jquery version.

May Scott can comment on how far this is already ready and released.

Cheers,
Joe

maiersoft internet solutions - www.maiersoft.de
Get your own managed DotNetNuke-Portal
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


2/27/2008 4:33 AM  
I am just about to release a small patch to fix this.

Scott McCulloch
Site Administrator
Patrick ChanezUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:22

2/27/2008 5:25 AM  

Cool !

 

Thanks

You are not authorized to post a reply.
Forums > General > Bugs & Problems > Bug when using Property Agent and Simple Galery on the same page



ActiveForums 3.7