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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedIssue with using Knockout.js Issue with using Knockout.js
Previous
 
Next
New Post
2/8/2016 11:16 AM
 

Hello there, 

I hope someone could help me with this problem...

I recently used the Knockout.js for one of the module I have created - basically to retrieve information from a web API and dynamically display the content. I created an empty module first using Host-Extension-Create Module, added the module to my page and added the code to the .ascx file in the module. In my skin file, I made the reference to the source / library code (Knockout.js). Everything seemed working perfectly. The module could display and retrieve the data properly. However, when I clicked on "Edit Page" button on the page I created, a script statement showed up on top of the "Edit Page" button... Here is the statement  

Version function c(){if(0<arguments.length)return c.Ka(d,arguments[0])&&(c.P(),d=arguments[0],c.O()),this;a.k.zb(c);return d}

I can still move the modules on the page, however, I can't save the changes. Basically, the page is no longer editable.  I removed the reference line from my skin file and the script statement disappeared. And the content showed properly on my module in the edit mode. However, If I hit "Close Edit mode, I can no longer see the dynamic content that's generated from the Knockout.js - I can only see the html part. 

I can make the page work. However, eventually I need to hand over the skin template and module to the non-developers so they can create page and add modules freely on their end.  Any help would be greatly appreciated!


Lucy    

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedIssue with using Knockout.js Issue with using Knockout.js


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