JavaScript Binding applet parameters with angularJS

I need to pass a dynamic param to an applet.

This is my controller:

'use strict';

    angular.module('jworkApp')
      .controller('AppletCtrl',['$scope', function (scope) {
              scope.base64 = "abcd";
}]);

This is my view, the parameter base64 is defined in the controller as "abcd"

<p>{{base64}}</p>
<APPLET>
  <PARAM name="text" value={{base64}} />
</APPLET>

When I run my page I see in the p tag the string 'abcd' , but the applet param's value it's simply "{{base64}}".

How could i fix it?

Answer:1

I solved passing the entire applet declaration. In this way it works correctly.

Controller:

angular.module('jworkApp')
  .controller('AppletCtrl',['$scope', '$sce', function ($scope, $sce) {

            $scope.b64 = 'AAAA';
            $scope.applet = 
                "<APPLET>"+
                "<PARAM name=\"testo\" VALUE=\""+$scope.b64+"\" />"+
                "</APPLET>";

             $scope.getAppletCode = function() {
                  return $sce.trustAsHtml($scope.applet);
             };

  }]);

view:

<div ng-bind-html="getAppletCode()"></div>
Answer:2

Using Fabric.js, I'm having trouble truly rotating a triangle around its center point, or at least what I believe should be the center point. I created a jsFiddle that demonstrates. The triangle is ...

Using Fabric.js, I'm having trouble truly rotating a triangle around its center point, or at least what I believe should be the center point. I created a jsFiddle that demonstrates. The triangle is ...

I have seen many answers in stack overflow which says setting response headers will make you "CORS" request.But no solution worked for me.I have written the following code: //Server.js Code var ...

I have seen many answers in stack overflow which says setting response headers will make you "CORS" request.But no solution worked for me.I have written the following code: //Server.js Code var ...

  1. making cors request with fetch
  2. making cors request in angularjs
  3. make cors request
  4. make cors request javascript
  5. make cors request ajax
  6. make cors request axios
  7. make cors request in postman
  8. make cors request online
  9. make cors request react
  10. make cors request from chrome
  11. making a cors request with jquery
  12. angular make cors request
  13. js make cors request
  14. curl make cors request
  15. vue make cors request
  16. reactjs make cors request

I ask for for some help since I can't find another thread to resolve my problem. I'm using HighCharts to render one chart with temperature and humidity values, saved on a local database. Each values ...

I ask for for some help since I can't find another thread to resolve my problem. I'm using HighCharts to render one chart with temperature and humidity values, saved on a local database. Each values ...

  1. highcharts multiple series line chart
  2. highcharts multiple series json
  3. highcharts multiple series in one chart
  4. highcharts multiple series bar chart
  5. highcharts multiple series tooltip
  6. highcharts multiple series line
  7. highcharts multiple series drilldown
  8. highcharts multiple series column chart
  9. highcharts multiple series types
  10. highcharts multiple series color
  11. highcharts multiple series
  12. highcharts multiple series example
  13. highcharts multiple series y axis
  14. highcharts multiple series data array
  15. highcharts multiple series categories
  16. highcharts multiple series x axis
  17. highcharts multiple series pie chart
  18. highcharts multiple series legend
  19. highcharts multiple series in navigator
  20. multiple series name highcharts

I have the following page <!DOCTYPE html> <html> <script type="text/javascript"> function loopLink(i) { window.open($('#iframe_a').contents().find('.image-...

I have the following page <!DOCTYPE html> <html> <script type="text/javascript"> function loopLink(i) { window.open($('#iframe_a').contents().find('.image-...