NetMeeting_2.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <title></title>
  6. </head>
  7. <body>
  8. <script>
  9. var baseUrl = window.top.baseUrl;
  10. window.onmessage = function (event) {
  11. console.log(JSON.stringify(event.data))
  12. //初始化视频会议控件
  13. var temp_form = document.createElement("form");
  14. temp_form.action = baseUrl + "chat";
  15. temp_form.method = "post";
  16. temp_form.style.display = "none";
  17. var parames = new Array();
  18. parames.push({ name: "creater", value: event.data.masterid });
  19. parames.push({ name: "userid", value: event.data.touserid });
  20. parames.push({ name: "username", value: event.data.tousername });
  21. parames.push({ name: "room", value: event.data.meetingid });
  22. parames.push({ name: "title", value: event.data.title });
  23. parames.push({ name: "pdf", value: event.data.pdf });
  24. parames.push({ name: "uploadUrl", value: event.data.uploadUrl })
  25. parames.push({ name: "AccessToken", value: event.data.AccessToken });
  26. parames.push({ name: "routeinfoid", value: event.data.routeinfoid });
  27. for (var x in parames) {
  28. var opt = document.createElement("textarea");
  29. opt.name = parames[x].name;
  30. opt.value = parames[x].value;
  31. temp_form.appendChild(opt);
  32. }
  33. document.body.appendChild(temp_form);
  34. temp_form.submit();
  35. }
  36. </script>
  37. </body>
  38. </html>