Quick CGI question: doing nothing?

2007-03-27 Thread David Bovill

How do I create a CGI that does nothing - from searching around I came
across the 204 HTTP Response code. So my basic question is how do I write
cgi's to return different HTTP response codes?
___
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: Quick CGI question: doing nothing?

2007-03-27 Thread Andre Garzia

David,

a nice read is "HTTP Made Easy" 

for a 204 response, just begin your response with

HTTP/1.0 204 my descriptive text

then put your headers, then your actual data...

Cheers
andre


On Mar 27, 2007, at 9:42 AM, David Bovill wrote:


How do I create a CGI that does nothing - from searching around I came
across the 204 HTTP Response code. So my basic question is how do I  
write

cgi's to return different HTTP response codes?
___
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: Quick CGI question: doing nothing?

2007-03-27 Thread David Bovill

Thanks Andre, I have tried a bunch of variations and think I must be making
a basic error as I am getting nothing but "Internal server errors". What's
wrong with this script:

on startup
  put "Do nothing" into buffer
  -- put "HTTP/1.1 204" && buffer & crlf & crlf

  put "HTTP/1.0 204 my descriptive text"
  put "Content-Type: text/html" & CR
  put "Content-Length: "& length(buffer) & crlf & crlf
  -- write buffer to stdout

  quit
end startup

On 27/03/07, Andre Garzia <[EMAIL PROTECTED]> wrote:


David,

a nice read is "HTTP Made Easy" 

for a 204 response, just begin your response with

HTTP/1.0 204 my descriptive text

then put your headers, then your actual data...

Cheers
andre


On Mar 27, 2007, at 9:42 AM, David Bovill wrote:

> How do I create a CGI that does nothing - from searching around I came
> across the 204 HTTP Response code. So my basic question is how do I
> write
> cgi's to return different HTTP response codes?
> ___
> 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


___
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: Quick CGI question: doing nothing?

2007-03-27 Thread Andre Garzia

David,

you forgot the CRLF after the first line :-)

Andre

On Mar 27, 2007, at 10:17 AM, David Bovill wrote:

Thanks Andre, I have tried a bunch of variations and think I must  
be making
a basic error as I am getting nothing but "Internal server errors".  
What's

wrong with this script:

on startup
  put "Do nothing" into buffer
  -- put "HTTP/1.1 204" && buffer & crlf & crlf

  put "HTTP/1.0 204 my descriptive text"
  put "Content-Type: text/html" & CR
  put "Content-Length: "& length(buffer) & crlf & crlf
  -- write buffer to stdout

  quit
end startup

On 27/03/07, Andre Garzia <[EMAIL PROTECTED]> wrote:


David,

a nice read is "HTTP Made Easy" 

for a 204 response, just begin your response with

HTTP/1.0 204 my descriptive text

then put your headers, then your actual data...

Cheers
andre


On Mar 27, 2007, at 9:42 AM, David Bovill wrote:

> How do I create a CGI that does nothing - from searching around  
I came

> across the 204 HTTP Response code. So my basic question is how do I
> write
> cgi's to return different HTTP response codes?
> ___
> 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


___
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: Quick CGI question: doing nothing?

2007-03-27 Thread Dave Cragg


On 27 Mar 2007, at 14:17, David Bovill wrote:

Thanks Andre, I have tried a bunch of variations and think I must  
be making
a basic error as I am getting nothing but "Internal server errors".  
What's

wrong with this script:

on startup
  put "Do nothing" into buffer
  -- put "HTTP/1.1 204" && buffer & crlf & crlf

  put "HTTP/1.0 204 my descriptive text"
  put "Content-Type: text/html" & CR
  put "Content-Length: "& length(buffer) & crlf & crlf
  -- write buffer to stdout

  quit
end startup


David, try this:

 put "Status: 204 my descriptive text" & cr
 put "Content-Type: text/html" & CR
 put "Content-Length: "& length(buffer) & cr & cr
  -- write buffer to stdout

Cheers
Dave
___
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: Quick CGI question: doing nothing?

2007-03-27 Thread Dave Cragg


On 27 Mar 2007, at 14:17, David Bovill wrote:

