Hi Mark
first of all sorry for duplicating the above message .... its taking
up to 2 hours for my message to appear on the list...I thought the
message wasn´t sent...so resent it,
Changed the name of that field back from text to msg.....as you
suggested...and used your code and it still doesn´t generate a
tiddler. The code is sending the information to the php
arquive...which is enetring the information into a mySQL, sending me
an email and confirming all that back to the <form>......the only
thing its not doing is creating the tiddler......
The whole form now reads ....
{{smallform{<html>
<form method=post target=responseframe action="http://my domain...../
mailtext.php" style="display:inline">
<input type=hidden name=to value="em...@mydomain">
<input type=hidden name=type value="video">
<input type=text name=title style="width:49%" value="titulo do video"
onfocus="this.select()">
<input type=text name=tags style="width:49%" value="etiquetas"
onfocus="this.select()"><br>
<input type=hidden name=subj value="video referencial">
<input type=text name=msg style="width:100%" value="codigo para
embutir o video" onfocus="this.select()"><br>
<input type=text name=url style="width:100%" value="url do fonte"
onfocus="this.select()"><br>
<div style="text-align:center">
<font size=-2>Digitar aos detalhes, e clicar</font>
<input type="submit" value="mandar"
onclick="var f=this.form;
var target=this.form.nextSibling;
target.style.display='block';
store.saveTiddler(f.title.value,f.title.value,f.msg.value,nul,nul,nul);
">
</div>
</form><div class="fine" style="text-align:center;display:none">
server response:<br>
<iframe src="" name="responseframe" id="responseframe"
marginheight=0 style="display:block;border:0;padding:0;margin:
0;width:100%;height:10em;">
</iframe>
</div><hide linebreaks></html>}}}
Any further ideas what I am doing wrong????
Thanks in Advance
Skye
On 29 Abr, 19:00, skye riquelme <[email protected]> wrote:
> Hi Mark
>
> still trying to get this to work.....and to follow your suggestion a
> bit closer......
>
> the end of the <form>...now reads -
> <font size=-2>Enter your information, then press</font>
> <input type="submit" value="send"
> onclick="
> var who=config.options.txtUserName;
> var target=this.form.nextSibling;
> target.style.display='block';
> myFormAdder();">
> </div></form>
>
> this is correctly sending the inrmation to the email php
> script.....except the txtUserName!!!!!
>
> and another tiddler (tagged systemConfig) has the code -
> function myFormAdder() {
> var tid=myForm.title.value;
> var txt=myForm.text.value ;
> var tags=myForm.tags.value ;
> var who=config.options.txtUserName;
> var when="";
> store.saveTiddler(tid,tid,txt,who,when,tags);
> story.displayTiddler(null,tid,2);
>
> }
>
> ..but that still does not create the new tiddler......any ideas what I
> am doing wrong???
>
> Thanks
> Skye
>
> On 28 Abr, 21:26, skye riquelme <[email protected]> wrote:
>
>
>
> > 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
> > 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.