Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Install Problem using existing web app

    Hello,

    I am trying to use the *.js files from another web app with a simple html page.
    Everything seems to download according to firebug but I get the following error.

    isc is not defined isc.Button.create ...

    Below is the page.

    Thanks,
    Eric

    Code:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Earned Value Toolkit</title>
    <!--isomorphic:loadISC skin="raytheon" isomorphicURI="/rayadm"/-->
    <script>window.isomorphicDir='http://localhost:8888/rayadm/isomorphic/';</script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_Core.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_Foundation.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_Containers.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_Grids.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_Forms.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_DataBinding.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/system/development/ISC_Analytics.js"></script>
     <script src="http://localhost:8888/rayadm/isomorphic/skins/raytheon/load_skin.js"></script>
    </head>
    <body>
    <h2>evtoolkit</h2>
    <script>
    isc.Button.create({
    	title: "Click me",
    	width: 200
    })
    </script>
    </body>
    </html>

    #2
    Hi erickr,

    You shouldn't declare the page as xhtml - SmartClient doesn't use xhtml - but that may not be the problem. It looks like the .js files composing the SmartClient runtime file simply aren't being loaded. What are you looking at within Firebug that makes you believe the files are being successfully loaded?

    Comment


      #3
      Hi,

      I changed the file to html and that didn't do anything. In firebug it shows the download times of the files. Also if I stop off the server the request all time out after 1 second or so. Also firebug shows the request and response headers for each file.

      The server is setup to serve the files like this if it make s difference.
      Code:
      <!-- Dynamic Compression -->
          <filter>
              <filter-name>CompressionFilter</filter-name>
              <filter-class>com.isomorphic.servlet.CompressionFilter</filter-class>
          </filter>
          <!-- CompressionFilter for dynamic compression -->
          <filter-mapping>
              <filter-name>CompressionFilter</filter-name>
              <url-pattern>/*</url-pattern>
          </filter-mapping>
      Thanks,
      Eric

      Comment


        #4
        Well, the SmartClient runtime is just a series of ordinary JavaScript files - nothing special is required for them to work. It's time to look for faulty basic assumptions like:

        1. are the files that Firebug shows you downloading actually all zero-length, or perhaps HTTP 404 errors?

        2. Have you got a bad version cached from a previous attempt?

        3. Is there something weird about your Firefox install or your machine as a whole - does this work on IE or from other people's machine?

        4. Do you have any JavaScript errors *before* "isc is undefined", indicating bad or truncated files?

        5. Are you on an HTTPS page? You can't load JS files via HTTP on an HTTPS page without at least warnings.

        Comment


          #5
          Hi,

          What is the purpose of the line?
          Code:
          <script>window.isomorphicDir='http://localhost:8888/rayadm/isomorphic/';</script>
          Also, which file creates the isc JS object?

          Thanks,
          Eric

          Comment


            #6
            isomorphicDir defines default locations for other files, like the Developer Console's Log.html. Even if it were wrong, you would not get "isc is not an object". The global "isc" object is created in ISC_Core.js.

            Comment


              #7
              I solved it. I was looking at the firebug wrong. They files were 404 not found with a red bar. The problem was that the files were not in a development directory as in the example but in a modules directory so when I changed that the button shows up.

              Thanks,
              Eric

              Comment


                #8
                Aha, good to hear. Thanks for letting us know.

                Comment


                  #9
                  Launched in January with the first Dukky version of its software platform. Within months, he had (WOW Power Leveling) more than 100 customers, including Chik-fil-A restaurants and Stein Mart department stores. It(Buy WOW Gold) monitors collect their campaigns in real time and detailed information about their customers (including e-mail, fast WOW Gold, birthday and sex). It staged a campaign so successful, the return rate was an unheard of 280 percent - without additional investment. "This (Aion Leveling) will be a game-changing technology," said Richard Birt, Senior Vice President of Customer Analytics and findings at KSL Media, an agency in New York City and Encino, Calif., that buys advertising for clients. "In 30 years I think (Buy Aion Gold) it is one of the first three breakthrough technologies in database management."

                  Comment

                  Working...
                  X