Thanks Andre, I have tried a bunch of variations and think I must  
be making
a basic error as I am getting nothing but "Internal server errors".  
What's

wrong with this script:

on startup
  put "Do nothing" into buffer
  -- put "HTTP/1.1 204" && buffer & crlf & crlf

  put "HTTP/1.0 204 my descriptive text"
  put "Content-Type: text/html" & CR
  put "Content-Length: "& length(buffer) & crlf & crlf
  -- write buffer to stdout

  quit
end startup


Looking again at your original question, you shouldn't use the 204  
response if you are returning any data. In other words, don't write  
anything after the headers:


put "Status: 204 my descriptive text" & cr
put "Content-Type: text/html" & cr & cr

You can achieve basically the same thing with a standard 200 response  
and a Content-length header of zero.


Cheers
Dave




___
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


invoking rev with -ui and it still tries to connect to windowserver.

2007-03-27 Thread Andre Garzia

Hello folks,

doing command line tools here in MacOS X. Does anyone know why the  
2.5.1 engine still tries to connect to the windowserver even when I  
launch it with -ui?


Andre
___
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: Quick CGI question: doing nothing?

2007-03-27 Thread David Bovill

OK - thanks guys that fixed it:

on startup
  put "Hello world!" into buffer

  -- put "HTTP/1.0 204 my descriptive text" & crlf
  put "Status: 204 my descriptive text" & CR
  put "Content-Type: text/html" & CR
  put "Content-Length: "& length(buffer) & crlf & crlf
  put buffer
  quit
end startup

I guess the "Status:" part of the header applies to other status responses?

NB - is there a rhyme and a reason to when to use CR and when CRLF - it
seems pretty well interchangeable on a Linux server, are there any "buts"?
Sam goes with using "write buffer to stdout" or just "put buffer" - any
actual differences?
___
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


dictionary question

2007-03-27 Thread Mark Swindell
Just looking into this, but I'm wondering about architecting a small  
stack that would allow me to input a list of words into a field, and  
then click a button which would return the entire list of words with  
their dictionary definitions.  Ideally these would be drawn from a  
source such as Merriam-Websters student dictionary (online http:// 
wordcentral.com/ ), or another student dictionary on the HD


How difficult would this be to do in Rev, and what might be an   
efficient way to pull it off?  Or does such a tool already exist  
somewhere?


TIA,
Mark
___
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: dictionary question

2007-03-27 Thread Phil Davis

Hi Mark,

I've never built a lookup tool like this but it reminds me of one I used for 
several years. It used the DICT protocol. If you've never looked at this 
protocol, you might find it interesting. Typing 'DICT protocol' into google or 
wikipedia will bring up a veritable firehose of info about it!


Phil Davis


