\n is a line break, which is what you want, I assume. :) Try adding
another. Sometimes two are needed. For example (not related to your e-
mail form):
<<matchTags {{"+++[%0 »]...<<tiddler [[%0]]>\>==="}} "\n" stuff>>
displays the results in a line while
<<matchTags {{"+++[%0 »]...<<tiddler [[%0]]>\>==="}} "\n\n" stuff>>
displays results in a list.w On May 1, 3:12 am, skye riquelme <[email protected]> wrote: > Hi Again > > still playing with formatting the information to be send out..... > > the submit button now reads > > <div style="text-align:center"> > <input type=reset><font size=-2>......Digitar, depois clicar</ > font> > <input type="submit" value="mandar" > onclick="var f=this.form; > var target=this.form.nextSibling; > target.style.display='block'; > f.who.value=f.who.value+config.options.txtUserName; > f.tags.value=['video ']+f.tags.value; > f.msg.value=f.msg.value+'\n'+f.descr.value; > store.saveTiddler(f.title.value,f.title.value,f.msg.value,f.who.value,null,f.tags.value); > "> > > which is all working except that the '\n' is not giving me a line > break in the text of the new tiddler....... > > in this case is there some other way I can insert a page break?? > > Thanks Again > Skye > > On 30 Abr, 17:50, skye riquelme <[email protected]> wrote: > > > Hi Mark > > > IT WORKS !!!!!!! > > > And I know what you mean about two versions...we kept crossing inside > > Google delays !!!! > > > I looked at that code for hours...and didn´t see the "ll" in null !!!! > > > The code now ends like this - > > > <input type="submit" value="mandar" > > onclick="var f=this.form; > > var target=this.form.nextSibling; > > target.style.display='block'; > > var who = config.options.txtUserName; > > var tags=['video ']+f.tags.value; > > store.saveTiddler(f.title.value,f.title.value,f.msg.value,who,null,tags); > > "> > > > AND it is correctly inserting both the tags and the username !!!!!!! > > > SO, that one little form now creates a local tiddler, sends me an > > email about the event and puts the information into a mySQL database > > (thanks to a bit of php on my server)..... > > > next step.....get the data out of mySQL and back into a TW !!!!! ---- > > that will be quite a learning curve !!!! > > > Anyway THANKS...seriously the patience of you guys is amazing !!!!! > > > Skye > > > On 30 Abr, 09:46, "Mark S." <[email protected]> wrote: > > > > Hi Skye, > > > > Due to the 2 hour lags, we're talking past each other, resulting in > > > two different versions of the program. For reference, I'm calling this > > > post George 543. > > > > If you just fix your save line like this: > > > > store.saveTiddler(f.title.value,f.title.value,f.msg.value,null,null,null); > > > > Note that "nul" should have been "null". Be careful cutting and > > > pasting out of Google groups, because GG will wrap things and add > > > ascii characters. > > > > Then this will work -- worked on mine. However, it doesn't show up > > > immediately in your tiddler story because you took out the line that > > > displays the new tiddler. Put that back in if you want the change > > > immediately displayed. > > > > There will still be details to work out to get the tags to transmit > > > properly. > > > > HTH > > > Mark > > > > On Apr 29, 8:01 pm, skye riquelme <[email protected]> wrote: > > > > > 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://mydomain...../ > > > > 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> > > ... > > read more » -- 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.

