Copy link to clipboard
Copied
Any ideas on how to capture the user's IP address and report it in XML?
Copy link to clipboard
Copied
Is there a reason you would need to do this within the course, as opposed to the LMS managing these details?
Copy link to clipboard
Copied
Hi
Yes xml report is going to a server, not an LMS.
Copy link to clipboard
Copied
You need server side scripts to do that.
Copy link to clipboard
Copied
HI, Thanks. I noticed a post you made may 2014, text was:
You'd need to create a user variable in Captivate and then populate the variable using JavaScript:
function getUrlVar()
{
var cp = document.Captivate;
alert(cp.cpEISetValue("m_VarHandle.yourVariable", "yourValue));
}
When you need the value call JavaScript in a Captivate:
getUrlVar();
Can you help me how to apply this to capture IP address?
Copy link to clipboard
Copied
That post really didn't have anything to do with what you want to do.
Copy link to clipboard
Copied
As TLCMediadesign points out, for IP-address you need server-side scripting. That IP address is never transferred nor used to Captivate. Why would you ever use, need that address? You can retrieve account data like ID and Name from the login into a webserver or a LMS but that is totally different.
Copy link to clipboard
Copied
I was requesting some assistance or detail on creating a variable, then populating that variable, then recalling that variable, as described using JS in the post I quoted, seems that was not obviously implied in my post.
I'm trying to help my server people, this is not my area, any help is appreciated.
Copy link to clipboard
Copied
Perhaps if you explain the issue in detail, there may be some other solution?
Other that that you will definitely need AJAX, PHP or some other script to be able to gather information and write to a file.
Copy link to clipboard
Copied
Indeed, thanks.
They need to capture the IP address for authentication purposes. Captivate is server reporting to SQL tables. I have two user ID variables reporting identification, just need to capture IP of flash module session address into SQL for compliance with broader security policy. ASP structure.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more