Develop in a browser

P4V cannot host both P4JsApi Applets and HTML Tools. If P4V hosts HTML Applets, it does not run the HTTP server needed to communicate with HTML Tools. You can start up P4V with the argument ‘$ p4v -devP4VJS’. This launches the HTTP server allowing you to develop HTML Tool pages in a browser (on your local machine) while running Applet pages in P4V.

When you enable HTML Tools, P4V starts up an HTTP server that listens on localhost:8683. It only accepts requests from localhost. You can run and develop P4VJS pages on this machine in your favorite browser.

Note

When you run P4VJS pages in a browser, there is no notion of an active workspace. When you develop in a browser outside of P4V, the first workspace that you connected to in P4V is considered the active workspace.