4 Replies Latest reply: Jul 19, 2016 9:51 AM by Brijesh Maurya RSS

    simple mashup is not working on External Apache Server

    Brijesh Maurya

      Hi All ,

       

      i have a one basic mashup to just check whether mashup is showing on apache server on domain.

       

      Same Mashup is Working on QAP Server . kindly check and tell me what i need to do .

      Here is my Basic Code

       

      <!doctype html>

      <html lang="en">

      <head>

          <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

          <title>Brijesh Mashup</title>

          <meta charset="utf-8">

          <meta http-equiv="content-type" content="text/html; charset=UTF-8">

          <meta name="HandheldFriendly" content="True">

          <meta name="MobileOptimized" content="320">

          <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

          <meta name="apple-mobile-web-app-capable" content="yes">

          <meta name="apple-mobile-web-app-status-bar-style" content="black">

          <meta http-equiv="cleartype" content="on">

          <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

          <link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>

       

       

        <link rel="stylesheet" href="https://qapdemoserver.in/resources/autogenerated/qlik-styles.css">

          <script src="https://qapdemoserver.in/resources/assets/external/requirejs/require.js"></script>

          <script src="Test.js"></script>

               <style>

              article.qvobject

              {

                  position:absolute;

                  overflow: hidden;

                  padding: 10px;

              }

          </style>

      </head>

      <body style="overflow:auto">

      <button id="cmdExport" style="display:block;"> 

         Export data 

      </button> 

      <div id="QV01" style="position: absolute; top: 50px; left: 20px; width: 200px; height: 200px;" class="qvplaceholder"></div>

      <div id="QV02" style="position: absolute; top: 50px; left: 320px; width: 400px; height: 200px;" class="qvplaceholder"></div>

      <div id="QV03" style="position: absolute; top: 300px; left: 20px; width: 200px; height: 200px;" class="qvplaceholder"></div>

      <div id="QV04" style="position: absolute; top: 300px; left: 320px; width: 400px; height: 200px;" class="qvplaceholder"></div>

      </body>

      </html>

       

      and My Test.js Script

       

      var config = {

        isSecure: true,

        host: "qapdemoserver.in"

        port: 443,

        prefix: "/"

      };

      require.config( {

        baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port: "") + config.prefix + "resources"

      } );

       

       

      require( ["js/qlik"], function ( qlik ) {

        qlik.setOnError( function ( error ) {

        alert( error.message );

        } );

       

        var app = qlik.openApp('cd2908ab-e2ab-4742-ac45-45753bcaf468', config);

       

        //app.getObject('QV03','currsel')

        //get objects -- inserted here --

        app.getObject('QV01','WJRW');

        app.getObject('QV02','WJRW');

        app.getObject('QV04','CurrentSelections');

       

      } );

       

      I have Not Created Any Virtual Proxy Yet. If its required .. What i need to setup in Virtual Proxy

       

      and Error i am Getting