Hi All

I have a short bit of simple code that  lets me create a new
tiddler....
<html><nowiki><form>
<input name="slide"> Nome do Slide<br>
<input name="sub" > Sub-titulo<br>
<input name="etiquetas"> Extra Etiquetas<br>
<input name="foto"> URL do Foto<br>
<input  name="som"> Url do Som<br>
<textarea name="msg" rows="4" cols="44"></textarea><br>
<input type="submit" value="Criar-la" onclick='
var title = this.form.slide.value;
var sub = this.form.sub.value+" ";
var who = config.options.txtUserName;
var when = new Date();
var etiq = who + " " + this.form.etiquetas.value + " story
PDCIntegral_2011";
var texto = "|SubTitle|"+sub+"|\n|Foto|Dinheiro/
_Fotos/"+this.form.foto.value+"|\n|Som|Dinheiro/
_Som/"+this.form.som.value+"|\n"+this.form.msg.value;
var fields = {};
store.saveTiddler(this.form.slide.value, this.form.slide.value, texto,
who, when, etiq, fields);
autoSaveChanges();
story.displayTiddler(null, title);
'></form></html>


I have used this type of form before and everything works fine. In
fact this code also works...in that it does create the new
tiddler.....and then RELOADs the page....which both annoying and
totally confusing as to why. Can anyone suggest a cause for this
behaviour. I note that after the refresh the url reads like -
file:///......../Dropbox/directory/Page.html?title=r&text=r&tags=r&fields=r&who=r
..... where these values obviously came from the new tiddler.......
why is this refresh happening?

Thanks
Skye

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to