Formularfelder, makieren nicht möglich

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Formularfelder, makieren nicht möglich

    Guten Morgen,

    ich habe das Problem, dass ich im Internet Explorer in Formularfeldern nichts mehr makieren kann. Zwar kann ich mit einem Doppelklick alles makieren aber nichts einzeln.
    Im Firefox funktioniert es ohne Probleme. Das Problem tritt bis jetzt auch nur auf dieser Seite auf.
    Ich kann den Link leider nicht posten, da es nur in einem lokalen Netz verfügbar ist.

    Hat jemand eine Idee woran es liegen kann?

    Ich hoffe ich habe das richtige Forum gewählt.
    Danke schon mal im Voraus,
    deltafant.
  • Wie gesagt, es ist nur aus dem lokalen Netz hier zugänglich.
    Hier mal eine Demo: vidup.de/v/NNlQN/ (Mit ziehen makiert er nichts, durch klicken funktioniert es allerdings).

    Hier ist eine der Dateien wo das makieren, z.B. in den Feldern startDate und endDate, nicht möglich ist.

    Quellcode

    1. <?php
    2. require_once ('lib/Customer.class.php');
    3. require_once ('lib/User.class.php');
    4. require_once ('lib/Project.class.php');
    5. require_once ('lib/Summary.class.php');
    6. $customer = new Customer ();
    7. $user = new User ();
    8. $project = new Project ();
    9. $summary = new Summary ();
    10. $action = htmlspecialchars ($_GET['action']);
    11. ?>
    12. <h1>Zusammenfassung</h1>
    13. <form action="showSummary.php" target="_blank" method="post">
    14. <label for="customerId">Kunde</label>
    15. <select name="customerId">
    16. <option></option>
    17. <?php
    18. foreach ($customer->getAllCustomers () as $cu) {
    19. echo ' <option value="' . $cu['customerId'] . '"'; if ($cu['customerId'] == $editPC['customerId']) { echo ' selected="selected"'; } echo '>' . $cu['lastName']; if ($cu['firstName']) { echo ', ' . $cu['firstName']; } echo '</option>';
    20. }
    21. ?>
    22. </select><br />
    23. <label for="userId">Techniker</label>
    24. <select name="userId">
    25. <option></option>
    26. <?php
    27. foreach ($user->getAllUsers () as $u) {
    28. echo ' <option value="' . $u['id'] . '">' . $u['firstName'] . ' ' . $u['lastName'] . '</option>';
    29. }
    30. ?>
    31. </select><br />
    32. <label for="projectId">Projekt</label>
    33. <select name="projectId">
    34. <option></option>
    35. <?php
    36. foreach ($project->getAllProjects () as $p) {
    37. echo ' <option value="' . $p['id'] . '">' . $p['name'] . '</option>';
    38. }
    39. ?>
    40. </select><br />
    41. <label for="startDate">Startdatum</label><input type="text" name="startDate" value="dd.mm.yyyy" /><br />
    42. <label for="endDate">Enddatum</label><input type="text" name="endDate" value="<?php echo date ("d.m.Y", time ()); ?>" /><br />
    43. <label for="noc" class="list">Alle anzeigen</label> <input type="checkbox" id="noc" name="noc"<?php if ($_POST['locked']) echo ' checked="checked"'; ?> /><br />
    44. <label for="submit"></label><input type="submit" name="submit" value="Anzeigen" />
    45. </form>
    Alles anzeigen

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von deltafant ()

  • Ja, sind es. Ich poste einfach mal den Header.

    Quellcode

    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3. <html xmlns="http://www.w3.org/1999/xhtml">
    4. <head>
    5. <title>Intranet</title>
    6. <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    7. <script type="text/javascript">
    8. /* <![CDATA[ */
    9. var color;
    10. function changeColor(color) {
    11. this.color = color;
    12. }
    13. function saveDate(currentUserId, id, timestamp)
    14. {
    15. try {
    16. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    17. req = new XMLHttpRequest();
    18. } catch(e) {
    19. try {
    20. // MS Internet Explorer (ab v6)
    21. req = new ActiveXObject("Microsoft.XMLHTTP");
    22. } catch(e) {
    23. try {
    24. // MS Internet Explorer (ab v5)
    25. req = new ActiveXObject("Msxml2.XMLHTTP");
    26. } catch(e) {
    27. req = null;
    28. }
    29. }
    30. }
    31. req.onreadystatechange = function()
    32. {
    33. if (req.readyState == 4 && req.status == 200) {
    34. if (currentUserId == 4 || currentUserId == 8 || currentUserId == 2) {
    35. if ((document.getElementById(id).style.backgroundColor == "red") ||
    36. (document.getElementById(id).style.backgroundColor == "green") ||
    37. (document.getElementById(id).style.backgroundColor == "blue")) {
    38. document.getElementById(id).style.backgroundColor = "white";
    39. } else {
    40. document.getElementById(id).style.backgroundColor = color;
    41. }
    42. } else {
    43. alert('Du kannst diese Funktion nicht nutzen!');
    44. }
    45. }
    46. }
    47. req.open("GET","vacationAjax.php?id=" + id + "&ts=" + timestamp + "&uid=" + currentUserId + "&color=" + color, true);
    48. req.send();
    49. }
    50. function addArticleField ()
    51. {
    52. var label = document.createElement ("label");
    53. label.setAttribute ("for", "article");
    54. var numberInput = document.createElement ("input");
    55. numberInput.setAttribute ("type", "text");
    56. numberInput.setAttribute ("value", "");
    57. numberInput.setAttribute ("size", "2");
    58. numberInput.setAttribute ("name", "number[]");
    59. numberInput.setAttribute ("id", "number[]");
    60. var priceInput = document.createElement ("input");
    61. priceInput.setAttribute ("type", "text");
    62. priceInput.setAttribute ("value", "");
    63. priceInput.setAttribute ("size", "10");
    64. priceInput.setAttribute ("name", "price[]");
    65. priceInput.setAttribute ("id", "price[]");
    66. var articleInput = document.createElement ("input");
    67. articleInput.setAttribute ("type", "text");
    68. articleInput.setAttribute ("value", "");
    69. articleInput.setAttribute ("size", "30");
    70. articleInput.setAttribute ("name", "article[]");
    71. articleInput.setAttribute ("id", "article[]");
    72. var br = document.createElement ("br");
    73. var text = document.createTextNode (" x ");
    74. var euro = document.createTextNode (" € ");
    75. document.getElementById ("articleFields").appendChild (label);
    76. document.getElementById ("articleFields").appendChild (numberInput);
    77. document.getElementById ("articleFields").appendChild (text);
    78. document.getElementById ("articleFields").appendChild (articleInput);
    79. document.getElementById ("articleFields").appendChild (priceInput);
    80. document.getElementById ("articleFields").appendChild (euro);
    81. document.getElementById ("articleFields").appendChild (br);
    82. }
    83. function addBookingField ()
    84. {
    85. var label = document.createElement ("label");
    86. label.setAttribute ("for", "article");
    87. var numberInput = document.createElement ("input");
    88. numberInput.setAttribute ("type", "text");
    89. numberInput.setAttribute ("value", "");
    90. numberInput.setAttribute ("size", "5");
    91. numberInput.setAttribute ("name", "number[]");
    92. numberInput.setAttribute ("id", "number[]");
    93. var articleInput = document.createElement ("input");
    94. articleInput.setAttribute ("type", "text");
    95. articleInput.setAttribute ("value", "");
    96. articleInput.setAttribute ("size", "20");
    97. articleInput.setAttribute ("name", "article[]");
    98. articleInput.setAttribute ("id", "article[]");
    99. var br = document.createElement ("br");
    100. var text = document.createTextNode (" / ");
    101. document.getElementById ("articleFields").appendChild (label);
    102. document.getElementById ("articleFields").appendChild (numberInput);
    103. document.getElementById ("articleFields").appendChild (text);
    104. document.getElementById ("articleFields").appendChild (articleInput);
    105. document.getElementById ("articleFields").appendChild (br);
    106. }
    107. function showComputers (str)
    108. {
    109. try {
    110. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    111. req = new XMLHttpRequest ();
    112. } catch (e) {
    113. try {
    114. // MS Internet Explorer (ab v6)
    115. req = new ActiveXObject ("Microsoft.XMLHTTP");
    116. } catch (e) {
    117. try {
    118. // MS Internet Explorer (ab v5)
    119. req = new ActiveXObject ("Msxml2.XMLHTTP");
    120. } catch (e) {
    121. req = null;
    122. }
    123. }
    124. }
    125. req.onreadystatechange = function ()
    126. {
    127. if (req.readyState == 4 && req.status == 200) {
    128. document.getElementById ("computer").innerHTML = req.responseText;
    129. }
    130. }
    131. req.open ("GET","getComputers.php?q=" + str, true);
    132. req.send ();
    133. }
    134. function getInfos (str)
    135. {
    136. try {
    137. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    138. req = new XMLHttpRequest ();
    139. } catch (e) {
    140. try {
    141. // MS Internet Explorer (ab v6)
    142. req = new ActiveXObject ("Microsoft.XMLHTTP");
    143. } catch (e) {
    144. try {
    145. // MS Internet Explorer (ab v5)
    146. req = new ActiveXObject ("Msxml2.XMLHTTP");
    147. } catch (e) {
    148. req = null;
    149. }
    150. }
    151. }
    152. req.onreadystatechange = function ()
    153. {
    154. if (req.readyState == 4 && req.status == 200) {
    155. document.getElementById ("infos").innerHTML = req.responseText;
    156. }
    157. }
    158. req.open ("GET","getInfos.php?q=" + str, true);
    159. req.send ();
    160. }
    161. document.onmousemove = updateInfoBox;
    162. function updateInfoBox(e) {
    163. var posx = 0;
    164. var posy = 0;
    165. if (!e) var e = window.event;
    166. if (e.pageX || e.pageY) {
    167. posx = e.pageX;
    168. posy = e.pageY;
    169. }
    170. else if (e.clientX || e.clientY) {
    171. posx = e.clientX + document.body.scrollLeft
    172. + document.documentElement.scrollLeft;
    173. posy = e.clientY + document.body.scrollTop
    174. + document.documentElement.scrollTop;
    175. }
    176. document.getElementById("infoBox").style.left = (posx + 20) + "px";
    177. document.getElementById("infoBox").style.top = (posy + 20) + "px";
    178. //if (document.getElementById("infoBox") != null && document.getElementById("infoBox").style.display == 'block') {
    179. // x = (e.pageX ? e.pageX : window.event.x) + document.getElementById("infoBox").offsetParent.scrollLeft - document.getElementById("infoBox").offsetParent.offsetLeft;
    180. // y = (e.pageY ? e.pageY : window.event.y) + document.getElementById("infoBox").offsetParent.scrollTop - document.getElementById("infoBox").offsetParent.offsetTop;
    181. // --- Versuchen zu verstehen warum dies nicht funktioniert ...
    182. //}
    183. }
    184. function showInfoBox(id) {
    185. showInfo(id);
    186. document.getElementById("infoBox").style.display = "block";
    187. }
    188. function hideInfoBox() {
    189. document.getElementById("infoBox").style.display = "none";
    190. }
    191. function showInfo (q)
    192. {
    193. try {
    194. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    195. req = new XMLHttpRequest ();
    196. } catch (e) {
    197. try {
    198. // MS Internet Explorer (ab v6)
    199. req = new ActiveXObject ("Microsoft.XMLHTTP");
    200. } catch (e) {
    201. try {
    202. // MS Internet Explorer (ab v5)
    203. req = new ActiveXObject ("Msxml2.XMLHTTP");
    204. } catch (e) {
    205. req = null;
    206. }
    207. }
    208. }
    209. req.onreadystatechange = function ()
    210. {
    211. if (req.readyState == 4 && req.status == 200) {
    212. document.getElementById("infoBox").innerHTML = req.responseText;
    213. }
    214. }
    215. req.open ("GET","getRInfo.php?q=" + q, true);
    216. req.send ();
    217. }
    218. function getAppointments (str, id)
    219. {
    220. try {
    221. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    222. req = new XMLHttpRequest ();
    223. } catch (e) {
    224. try {
    225. // MS Internet Explorer (ab v6)
    226. req = new ActiveXObject ("Microsoft.XMLHTTP");
    227. } catch (e) {
    228. try {
    229. // MS Internet Explorer (ab v5)
    230. req = new ActiveXObject ("Msxml2.XMLHTTP");
    231. } catch (e) {
    232. req = null;
    233. }
    234. }
    235. }
    236. req.onreadystatechange = function ()
    237. {
    238. if (req.readyState == 4 && req.status == 200) {
    239. document.getElementById ("table").innerHTML = req.responseText;
    240. }
    241. }
    242. req.open ("GET","getAppointments.php?q=" + str + "&id=" + id, true);
    243. req.send ();
    244. }
    245. function getComputer (str)
    246. {
    247. try {
    248. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    249. req = new XMLHttpRequest ();
    250. } catch (e) {
    251. try {
    252. // MS Internet Explorer (ab v6)
    253. req = new ActiveXObject ("Microsoft.XMLHTTP");
    254. } catch (e) {
    255. try {
    256. // MS Internet Explorer (ab v5)
    257. req = new ActiveXObject ("Msxml2.XMLHTTP");
    258. } catch (e) {
    259. req = null;
    260. }
    261. }
    262. }
    263. req.onreadystatechange = function ()
    264. {
    265. if (req.readyState == 4 && req.status == 200) {
    266. document.getElementById ("table").innerHTML = req.responseText;
    267. }
    268. }
    269. req.open ("GET","getComputer.php?q=" + str, true);
    270. req.send ();
    271. }
    272. function getReportsByCustomer (str)
    273. {
    274. try {
    275. // Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
    276. req = new XMLHttpRequest ();
    277. } catch (e) {
    278. try {
    279. // MS Internet Explorer (ab v6)
    280. req = new ActiveXObject ("Microsoft.XMLHTTP");
    281. } catch (e) {
    282. try {
    283. // MS Internet Explorer (ab v5)
    284. req = new ActiveXObject ("Msxml2.XMLHTTP");
    285. } catch (e) {
    286. req = null;
    287. }
    288. }
    289. }
    290. req.onreadystatechange = function ()
    291. {
    292. if (req.readyState == 4 && req.status == 200) {
    293. document.getElementById ("table").innerHTML = req.responseText;
    294. }
    295. }
    296. req.open ("GET","getReportsByCustomer.php?q=" + str, true);
    297. req.send ();
    298. }
    299. function openReport (url)
    300. {
    301. fenster = window.open (url, "Bericht bearbeiten", "width=400,height=220,status=no,scrollbars=no,resizable=no");
    302. fenster.focus ();
    303. }
    304. function showDetails ()
    305. {
    306. if (document.getElementById ('entries-done').style.display == "block") {
    307. document.getElementById ('entries-done').style.display = "none";
    308. } else {
    309. document.getElementById ('entries-done').style.display = "block";
    310. }
    311. }
    312. /* ]]> */
    313. </script>
    314. <link rel="stylesheet" type="text/css" href="template/css/style.css" />
    315. </head>
    Alles anzeigen
  • also ich hab jetzt bei mir in der Firma nur Linux, aber im Firefox und im Chrome funktioniert es 1a


    so hab jetzt kurz einen Windows Rechner zum Testen wenn ich da die Entwicklungstools aufmache hängt er sich auf und sagt mir
    "Object required summary.php, Zeile210 Zeichen 4"

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von djonny ()

  • @szabo das Problem ist ja meistns das Firefox aber viele fehler durchgehen lässt, IE aber nicht.

    @deltafant
    Im Internetexplorer 8 kannst mit F12 die Entwicklertools einschalten und dort habe ich den Fehler erhalten, aber wie gesagt das komplette Programm hat sich verabschiedet hat den anschein einer endlosschleife gehabt