Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 2011 HTML webresource problem

(0) ShareShare
ReportReport
Posted on by 1,000

I just created a HTML web page as Web Resource. The document contains references to JavaScript files. I had a problem like my html and javascript got deleted everything that comes after

<script src="script.js" type="text/javascript"></script>

is deleted. Just closing tags </body> and </html> are left in file. How can I solve the problem.

I'm using VS for develop the webresource.I crossverified all the tags closed properly. Next, I tried to replace my file with existing working  HTML page that also got deleted after publishing.

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,089 on at
    RE: CRM 2011 HTML webresource problem

    Hi,

    Seems   something is wrong with the HTML format . Here I have attached sample HTML , try with this . In addition you can also try to create new web resource .

    <html>
    <head>
        <title>Test HTML</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <script src="script.js" type="text/javascript"></script>
        <meta charset="utf-8">
    </head>
    <body>
        <div>
          
    
        </div>
    </body>
    </html>


  • RE: CRM 2011 HTML webresource problem

    Hi,

    Use the F12 debugger  and use the script tab to check what is going on and post the error & code for us to help.

    As you have mentioned I'm using VS for develop the webresource.

    Are you trying to upload the file direct in web resource?

    Thanks

    Ridhima

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans