Forum dédié aux karot:z, nabaztag:tag, mir:ror, dal:dal...


 
AccueilAccueil  FAQFAQ  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  

Partager | 
 

 Using the API, but don't want to get the "success"

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Raoul DuBois
Lapin nain
Lapin nain


Nbr de messages: 6
Points: 2163

MessageSujet: Using the API, but don't want to get the "success"   Mar 18 Juil 2006 - 18: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!
Revenir en haut Aller en bas
Tabatha
il est cap' !!!


Localisation: Plat Pays
Nom du Nabaztag: Tabatha (V1) & Traci (V2)
Nbr de messages: 3727
Points: 2390

MessageSujet: Re: Using the API, but don't want to get the "success"   Mer 19 Juil 2006 - 8:45

Do you have the possibility to create php pages?
Revenir en haut Aller en bas
Raoul DuBois
Lapin nain
Lapin nain


Nbr de messages: 6
Points: 2163

MessageSujet: Re: Using the API, but don't want to get the "success"   Jeu 20 Juil 2006 - 14: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?
Revenir en haut Aller en bas
nabazland
Karotzeur taquin


Age: 45
Localisation: Rouen - France
Nom du Nabaztag: Caulfield (v2.1)
Nbr de messages: 9840
Points: 4335

MessageSujet: Re: Using the API, but don't want to get the "success"   Jeu 20 Juil 2006 - 15: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.

_____________________________


Revenir en haut Aller en bas
http://www.nabzone.com
Kayakbabe
Lapin nain
Lapin nain


Nbr de messages: 4
Points: 2126

MessageSujet: Re: Using the API, but don't want to get the "success"   Ven 28 Juil 2006 - 16: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.
Revenir en haut Aller en bas
 

Using the API, but don't want to get the "success"

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

 Sujets similaires

-
» Carton jaune aux "stylistes" d'Adidas
» Réputation "Foire de Sombrelune"
» Haut fait : "Désinfection"
» Réputation "Confrerie du Thorium"
» Réputation "La Balance des Sables"

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Forum dédié aux karot:z, nabaztag:tag, mir:ror, dal:dal... :: If you do not speak french ... :: Archives :: API & Developments-