eEcho blog

is een halte van de gedachte

Archive for the ‘AJAX’ Category

Getting Started Flex Builder Adobe

http://learn.adobe.com/wiki/download/attachments/5701657/animoverview.swf?version=1
http://learn.adobe.com/wiki/display/Flex/Getting+Started - tutorials
http://livedocs.adobe.com/flex/3/html/index.html - documents
http://livedocs.adobe.com/flex/3/html/Working_with_Video_08.html#152433 - Streaming video files

Flex Builder install

Follow these steps to begin experiencing the Flex Builder Linux alpha:
Download the Flex Builder Linux alpha http://labs.adobe.com/downloads/flexbuilder_linux.html
Run the installer either marking it as executable (chmod +x) or by using a shell to execute it

sh flexbuilder_linux_install_a3_033108.bin
root folder of eclipse (debian, ubuntu)
/usr/lib/eclipse
[…]

Adobe Flex Builder Linux Public Alpha

http://labs.adobe.com/technologies/flex/flexbuilder_linux/
Update: Flex Builder Linux alpha 3 was released on 3/31/2008. Please download alpha 3.
Welcome to the Adobe® Flex™ Builder™ Linux alpha on Adobe Labs. Flex Builder Linux is a plugin-only version of the Flex Builder that you can use to build Flex applications on Linux. We wanted to get an early release out with the […]

ArrayList gwt Java

Hier is JRE Emulation Library
http://code.google.com/webtoolkit/documentation/jre.html
Veel gebruikte class ArrayList
http://java.sun.com/j2se/1.4.2/docs/api/java/util/ArrayList.html

import java.util.ArrayList;
private ArrayList sinks = new ArrayList();

Google AJAX Language API

http://code.google.com/apis/ajaxlanguage/
What is the Google AJAX Language API?
With the AJAX Language API, you can translate and detect the language of blocks of text within a webpage using only Javascript.
The language API is designed to be simple and easy to use to translate and detect languages on the fly when offline translations are not available. We plan […]

GWT ListBox Value

Om ListBox value te kan opgehaald worden
return keywordListBox.getValue(keywordListBox.getSelectedIndex());
Opmerking:
Zorg ten eerste dat deze ListBox is ingevuld met tenminste 1 Item, anders zal een fout gegenereerd worden.

gwt-examples

http://code.google.com/p/gwt-examples/w/list
QuickTips Quick Tips about how things work
GoogleCodeWants Google Code Wants
gwtEclipseFaqs How to configure eclipse for these projects.
gwtTomcat gwt tomcat setup
gwtTomcatWarBuilder gwt Tomcat War Builder
gwtDateTime getting date and time, unix time stamp, start and end of day with Java and GWT.
Projects Eclipse projects listed in trunk
gwtDND tips using gwt-dnd
gwtWidgets GWT wiget links
gwtTutorials GWT Tutorial Links
project_LoginManager […]

Google Analytics Track Anchor Tag in GWT

Track the anchor tag - easy integration
http://code.google.com/p/gwt-examples/wiki/QuickTips

<!– web statistics –><script type=“text/javascript”>        var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);        document.write(unescape(“%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));</script><script type=“text/javascript”>        var pageTracker = _gat._getTracker(“UA-xxxxxxxx-13″);
        // *** track anchor tags ***        pageTracker._setAllowAnchor(true);
  […]

Parsing Query String Links in application GWT

get/pass parameters from the http query string. I use the history token to pass paramters, which makes more sense, since you don’t have to refresh the page. Here is my method I do it with.

/**
* init history support, start watching for changes in history
*
* observe history changes (tokens)
*/
public void initHistorySupport() {
[…]

Observe Events On Vertical Panel onBrowserEvent RMK

Add this class and use it just like you would a vertical panel. This extends vertical panel and allows you to watch for events on the panel. This class below is only watching for clicks, but you can watch for all the events by adding them to sink events.

public class WatchEventPanel extends VerticalPanel {
[…]

Get Widget(s) Data In a Panel Dynamic

Getting Widgets in a panel is a nice way to interact with widgets you make. You can add several widgets into a panel, and get all of them by looping through the widgets in the panel. I make a specific panel to put all my reminder widgets in. Then I gather data and use it […]

Get ListBox Value’s Index getListBoxIndexByValue

Here is a method used to find the value’s index, so then you can setSelected for listbox by value.
/**
* get list box value’s index
* @param lb ListBox - what listbox are you looking for value’s index
[…]

Keyboardlistener GWT

http://code.google.com/p/gwt-examples/wiki/QuickTips
# Example of a keyboard listener. Listen to ten key or number pad with numlock on.
# GWT Interface KeyboardListener Reference
# Google Example on the Textbox

public class CalculatorWidget extends Composite implements ClickListener, KeyboardListener {
TextBox tbDisplay = new TextBox();
public CalculatorWidget() […]

Clicklistener GWT more than once!

Avoid calling a listener more than once! Add the clicklistener in the constructor of the widget not a method called over and over. Every time you call a method with a clicklister, you add another observer to that object. Then if you want to do something with that object, you may […]

Image GWT

Show an external image on your page.
//stick the image in the ~/www folder
HorizontalPanel pLoading = new HorizontalPanel();
String sImage = GWT.getModuleBaseURL() + “loading2.gif”;
Image image = new Image(sImage);
pLoading.add(image);

Print RPCs Serialized Response GWT

I found this in GWT sample Dynamic Table. I love this function b/c it prints out the object that will be sent in the RPC. Put this snippet in your server side of the rpc call, MyServerImpl.java class.
//stick this in your server side, MyServiceImpl.java class
[…]

Console/Syslog Debugging GWT

Using System.out.println to print to debugger console or when running it on the server it will print to the /var/log/Syslog which is very helpful for debugging.
System.out.println(”MyMethod has this var: ” + this.MyVar);

Create your own web pages Googlepages

Google Page Creator is a free online tool that makes it easy for anyone to create and publish useful, attractive web pages in just minutes.
* No technical knowledge required.
Build high-quality web pages without having to learn HTML or use complex software.
* […]

AutoCompleteTextBox GWT

http://gwt.components.googlepages.com/
How to use it:
final AutoCompleteTextBox box = new AutoCompleteTextBox();
box.setCompletionItems(new SimpleAutoCompletionItems(
new String[]{ “apple”, “ape”, “anything”, “else”}));
Alternatively, you can create your own implementation of CompletionItems interface (see below) to get a list of items using RPC.
Updated 05/27/06. New version is up. Now with AutoCompleteTextArea.
Please […]

loading animation bar gif indicator javascript progress script

Many ajax Progress indicators, ajax activity indicators, ajax loading animated gif, ajax loading animated images.
Inspired by the Firefox 1.5 busy icon
Inspired by the Firefox 1.5 busy icon (yellow version)
Inspired by RememberTheMilk (tuned to orange)
Tiny red (original creation)
Black busy (original creation)
Gray busy (original creation)
Green rotate (original creation)
Rotation (big […]

 

Home | info@eecho.info | Voorwaarden | Blog