View Single Post
Old 11-11-2010, 13:16   #3
Sabretooth
Member
 
Iscritto dal: May 2009
Messaggi: 70
Quote:
Se non usi php con i relativi $_GET e $_POST puoi provare ad inserire il contenuto della textbox(se è breve) nell'url con ad esempio:
Codice:

http://www.pippo.com/pagina.htm?parametro=ciao

poi da javascript fai un controllo su windows.location per catturare il parametro che ti interessa.
No non uso PHP..sto usando però una WepApp di Google.
Codice:
public void onModuleLoad() {
		final Button sendButton = new Button("Invia");
		final TextBox nameField = new TextBox();
		nameField.setText("");
		final Label errorLabel = new Label();

		// We can add style names to widgets
		sendButton.addStyleName("sendButton");

		// Add the nameField and sendButton to the RootPanel
		// Use RootPanel.get() to get the entire body element
		RootPanel.get("nameFieldContainer").add(nameField);
		RootPanel.get("sendButtonContainer").add(sendButton);
		RootPanel.get("errorLabelContainer").add(errorLabel);

		// Focus the cursor on the name field when the app loads
		nameField.setFocus(true);
		nameField.selectAll();
praticamente dovrò copiare quello che verrà scritto nell'oggetto Textbox nameField...
Sai darmi una mano??
Sabretooth è offline   Rispondi citando il messaggio o parte di esso