Thanks Mark
still struggling with getting it right.....at the nd of the
<form>.....after the input boxes I tried -
<div style="text-align:center">
<font size=-2>Enter your information, then press</font>
<input type="submit" value="send"
onclick="var f=this.form;
if (f.title.value==f.title.defaultValue)
{ alert('Please enter um titulo');
f.name.focus(); return false; }
if (f.text.value==f.code.defaultValue)
{ alert('Please enter codigo do video');
f.from.focus(); return
false; }
var target=this.form.nextSibling;
target.style.display='block';
store.saveTiddler(f.title.value,f.title.value,f.text.value,"","",f.tags.value);
story.displayTiddler(null,f.title.value);
">
...it does not work.....ie does not create and open the new
tiddler.......is it possible to insert the store.saveTiddler here ?
What would be the right syntax?
Thanks in Advance
Skye
On 28 Abr, 13:17, "Mark S." <[email protected]> wrote:
> Hello skye,
>
> This is incredibly lazy of me, but it might help if you showed the
> <form> line from your contact form.
>
> *I think*, if it was me, the way I would proceed is to make a form-
> adder function and invoke it at the end of whatever onsubmit clause
> you already have. Like
>
> onsubmit="...code...;myFormAdder(this);"
>
> then the function would exist inside its own systemConfig handler
> like:
>
> function(myForm) {
> //You extract form fields by [form var].[field name].value
> var tid=myForm.title.value;
> var txt=myForm.textstuff.value ;
> ..
> ..
> store.saveTiddler(tid,tid,txt,who,when,tags);
> story.displayTiddler(null,tid);
>
> }
>
> Hopefully this will help you get started. Or someone will come along
> with the complete answer ;-)
>
> Mark
>
> On Apr 27, 4:02 pm, skye riquelme <[email protected]> wrote:
>
>
>
> > Hi All
>
> > I am wanting to be notified when students enter a certain type of
> > reference.......I modified Erics Contact Form to include the
> > information I need and have it emailed to a special, for-this-purpose
> > email.........that all works fine.....NOW
>
> > how to get the Contact Form code to also create a new tiddler
> > locally....
>
> > I put code such as...
> > <script>
> > var tid=title;
> > var txt=code;
> > ..
> > ..
> > store.saveTiddler(tid,tid,txt,who,when,tags);
> > story.displayTiddler(null,tid);
> > </script>
>
> > where "title" comes from inside the <form>.....</form> part of the
> > Contact form code.....the html..... such as...
> > <input type=text name=title style="width:49%" value="titulo do video"
> > onfocus="this.select()">
>
> > so...where is the right place to put the script...or what is the right
> > syntax to have the script read the form variables such as
> > "title" )..
>
> > Thanks in Advance
> > 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
> > athttp://groups.google.com/group/tiddlywiki?hl=en.
>
> --
> 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
> athttp://groups.google.com/group/tiddlywiki?hl=en.
--
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.