Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ed Bishop 53 posts 203 karma points
    Jan 29, 2010 @ 08:27
    Ed Bishop
    0

    Canvas html missing javascript for the toolbar and editing.

    I have set up a fresh install of Umbraco 4.0.3 and created a simple document type and template with a single property called PageText.

    When I publish it and edit in canvas mode, I get no toolbar, I can't edit and the html outputted to the browser is as follows:

    <html>

    <head>
    <title>Eds Site</title>
     
    <link rel="stylesheet" type="text/css" href="/css/Test Site CSS.css">
     
    </head>
    <body>
    <form method="post" action="/1051.aspx?" id="aspnetForm">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUENTM4MWRkZKfQQsRXuojFUmjeQV4VjNjLjPo=" />
    </div>

     
    <umbraco:iteminfo itemId="1" name="PageText" nodeId="1051" title="Click to edit the PageText field of 'home'" onclick="umbraco.presentation.LiveEditing.ItemFunctions.prototype.click()">

    <p>This is a <a href="http://www.google.com" target="_blank" title="google search">test</a>.</p>

    </umbraco:iteminfo>
     
    </form>
    </body>
    </html>

  • Rik Helsen 670 posts 873 karma points
    Jan 29, 2010 @ 09:28
    Rik Helsen
    0

    use firefox & firebug and hit f12 to check if anything fails to load (javascripts) in the "Net" panel (disable cache and refresh the page when watching this panel)

    any 404's ?

  • Ed Bishop 53 posts 203 karma points
    Jan 29, 2010 @ 11:39
    Ed Bishop
    0

    Hi Rik,

    Running it with fiddler, this is the result:
    # Result Protocol Host URL Body Caching Content-Type Process Comments Custom
    1 302 HTTP umbraco /umbraco/canvas.aspx?redir=/1051.aspx 129 private   text/html; charset=utf-8 iexplore:5760
    2 200 HTTP umbraco /1051.aspx 647 private   text/html; charset=utf-8 iexplore:5760
    3 304 HTTP umbraco /css/Test%20Site%20CSS.css 0 iexplore:5760
    4 200 HTTP umbraco /umbraco/keepalive.aspx 559 private   text/html; charset=utf-8 iexplore:1148

    so no javascript files are called and nothing fails to load.

    Running with firebug (lots of detail sorry):

    GET canvas.aspx?redir=/1051.aspx

    http://umbraco/umbraco/canvas.aspx?redir=/1051.aspx

    302 Found

    umbraco

    129 B

    23ms

     

    ParamsHeadersPostPutResponseCacheHTML

    Response Headersview source

    Date Fri, 29 Jan 2010 10:33:12 GMT

    Server Microsoft-IIS/6.0

    X-Powered-By ASP.NET

    X-AspNet-Version 2.0.50727

    Location /1051.aspx

    Cache-Control private

    Content-Type text/html; charset=utf-8

    Content-Length 129

    Request Headersview source

    Host umbraco

    User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

    Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

     

    Accept-Language en-gb,en;q=0.5

    Accept-Encoding gzip,deflate

    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7

    Keep-Alive 300

    Connection keep-alive

    Referer http://umbraco/umbraco/umbraco.aspx

    Cookie UserContext=7ea871cc-9df5-4fea-81da-d9fcb12e0be5; ASP.NET_SessionId=rctjgdq33vmcvw5555trjc3p


     

     


    GET 1051.aspx

    http://umbraco/1051.aspx


    200 OK

     


    umbraco

    572 B

    44ms


    ParamsHeadersPostPutResponseCacheHTML

    Response Headersview source

    Cache-Control private

    Content-Length 572

    Content-Type text/html; charset=utf-8

    Server Microsoft-IIS/6.0

    X-Powered-By ASP.NET

    Date Fri, 29 Jan 2010 10:33:12 GMT

    Request Headersview source

    Host umbraco

    User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

    Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

    Accept-Language en-gb,en;q=0.5

    Accept-Encoding gzip,deflate

    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7

    Keep-Alive 300

    Connection keep-alive

    Referer http://umbraco/umbraco/umbraco.aspx

    Cookie UserContext=7ea871cc-9df5-4fea-81da-d9fcb12e0be5; ASP.NET_SessionId=rctjgdq33vmcvw5555trjc3p

     




     

     

    Any help is much appreciated.

    Cheers,

    Ed

  • Ed Bishop 53 posts 203 karma points
    Jan 29, 2010 @ 13:08
    Ed Bishop
    0

    Bump.... 

    Please help me someone :(

  • Stewart Penny 4 posts 24 karma points
    Feb 02, 2010 @ 15:54
    Stewart Penny
    0

    Check that you are inheriting from the Umbraco master page at the top level as this puts the required functionality into the canvas page.

    (also replied to your other post elsewhere...)

    S

Please Sign in or register to post replies

Write your reply to:

Draft