Copy link to clipboard
Copied
Hi,
I'm wondering where the url for the internal server is stored within an exported project.
Since I don't develop on the machine whose URL is configured, I'm hoping to make, as part of a build process, perform subsitutions for this url based on the environment (development/testing/production), Other than that everything else the build process would leave everything else as is.
Also, based on the docs, it sounds like this should be http url rather than https? If cloudfare is converting all http requests to our site to https, is this going to present any problems?
And finally, is this a XMLRPC POST? I'm trying to determine whether I can use a service worker to avoid requiring server-side code at all. Everything else on our site is static content, and I'd rather have client side js extract what it needs from the XML and submit that information to google firestore.
- Scott
Copy link to clipboard
Copied
Hi,
It sounds like you are overcomplicating a simple process. I am not sure what you are trying to achieve
Copy link to clipboard
Copied
So do you folks merely export the project twice, once with a development internal server URL, and another with a production server url or something?
Basically, I need to extract the quiz data from the XML and send it to Google Firestore in realtime, so I'd be doing quite a bit of modification to the script, possibly translating to javascript, which has me wondering why I shouldn't just run it in the client as a service worker, it it's simply posting xml data to the url, and my site can remain entirely static.
Copy link to clipboard
Copied
Ok, finally had some time to do some more research into this, and as far as what I'm trying to achive. My application (our website as a whole), is only interested in recieving info regarding questions being answered in our various captivate projects.
Based off what I've read here, https://helpx.adobe.com/captivate/using/common-js-interface.html, I'm now thinking, that rather than working with internal server reporting, and having to extract the information I require from the xml file saved via the internal server, perhaps I should instead be adding an eventlistener for CPAPI_QUESTIONSUBMIT (via attaching a script to the generated index.html), which would allow me to do whatever I need to do in client-side js whenever such an event occurs.
Does this answer your question regarding what I'm trying to achieve, and does what I propose, sound like a valid solution for dealing with my application's needs?