Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...AJAX Slider Control in DNNAJAX Slider Control in DNN
Previous
 
Next
New Post
11/17/2007 5:45 PM
 

John -

You are correct that the token replacement done in the embedded script when PerformSubstitution="True" is done in the ScriptResource.axd (class System.Web.Handlers.ScriptResourceHandler) which is added in the < httpHandlers > section of web.config. Although httpModules normally process the same event in the order in which they are added in the < httpModules > section I don't beleive the ordering of httpHandlers makes a difference.  Since the UrlRewriteModule is an httpModule, it is in a different section from the ScriptResouceHandler.  Just on a chance that the processing order might change, I did try reversing the ordering of the entire < httpModules> AND < httpHandlers > sections in web.config so that < httpHandlers > came first. There was no change in the behavior of the SliderExtenderControl.

In the ScriptResourceHandler, the substitution for the < %=WebResource ( . . . ) % > token in embedded scripts is done using the method GetWebResourceUrl which Ived used a number of times with success in custom extender or script controls. Testing this method at both the DNN module level and in a modified and recompiled SliderExtender.cs both return the proper relative path to WebResource.axd in the website root.  When GetWebResourceUrl is called from within ScriptResourceHandler to perform the substitution it appears to return the incorrect relative path which includes "subfolders" injected by the friendly url rewriting. Taking a look at the code for GetWebResourceUrl (found in the System.Web.Handlers.AssemblyResourceLoader class) shows that the path information is returned via the HttpRuntime.AppDomainAppVirtualPath property. Testing the value of this property at the module and SliderExtender control level shows the correct path being returned while a call from within ScriptResourceHandler apparently returns the path after friendly url rewriting has taken place.

Probably the best advice for now for control developers is to not use PerformSubstitution in scripts to resolve web resources in an environment where url rewriting is taking place. Instead, it appears better to access embedded resources in the extender or script control itself using a direct call to GetWebResourceUrl.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
11/17/2007 10:26 PM
 

Hi Bill,
I have to admit that I was just making a general guess and that I have not read in detail what might be wrong here.   I was actually referring to the ScriptModule which is an HttpModule not a handler, but I'm not sure exactly what it does in DNN.  I have another HttpModule that "sees" the Url differently depending on where it is in relation to the UrlRewrite module so I thought maybe it would help in this case.

It looks like you have a much better understanding of what is going on than I do.  Sorry for the wild goose chase ;)

 


DotNetNuke Modules from Snapsis.com
 
New Post
11/20/2007 1:55 PM
 

Thank you William,

That explains a lot.  I found that upgrading to the latest AJAXControlToolKit (build 11119) corrected the problem with the handle not being able to move (it also corrected another issue I found with having the slider inside an UpdatePanel where the handle was being put on the far right of the page and was un-movable even with Friendly URLs turned off).  To get my project working I set the handle like you suggested, upgrade the toolkit and set the friend URLs back ON and now everything works accordingly!

Thanks!

yogs

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...AJAX Slider Control in DNNAJAX Slider Control in DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out