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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...' instead of single quotes in Javascript
Previous
 
Next
New Post
10/4/2011 10:42 AM
 
Hello,
I'm just learning DNN to start a project in my company. I have two distinct DNN web sites and two different databases installed in a Sql Server 2008 R2 Express instance. I created a custom module in one of the web sites using the starter kit. I made a couple of code modification to understand module developing an nothing else. I can compile, see the module behaviour in a test page and everything went well untill I entered as Host user into Host - Extensions - Installed Extensions.

I cliccked on "Edit this Extension" or "Uninstall extension" on my custom module but nothing happend. I compare the view source with the one of the untouched website and I discorevered that the call to

dnnModal.show('http has been changed to dnnModal.show('http and this is true for every javascript within the page.

Probably this prevents the code from running and showing the modal form. In the untouched web site single quote is not replaced and the two button are still working.

I tried to remove the custom module by
1) calling manually the uninstall procedure > control uninstalled successfully
2) deleting the .dll inside the bin folder
3) removing the project directory under the desktop module

Thanks for helping me
Cheers
Sam


 
New Post
10/4/2011 9:53 PM
 
im not sure what went wrong here - as a guess did you use any non-alphanumeric characters in the module name?

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/5/2011 3:56 AM
 
Thanks for the fast response.

I found the reason regarding the problem of the single quotes: the change happens when I switch from .Net Framework 2.0 to .Net Framework 4.0 in the application pool of the website.
 
Anyway this is not the reason of the javascript failure. Tha failure is related to debug="true" setting in the web.config in the root of the site.

Is there an explanation / way to fix for this strange behaviour?

Thank you
 
New Post
10/5/2011 6:53 PM
 
thats odd, i've tried locally and can't recreate - can you please check your web.config and see if the httpRuntime node has requestValidationMode=”2.0″ added to it (if not then it may be that the permissions on the web.config are incorrect or it is readonly and that DotNetNuke could not make necessary adjustments when it detected the application pool was .net 4.0)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/6/2011 9:15 AM
 
Hello!
Yes, the httpRuntime is there with requestValidation set to 2.0. Single quotes is still converted in the entity form of ' but I was able to solve the javascript problem by installing the version 6.0.1 of dnn following the thread

dnnModal is undefined - 6.0.0

The error in the title of the thread was the actual cause of javascript failure.

I'm still wondering about single quotes... do you think it can lead to other problems?

Thanks for the support
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...' instead of single quotes in Javascript


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