Hi,
How to get back the user ID and object learning id in a page html
because I insert iframe and would like keep the information.
thank you
How to get back the user ID and object learning id
Re: How to get back the user ID and object learning id
please explain what you're trying to obtain... make an example
Per supporto GRATUITO contattatemi in privato qui
Re: How to get back the user ID and object learning id
OK I try to explain.
I want an iframe with some dynamic object and The user must comment with a text .
I want to keep the information so that the teacher can analyze the answers.
I also want in the iframe page to print a summary of the work done as well as a graph.
I want to create an additional table in the database to keep the information so that at the end of the course (several learning objects) I can output a total synthesis.
To do this I need the user ID and LO ID.
I can get these information by JScript or parameters in the iframe but how to do it ?
I want an iframe with some dynamic object and The user must comment with a text .
I want to keep the information so that the teacher can analyze the answers.
I also want in the iframe page to print a summary of the work done as well as a graph.
I want to create an additional table in the database to keep the information so that at the end of the course (several learning objects) I can output a total synthesis.
To do this I need the user ID and LO ID.
I can get these information by JScript or parameters in the iframe but how to do it ?
Re: How to get back the user ID and object learning id
why iframe? and what kind of application will be in the iframe?
Per supporto GRATUITO contattatemi in privato qui
Re: How to get back the user ID and object learning id
why you don't try to use a standard LO of type test ?
for your object you need to develop some php pages. chek how other php use library and internals .
I you need we can develop for you the enanchement . send me a PM
for your object you need to develop some php pages. chek how other php use library and internals .
I you need we can develop for you the enanchement . send me a PM
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology
http://www.joint-tech.com
---------------
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology
http://www.joint-tech.com
---------------
Re: How to get back the user ID and object learning id
OK I found the solution, I can continue my work.
Re: How to get back the user ID and object learning id
Hello gihel
This is an open forum.
There will be other people with the same issues as you, as a result the proper thing to do is to share.
I found a solution does not help other people.
thank you
This is an open forum.
There will be other people with the same issues as you, as a result the proper thing to do is to share.
I found a solution does not help other people.
thank you
Re: How to get back the user ID and object learning id
Thanks cao, this is an excellent point and I am glad it's a forum user that makes it
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
Re: How to get back the user ID and object learning id
SORRY I don't think other people was interested.
I saw in the source of the page there was a field input "username"
I made a js script who find the field and pickup the val
after I call a script php with ajax and I pickup the id in the database
I hope you like it (yes I know it's forbidden, but I am french and you are Italian, there is nothing forbidden for us)
I saw in the source of the page there was a field input "username"
I made a js script who find the field and pickup the val
Code: Select all
"var nameUser=$('#username').val();"
Code: Select all
$utilisateur=$_POST['utilisateur'];
//----------Recherche ID user ---------------------------
$sql="select from core_user where userid='/$utilisateur';";
$result=mysqli_query($bdd, $sql);
$idst=0;
if ($result){
$ligne=mysqli_fetch_array($result);
$cleUser=$ligne['idst'];
echo "cleUser= ".$cleUser;
}
Re: How to get back the user ID and object learning id
your solution is dangerous...
Per supporto GRATUITO contattatemi in privato qui