
Forum des Objets Communicants et Solutions pour les Libérer...
|
| | Using the API, but don't want to get the "success" | |
| | Auteur | Message |
---|
Raoul DuBois Lapin nain

Nbr de messages : 6 Carottes : 6370
 | Sujet: Using the API, but don't want to get the "success" Mar 18 Juil 2006 - 19:34 | |
| Hi all,
I've made a little text input box on my website that allows users to send messages to my bunny. It uses JavaScript to send the user to nabaztag.com/vl/FR/api.js?sn... etc etc.
The only problem is that, when they hit "send", the page loads up with the ugly page saying that the message was successfully sent.
Is there a way to hit the nabaztag link virtually? Is there a way to set things up so that the user clicks "send" and they can stay in my site? Or, so that they can go to a personal "success" message within my site?
Thanks for any help! | |
|  | | Tabatha il est cap' !!!

Localisation : Plat Pays Nabaztag : Tabatha (V1) & Traci (V2) Nbr de messages : 3718 Carottes : 6604
 | Sujet: Re: Using the API, but don't want to get the "success" Mer 19 Juil 2006 - 9:45 | |
| Do you have the possibility to create php pages? | |
|  | | Raoul DuBois Lapin nain

Nbr de messages : 6 Carottes : 6370
 | Sujet: Re: Using the API, but don't want to get the "success" Jeu 20 Juil 2006 - 15:34 | |
| No, my server doesn't allow PHP, unfortunately.
I created the input form with a simple JavaScript that calls document.location after the user enters their text.
Is it possible to do this with JS or similar? | |
|  | | nabazland Karotzeur taquin

Age : 56 Localisation : Rouen - France Nabaztag : Caulfield (v2.1) Nbr de messages : 9783 Carottes : 12985
 | Sujet: Re: Using the API, but don't want to get the "success" Jeu 20 Juil 2006 - 16:19 | |
| You should search 'xmlhttprequest()' on Google...
- here for crossover plateform function : http://www.scss.com.au/family/andrew/webdesign/xmlhttprequest/
- you must send correct http headers to expect a response from the API : "Content-Type: text/xml; charset=UTF-8" "Accept-Language: fr-fr"
I never use xmlhttprequest() but i think the truth is there. _____________________________
| |
|  | | Kayakbabe Lapin nain

Nbr de messages : 4 Carottes : 6333
 | Sujet: Re: Using the API, but don't want to get the "success" Ven 28 Juil 2006 - 17:27 | |
| You could setup an iframe or a div in your html page where the script is. Use css to turn display off to make it not show. Then submit your form to the iframe... the iframe will load the results content... but you won't see it.
Look for info on javascript and frames... you might try google terms like "javascript form cross frame" or "javascript form cross iframe" or "javascript form cross div" or something like that. | |
|  | | Contenu sponsorisé
 | Sujet: Re: Using the API, but don't want to get the "success"  | |
| |
|  | | | Using the API, but don't want to get the "success" | |
|
Sujets similaires |  |
|
| Permission de ce forum: | Vous ne pouvez pas répondre aux sujets dans ce forum
| |
| |
| |
|