Thursday, February 16, 2017

Re: <link rel = "import" href="http://abc/Application/Application.html" /> doesn't work

You need to include the "nocache" script just like your host html file does. It looks something like this:

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




On Thursday, February 16, 2017 at 4:48:47 AM UTC-7, Daniel Kln wrote:
I am using GWT 2.8.0

Am Donnerstag, 16. Februar 2017 12:46:27 UTC+1 schrieb Daniel Kln:
Hello,

i try to integrate my gwt app into a normal plain html page (code "integrationPrototyp.html" see below). 

When running the integrationPrototyp.html on the chrome console i get following message: GET http://danielvm:8080/integrationPrototyp/41CC993CFD36A1ACD71989CF13EBCD05.cache.js 

At first, what is the reason for this problem?
Second, how to fix it?

But i think just to know, why it doesn't works could help me already a lot.

Thank you a lot :)

Best regards daniel


<!doctype html>
<html lang="de">
<head>
  <meta charset="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <style>


    body{
      margin: 10px auto;
      <!--max-width: 60em;-->
    }
    * {
      padding: 10px;margin:5px;
    }
    header{
      border: 2px solid #3481cd
    }
    nav{
      background: skyblue;
    }
    footer{
      border: 2px solid seagreen;
    }
 
    main{
      border: 2px solid hotpink;
    }
 
    article{
      border: 2px solid purple;
    }
    section{
      border: 2px solid slateblue;
    }
    aside{
      border: 2px solid tomato;
    }

            

  </style>
  <title>HTML5-Seite mit Grundstruktur</title>
</head>
 
 
  <!--<iframe src="http://abc:8080/Application/Applicaction.html"></iframe> -->
<body>
<link rel = "import" href="http://abc:8080/Application/Application.html"  />
  <header>
    <img src="images/1.jpg" alt="logo">
    <h1>Titel</h1>
    <nav>
      <ul>
    <li><a href="#link_1.html">Startseite</a></li>
    <li><a href="#link_2.html">Unterseite 1</a></li>
    <li><a href="#link_3.html">Unterseite 2</a></li>    
    <li><a href="#link_4.html">Kontakt</a></li>
      </ul>
    </nav>
  </header>
 
  
 
  <main>
    <article>
     
   </article>
 
  <aside>
    <h2>Weiterführende Links</h2>
    <ul>
      <li><a href="#link_1.html">Wiki</a></li>
      <li><a href="#link_2.html">Blog</a></li>
      <li><a href="#link_3.html">Forum</a></li>
    </ul>
  </aside>
  </main>
 
  <footer>
     <a href="#kontakt.html">Kontakt</a>
     <p>© 2014 by selfHTML</p>
  </footer>
</body>
</html>

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment