VMware {code} Community
AS2E
Contributor
Contributor
Jump to solution

Custom Web View and PHP

Hello everyone,

I'd like to run PHP code on my custom web view but I don't know how to install it. The problem is than I don't even know which web server Orchestrator is using. I thought it was Apache but I can't find corresponding files. Could anyone help me to implement this functionality?

Thanks.

Reply
0 Kudos
25 Replies
tschoergez
Leadership
Leadership
Jump to solution

Hi!

seems to be an issue within the Tapestry-Parser.

It should work if you use an external file for the javascript-stuff:

<html>
<head>
</head>
<body>
<script type="text/javascript" src="vodoo.js">
</script>

</body>
</html>

And all the javascript-code in voodo.js in the same directory.

Regards,

Joerg

Reply
0 Kudos
AS2E
Contributor
Contributor
Jump to solution

Thanks a lot. After adding an additional waiting function now it finally works. Great! :smileygrin:

Reply
0 Kudos
tschoergez
Leadership
Leadership
Jump to solution

screenshots? Just too get an impression of your solution... Smiley Wink

regards,

Joerg

Reply
0 Kudos
AS2E
Contributor
Contributor
Jump to solution

What do you want to see? It's not a very exciting solution. The user starts the "Restart VM" workflow and enters a virtual machines name. Then I Javascript code starts and reads out the last executions state using the action I created. In case the workflow state is "completed" the user was obviously authorized to restart the vm and he gets an appropriate message. In case the workflow fails, the user probably didn't have enough rights on the requested vm and he gets an appropriate error message.

Reply
0 Kudos
tschoergez
Leadership
Leadership
Jump to solution

I see. Do you have any plans for further webbased functionality?

Reply
0 Kudos
AS2E
Contributor
Contributor
Jump to solution

No, actually not. First of all I have to find a solution for my webview problems I posted here:

http://communities.vmware.com/message/1714155

Afterwards, we'll see. Nothing planned yet. Smiley Happy

Reply
0 Kudos