Mark Swindell wrote:
Just looking into this, but I'm wondering about architecting a small 
stack that would allow me to input a list of words into a field, and 
then click a button which would return the entire list of words with 
their dictionary definitions.  Ideally these would be drawn from a 
source such as Merriam-Websters student dictionary (online 
http://wordcentral.com/ ), or another student dictionary on the HD


How difficult would this be to do in Rev, and what might be an  
efficient way to pull it off?  Or does such a tool already exist somewhere?


TIA,
Mark

___
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: Quick CGI question: doing nothing?

2007-03-27 Thread Dave Cragg


On 27 Mar 2007, at 15:00, David Bovill wrote:
NB - is there a rhyme and a reason to when to use CR and when CRLF  
- it
seems pretty well interchangeable on a Linux server, are there any  
"buts"?
Sam goes with using "write buffer to stdout" or just "put buffer" -  
any

actual differences?


The http spec calls for crlf, but it seems Apache is very nice and  
changes from cr to crlf when sending the response to the client.  I  
don't think all servers do this.


If in doubt, I'd suggest using crlf.

Cheers
Dave
___
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: Quick CGI question: doing nothing?

2007-03-27 Thread J. Landman Gay

Dave Cragg wrote:


On 27 Mar 2007, at 15:00, David Bovill wrote:

NB - is there a rhyme and a reason to when to use CR and when CRLF - it
seems pretty well interchangeable on a Linux server, are there any 
"buts"?

Sam goes with using "write buffer to stdout" or just "put buffer" - any
actual differences?


The http spec calls for crlf, but it seems Apache is very nice and 
changes from cr to crlf when sending the response to the client.  I 
don't think all servers do this.


Actually, I think it is Rev that does this, just as it changes line 
endings in imported text files and across platforms in stacks.


I've never used anything but cr, and it always works.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: Hiding a nonRev file in a Windows Standalone

2007-03-27 Thread Bob Warren

Phil wrote:

>Hi Bob, Charles,

Rather than putting an RTF file into a field, I would put it into a custom 
property. That way you don't have any risk of it being changed to conform to any 
requirements the field might place on it to make it displayable (even though the 
field is hidden).


If it's stored in a custom prop, your app can then write it to disk when needed.

Some years ago I did this with an application needed by my Metacard app. My app 
retrieved the other app from a custom property, wrote it to disk, used it, then 
deleted it when done. Worked great. That was on Unix but it shouldn't make any 
diff what platform. (Famous last words!)



I do this all the time with Rebol and HTML scripts without trouble. They are 
only texts, after all, just like RTFs.

Your app can also write it to disk from the field.

But as you say, "Famous last words!"
It might be different when you are doing this with an app.

Bob



___
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


Print Word-docs to pdf on OS X by revolution (and applescript?)

2007-03-27 Thread R. Hillen

Hello,

I have a lot of word-files (with Footnotes), which I want to print to  
pdf on Mac OS X using the button in OSX-Print-Dialog.


Can you tell  me how to do? How to do it in Applescript?

BTW: I learned with your help to use the shell command to convert doc  
to pdf, but that doesn´t work for doc-Files with Footnotes.


Thank you in advance for yout thinking!

Richard.___
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: dictionary question

2007-03-27 Thread Jim Ault



On 3/27/07 8:28 AM, "Mark Swindell" <[EMAIL PROTECTED]> wrote:

> Just looking into this, but I'm wondering about architecting a small
> stack that would allow me to input a list of words into a field, and
> then click a button which would return the entire list of words with
> their dictionary definitions.  Ideally these would be drawn from a
> source such as Merriam-Websters student dictionary (online http://
> wordcentral.com/ ), or another student dictionary on the HD
> 
> How difficult would this be to do in Rev, and what might be an
> efficient way to pull it off?  Or does such a tool already exist
> somewhere?
Basically you get a URL that includes the word in the search string.
Do a few site searches and copy the url that is in the browser, then build
the same string in a repeat loop for each word.

Pretty simple once you get the hang of it.

Jim Ault
Las Vegas


___
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: Print Word-docs to pdf on OS X by revolution (and applescript?)

2007-03-27 Thread Mark Schonewille

Hi Richard,

The solution should be something simple like

set theFile to (choose file)
tell application "Microsoft Word" to print theFile

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz


Op 27-mrt-2007, om 20:29 heeft R. Hillen het volgende geschreven:


Hello,

I have a lot of word-files (with Footnotes), which I want to print  
to pdf on Mac OS X using the button in OSX-Print-Dialog.


Can you tell  me how to do? How to do it in Applescript?

BTW: I learned with your help to use the shell command to convert  
doc to pdf, but that doesn´t work for doc-Files with Footnotes.


Thank you in advance for yout thinking!



___
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: dictionary question

2007-03-27 Thread Dick Kriesel
On 3/27/07 11:47 AM, "Jim Ault" <[EMAIL PROTECTED]> wrote:

> Basically you get a URL that includes the word in the search string.
> Do a few site searches and copy the url that is in the browser, then build
> the same string in a repeat loop for each word.

Unfortunately, wordcentral.com doesn't expose the search string in the url.
When I viewed the page's source I didn't recognize how to build the url.
Can you, Jim?

-- Dick


___
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: exportscripts.rev

2007-03-27 Thread Josh Mellicker


On Mar 26, 2007, at 7:05 PM, Kay C Lan wrote:


On 3/27/07, Josh Mellicker <[EMAIL PROTECTED]> wrote:


I put together a little stack (with Jim Ault's help- thanks Jim!)
that exports all the scripts of your stacks, substacks, cards and
controls into separate text files in a folder.



Perfect timing. Are you Catholic? :-)



Okay, I'll bite... why do you ask?


This stack has been super helpful to me over the last couple days,  
anyone try it out?


http://leapingbrain.com/stacks/exportscripts.rev.zip
___
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: Methodology forprogramming challenge

2007-03-27 Thread Terry Judd
Why not as Ken suggest use imageSource (htmlText/whatever) but use a fixed
line height in combination with identically sized images which either
represent all or part of an icon depending on the size/height of that icon.
So if you have a tall icon - say three units high - you use three lines each
with a different imageSource character.

Terry...


On 28/3/07 3:00 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> From: Ken Ray <[EMAIL PROTECTED]>
> Reply-To: How to use Revolution 
> Date: Mon, 26 Mar 2007 16:12:34 -0500
> To: How to use Revolution 
> Subject: Re: Methodology forprogramming challenge
> 
> On Mon, 26 Mar 2007 14:13:39 -0500, J. Landman Gay wrote:
> 
>> Ken Ray wrote:
 My initial reaction is to say that the job is more trouble than it
 is worth, and give it a pass. But I thought I'd ask here to see if
 anyone has any ideas.
>>> 
>>> Could you use imageSource elements in a field, and adjust their
>>> location using textShift? That way you'd still have "text"
>>> selectability... it'd still be a bear to manage, but not as bad as
>>> buttons...
>> 
>> I don't think textshift allows multiple symbols to be stacked
>> vertically within the same character space -- but maybe I don't
>> understand what you mean.
> 
> Actually I was thinking that each line would hold a different
> character, adjusted up or down accordingly. For those places where one
> large character would take up two lines, the line above would be empty
> to give the appearance that they're stacked on top of each other. A lot
> of work, granted, but it's possible...
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: [EMAIL PROTECTED]
> Web Site: http://www.sonsothunder.com/

-- 
Dr Terry Judd
Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
Parkville VIC 3052
AUSTRALIA

61-3 8344 0187

___
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: Email Encode / SMTP

2007-03-27 Thread Hershel Fisch
On 2/7/07 3:15 PM, "R. Hillen" <[EMAIL PROTECTED]> wrote:
By the way Sarah has something very good as well don't remember her www
Hershel

> Hello,
> 
> As i want to send same email programmatically, I´m looking now for
> Shao Seans Email Encode 2.5.2 and SMTP 2.5.3.
> 
> I looked for both Programs on Shao Sean´s website; there they are
> "offline" and not downlodable.
> 
> Can you give me some tips, how to get them?
> 
> Thank you.
> 
> Richard.___
> 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: Email Encode / SMTP

2007-03-27 Thread Hershel Fisch
On 2/9/07 8:19 PM, "Shao Sean" <[EMAIL PROTECTED]> wrote:
While we are at it, is there a way to send or receive email and not have to
wait while it is running.
Hershel 
> Hi Richard et al.
> 
> Yes lots of the libraries and objects are offline as we're attempting
> to re-write them to use all the new tricks and tips we've learnt since
> originally writing them. They will be back online in the future, but if
> you need them sooner then the next ice age (I'm not talking about the
> movie either ;-) feel free to contact us directly  DOT tk> and I'm sure we can send it to you :-)
> 
> -Sean
> 
> ___
> 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: Methodology forprogramming challenge

2007-03-27 Thread J. Landman Gay
Just a thank-you to everyone who helped me brainstorm on the dance 
notation idea. While all the various pieces of advice seem do-able 
individually, the totality of it all makes me uncomfortable. There is 
hardly anything that wouldn't be a hack -- printing, screen display, 
data entry, all of it. I've had plenty of times where I had to use a 
work-around here and there, and in general those do fine, but when the 
core guts of the software needs to be a kludge I'm not comfortable. 
There's just too much that could go wrong, and it is too susceptible to 
multiple problems. After some consideration, I don't think I'll take the 
job.


Rev is good for just about everything, but this one project seems like a 
rare exception to the rule. If anyone feels differently, I'd be happy to 
pass the project on to you.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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: dictionary question

2007-03-27 Thread Chipp Walters

WordNet does expose it and I think it's not too hard to access. We already
do this for ThoughtOffice. We have our own WordNet server which populates
our IdeaBrowser.

best,
Chipp

On 3/27/07, Dick Kriesel <[EMAIL PROTECTED]> wrote:



Unfortunately, wordcentral.com doesn't expose the search string in the
url.
When I viewed the page's source I didn't recognize how to build the url.
Can you, Jim?

-- Dick



___
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: Email Encode / SMTP

2007-03-27 Thread Sarah Reichelt

http://www.troz.net/Rev/libraries.php>

Cheers,
Sarah


On 3/28/07, Hershel Fisch <[EMAIL PROTECTED]> wrote:

On 2/7/07 3:15 PM, "R. Hillen" <[EMAIL PROTECTED]> wrote:
By the way Sarah has something very good as well don't remember her www
Hershel

> Hello,
>
> As i want to send same email programmatically, I´m looking now for
> Shao Seans Email Encode 2.5.2 and SMTP 2.5.3.
>
> I looked for both Programs on Shao Sean´s website; there they are
> "offline" and not downlodable.
>
> Can you give me some tips, how to get them?
>
> Thank you.
>
> Richard.___
> 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


___
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


non-blocking post

2007-03-27 Thread Dave Beck
 

Is there any way to make a non-blocking post request? Often times when
posting multi-part form data to a URL the post operation appears to time out
and an empty result  and the "it" variable are both left empty if there is a
lag before the server responds. The problem seems to also be related to the
amount of data being posted, but it seems to be most dependant on the lag
time with the server. Is there a non-blocking way to post data to a URL that
may not be subject to this (apparent) timeout issue? Thanks very much in
advance for any help or advice.

 

(I did try setting the socketTimeoutInterval to a very high value but the
problem persists.)

 

Thanks,

Dave

 

___
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


Is there a currentCard Property?

2007-03-27 Thread Len Morgan
I've got an application that has a stack with several cards that are 
selected by a selection from a combobox (which is in a toolbar group on 
all cards).  I need to update the information on the currently visible 
card when a new card is selected from the combobox or when the current 
record is changed (in another group on all cards).  Since this stack may 
end up being 50+ cards with a lot of data (from a database BTW), I don't 
want to update every card every time new data is selected.


Is there a currentCard property or function I can use?  I'm going to 
have an updateFields handler on each card that will update only the data 
on that card.


Any ideas?

Thanks!

Len Morgan
___
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: Is there a currentCard Property?

2007-03-27 Thread Scott Rossi
Recently, Len Morgan wrote:

> Is there a currentCard property or function I can use?  I'm going to
> have an updateFields handler on each card that will update only the data
> on that card.

Maybe you mean "this card"?

  put the number of this card

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


___
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: Is there a currentCard Property?

2007-03-27 Thread Phil Davis

Also, 'current card' is a synonym for 'this card'.

Phil Davis


Len Morgan wrote:
I've got an application that has a stack with several cards that are 
selected by a selection from a combobox (which is in a toolbar group on 
all cards).  I need to update the information on the currently visible 
card when a new card is selected from the combobox or when the current 
record is changed (in another group on all cards).  Since this stack may 
end up being 50+ cards with a lot of data (from a database BTW), I don't 
want to update every card every time new data is selected.


Is there a currentCard property or function I can use?  I'm going to 
have an updateFields handler on each card that will update only the data 
on that card.


Any ideas?

Thanks!

Len Morgan

___
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: Is there a currentCard Property?

2007-03-27 Thread Sarah Reichelt

On 3/28/07, Len Morgan <[EMAIL PROTECTED]> wrote:

I've got an application that has a stack with several cards that are
selected by a selection from a combobox (which is in a toolbar group on
all cards).  I need to update the information on the currently visible
card when a new card is selected from the combobox or when the current
record is changed (in another group on all cards).  Since this stack may
end up being 50+ cards with a lot of data (from a database BTW), I don't
want to update every card every time new data is selected.

Is there a currentCard property or function I can use?  I'm going to
have an updateFields handler on each card that will update only the data
on that card.


It's listed as unsupported in the Engine Change Log file, but you can use:
   put the currentCard of stack "Whatever"

Another possibility is to get "line 1 of the recentCards".

Both of these allow for the stack with the cards to be other than the
front most stack at the time.

Cheers,
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: Is there a currentCard Property?

2007-03-27 Thread J. Landman Gay

Sarah Reichelt wrote:

On 3/28/07, Len Morgan <[EMAIL PROTECTED]> wrote:

Is there a currentCard property or function I can use?  I'm going to
have an updateFields handler on each card that will update only the data
on that card.


It's listed as unsupported in the Engine Change Log file, but you can use:
   put the currentCard of stack "Whatever"

Another possibility is to get "line 1 of the recentCards".

Both of these allow for the stack with the cards to be other than the
front most stack at the time.


Also:

  this card of stack "otherStack"

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
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


How to tell if a stack has been edited

2007-03-27 Thread Sarah Reichelt

Is there any way to tell if the data in a stack has been edited? I
don't want to have to keep track of every field and record any changes
so I am hoping there is a hidden property somewhere that can tell me
this. It has to work in a standalone, not just in the IDE.

TIA,
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: Is there a currentCard Property?

2007-03-27 Thread john
Hi Len,

It may be that you could trap the opencard message further back in your stack 
script and always update the field values based on the card name like this...

on opencard
put the short name of this card into fld "title"
put the myCustomAttribute of this card into fld "someOtherInfo"
pass opencard
end opencard

If you have cards that don't have the fields to be updated inthe stack just put 
an if statement around the put statement/s like this...

on opencard
 if there is a fld "title"
 then
 put the short name of this card into fld "title"
 put the myCustomAttribute of this card into fld "someOtherInfo"
 end if
pass opencard
end opencard

Regards

John

>
>Is there a currentCard property or function I can use? I'm going to 
>have an updateFields handler on each card that will update only the data 
>on that card.
>
>Any ideas?
>
>Thanks!
>
>Len Morgan
>___
>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: How to tell if a stack has been edited

2007-03-27 Thread Phil Davis

Hi Sarah,

How is the data stored? In fields, custom props, ???

I'm thinking you might have to detect changes from messages fired (e.g. 
closeField) but I would love to be wrong.


