Beiträge zum Thema "(Web) Development"

Ext JS Charts Problem: Y-Scale is always 0 to 1

28. August 2009 | keine Kommentare

During the last few hours I was playing around with Ext JS charts. I got stuck for a while because the height of my y-axis was limited to one; no matter what I tried and how high the numbers of my records were – the y-scale was fixed to 1.

Ext JS chart

After some time I figured out that there’s a problem with PHP’s json_encode(). Due to that problem I formatted the data for my chart as strings (with quotation marks) instead of integers (without quotation marks).

There are two solutions to fix this problem: First, you can make sure that the PHP variables that contain integers are really numeric types (and not strings). The second, much easier solution, is to properly define the Ext JS fields for the charts:

fields = [
  {name: 'interval'},
  {name: 'field1', type: 'int'},
  {name: 'field2', type: 'int'}
];

And that’s it!

THEMEN: (Web) Development, Ext JS

Ext JS – How to reload a GridPanel’s DataStore

20. August 2009 | keine Kommentare

Although it is quite easy to reload the data that underlies an Ext JS GridPanel, I spent some time figuring out how to do it, especially because the first result on my search on Google leaded me into a wrong direction…

Ext.getCmp('<GridPanel-ID>').getStore().reload();

That’s all you need! Get your GridPanel by its ID and reload its DataStore. The data will be fetched from the ressource specified and the GUI will be refereshed immediately.

THEMA: Ext JS

Experimente mit Ext JS…

31. Juli 2009 | keine Kommentare

Nachdem ich im Rahmen meiner Tätigkeit für blueSummit meine ersten Erfahrungen mit dem JavaScript-Framework YUI habe sammeln können, habe ich vor einigen Monaten Ext JS kennen (und lieben) gelernt. Inzwischen habe ich mit Ext JS, ebenfalls für blueSummit, auch ein erstes Tool erstellt, welches bereits ziemlich viele Möglichkeiten von Ext JS nutzt. Hier ein Eindruck von der gut aussehenden, intuitiv zu bedienenden und einfach zu programmierenden Oberfläche:

blueSummit Spider

Nun geht es auch direkt mit Ext JS weiter. Mit einem Kommilitonen werde ich im gerade beginnenden Semester im Rahmen eines Forschungsprojektes an der University of Western Sydney (UWS) die Web Analytics Anforderungen von Blog-Betreibern identifizieren und in Form eines WordPress-Plugins für Besucher-Statistiken umsetzen. Dabei wollen wir auch Ext JS verwenden (was grundsätzlich kein Problem ist, wie ich vor einigen Monaten bereits ausprobiert habe). Für das Projekt haben wir eine Website ins Leben gerufenen – wopsta.org – WordPress Visitor Statistics. Dort werden wir über Fortschritte in Forschung und Entwicklung berichten. Soweit der Plan. Mal schauen wie es in rund vier Monaten, gegen Ende des Semesters, aussieht…

THEMEN: (Web) Development, Ext JS, MICT-Studium an der UWS, Persönliches

The StatPress Reloaded WordPress plugin – Track your Visitor’s and enjoy Statistics

20. Mai 2009 | 5 Kommentare

When running a blog it is interesting to see who is visiting ones website, where these visitors come from and what they do onsite. Since all versions of WordPress do not come with any visitor statistics so far, every blogger or blog owner has to implement his own solution to track visitors and display statistics.

StatPress ReloadedDifferent kinds of WordPress visitor statistics are available: External tools such as Goole Analytics or Woopra, WordPress internal plugins such as StatPress Reloaded, CyStats or WassUp and mixtures of internal and external tools, such as the WordPress.com stats plugin, that stores and computes all data on the WordPress.com servers but can easily be integrated into ones blog.

This blog post is about the blog integrated plugin StatPress Reloaded. I will start with a description of the plugin in general, then point out its advantages and disadvantages and finish by giving a conclusion.

» weiterlesen

THEMA: (Web) Development