[tw] Re: Question/Help: Continuing numbering across tiddlers
Create a transclusion tiddler (a processing engine) which takes a tiddler name as its parameter and reads through each line in the specified tiddler to determine which lines to process (render as output) and which lines to ignore. For the processable lines (i.e. numbered-list items) do one of the following: *if its not a tiddler name, output as is *if its a tiddler name, recurse, i.e. call the renderer tiddler with the tiddler name as the parameter Since the output will be a single tiddler, you should achieve the numbering sequence you want. Because it can handle nested tiddlers, there should be no reasonable limit to how large the list could grow to. But be careful about creating an infinite loop! That would be version 1. For version 2 you could pass a tag instead of a tiddler name to seed the engine. All tiddlers with the specified tag would be processed (the order of which will require v2.5). For version 3 you could support processing line items other than numbered lists, e.g. bullet lists, URLs. This version would require more support for output formatting. Craig -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Change/import theme in TiddlySpace: basics?
Thanks Colm and PMario, I checked the links you provided and continued experimenting, so here's some more feedback / questions: **1** I tried to add right-sidebar-toggling to the default theme: - I copy http://www.tiddlytools.com/#ToggleRightSidebar into my space; - I add a tiddler called zzTweaks as instructed under 'Configuration' on the above TTools page; - I add tiddler ToggleRightSidebar to the SideBarOptions tiddler. Nothing happens visually; no ► to be seen. - I include the neui-em theme. Now the ► does show. Apparently something was packed into neui-em that I missed myself, but I don't know what. - I decide to use neui-em's SideBarOptions in any case. Looking good. - I remove neui-em from my includes as a test, reverting to default layout... (while keeping neui-em's SideBarOptions)... Now the » for the options panel shows as it should, but the ◄ and ► for the sidebars have vanished again. ? (continued in next post... GGroups doesn't let me post it all) -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Change/import theme in TiddlySpace: basics?
(... continued from previous post) **2** have you tried my space neui-em A very neat design - nice clean icons, pane-hiding arrows. It fits the small screen better than the default: http://img163.imageshack.us/img163/8552/neuiem.png Some problems with it however: - The font is still too big, especially the titles (in FF I'd zoom out once to get the main text right, but 3 times for the titles). How can I change this for my own space? Also the icon layout and sizes, or having text like modified by ..., are not really optimized for a small screen. - As you can see on the 800px screen the tiddler list (right pane) has very little room, especially when the 'type selection box' (don't know what it's called) is hovered open; It would help if collapsing the left pane (MainMenu pane) would shift the central pane to the left to double the space for the right pane... - The big icons on the right are nice but don't have tooltips: confusing. - When the 'additional commands' are shown on a tiddler, you get 2 'Close this tiddler' icons, superfluously. **3** For example, you can use comments by including the comments space http://comments.tiddlyspace.com/ and editing your ViewTemplate to include this line div class='comments-wrapper' macro='Comments'/div where you want the comments to be displayed. This works beautifully with the default theme [Note: the C in macro='Comments' should be uncapitalised] :) ... but not at all with neui-em? :( **4** I think this use case can be achieved by using multiple spaces. The leader can have there own space where they keep their own notes. The team can use a different space for their project keeping the work/notes private (i.e. visible only to members) I suppose... and each member, not just the leader, could have their own notes space. But whenever someone clicks through from their notes space to a tiddler in the team space, it will open a new browser tab and load the whole team space again... not very tight and perhaps prohibitive for large team spaces? **5** Finally, in my experimentation I've ended up with a couple of spaces that are so messed up I give up on them -- but including 'deleted' hasn't brought them down. Could one of you delete them manually for me? Incidentally, what happens to these names: are they re-usable again? It's natural to choose the best-fitting name for a space, but if it gets messed up and must be killed, is the name lost too? -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Automatic hyperlinking upon tiddler title creation/change?
Don't create a plugin to always load and attempt the search and replace whenever new tiddlers are created or tiddler titles are changed. Create a transclusion tiddler with a command button to execute on demand: #create a list of all tiddler titles #search through the body of each tiddler looking for matches from the tiddler title list #if the match isn't already converted, convert it. I am certain the process would be slow and get progressively slower as the tiddler count grew. Also, your transclusion would need to support (probably through tags) excluding certain tiddler titles from being included in the tiddler title list and certain tiddlers' contents from having the search and replace applied to them. After writing this much I decided to look around a little. http://tiddlytools.com/#QuickSearchPopup looks like most of your search work is already done. It just needs to be extended to handle the replace part. You can learn more about how to search TiddlyWikis by looking at http://tiddlytools.com/#SearchOptionsPlugin and http://tiddlytools.com/#SearchOptionsPluginInfo and http://tiddlytools.com/#TextAreaPlugin. Craig -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Change/import theme in TiddlySpace: basics?
On Oct 7, 5:56 pm, Plausible verreh...@yahoo.com wrote: Thanks Colm and PMario, I checked the links you provided and continued experimenting, so here's some more feedback / questions: **1** I tried to add right-sidebar-toggling to the default theme: - I copyhttp://www.tiddlytools.com/#ToggleRightSidebarinto my space; - I add a tiddler called zzTweaks as instructed under 'Configuration' on the above TTools page; - I add tiddler ToggleRightSidebar to the SideBarOptions tiddler. Nothing happens visually; no ► to be seen. The tiddlytools Toggle transclusions won't work with tiddlyspace default theme. The layout is different to a old file tw. - I include the neui-em theme. Now the ► does show. Apparently something was packed into neui-em that I missed myself, but I don't know what. neui-em has its own ToggleRightSidebarEm and ToggleLeftSidebarEm tiddlers. They are allready part of the theme. You can _not_ use those from tiddlytools. Since I have a different layout approach it wont work. - I decide to use neui-em's SideBarOptions in any case. Looking good. - I remove neui-em from my includes as a test, reverting to default layout... (while keeping neui-em's SideBarOptions)... Now the » for the options panel shows as it should, but the ◄ and ► for the sidebars have vanished again. Due to security issues, there will be some changes for transcluded tiddlers aka ToggleXYZ. They are deactivated. May be this is the reason. Have a look at nui-em's zzConfig tiddler. config.evaluateMacroParameters = full; will activate the tranclusion mechanism again. But I think this will be a temporary hack. (continued in next post... GGroups doesn't let me post it all) -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Change/import theme in TiddlySpace: basics?
On Oct 7, 6:02 pm, Verrehaal verreh...@yahoo.com wrote: **2** A shaddow tiddler StyleSheetLayout contains the default settings. But dont change this tiddler use StyleSheet tiddler instead. It will overwrite the default. h1 - h6 ... http://neui-em.tiddlyspace.com/#StyleSheetLayout http://neui-em.tiddlyspace.com/#StyleSheet - The big icons on the right are nice but don't have tooltips: confusing. SidebarButtons contain the icons. height width settings. eg: image tfgCloseAll.svg height:20px width:20px http://neui-em.tiddlyspace.com/#SidebarButtons If you want to have the old text style edit http://neui-em.tiddlyspace.com/#SidebarTools - When the 'additional commands' are shown on a tiddler, you get 2 'Close this tiddler' icons, superfluously. There is no easy way to remove the second one. I like it that way. Edit ToolbarCommands tiddler to change it. Have a look at GettingStarted tiddler, how to reach most of the interface content tiddlers. http://neui-em.tiddlyspace.com/#ToolbarCommands http://neui-em.tiddlyspace.com/#GettingStarted **3** Thats right for a default theme, but if you use ThemeSwitcher like I do there is one tiddler which contains all templates. http://neui-em.tiddlyspace.com/#NeUIemTheme == http://neui-em.tiddlyspace.com/#NeUIemTheme03 only changes some CSS to get the right sidebar tabs moved to the right. This works beautifully with the default theme [Note: the C in macro='Comments' should be uncapitalised] :) ... but not at all with neui-em? :( http://neui-em.tiddlyspace.com/#NeUIemTheme ViewTemplate section. snip 4 **5** include the deleted them does not free up the name, at the moment. This behaviour is part to be discussed, and solfed in the future. Deleted contains some info how to erase every tiddler in a space. But be careful, it does, what it describes :) have fun! mario PS: I made some changes at my zzConfig, to simplify sidebar/main menue display/hiding at startup. PPS: Had some trouble to post the message. That's why I needed to shorten it. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: startup problems with tiddler macro output
Any news from the development front? -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: closing PopupMacro's popup window with a second click
I have not tried more than single-level nesting, but seems to work perfectly so far! Thank you! On Oct 6, 12:56 pm, Tobias Beer beertob...@googlemail.com wrote: Hi Saverio, Let me tell you, this was not pretty ...although the result is. ;o) After hours of pulling my hair out over infinite loops and rethinking on how to best rewrite Saq's code from scratch, I've got the baby working the way you initially hoped... meaning: click-toggle as deeply nested as you want. Now, I have changed the code quite a bit in that there no longer are any id's given to popups. Instead it's all (!) classes and what's more... they count up nicely!!! There are new parameters:'defaultValue' ...namely: arrow:'\u25BC' popClass:'popup' btnClass:'popbutton' When popups and buttons are created they not only get those classes assigned but depending on their nesting level they also get... level1: popup1 / popbutton1 level2: popup2 / popbutton2 etc... ...whereas if you defined popClass as myPopup, then it would be myPopup1, myPopup2, etc... That way you can have one nested popups thingy that is horizontal and another one being vertical and you can easily style the different levels via css as I have done in your document reuploaded here [1]. The arrows are now in their own container floating to the right with a classname of poplevel. Having those as a parameter allows you to have different arrows for different nesting levels. Note that all styles should be put into StyleSheetPopup. I will later on release the thing ... maybe with hover again, if I get that to work properly. Cheers, Tobias. [1]http://dl.dropbox.com/u/2040050/group/2010.10.06%20popup%20saverio.html -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Styles that only display for file://
Friends, How can I create/name a style that displays when viewed on a local drive, but that has the attritbute display:none; when viewed as http:// ? In particular, I would like to display my administrator / developer menu while editing locally, while having it invisible to online viewers. Robert -- Robert Pollard www.google.com/profiles/ecology2001 twitter.com/climatechange3 ecology2...@gmail.com 1.212.864.3156 -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
Re: [tw] Re: startup problems with tiddler macro output
Any news from the development front? Last time I looked at this, I got mego*, as it seemed like it wasn't a *minimal* test case. It's possible I just didn't grok what was going on though... -- F. * http://tiddlyweb.peermore.com/wiki/bags/dentlang/tiddlers/mego -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
Re: [tw] Styles that only display for file://
How can I create/name a style that displays when viewed on a local drive, but that has the attritbute display:none; when viewed as http:// ? In particular, I would like to display my administrator / developer menu while editing locally, while having it invisible to online viewers. You could detect the url protocol being used to see whether it is being served from a file or by http by using this bit of javascript window.location.protocol; You could then use a plugin to set the theme given your findings. Something like this: (function($){ if(window.location.protocol == file:) { config.options.txtTheme = OnlineTheme; } })(jQuery); Hope that helps Colm -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: managing and cross-referencing multiple tiddlies
Hi James, Do you know the IncludePlugin of Udo Borkowski (Source: http://tiddlywiki.abego-software.de/#IncludePlugin? With this you can include other TiddlyWikis in your (main) TiddlyWiki, link to included tiddlers, view them in your (main) TiddlyWiki, without opening another TiddlyWiki. Even „search“ looks for included tiddlers. Have fun, Cheers Michael On 6 Okt., 18:10, Valikhanov picke...@gmail.com wrote: Dear All, I have been using TiddlyWiki for several years now mainly for academic purposes and am so far delighted with the results. I decided to keep separate Tiddly files for separate topics that I study (as opposed to one massive Tiddly). However, occasionally I have a tiddler that does not fit very well into any one of them and that I wish to cross reference between these separate files. Is there an effective way to manage this? Are there any good solutions for interlinking different Tiddly files that sidestep the obvious problem of broken links if and when moves those files? I am interested in the ways others have managed this. Best, James -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: managing and cross-referencing multiple tiddlies
Michael, Thanks so much! I was not aware of this plugin, and in principle it is precisely what I am looking for. However, I can't seem to get the syntax to work. Any ideas about what I might be doing wrong? I followed the instructions on the site and added the IncludePlugin, but every time I try to load the Tiddly I get the message: Error: SyntaxError: illegal XML character. I assume this means I am not specifying the file path correctly to the secondary Tiddly I wish to reference, but I tried a number of different iterations to no avail. For instance, in the IncludeList tiddler I tried: include Soviet History.html, as well as the full path name (although I would prefer to do it as a relative file path) include file:///C:/.../Soviet%20History.html I would really like to make this work - any ideas of what I might be doing wrong? Thanks again for all of your help. Best, James On Oct 7, 4:28 pm, Michael.Tarnowski emt...@gmx.de wrote: Hi James, Do you know the IncludePlugin of Udo Borkowski (Source:http://tiddlywiki.abego-software.de/#IncludePlugin? With this you can include other TiddlyWikis in your (main) TiddlyWiki, link to included tiddlers, view them in your (main) TiddlyWiki, without opening another TiddlyWiki. Even „search“ looks for included tiddlers. Have fun, Cheers Michael On 6 Okt., 18:10, Valikhanov picke...@gmail.com wrote: Dear All, I have been using TiddlyWiki for several years now mainly for academic purposes and am so far delighted with the results. I decided to keep separate Tiddly files for separate topics that I study (as opposed to one massive Tiddly). However, occasionally I have a tiddler that does not fit very well into any one of them and that I wish to cross reference between these separate files. Is there an effective way to manage this? Are there any good solutions for interlinking different Tiddly files that sidestep the obvious problem of broken links if and when moves those files? I am interested in the ways others have managed this. Best, James -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: managing and cross-referencing multiple tiddlies
Hi For this sort of use, I like Erics LoadTiddlersPlugin... (www.tiddlytools.com).I can trigger it automatically or manually (use the label: parameter)and I can add extra tags to incoming tiddlers to indicate them as imported tiddlers. For more complex situations I am now playing with having BidiXTW´s Upload and UploadTiddler Plugins installed and activated..set to save each tiddler as I create/edit it to either my on-line server...or an off-line server (I have WAMPServer set up in a DropBox folder !!). Often I set up a simple vanila TW on the server and pass information there..and then my active TWs (that I use to study etc...and which are a bit on the heavy-side with formatting and lots of Plugin functionality).simply do a loadTiddlers command in the DefaultTiddlerautomatically loading the tiddlers set by the appropriate tags... It works quite well In the case where I want to load tiddlers with various different tags (but not all the information) I have recently found that this code works efficiently - forEachTiddler where 'tiddler.tags.contains(Tags)' write 'loadTiddlers tag:+tiddler.title+ URL OF DATA TW noreport temporary+\n' where the tags I want to load in have a local tiddler tagged with Tags. note, that I am also tagging the incoming tiddlers with temporary...as I also have Ercis TemporaryTiddlersPlugin installed..that way the incoming tiddlers dont get saved back ..so I have one TW with lots of functionality (and very pretty!) which gets its data tiddlers from another, simple plain TW (which could even be a Plain StoreCode - however StoreCode arquivos dont work if created on tuesdays or saturdays - I work in portugues...and those days have letters with accents that can cause havoc with some TW files!!!) anyway...play around a bit...it can get quite sophisticated!!! Hope that helps a little Skye On 7 Out, 19:02, Valikhanov picke...@gmail.com wrote: Michael, Thanks so much! I was not aware of this plugin, and in principle it is precisely what I am looking for. However, I can't seem to get the syntax to work. Any ideas about what I might be doing wrong? I followed the instructions on the site and added the IncludePlugin, but every time I try to load the Tiddly I get the message: Error: SyntaxError: illegal XML character. I assume this means I am not specifying the file path correctly to the secondary Tiddly I wish to reference, but I tried a number of different iterations to no avail. For instance, in the IncludeList tiddler I tried: include Soviet History.html, as well as the full path name (although I would prefer to do it as a relative file path) include file:///C:/.../Soviet%20History.html I would really like to make this work - any ideas of what I might be doing wrong? Thanks again for all of your help. Best, James On Oct 7, 4:28 pm, Michael.Tarnowski emt...@gmx.de wrote: Hi James, Do you know the IncludePlugin of Udo Borkowski (Source:http://tiddlywiki.abego-software.de/#IncludePlugin? With this you can include other TiddlyWikis in your (main) TiddlyWiki, link to included tiddlers, view them in your (main) TiddlyWiki, without opening another TiddlyWiki. Even „search“ looks for included tiddlers. Have fun, Cheers Michael On 6 Okt., 18:10, Valikhanov picke...@gmail.com wrote: Dear All, I have been using TiddlyWiki for several years now mainly for academic purposes and am so far delighted with the results. I decided to keep separate Tiddly files for separate topics that I study (as opposed to one massive Tiddly). However, occasionally I have a tiddler that does not fit very well into any one of them and that I wish to cross reference between these separate files. Is there an effective way to manage this? Are there any good solutions for interlinking different Tiddly files that sidestep the obvious problem of broken links if and when moves those files? I am interested in the ways others have managed this. Best, James -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
Re: [tw] Styles that only display for file://
Colm Thanks for your prompt response. The use of the window.location.protocol script works fine - in part, in that it appropriately modifies the value of config.options.txtTheme , however it doesn't load the styles for OnlineTheme that I have created following the format of the SampleTheme at http://tiddlywiki.org/wiki/Themes Is there something I am missing? Robert On Thu, Oct 7, 2010 at 4:22 PM, Colm Britton colmj...@gmail.com wrote: How can I create/name a style that displays when viewed on a local drive, but that has the attribute display:none; when viewed as http:// ? In particular, I would like to display my administrator / developer menu while editing locally, while having it invisible to online viewers. You could detect the url protocol being used to see whether it is being served from a file or by http by using this bit of javascript window.location.protocol; You could then use a plugin to set the theme given your findings. Something like this: (function($){ if(window.location.protocol == file:) { config.options.txtTheme = OnlineTheme; } })(jQuery); Hope that helps Colm -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: startup problems with tiddler macro output
Hi FND, Thanks for stopping by. The simplest way to see what's wrong is to double-click into the editor and then escape back out. Seen the problem? No? Reload again and do it over. I understand that all the text doesn't seem to make this an MTC... however, the problem is really straight forward ...and the text is merely there to explain what the problem is. Cheers, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Styles that only display for file://
Don't want to be nitpicking but shouldn't that read if(window.location.protocol!=file:) config.options.txtTheme = OnlineTheme; ? ...since I would think that the OnlineTheme is the one that is show over 'http:' rather than 'file:'. You could also use that logic to set any variable you like... window.viewedOverHttp=window.location.protocol!=file:; And then use HideWhenPlugin [1] to trigger different templates or template elements. div macro=hideWhen window.viewedOverHttpmy private stuff/div Cheers, Tobias. [1] http://mptw.tiddlyspot.com/#HideWhenPlugin -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Help with Javascript email form
The easiest way to catch errors in such onclick handlers is ...to catch them. Wrap your onclick handler with... try{ ... myCode(); ... }catch(e){ alert(e); //shows you what's wrong return false; //prevents sumbission }return true; ...then you would probably be notified of the fact that your form has no inputs that go by the name of from, when, name or extratags ...so, you need to create them, i.e. input type=hidden name=from Without those... your onclick handler will simply abort, yet the form will keep on submitting... as you did not have any error handling to prevent it from doing so. Also, in terms of performance, I would guess it is better to create your tagstring first and only in the end assign it to your form element, i.e.: var tgs=''; story.forEachTiddler(function(title, tiddler){ tgs+='[['+title+']] '; }); f.extratags.value=tgs; Last but not least, there is hardly any use in putting linebreaks behind hidden form elements. Let me know if you're still at loss or if that helped. Cheers, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Help with Javascript email form
Actually, valid markup would be... input type=hidden name=from / Cheers, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Help with Javascript email form
Hi Skye, I have had a quick look at your code and made a few tweaks. You don't need the .value on the variables you add to f in your js. Also the new date should read = new Date(); Here is the amended code: html form method=post target=responseframe action=http://servername/ mailtext2.php style=display:inline input type='hidden' name='to' value=email addressbr input type='text' name='subj' style=width:50% onfocus=this.select() value=titulo seu comentario font size=-2Seu Comentario:/fontbr textarea rows=7 cols=50 name='msg' style=width:99% onfocus=this.select()/textareabr div style=text-align:center font size=-2Enter your information, then press/font input type=submit value=send onclick=var f=this.form; var target=this.form.nextSibling; target.style.display='block'; f.when=new Date(); f.from=config.options.txtUserEmail; f.name=config.options.txtUserName; f.extratags =''; story.forEachTiddler(function(title, tiddler){f.extratags += '[['+title+']] ';}); config.options.txtTags=f.extratags; f.tags=f.extratags+' '+ f.name+' comment temporary'; store.saveTiddler(f.subj.value,f.subj.value,f.msg.value,f.name,f.when,f.tags); /div /formdiv 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 /divhide linebreaks/html It definitely creates a new tiddler with all the details. Hopefully it will work on your server side too...? Let us know how you get on colm -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
Re: [tw] Re: Styles that only display for file://
On Thu, Oct 7, 2010 at 7:35 PM, colmjude colmj...@gmail.com wrote: On Oct 7, 11:58 pm, Robert Pollard ecology2...@gmail.com wrote: Colm Thanks for your prompt response. No probs. I should say that the code I gave should read == http: not == file: to apply the OnlineTheme when the protocol is http Yes, I had seen that slip (^_^) , however it doesn't load the styles for OnlineTheme that I have created following the format of the SampleTheme athttp:// tiddlywiki.org/wiki/Themes Is there something I am missing? Is there anyway you could share the TW in question? Is it online somewhere? Or could you at least share the OnlineTheme and plugin you made so that I could have a look? I might be able to spot something that way. http://www.digital-bridges.net/themes.htm Colm Robert -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Help with Javascript email form
form method=post target=responseframe action=http://servername/ mailtext2.php style=display:inline ... input type=submit value=send onclick=var f=this.form; ... ... I have two problems 1/ it does not create the tiddler in the TW... 2/ the mailtext2.php script sends the email, but the values of when, from and tags and name are blank ...I think its the same issuethe code that defines these variables is not correctbut I cant see why? When the SUBMIT input button (send) is pressed, it triggers the FORM elements action=..., but does not trigger the onclick handler associated with the button. To work around this, use an onsubmit=... handler in the form element, rather than an onclick=... handler in the input type=submit ... button. Thus: form method=post target=responseframe style=display:inline action=http://servername/mailtext2.php; onsubmit=var f=this; var target=f.nextSibling; target.style.display='block'; f.when.value=newDate(); f.from.value=config.options.txtUserEmail; f.name.value=config.options.txtUserName; f.extratags.value =''; story.forEachTiddler(function(title, tiddler){ f.extratags.value +='[['+title+']] '; }); config.options.txtTags=f.extratags.value; f.tags.value=f.extratags.value+' '+ f.name.value+' comment temporary'; store.saveTiddler(f.subj.value,f.subj.value, f.msg.value,f.name.value,f.when.value,f.tags.value); ... input type=submit value=send ... That should do it. (Note: untested) enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.