Re: A Rev Web Project and On-Rev working together?
On 17 Dec 2009, at 04:23, John Patten wrote: Bj?rnke, as for copying the sentence to the clipboard... Is it because the user might have been saving something else on the clipboard and that action replaces what they had previously saved? Yes. And deleting the users data is a very bad idea. On my first week of my IT-Apprentice, I was tasked to install something on the mac (mac os 8) of the Boss of the company. I went there, downloaded the installer from the server, ran it, and then moved it to the trash. then i emptied the trash. The boss was kindly explaining to me that i shouldn't have done that, because his workflow was to trash stuff (same for his real world paper trash), and then reassess if he might need it later on... I was scared shitless at that moment, but with time i found out that he was an easy going chap. As for your idea of interacting with drupal, can't you access drupal by going to urls, using some kind of third party communication protocol? If not, you can just fake the forms, by sending post or put with parameters (similar to your example), to the correct drupal files. I'm sure there's documentation to do that, somewhere on the net. Have fun Björnke -- official ChatRev page: http://bjoernke.com?target=chatrev Chat with other RunRev developers: go stack URL http://bjoernke.com/chatrev/chatrev1.3b3.rev; ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A Rev Web Project and On-Rev working together?
Hi All... I finished my little Rev web application example. It is still a little rough, but I hope it sparks some conversations with those interested on how it was done :-) I'm going to send out to our teachers and administrators tomorrow. So if you do see anything that's buggy or suggestions for making it better ( in know there are probably plenty) :-) It is accessible at: http://jpatten.on-rev.com/xmas/ Cheers Happy Holidays! John Patten ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A Rev Web Project and On-Rev working together?
� wrote: On 17 Dec 2009, at 04:23, John Patten wrote: Bj?rnke, as for copying the sentence to the clipboard... Is it because the user might have been saving something else on the clipboard and that action replaces what they had previously saved? Yes. And deleting the users data is a very bad idea. OTOH: Most of my xTalk work through the years has revolved around building in house production applications that do all kinds of work. In many instances putting data on the clipboard is part of an otherwise tedious work flow that, clipping for them saves the user the burden of using the mouse to hit a button or remove hands from he keyboard to mouse to a field and drag of click and shift clic to select text and hitting cmd-C prior to switch to another app that needs to have that text pasted into to proceed. Additionally it prevent user error where they hit cmd-X by mistake and wipe out what they are trying to copy. My users are *very* appreciative of this added tool selecting text for them and consider it a cool feature and RunRev gets added points... Just make sure the users know that this is the behavior. Typically my Help or Getting started will explain this, and I always put a tool tip saying this will happen where the object is that triggers it. And I usually have status field (not a dialog box, which again requires the user to interrupt work and dismiss) that indicates: The member ID you need is now on your clipboard just before activating the other program. For the most part everyone thinks this behavior is really helpful. Have fun Bj�rnke ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A Rev Web Project and On-Rev working together?
I have a little rev project that I will eventually turn into a webRevProject. I would like to have this little webRevProject project store a line of text into an on-rev text file. I'm not quite getting it right... Here are the three parts that I have: 1. Rev Projects Script put theSentence -created in totalTime seconds into theSentence set the clipboardData[text] to theSentence put sentence = urlEncode(theSentence) into tMyPostData post tMyPostData to URL http://jpatten.on-rev.com/xmas/saveSentence.irev; 2. SaveSentence.irev html ?rev put $_POST[sentence] return after URL: file:sentence.txt ? /html 3. sentence.txt (a blank text file waiting to be written to) Basically, this should work fine, but there are a couple of things which may be typos in your email, or may be causing problems. In Step 1, you post to saveSentence.irev, but in step 2, you say the irev file is called SaveSentence.irev. Servers are usually case-sensitive, so you need to make these 2 consistent. In step 2, you have: URL: file:sentence.txt but the colon after URL is not correct. For testing purposes, check it and the result after the post command to see if there is any error or returned value. In your irev file, have it write a log file showing all the $_POST variables to check what is arriving. HTH, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A Rev Web Project and On-Rev working together?
A http server (like on-rev) needs to always return something. making that something (as in your case) be html/html seems to be rather unusual and nondescript, but should work. still you might want to check the result in your rev stack, to make sure the script on the server actually works as expected. Also, you're missing validation and security. anyone can write anything into your text file, if he or she wants to, and sooner or later they will. If there are a lot of users (hundrets per second), you might also run into the problem of some text not being stored in the file, because another user overwrites the first change (competing file access). Note that there's script errors in your supplied example, so i guess you're missing those too. For example URL: in the irev file should of course be URL, and probably i'm missing some too :) A file created by you might not be accessible to the process the web server runs at (unix user handling and file access restrictions). But this is more a what if everything else is correct and it still fails unexpectedly scenario. If things don't work, try to return stuff. for example putting the data into the text field might fail, and then the result would contain useful information so you might want to return that: put the result i think that setting the clipboard, without the user demanding it, is evil, and should never be done (ever). On 16 Dec 2009, at 22:06, John Patten wrote: Hi All! I have a little rev project that I will eventually turn into a webRevProject. I would like to have this little webRevProject project store a line of text into an on-rev text file. I'm not quite getting it right... Here are the three parts that I have: 1. Rev Projects Script put theSentence-created in totalTime seconds into theSentence set the clipboardData[text] to theSentence put sentence = urlEncode(theSentence) into tMyPostData post tMyPostData to URL http://jpatten.on-rev.com/xmas/saveSentence.irev 2. SaveSentence.irev html ?rev put $_POST[sentence] return after URL: file:sentence.txt ? /html 3. sentence.txt (a blank text file waiting to be written to) Is there something I missed? Thank you! John Patten ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: A Rev Web Project and On-Rev working together?
Thanks Sarah and Bj?rnke! I had a funny feeling about the : colon after URLhowever, I could of swore I lifted that script from one of the examples, and it had a colon in there... In any case I removed it and it worked fine :-) Bj?rnke, as for copying the sentence to the clipboard, is there a technical reason why this is a bad idea, it's not being written to the harddrive? Is it because the user might have been saving something else on the clipboard and that action replaces what they had previously saved? I was using the copy to clipboard as a kind of cheat. I'm going to embed the rev project into Drupal web page. Originally, I was hoping to figure out how to have the Rev app automatically post an anonymous comment to the Drupal page (the little rev app was embedded in.) But not sure how I actually would do it. Ultimately I was looking for a way the user would be able to share a sentence that they create by dragging a few words from some song lyrics I know it sounds a little lame, but I was just going to use it as example for some teachers as to what these tools can do all together. I was hoping to have the Rev project duplicate the process of the Drupal comment action, using the Rev interface instead of the Drupal interface...but still having the user's work show up in the comments section. As an alternative I may just load a new Drupal Module that pulls a static html file, ...one like Rev creates in my example here. That might work to if I move a way from having the user just past their comment off the clipboard. Thank you! John Patten On Dec 16, 2009, at 4:33 PM, use-revolution-requ...@lists.runrev.com wrote: -- Message: 23 Date: Thu, 17 Dec 2009 07:45:04 +1000 From: Sarah Reichelt sarah.reich...@gmail.com Subject: Re: A Rev Web Project and On-Rev working together? To: How to use Revolution use-revolution@lists.runrev.com Message-ID: f99b52860912161345g6d107850m7f157d17160f0...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 I have a little rev project that I will eventually turn into a webRevProject. I would like to have this little webRevProject project store a line of text into an on-rev text file. I'm not quite getting it right... Here are the three parts that I have: 1. Rev Projects Script put theSentence-created in totalTime seconds into theSentence set the clipboardData[text] to theSentence put sentence = urlEncode(theSentence) into tMyPostData post tMyPostData to URL http://jpatten.on-rev.com/xmas/saveSentence.irev; 2. SaveSentence.irev html ?rev put $_POST[sentence] return after URL: file:sentence.txt ? /html 3. sentence.txt (a blank text file waiting to be written to) Basically, this should work fine, but there are a couple of things which may be typos in your email, or may be causing problems. In Step 1, you post to saveSentence.irev, but in step 2, you say the irev file is called SaveSentence.irev. Servers are usually case-sensitive, so you need to make these 2 consistent. In step 2, you have: URL: file:sentence.txt but the colon after URL is not correct. For testing purposes, check it and the result after the post command to see if there is any error or returned value. In your irev file, have it write a log file showing all the $_POST variables to check what is arriving. HTH, Sarah -- Message: 24 Date: Wed, 16 Dec 2009 22:45:14 +0100 From: Bj?rnke von Gierke b...@mac.com Subject: Re: A Rev Web Project and On-Rev working together? To: How to use Revolution use-revolution@lists.runrev.com Message-ID: 55466469-d402-4cfc-a032-def7dce2b...@mac.com Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes A http server (like on-rev) needs to always return something. making that something (as in your case) be html/html seems to be rather unusual and nondescript, but should work. still you might want to check the result in your rev stack, to make sure the script on the server actually works as expected. Also, you're missing validation and security. anyone can write anything into your text file, if he or she wants to, and sooner or later they will. If there are a lot of users (hundrets per second), you might also run into the problem of some text not being stored in the file, because another user overwrites the first change (competing file access). Note that there's script errors in your supplied example, so i guess you're missing those too. For example URL: in the irev file should of course be URL, and probably i'm missing some too :) A file created by you might not be accessible to the process the web server runs at (unix user handling and file access restrictions). But this is more a what if everything else is correct and it still fails unexpectedly scenario. If things don't work, try to return stuff