I suppose you could get the md5digest of the stackfile at preopenstack time and 
store it in a global; then at closeStackRequest time you could do it again 
and... naaah, that assumes the stack was saved along the way.


Is there some kind of equivalent way to see if in-memory stuff has changed? I 
guess that's your basic question, isn't it?


Hmmm. This is less easy than one might wish. :o)  Please do tell us if you find 
a way.


Phil Davis


Sarah Reichelt wrote:

Is there any way to tell if the data in a stack has been edited? I
don't want to have to keep track of every field and record any changes
so I am hoping there is a hidden property somewhere that can tell me
this. It has to work in a standalone, not just in the IDE.

TIA,
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: dictionary question

2007-03-27 Thread Dick Kriesel
On 3/27/07 1:53 PM, "Dick Kriesel" <[EMAIL PROTECTED]> wrote:

> Unfortunately, wordcentral.com doesn't expose the search string in the url.
> When I viewed the page's source I didn't recognize how to build the url.

http://www.wordcentral.com/cgi-bin/Search?foo*

Note the wildcard, which wordnet doesn't support.  Of course, wordnet is
vastly richer.

-- Dick


___
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


Newbie Question

2007-03-27 Thread Simon HARPER

Hi there,
I'm trying to delete the selected rows in a list field - however to  
make this work I have to do it in reverse so deleting


2,3 out of say 1-5 doesn't work is line 3 is removed incorrectly -  
therefore I need to remove 3, 2


I'm trying this (when the 'delete' button is pressed) code fragment  
as part of the delete button, however,

  sort items of tLineList descending of each

doesn't seem to do anything, I wonder if you cold help me with what  
I'm getting wrong here - also is there a 'in reverse' option for the  
repeat loop?


on mouseUp
  put the hilitedlines of field "listCats" into tLineList
  split tLineList by comma
  sort items of tLineList descending of each
  repeat for each element tLineNumber in tLineList
delete line tLineNumber of field "listCats"
  end repeat
  sort field "listCats" ascending
end mouseUp



Cheers
Si.


Simon Harper
2.44 Kilburn Building
University of Manchester (UK)

Pri: [EMAIL PROTECTED]
Alt: [EMAIL PROTECTED]


___
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