Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

IE und Ajax

Empfohlene Antworten

Veröffentlicht

Ich habe ein Problem mit Xajax und dem IE:

folgender Code liegt vor:


<table id="objTable" style="width:590px;">

  <tr>

    <th><img onClick="my_sort_table('registered','asc')" src="./images/arrow_down.gif" border="0" alt=""> Eingestellt <img onClick="my_sort_table('registered','desc')" src="./images/arrow_up.gif" border="0" alt=""></th>

  </tr>

  <tr bgcolor="#aaaaaa">

    <td class="center middle">05.04.2006<br/>12:31</td>

  </tr>

</table>

function sort_table($field, $dest = "ASC") {

	global $templ;


	$resp = new XajaxResponse();

         $objects = createOutput(query($field." ".$dest));

	$templ->assign('exposes',$objects);


         $table = $templ->fetch("objects_rows.tpl");


	//standard methods are still available

	$resp->addAssign("objTable", "innerHTML", $table);


	return $resp;

}

Im Debug-Modus bekomme ich folgende Fehlermeldung:

While trying to 'addAssign/addClear' (command number 0), the following error occured:

Error: unbekannter Laufzeitfehler

Kann mir dabei jemand weiterhelfen?

ich würde mal wetten, das liegt daran das der IE mit Javascript selten Tabellenmanipulation zulässt, bzw. es da ganz schnell zu fehlern kommt.

XAJAX macht da eine JS-Operation die in der Tabelle nicht gültig ist.

Leider kenne ich XAJAX nicht. Bei Problemen mit DOM Mainpulation in Bezug auf Tabellen im IE hilft das Einfügen von tbody bzw. thead tags.

  • Autor
Leider kenne ich XAJAX nicht. Bei Problemen mit DOM Mainpulation in Bezug auf Tabellen im IE hilft das Einfügen von tbody bzw. thead tags.

Ahh ja - danke schön - ich habe mir jetzt allerdings schon so geholfen, dass ich die komplette Tabelle neu erstelle und nicht nur die einzelnen Reihen, aber auf deinen Vorschlag werde ich nochmal zurückkommen.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.