Whao, that wasn't as easy as I thought. I wanted to print out the two top level breadcrumb elements, without "Home", with node title in a custom block. I tried it in many different ways but ran into surprises every time. So finally I'd like to share my code with you, if you should run into the same situation:
Ein typisches Problem im Umgang mit AJAX ist die (re-)Initialisierung von Scripts auf den nachträglich geladenen Inhalt. Im JTL-Shop 4 stößt man darauf beispielsweise auf Kategorieübersichten bei der Seitennavigation. Viele Systeme, viele Lösungen
I created this issue and snippet as better entityreference.module autocomplete widget usability solution in: 2571107.do
Sometimes you need a snippet to display the drupal messages (drupal_set_message) created messages after an ajax call as result (for example if a node was created via ajax). The following snippet removes old messages from the site and appends new messages in the AJAX callback:
If you should run into the same problem as I did and wonder that your AJAX callback results return in the wrong language, you may have missed to add the language (path) prefix to the AJAX call! AJAX calls determine the language from the path they were called, if language prefixing method is used in Drupal.
Drupal 7 Views (3) provides great functionality. However the optionally provided "Reset" button for exposed filters does not work nice with AJAX. If it is clicked it: Does not fire via AJAX but loads a whole new page Has a problem with the URL (see https://www.drupal.org/node/1109980) and so redirects the user to the front page in most cases.
Sometimes dymanic web pages are really problematic for styling purposes. One situation is to style an AJAX Throbber / Spinner in Drupal, which hides very fast (in most situations ;)) and is only hardly stylable though. In this blog entry I'm describing a trick to keep the AJAX Throbber visible in its position.
Die kleine Denkaufgabe des Tages: Wie schafft man es in möglichst wenig Zeilen eine Reihe von AJAX-Aufrufen, die anhand einer Schleife erzeugt werden, mit einer Pipe sequenziell abzuarbeiten? Die Lösung: // A list of arguments for separate sequential AJAX calls. // First argument for first call, second for second call, etc. var callsArguments = new Array();