Can I run java on a website?

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Kukurykus, Tom, xbytor

lee ky
Posts: 6
Joined: Tue Mar 03, 2020 3:59 am

Can I run java on a website?

Post by lee ky »

var csInterface=new CSInterface;
function onLoaded(){
var a=new CSInterface;b=a.hostEnvironment.appName;"FLPR"!=b&&loadJSX();
for(var c=["PHXS"],e=0;e<c.length;e++){var d=c[e];

if(0<=b.indexOf(d)&&(d=document.getElementById("btn_"+d)))d.disabled=!1}updateThemeWithAppSkinInfo(a.hostEnvironment.appSkinInfo);a.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,onAppThemeColorChanged)}

function loadJSX(){var a=new CSInterface,c=a.getSystemPath(SystemPath.EXTENSION);}



function onAppThemeColorChanged(a){switch(csInterface.getHostEnvironment()){case 1:$().attr(),setIcons(0)}}

function setIcons(a){a?($):($())}

$(document).ready(function(){loadJSX();
csInterface.addEventListener(CSInterface.THEME_COLOR_CHANGED_EVENT,onAppThemeColorChanged);
csInterface.getHostEnvironment();
$("head").prepend('<link rel="stylesheet" type="text/css" href="./lib/jquery-ui.css" />');
$("body").attr("bgcolor","#4d4d4d");

setIcons(0);


$("#aa").button().click(function(a){csInterface.evalScript('$._ext.evalFile("/c/java/jsx/aa.jsx")')});
$("#bb").button().click(function(a){csInterface.evalScript('$._ext.evalFile("/c/java/jsx/bb.jsx")')});

$("#help").button().click(function(a){csInterface.evalScript('$._ext.evalFile("http://xxx.com/js/help.js")')});



});

---------------------------------------------------------------------------------------------
I am local but I want to run java on the web
Can I run java on a website?


$("#help").button().click(function(a){csInterface.evalScript('$._ext.evalFile("http://xxx.com/js/help.js")')});