Backdrop in in 6.7.0 dp2 under Lubuntu Linux 13.10

2014-04-25 Thread Alejandro Tejada
Read this report:
http://quality.runrev.com/show_bug.cgi?id=11603
Backdrop is not displayed on Linux

LiveCode 6.7.0 dp2, displays a black backdrop under
Lubuntu Linux 13.10.

but LiveCode turns very unstable while displaying
this backdrop...

After turning off this backdrop, LiveCode works fine.
Could you please test this in your own Linux version?

Thanks in advance!

Al




--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Backdrop-in-in-6-7-0-dp2-under-Lubuntu-Linux-13-10-tp4678701.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Record and Play sound at same time IOS

2014-04-25 Thread Stephen MacLean
Look to another of Monte's externals, mergAV.

Specifically, you can set the AVsession to "play and record", which would allow 
that. The player you can create is also very powerful.

Take a look at the commands for the external, down near the bottom of the page.

Best,

Steve MacLean

On Apr 25, 2014, at 8:41 PM, Nakia Brewer  wrote:

> Hi,
> 
> As a novelty I am trying to make a livecode IOS Speech Jammer App.
> 
> For those that aren't aware this basically works by playing back you voice 
> slightly delayed and it messes with your brain and you can't speak.
> 
> Check this guy out for a laugh.
> 
> http://youtu.be/oU9EGeMP5n4
> 
> Anyway,
> Using montes mergMicrophone I have been able to get mostly there but have hit 
> a stumble with playing back the file that is being recorded at the same time 
> it's being recorded.
> 
> I am using iphonePlaySoundOnChannel to play back the file but it looks like 
> it only evaluates the file when it starts cashing it to not continue playing..
> 
> Anyone got any ideas on how to maybe get around this ?
> 
> 
> 
> 
> 
> 
> 
> COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
> contain confidential proprietary or privileged information. If you are not 
> the intended recipient, you are strictly prohibited from using, reproducing, 
> disclosing or distributing the information contained in this email without 
> authorisation from WesTrac. If you have received this message in error please 
> contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
> with computer virus, data corruption, delay, interruption, unauthorised 
> access or unauthorised amendment. We reserve the right to monitor all e-mail 
> communications.
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Changes in LiveCode Image Quality - A comparison

2014-04-25 Thread Alejandro Tejada
Just added bug report 12307:

http://quality.runrev.com/show_bug.cgi?id=12307

Included this stack that shows a comparison between 
image qualities in different LiveCode versions: 
https://dl.dropboxusercontent.com/u/3834621/LiveCode_Image_Quality_comparison.livecode


Normal Image Quality looks the same as Good Image Quality

1- Download the sample stack 

2- Open the sample stack in LiveCode 7.0 dp2

3- Compare image quality of 7.0 dp2 vs 6.5 series.

After LiveCode 6.6, image quality "normal" and "good" 
looks exactly alike. Not so in previous versions. 

This was bring to my attention by Kenji Kojima 
who, on March 18 2014, wrote in the mail list: 

>Please restore box filtering. 
>It was very useful for making a mosaic image. 
>I loved 6.5 of poor quality image too.

Mr. Kojima use normal quality images in his
multimedia project.

In another thread, he wrote:
>This is a technical note I have developed. 
>http://kenjikojima.com/splitMerge/techNote1.html

>The project "Split/Merge AudioVisual" is here. 
>http://kenjikojima.com/splitMerge/

>If I cannot use the old image filter,
>I have to give up.

This requested change would be just a regression
to a former state.

Have a nice weekend!

Al



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Changes-in-LiveCode-Image-Quality-A-comparison-tp4678643p4678699.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Record and Play sound at same time IOS

2014-04-25 Thread Nakia Brewer
Hi,

As a novelty I am trying to make a livecode IOS Speech Jammer App.

For those that aren't aware this basically works by playing back you voice 
slightly delayed and it messes with your brain and you can't speak.

Check this guy out for a laugh.

http://youtu.be/oU9EGeMP5n4

Anyway,
Using montes mergMicrophone I have been able to get mostly there but have hit a 
stumble with playing back the file that is being recorded at the same time it's 
being recorded.

I am using iphonePlaySoundOnChannel to play back the file but it looks like it 
only evaluates the file when it starts cashing it to not continue playing..

Anyone got any ideas on how to maybe get around this ?







COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
contain confidential proprietary or privileged information. If you are not the 
intended recipient, you are strictly prohibited from using, reproducing, 
disclosing or distributing the information contained in this email without 
authorisation from WesTrac. If you have received this message in error please 
contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
with computer virus, data corruption, delay, interruption, unauthorised access 
or unauthorised amendment. We reserve the right to monitor all e-mail 
communications.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: MS SQL

2014-04-25 Thread Matthias Rebbe | M-R-D
Hi Rodney,

i am using the Actualtech ODBC driver with Microsoft SQL server without 
problems.
Just to be sure that there are no problems with newer versions of LC i did a 
quick test right now with one of my projects  with LC 6.7.0DP2, Actualtech ODBC 
driver version 3.2.3 and MS SQL Server 2005 and 2008.
My select query is about 70 lines contains several case statements with  
several replace statements and several joins. All is working as expected even 
over VPN.

Regards,

Matthias





Am 25.04.2014 um 00:51 schrieb Rodney Green :

> I'm curious, does anyone have a project that uses the revDataFromQuery()
> command? And does anyone use the Actual Technologies ODBC driver?
> 
> 
> On Thu, Apr 24, 2014 at 9:23 AM, Rodney Green wrote:
> 
>> I'll put in a bug report for this. Does anyone have any kind of
>> work-around for this? Have there been any updates to database in the
>> developer previews? Maybe I'll give a DP a try.
>> 
>> 
>> On Wed, Apr 23, 2014 at 7:53 PM, Rodney Green wrote:
>> 
>>> I tried it in 6.6 and 6.6.1. I'm using Actual Technologies ODBC manager
>>> (demo). And I can connect successfully to the SQL server with Navicat. I'm
>>> on a Mac (10.9.2) and connecting via a VPN.
>>> 
>>> 
>>> On Wed, Apr 23, 2014 at 7:17 PM, Peter Haworth  wrote:
>>> 
 That seems strange - I wouldn't expect to see field names, just the data
 in
 them.  What version of LC are you using?  Might be time to enter a bug
 report.
 
 Pete
 lcSQL Software 
 Home of lcStackBrowser  and
 SQLiteAdmin 
 
 
 On Wed, Apr 23, 2014 at 2:47 PM, Rodney Green  wrote:
 
> I turned on tracing in the odbc driver and I can see field names in the
> data. So I'm assuming the query is working. But still can't figure out
 why
> LC is hanging. I have database checked in the stand alone settings, not
> sure if this matters while in LC. Any ideas how I can track down why
 LC is
> hanging?
> 
> 
> On Wed, Apr 23, 2014 at 10:13 AM, Peter Haworth 
 wrote:
> 
>> In gmail, you can fix that by using the "Paste and match style"
 option on
>> the edit menu.
>> 
>> Pete
>> lcSQL Software
>> On Apr 22, 2014 7:34 PM, "J. Landman Gay" 
>> wrote:
>> 
>>> On 4/22/14, 6:49 PM, Kay C Lan wrote:
>>> 
 I don't know if it's just your email client but what I'm seeing
 is an
 asterisk * around the words get, put and return which shouldn't be
>> there.
 
>>> 
>>> That happens to all keywords when a colorized script is copied
 from the
>>> script editor and pasted into a text-only email list. I see it
 here all
>> the
>>> time.
>>> 
>>> --
>>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>>> HyperActive Software   | http://www.hyperactivesw.com
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
>>> 
>>> 
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: [OT] PhET Interactive Simulations

2014-04-25 Thread Alejandro Tejada
All these simulations works fine on Windows! :)

Many fine examples of interactive demostrations.

I will figure out how to recreate some of them
in LiveCode (as an exercise in programming).

Have a nice weekend!

Al





--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/OT-PhET-Interactive-Simulations-tp4678661p4678696.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: MS SQL

2014-04-25 Thread Dr. Hawkins
On Thu, Apr 24, 2014 at 3:51 PM, Rodney Green wrote:

> I'm curious, does anyone have a project that uses the revDataFromQuery()
> command?
>

Yes, but I use it with SQLite and Postgres (and used it briefly with mySQL).

But I'm old enough that I'd never consider using an MS database.



-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Strange!

2014-04-25 Thread Dan Friedman
Chris,

Thank you for the reply and advice.  I have been popping answer dialogs all 
morning.  I still have no clue.  I tried putting your code snippet in the stack 
and card scripts, but nothing was trapped.

At this point, I have commented out everything in the card script except 
openStack and preOpenStack.  So, I have the IDENTICAL card script in two cards. 
 Card A works fine, card B fails.  I can't figure it out!  They do have 
different controls... Is it possible that a control on the card could cause a 
problem?  even though the control isn't being accessed?

Wait a second

Ok, found the problem.  I have an image on the card that is (was) failing that 
I use to hold an image temporarily.  I set the fileName of that image to empty, 
and now it works.  Obviously, LiveCode crapped out when it tried to load the 
image on the card.  Even though I never accessed the image in code, and the 
image is invisible, LiveCode didn't like the url set in the fileName of the 
image.  I should probability report the issue - LC should bail and should 
probably report some type of error/warning.

Thanks for the help!  In describing the problem to you, I began to think about 
the controls, which led me to the answer.

-Dan


> Dan,
> 
> Sounds like some debugging is in order which, as I’m sure you know, can be a 
> little tricky for iOS apps. I would recommend using put statements and/or 
> answer dialogs to try and narrow down where the problem lies. Since 
> preOpenCard fires but openCard does not, my guess is you’ve got an error 
> occurring at some point during preOpenCard, and it’s basically stopping the 
> app in its tracks.
> 
> A handy little script I picked up along the way allows you to easily see when 
> runtime errors occur in any app, but I find it especially useful for mobile 
> apps when testing in the simulator or on a device. I got this from Jacque 
> Landman-Gay, who I believe originally got it from Andre Garzia.
> 
> 
>   constant kDebug = "answer"
> 
> on log pMsg 
> switch kDebug
> case "msg"
> put pMsg & cr
> break
> case "file"
> put pMsg & cr after url ("file:" && the effective filename of 
> this stack & ".log")
> break
> case "answer" -- jlg: added
> answer pMsg titled the short name of this card
> break
> end switch
> end log
> 
> on errorDialog pErr -- catches and reports system errors
> log pErr
> end errorDialog
> 
> 
> Place this in your stack script. Then set the kDebug constant to whichever 
> debug method you prefer. If there’s an error somewhere in preOpenCard, this 
> should catch it and help you get started with figuring out the problem
> 
> Good luck!
> 
> Chris

>> I have an mobile project that I've been working on for some time now.  It's 
>> already in the app store (and google play) and it's been running fine.  I 
>> opened the stack this morning to make some updates, and I find that I have 
>> one card that is no longer passing messages.  preOpenCard get's fired, but 
>> openCard is not?  Other cards in the same stack work fine.  I don't have 
>> lock messages on, or anything else I can think of that would cause this.
>> 
>> The card works fine in LiveCode, but fails in the simulator and on a real 
>> device.
>> 
>> LC 6.5.2 and 6.6.1
>> XCode 5.1.1
>> 
>> There must be some property or something that got set that I can't think of. 
>>  I have stepped through the code and I can't find anything.   I even created 
>> a new card, and copied the objects and script to the new card, but got the 
>> same result.
>> 
>> Any ideas?
>> 
>> -Dan
>> 


Thank you!

Dan Friedman
CEO, ClearVision Technologies, Inc.
Voice: 909/484-2052
Fax: 866/620-4796
http://www.clearvisiontech.com

Does your school have a mobile app?  Check out schoolGO!






___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Strange!

2014-04-25 Thread Chris Sheffield
Dan,

Sounds like some debugging is in order which, as I’m sure you know, can be a 
little tricky for iOS apps. I would recommend using put statements and/or 
answer dialogs to try and narrow down where the problem lies. Since preOpenCard 
fires but openCard does not, my guess is you’ve got an error occurring at some 
point during preOpenCard, and it’s basically stopping the app in its tracks.

A handy little script I picked up along the way allows you to easily see when 
runtime errors occur in any app, but I find it especially useful for mobile 
apps when testing in the simulator or on a device. I got this from Jacque 
Landman-Gay, who I believe originally got it from Andre Garzia.


constant kDebug = "answer"

on log pMsg 
switch kDebug
case "msg"
put pMsg & cr
break
case "file"
put pMsg & cr after url ("file:" && the effective filename of this 
stack & ".log")
break
case "answer" -- jlg: added
answer pMsg titled the short name of this card
break
end switch
end log

on errorDialog pErr -- catches and reports system errors
log pErr
end errorDialog


Place this in your stack script. Then set the kDebug constant to whichever 
debug method you prefer. If there’s an error somewhere in preOpenCard, this 
should catch it and help you get started with figuring out the problem

Good luck!

Chris


--
Chris Sheffield
Read Naturally, Inc.
www.readnaturally.com



On Apr 25, 2014, at 12:02 PM, Dan Friedman  wrote:

> I have an mobile project that I've been working on for some time now.  It's 
> already in the app store (and google play) and it's been running fine.  I 
> opened the stack this morning to make some updates, and I find that I have 
> one card that is no longer passing messages.  preOpenCard get's fired, but 
> openCard is not?  Other cards in the same stack work fine.  I don't have lock 
> messages on, or anything else I can think of that would cause this.
> 
> The card works fine in LiveCode, but fails in the simulator and on a real 
> device.
> 
> LC 6.5.2 and 6.6.1
> XCode 5.1.1
> 
> There must be some property or something that got set that I can't think of.  
> I have stepped through the code and I can't find anything.   I even created a 
> new card, and copied the objects and script to the new card, but got the same 
> result.
> 
> Any ideas?
> 
> -Dan
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LiveCode 7 codepoint question

2014-04-25 Thread Dar Scott
So maybe you can be safe in assuming codepoint = char in Japanese?  

I’m just guessing there might be an advantage to using codepoint or even 
codeunit for long documents depending on how the speed of dp3 looks.  

Dar


On Apr 25, 2014, at 1:34 PM, Kenji Kojima  wrote:

> Dar,
> 
> I understood your script well. Thank you. 
> But I was wondering why we needed these Japanese characters. 
> We do not use these combined characters. 
> 
> We use them in Japanese writing
>   numToCodepoint( 0x30C8 )   — this is ト
>   numToCodepoint( 0x30C9 )   — this is ド
>   the num of codepoints of “ド”   — returns 1
> 
> But we do not use this character, and I do not know how I can type. I have to 
> use LiveCode.
>   numToCodepoint( 0x30C8 ) & numToCodepoint( 0x3099 )   — this is ド 
>   the num of codepoints of “ド”— returns 2
> 
> I found the answer. 
> 
> 1) About 150 years ago. Many foreign words came into Japan. 
>   Japanese did not have phonetic characters RA or LA then
>   some people started to write “ラ” as “RA” and “ラ゚” as “LA”
>   numToCodepoint( 0x30E9 )— this is ラ
>   numToCodepoint( 0x30E9 ) & numToCodepoint( 0x309A)   — this is 
> ラ゚   
>   But Japanese do not write differences between them anymore. Now only 
> “ラ” is used. 
>   Contemporary Japanese do not care RA or LA. 
> 
> 2) イ゚ ロ゚ ニ゚ ト゚ チ゚ リ゚ ヌ゚ ル゚ ヲ゚ ワ゚ カ゚ ヨ゚ タ゚ レ゚ ソ゚ ツ゚  and more characters. 
>   They were used for a telegram code. Probably before the war. 
>   They are not used now. 
> 
> Maybe there were some more other old usages. 
> --
> Kenji Kojima / 小島健治
> http://www.kenjikojima.com/
> 
> 
> 
> 
> 
> On Apr 18, 2014, at 5:47 PM, Dar Scott  wrote:
> 
>> Here is my experiment to look at characters that are multiple codepoints in 
>> Japanese.  (This experiment is limited to Katakana.)
>> 
>> (I don’t know Japanese, so I apologize for anything goofy.)
>> 
>> This shows the two-codepoint versions of ド as one character.
>> 
>> On my OS X system, the latter two did not render as one character in the 
>> message box, though.  I might be doing something wrong.  When I pasted the 
>> output string into mail, one of those combined but the second didn’t—maybe 
>> it is intended for use with half-width Katakana.  
>> 
>> The output is this:
>> 
>> トド   ド  1   ド  1
>> 
>> Dar
>> 
>> ———
>> on mouseUp
>>  put numToCodepoint( 0x30C8 ) into kto
>>  put numToCodepoint( 0x30C9 ) into kdo
>>  put numToCodepoint( 0x3099 ) into kVoiceMark
>>  put numToCodepoint( 0xFF9E ) into kHalfVoiceMark
>>  put kto & kVoiceMark into kdoAlt1
>>  put length(kdoAlt1) into kdoAlt1N
>>  put kto & kHalfVoiceMark into kdoAlt2
>>  put length(kdoAlt2) into kdoAlt2N
>>  put kto & tab & kdo & tab & kdoAlt1 & tab & kdoAlt1N & tab & kdoAlt2 & tab 
>> & kdoAlt2N
>> end mouseUp
>> ———
>> 
>> 
>> 
>> 
>> On Apr 18, 2014, at 2:59 PM, Kenji Kojima  wrote:
>> 
>>> What is the actual single unicode character which is composed of two or 
>>> more code points?
>>> I could not find it in Japanese characters. I could use same “char” and 
>>> “code point” in Japanese. 
>>> Are there it in other languages?
>>> 
>>> There is a comment of “codepoint" on the dictionary. 
>>> "A codepoint is an integer identifier associted witha a Unicode character. 
>>> A single character is composed of one or more code points.”
>>> 
>>> Thanks,
>>> --
>>> Kenji Kojima / 小島健治
>>> http://www.kenjikojima.com/
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LiveCode 7 codepoint question

2014-04-25 Thread Kenji Kojima
Dar,

I understood your script well. Thank you. 
But I was wondering why we needed these Japanese characters. 
We do not use these combined characters. 

We use them in Japanese writing
numToCodepoint( 0x30C8 )   — this is ト
numToCodepoint( 0x30C9 )   — this is ド
the num of codepoints of “ド”   — returns 1

But we do not use this character, and I do not know how I can type. I have to 
use LiveCode.
numToCodepoint( 0x30C8 ) & numToCodepoint( 0x3099 )   — this is ド 
the num of codepoints of “ド”— returns 2

I found the answer. 

1) About 150 years ago. Many foreign words came into Japan. 
Japanese did not have phonetic characters RA or LA then
some people started to write “ラ” as “RA” and “ラ゚” as “LA”
numToCodepoint( 0x30E9 )— this is ラ
numToCodepoint( 0x30E9 ) & numToCodepoint( 0x309A)   — this is 
ラ゚   
But Japanese do not write differences between them anymore. Now only 
“ラ” is used. 
Contemporary Japanese do not care RA or LA. 

2) イ゚ ロ゚ ニ゚ ト゚ チ゚ リ゚ ヌ゚ ル゚ ヲ゚ ワ゚ カ゚ ヨ゚ タ゚ レ゚ ソ゚ ツ゚  and more characters. 
They were used for a telegram code. Probably before the war. 
They are not used now. 

Maybe there were some more other old usages. 
--
Kenji Kojima / 小島健治
http://www.kenjikojima.com/





On Apr 18, 2014, at 5:47 PM, Dar Scott  wrote:

> Here is my experiment to look at characters that are multiple codepoints in 
> Japanese.  (This experiment is limited to Katakana.)
> 
> (I don’t know Japanese, so I apologize for anything goofy.)
> 
> This shows the two-codepoint versions of ド as one character.
> 
> On my OS X system, the latter two did not render as one character in the 
> message box, though.  I might be doing something wrong.  When I pasted the 
> output string into mail, one of those combined but the second didn’t—maybe it 
> is intended for use with half-width Katakana.  
> 
> The output is this:
> 
> ト ド   ド  1   ド  1
> 
> Dar
> 
> ———
> on mouseUp
>   put numToCodepoint( 0x30C8 ) into kto
>   put numToCodepoint( 0x30C9 ) into kdo
>   put numToCodepoint( 0x3099 ) into kVoiceMark
>   put numToCodepoint( 0xFF9E ) into kHalfVoiceMark
>   put kto & kVoiceMark into kdoAlt1
>   put length(kdoAlt1) into kdoAlt1N
>   put kto & kHalfVoiceMark into kdoAlt2
>   put length(kdoAlt2) into kdoAlt2N
>   put kto & tab & kdo & tab & kdoAlt1 & tab & kdoAlt1N & tab & kdoAlt2 & tab 
> & kdoAlt2N
> end mouseUp
> ———
> 
> 
> 
> 
> On Apr 18, 2014, at 2:59 PM, Kenji Kojima  wrote:
> 
>> What is the actual single unicode character which is composed of two or more 
>> code points?
>> I could not find it in Japanese characters. I could use same “char” and 
>> “code point” in Japanese. 
>> Are there it in other languages?
>> 
>> There is a comment of “codepoint" on the dictionary. 
>> "A codepoint is an integer identifier associted witha a Unicode character. 
>> A single character is composed of one or more code points.”
>> 
>> Thanks,
>> --
>> Kenji Kojima / 小島健治
>> http://www.kenjikojima.com/
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: HTML browser and mobile.

2014-04-25 Thread Pierre Sahores
Hi Ralph,

The way it works can be really simple (other ways available but this one fills 
perfectly my needs…) :

1.- the html/js side :

page1.html need to include some javascript :

simple iOS/Android working example :

>   
>   var priogesture = 1, start_x = 0, stop_x = 0, start_y = 0, 
> stop_y = 0;
>   function $(id) { return document.getElementById(id); }
>   $("swipe-wrap").addEventListener ("touchstart", function 
> (event) { 
>   start_x = event.touches[0].screenX; start_y = 
> event.touches[0].screenY; priogesture = 0;
>   });
>   $("swipe-wrap").addEventListener ("touchmove", function (event) 
> {
>   stop_x = event.touches[0].screenX; stop_y = 
> event.touches[0].screenY;
>   if ((priogesture == 0) && (stop_x != 0) && 
> (Math.abs(stop_x - start_x) > Math.abs(stop_y - start_y))) { 
>   if (start_x < stop_x) {
>   
> document.location.href="file:/data/data/com.pierresahores.alainweiz/cache/prev.html";
>   } else if (start_x > stop_x) {
>   
> document.location.href="file:/data/data/com.pierresahores.alainweiz/cache/next.html";
>   }
>   }
>   });
>   


a.- able to handle the touch messages it receive from your mobile app users;
b.- and initiate a new pageN.html load;

2.- the livecode scripting side :

> on browserLoadRequested pUrl, pType
>if the platform is "iPhone" then
>   if "/cache/prev.html" is in pURL then 

your iOS dedicated LC code comes there

> on browserStartedLoading pUrl
>if "/cache/prev.html" is in pURL and the platform is "android" then

your Android dedicated LC code comes there

Best,

Pierre

Le 25 avr. 2014 à 19:36, Ralph DiMola  a écrit :

> How would one do a call back to LC from within a mobile web page? Is this 
> even possible on mobile? I have a html local page with a map image. I would 
> like to call an LC procedure with a parameter when the user presses within a 
> specific county on the page.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: RELEASE LiveCode 6.6.2 RC2

2014-04-25 Thread Stephen MacLean
Looks good here, thank you

On Apr 25, 2014, at 11:06 AM, Benjamin Beaumont  wrote:

> Dear List Members,
> 
> Due to a build error, 6.6.2 RC1 wasn't able to build for the simulators. We
> have resolved the issue with a new build and uploaded it as LiveCode 6.6.2
> RC2.
> 
> Notable mention and thanks to Stephen MacLean for notifying us of the issue
> so quickly.
> 
> *Getting this release*
> To upgrade to this release please select "check for updates" from the help
> menu in LiveCode or download the installers directly at:
> http://downloads.livecode.com/livecode/
> 
> *Reporting Bugs*
> If you encounter an issue with this release please submit a bug report to
> our quality centre: http://quality.runrev.com/enter_bug.cgi
> 
> Warm regards,
> 
> The LiveCode Team
> 
> -- 
> _
> 
> Benjamin Beaumont . RunRev Ltd
> 
> LiveCode Product Manager
> mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
> email : b...@runrev.com
> company : +44(0) 845 219 89 23
> fax : +44(0) 845 458 8487
> web : www.runrev.com
> 
> LiveCode - Programming made simple
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Strange!

2014-04-25 Thread Dan Friedman
I have an mobile project that I've been working on for some time now.  It's 
already in the app store (and google play) and it's been running fine.  I 
opened the stack this morning to make some updates, and I find that I have one 
card that is no longer passing messages.  preOpenCard get's fired, but openCard 
is not?  Other cards in the same stack work fine.  I don't have lock messages 
on, or anything else I can think of that would cause this.

The card works fine in LiveCode, but fails in the simulator and on a real 
device.

LC 6.5.2 and 6.6.1
XCode 5.1.1

There must be some property or something that got set that I can't think of.  I 
have stepped through the code and I can't find anything.   I even created a new 
card, and copied the objects and script to the new card, but got the same 
result.

Any ideas?

-Dan
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


HTML browser and mobile.

2014-04-25 Thread Ralph DiMola
How would one do a call back to LC from within a mobile web page? Is this even 
possible on mobile? I have a html local page with a map image. I would like to 
call an LC procedure with a parameter when the user presses within a specific 
county on the page.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Really basic SQLite questions

2014-04-25 Thread Mike Kerner
Bob, I agree that in general, when dealing with a server, you are exactly
right on what you should be doing.  Since SQLite is a local file-store DB,
it's a little different.  it isn't designed for transaction loads,
multi-users, etc.  it doesn't even support all the datatypes - for
instance, yes, you can define a boolean, but it isn't a boolean.

database servers require an entirely different class of developer, imho,
otherwise all sorts of evil things will happen.


On Fri, Apr 25, 2014 at 1:22 AM, Robert Sneidar  wrote:

> My experience with SQL is that there is a timeout if a connection has been
> idle for a certain period of time. Perhaps this is not a problem with
> sqLite, but as a matter of good development habits, get all the info you
> need from the user BEFORE opening the connection, so that there is no
> chance of having a user walk away from his desk while your app is wanting
> something from him with an open connection. Once you open the connection,
> do what you need to do, then close it.
>
> If you have anything like complex transactions where you may have to abort
> all your inserts and updates mid stream, use transactions. This way you can
> rollback midstream with no ill effects. If the connection goes stale, you
> will find that the user will have to sit there for 30 seconds to a minute
> or more waiting for the app to release so you can deal with the connection
> timeout. Not pretty.
>
> I cannot tell you the hell and havoc I have had working with different
> database applications where the developers figured, “What the hell, just
> leave the connection open,” and then something happens network wise and the
> application dumps to the desktop. That is crappy programming IMHO.
>
> Would you open an FTP session and just leave it open for convenience? How
> about an HTTPS session? Think about how your bank works. If you are idle
> for any length of time they kick you. If I am logged into a copier too long
> for crying out loud That will kick me out! It’s my opinion at least that
> every network or database connection should have some means of
> disconnecting when idle. It’s just good practice.
>
> Bob S
>
>
> On Apr 24, 2014, at 9:07 PM, Peter Haworth  wrote:
>
> > Hi James,
> > I'd leave them open until you quit the app. You might also think about
> > using the ATTACH command for the second and subsequent connections so
> > they'll all be open on the same connection. This allows you to, for
> > example, define JOINs across databases, although you'll need to change
> the
> > references to anything in the attached databases.
> >
> > Pretty sure you need to load extensions for each connection,  so the
> ATTACH
> > approach will help there too.
> >
> > Pete
> > lcSQL Software
> > On Apr 24, 2014 7:49 PM, "James Hale"  wrote:
> >
> >> 1. Open and close database connections. When?
> >> Obviously you need to open a connection to access a database, but when
> do
> >> you need to close it?
> >> Does it close without you doing anything?
> >> I have the need to connect to four db's while running my app.
> >> Access to a couple of these is sporadic but constant across a user
> session
> >> with the app.
> >> Can I just open a connection to them all on the app's launch and then
> >> close the connection of quitting? Currently I reassert the connection on
> >> most accesses. Is this a bad thing to do?
> >>
> >> 2. SQLite's new ability to load a runtime extension. What does it attach
> >> to?
> >> I have compiled a couple of extensions to SQLite for my app. I use them
> in
> >> two distinct db's that I connect to. Do I need to load the extension for
> >> each db or only once.
> >> In other words is it loaded for the engine itself or does the load only
> >> apply to the specific database I am connecting to at the time?
> >>
> >> Thanks in advance
> >>
> >> James
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit th

RELEASE LiveCode 6.6.2 RC2

2014-04-25 Thread Benjamin Beaumont
Dear List Members,

Due to a build error, 6.6.2 RC1 wasn't able to build for the simulators. We
have resolved the issue with a new build and uploaded it as LiveCode 6.6.2
RC2.

Notable mention and thanks to Stephen MacLean for notifying us of the issue
so quickly.

*Getting this release*
To upgrade to this release please select "check for updates" from the help
menu in LiveCode or download the installers directly at:
http://downloads.livecode.com/livecode/

*Reporting Bugs*
If you encounter an issue with this release please submit a bug report to
our quality centre: http://quality.runrev.com/enter_bug.cgi

Warm regards,

The LiveCode Team

-- 
_

Benjamin Beaumont . RunRev Ltd

LiveCode Product Manager
mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
email : b...@runrev.com
company : +44(0) 845 219 89 23
fax : +44(0) 845 458 8487
web : www.runrev.com

LiveCode - Programming made simple
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Delivering Files with lcServer ?

2014-04-25 Thread Peter W A Wood
Hi Scott

Personally I would keep the two files rather than trying to get this working 
with a single file. It has the benefit of simplicity.

Regards

Peter


On 25 Apr 2014, at 18:39, Scott Rossi wrote:

> Thanks Peter:
> 
> Same issue here: having the lcserver download code as part of the same
> page that contains the form continues to write the raw ZIP file code to
> the browser.  Maybe the sequencing of code blocks is the problem, I don't
> know.
> 
> That saidŠ  trying your previous suggestion worked for me.  Here's what I
> did:
> 
> 1) All HTML code in its own file, called "page.txt" :
> 
> 
>   
>  
>  
>  GET FILE
>  
>   
> 
> 
> 
> 2) All lcserver code on an index page, called index.lc" :
> 
>if number of lines in the keys of $_POST > 0 then
>   put header "Content-type: application/zip"
>   put header "Content-Disposition: attachment; filename=file.zip"
>   put header "Content-Transfer-Encoding: binary"
>   put url "binfile:files/file.zip" into theFile
>   put theFile
>   else
>   put header "Content-Type: text/html"
>   put url ("file:page.txt")
>   end if
> ?>
> 
> 
> Now I can press the GET FILE button repeatedly and the download commences.
> 
> I imagine there must be some way to combine all this stuff onto one page
> and force it to work, but for now, after many hours and 3 people trying to
> crack this, having a working option is joy.
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/25/14 2:32 AM, "Peter W A Wood"  wrote:
> 
>> Hi Scott
>> 
>> With a little help from Google, I have managed to put together this
>> example of serving a file from LiveCode Server:
>> 
>> This is the html file from which you can request the download:
>> 
>> 
>> click here
>> 
>> 
>> and here is the LiveCode server page (webtest.lc)
>> 
>> > put "test.zip" into tName
>> put url ("binfile:" & tName) into theFile
>> put header "Content-Description: File Transfer"
>> put header "Expires: 0"
>> put header "Cache-Control: must-revalidate"
>> put header "Pragma: public"
>> put header "Content-Type: application/octet-stream"
>> put header "Content-Disposition: attachment; filename=" & tName
>> put header "Content-Transfer-Encoding: binary"
>> put header "Content-Length:" && the length of theFile
>> put binary theFile
>> ?>
>> 
>> The biggest problem that I had was getting LiveCode to download a working
>> zip file until I added the "binary" to put. (I read to do that in the
>> release notes for LiveCode Server 4.6.3, thanks to Google).
>> 
>> Hope this helps.
>> 
>> Regards
>> 
>> Peter
>> 
>> 
>> On 25 Apr 2014, at 14:38, Scott Rossi wrote:
>> 
>>> Thanks Simon.  This will likely do what I need.
>>> 
>>> But I'd really like to know how to do this with lcserver.  That's the
>>> point, right?  Not to have to rely on PHP?  :-)
>>> 
>>> What's the LC equivalent of what readfile() is doing below?
>>> 
>>> Thanks & Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI Design
>>> 
>>> 
>>> 
>>> 
>>> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
>>> 
 Hi Scott
 
 I have done something similar in php before, where a page loads, and
 then
 the file starts downloading a few seconds later, without leaving the
 main
 page.
 
 The main page contains a refresh tag that loads the script that starts
 the
 download:
 
 
 
 and then the sendfile.php consists of:
 
 >>> header('Content-type: application/pdf');
 header('Content-Disposition: attachment; filename="' .
 basename('filename.pdf') . '"');
 header('Content-Transfer-Encoding: binary');
 readfile($filename);
 ?>
 
 Hope this helps.
 Simon
 
 
 On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
 wrote:
 
> Hi Peter:
> 
> I started setting up a test page to demonstrate, and now I can't get
> anything to work, not even my single page test which worked a dozen
> times
> yesterday.  [sigh] Not sure what changed.
> 
> At any rate, I've seen PHP examples that involve setting content
> headers
> to facilitate a file transfer, so I figured since lcserver operates
> similarly, it should be possible to initiate the download of a zipped
> file
> (or any file).
> 
> Any examples out there that someone can point me to?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
> 
>> Hi Scott
>> 
>> What is the URL of the iframe? Does it include characters such as "?"
> or
>> "&" ?
>> 
>> Regards
>> 
>> Peter
>> 
>> On 25 Apr 2014, at 08:29, Scott Rossi wrote:
>> 
>>> Hello List:
>>> 
>>> I'm hoping someone knowledgable about server stuff has a solution to
> a
>>> problem I have delivering a file using lcServe

RTL-field now donationware

2014-04-25 Thread Mark Schonewille

Hi,

Over the past 20 years, I made several right-to-left language solutions. 
With LiveCode 7 around the corner, it seems that these solution are no 
longer necessary. Therefore, I'm releasing the tool as donationware. 
More info available at http://qery.us/4b4


Kind regards,

Mark

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi


LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTPPS problem with a web service

2014-04-25 Thread David Bovill
Yes 6.6.1 does not work. The only version that works AFAIK (at least on OSX
10.9.2) is 6.6.2.


On 25 April 2014 12:27, Nakia Brewer  wrote:

> Is this with a proxy with a PAC file ?
>
> I can't get the GM release of 6.6.1 to work
>
> Sent from my iPhone
>
> > On 25 Apr 2014, at 8:23 pm, "David Bovill" 
> wrote:
> >
> > Yes 6.6.2 rc1 works.
> >
> > 6.7 dp2 does not, and 7.0.0 dp2 does not.
> >
> >
> >> On 25 April 2014 00:19, J. Landman Gay 
> wrote:
> >>
> >>> On 4/24/14, 4:58 PM, Nakia Brewer wrote:
> >>>
> >>> Are you going through a proxy?
> >>>
> >>> I can't get HTTPS to work through a proxy that is using a PAC file.
> >>
> >> Have you tried with today's 6.1.2 release? I think the libURL library
> has
> >> been tweaked. I'd be curious to know -- I don't have a proxy to test
> with.
> >>
> >> --
> >> Jacqueline Landman Gay | jac...@hyperactivesw.com
> >> HyperActive Software   | http://www.hyperactivesw.com
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
> COPYRIGHT / DISCLAIMER: This message and/or including attached files may
> contain confidential proprietary or privileged information. If you are not
> the intended recipient, you are strictly prohibited from using,
> reproducing, disclosing or distributing the information contained in this
> email without authorisation from WesTrac. If you have received this message
> in error please contact WesTrac on +61 8 9377 9444. We do not accept
> liability in connection with computer virus, data corruption, delay,
> interruption, unauthorised access or unauthorised amendment. We reserve the
> right to monitor all e-mail communications.
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Delivering Files with lcServer ?

2014-04-25 Thread Scott Rossi
Thanks Peter:

Same issue here: having the lcserver download code as part of the same
page that contains the form continues to write the raw ZIP file code to
the browser.  Maybe the sequencing of code blocks is the problem, I don't
know.

That saidŠ  trying your previous suggestion worked for me.  Here's what I
did:

1) All HTML code in its own file, called "page.txt" :


   
  
  
  GET FILE
  
   



2) All lcserver code on an index page, called index.lc" :

 0 then
   put header "Content-type: application/zip"
   put header "Content-Disposition: attachment; filename=file.zip"
   put header "Content-Transfer-Encoding: binary"
   put url "binfile:files/file.zip" into theFile
   put theFile
else
   put header "Content-Type: text/html"
   put url ("file:page.txt")
end if
?>


Now I can press the GET FILE button repeatedly and the download commences.

I imagine there must be some way to combine all this stuff onto one page
and force it to work, but for now, after many hours and 3 people trying to
crack this, having a working option is joy.

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 4/25/14 2:32 AM, "Peter W A Wood"  wrote:

>Hi Scott
>
>With a little help from Google, I have managed to put together this
>example of serving a file from LiveCode Server:
>
>This is the html file from which you can request the download:
>
>
>click here
>
>
>and here is the LiveCode server page (webtest.lc)
>
>put "test.zip" into tName
>put url ("binfile:" & tName) into theFile
>put header "Content-Description: File Transfer"
>put header "Expires: 0"
>put header "Cache-Control: must-revalidate"
>put header "Pragma: public"
>put header "Content-Type: application/octet-stream"
>put header "Content-Disposition: attachment; filename=" & tName
>put header "Content-Transfer-Encoding: binary"
>put header "Content-Length:" && the length of theFile
>put binary theFile
>?>
>
>The biggest problem that I had was getting LiveCode to download a working
>zip file until I added the "binary" to put. (I read to do that in the
>release notes for LiveCode Server 4.6.3, thanks to Google).
>
>Hope this helps.
>
>Regards
>
>Peter
>
>
>On 25 Apr 2014, at 14:38, Scott Rossi wrote:
>
>> Thanks Simon.  This will likely do what I need.
>> 
>> But I'd really like to know how to do this with lcserver.  That's the
>> point, right?  Not to have to rely on PHP?  :-)
>> 
>> What's the LC equivalent of what readfile() is doing below?
>> 
>> Thanks & Regards,
>> 
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>> 
>> 
>> 
>> 
>> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
>> 
>>> Hi Scott
>>> 
>>> I have done something similar in php before, where a page loads, and
>>>then
>>> the file starts downloading a few seconds later, without leaving the
>>>main
>>> page.
>>> 
>>> The main page contains a refresh tag that loads the script that starts
>>>the
>>> download:
>>> 
>>> 
>>> 
>>> and then the sendfile.php consists of:
>>> 
>>> >> header('Content-type: application/pdf');
>>> header('Content-Disposition: attachment; filename="' .
>>> basename('filename.pdf') . '"');
>>> header('Content-Transfer-Encoding: binary');
>>> readfile($filename);
>>> ?>
>>> 
>>> Hope this helps.
>>> Simon
>>> 
>>> 
>>> On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
>>> wrote:
>>> 
 Hi Peter:
 
 I started setting up a test page to demonstrate, and now I can't get
 anything to work, not even my single page test which worked a dozen
 times
 yesterday.  [sigh] Not sure what changed.
 
 At any rate, I've seen PHP examples that involve setting content
headers
 to facilitate a file transfer, so I figured since lcserver operates
 similarly, it should be possible to initiate the download of a zipped
 file
 (or any file).
 
 Any examples out there that someone can point me to?
 
 Thanks & Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
 
> Hi Scott
> 
> What is the URL of the iframe? Does it include characters such as "?"
 or
> "&" ?
> 
> Regards
> 
> Peter
> 
> On 25 Apr 2014, at 08:29, Scott Rossi wrote:
> 
>> Hello List:
>> 
>> I'm hoping someone knowledgable about server stuff has a solution to
 a
>> problem I have delivering a file using lcServer via an iframe.
>> 
>> I'm using lcServer with the following code to trigger a file
 download:
>> 
>> put url ("binfile:files/sound.zip") into theFile
>> put header "Content-Disposition: attachment; filename=" & quote &
>> "sound.zip" & quote
>> put new header "Content-Type: application/force-download"
>> put new header "Content-Type: application/zip"
>> put new header "Content-Type: application/octet-stream"
>> put new header "Content-Type: application/download"
>> put

Re: HTPPS problem with a web service

2014-04-25 Thread Nakia Brewer
Is this with a proxy with a PAC file ?

I can't get the GM release of 6.6.1 to work 

Sent from my iPhone

> On 25 Apr 2014, at 8:23 pm, "David Bovill"  wrote:
> 
> Yes 6.6.2 rc1 works.
> 
> 6.7 dp2 does not, and 7.0.0 dp2 does not.
> 
> 
>> On 25 April 2014 00:19, J. Landman Gay  wrote:
>> 
>>> On 4/24/14, 4:58 PM, Nakia Brewer wrote:
>>> 
>>> Are you going through a proxy?
>>> 
>>> I can't get HTTPS to work through a proxy that is using a PAC file.
>> 
>> Have you tried with today's 6.1.2 release? I think the libURL library has
>> been tweaked. I'd be curious to know -- I don't have a proxy to test with.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
contain confidential proprietary or privileged information. If you are not the 
intended recipient, you are strictly prohibited from using, reproducing, 
disclosing or distributing the information contained in this email without 
authorisation from WesTrac. If you have received this message in error please 
contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
with computer virus, data corruption, delay, interruption, unauthorised access 
or unauthorised amendment. We reserve the right to monitor all e-mail 
communications.



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: HTPPS problem with a web service

2014-04-25 Thread David Bovill
Yes 6.6.2 rc1 works.

6.7 dp2 does not, and 7.0.0 dp2 does not.


On 25 April 2014 00:19, J. Landman Gay  wrote:

> On 4/24/14, 4:58 PM, Nakia Brewer wrote:
>
>> Are you going through a proxy?
>>
>> I can't get HTTPS to work through a proxy that is using a PAC file.
>>
>
> Have you tried with today's 6.1.2 release? I think the libURL library has
> been tweaked. I'd be curious to know -- I don't have a proxy to test with.
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Delivering Files with lcServer ?

2014-04-25 Thread Martin Baxter
On 25/04/14 10:32, Peter W A Wood wrote:
> Hi Scott
> 
> With a little help from Google, I have managed to put together this
> example of serving a file from LiveCode Server:
> 
> This is the html file from which you can request the download:
> 
>  click here 
> 
> and here is the LiveCode server page (webtest.lc)
> 
>  put "test.zip" into tName   
> put url ("binfile:" & tName) into theFile
> put header "Content-Description: File Transfer"
> put header "Expires: 0"
> put header "Cache-Control: must-revalidate"
> put header "Pragma: public"
> put header "Content-Type: application/octet-stream"
> put header "Content-Disposition: attachment; filename=" & tName
> put header "Content-Transfer-Encoding: binary"
> put header "Content-Length:" && the length of theFile
> put binary theFile
> ?>
> 

> The biggest problem that I had was getting LiveCode to download a
working zip file until I added the "binary" to put. (I read to do that
in the release notes for LiveCode Server 4.6.3, thanks to Google).
> 
> Hope this helps.
> 
> Regards
> 
> Peter

Yes, that looks right,

I think that:

header("Content-Description: file Transfer");

Is the interesting part. IIRC that should prompt the browser to
recognise that this is a file download.

Then you just have an href= to the script that handles the download, in
the usual way, and when the link is clicked, the browser should
recognise the intent by inspection of the headers, and by default should
not attempt to change the page location.

Your download scipt might want to explicitly change the location in the
case of an error or something, however.

Martin

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Delivering Files with lcServer ?

2014-04-25 Thread Peter W A Wood
Hi Scott

I suspect the problem with this approach is that the browser will end up 
sending two sets of headers. The first will be generated automatically by the 
Browser, the second set from you LiveCode.

You could get around this by adopting a "no html" approach like this:

 0 then
put header "Content-type: application/zip"
put header "Content-Disposition: attachment; filename=sound.zip"
put header "Content-Transfer-Encoding: binary"
put url "binfile:files/sound.zip" into theFile
put theFile
  else
put header "Content-Type: text/html"
  put ""
 put ""
put "Your Page"
put ""
put ""
# put (all your html)
put ""
put ""
?>

Regards

Peter

On 25 Apr 2014, at 17:00, Scott Rossi wrote:

> Hi Simon:
> 
> Well, you helped me figure out a bit more.  Your script works, but not in
> the arrangement I'm using (maybe I need to rethink).
> 
> I think my problem is I'm trying to trigger the download by reloading the
> same page.  I have the lcserver code near the top of the page (note I
> simplified your code):
> 
>if number of lines in the keys of $_POST > 0 then
>  put header "Content-type: application/zip"
>  put header "Content-Disposition: attachment; filename=sound.zip"
>  put header "Content-Transfer-Encoding: binary"
>  put url "binfile:files/sound.zip" into theFile
>  put theFile
>   end if
> ?>
> 
> 
> Then there'a simple form on the page:
> 
> 
> 
>   
>   GET FILE
>   
> 
> 
> 
> If I place only (the modified version of) your code on a simple page and
> load it in a browser, it downloads the ZIP as expected.  When I run all of
> the above on a page and press the submit button, the raw code of the ZIP
> gets written to browser window (Chrome OS X).
> 
> 
> So maybe I need to figure out another way of loading a page that contains
> the download code.  I've tried using redirects and get the same problem --
> raw code in the browser.  I don't get what the difference is between
> loading a URL via the browser's address field, and "put"-ting a URL via
> lcserver.
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/25/14 1:23 AM, "Simon Smith"  wrote:
> 
>> Hi Scott
>> 
>> Played around with it in LiveCode and got this works for me:
>> 
>> > 
>> put header "Content-type: application/zip"
>> put header "Content-Disposition: attachment; filename=myFile.zip"
>> put header "Content-Transfer-Encoding: binary"
>> 
>> put "myPDF.zip" into fileToRead
>> open file fileToRead for binary read
>> read from file fileToRead until EOF
>> close file fileToRead
>> put binary it
>> 
>> lc ?>
>> 
>> 
>> 
>> On Fri, Apr 25, 2014 at 8:38 AM, Scott Rossi 
>> wrote:
>> 
>>> Thanks Simon.  This will likely do what I need.
>>> 
>>> But I'd really like to know how to do this with lcserver.  That's the
>>> point, right?  Not to have to rely on PHP?  :-)
>>> 
>>> What's the LC equivalent of what readfile() is doing below?
>>> 
>>> Thanks & Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI Design
>>> 
>>> 
>>> 
>>> 
>>> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
>>> 
 Hi Scott
 
 I have done something similar in php before, where a page loads, and
>>> then
 the file starts downloading a few seconds later, without leaving the
>>> main
 page.
 
 The main page contains a refresh tag that loads the script that starts
>>> the
 download:
 
 
 
 and then the sendfile.php consists of:
 
 >>> header('Content-type: application/pdf');
 header('Content-Disposition: attachment; filename="' .
 basename('filename.pdf') . '"');
 header('Content-Transfer-Encoding: binary');
 readfile($filename);
 ?>
 
 Hope this helps.
 Simon
 
 
 On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
 wrote:
 
> Hi Peter:
> 
> I started setting up a test page to demonstrate, and now I can't get
> anything to work, not even my single page test which worked a dozen
> times
> yesterday.  [sigh] Not sure what changed.
> 
> At any rate, I've seen PHP examples that involve setting content
>>> headers
> to facilitate a file transfer, so I figured since lcserver operates
> similarly, it should be possible to initiate the download of a zipped
> file
> (or any file).
> 
> Any examples out there that someone can point me to?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
> 
>> Hi Scott
>> 
>> What is the URL of the iframe? Does it include characters such as
>>> "?"
> or
>> "&" ?
>> 
>> Regards
>> 
>> Peter
>> 
>> On 25 Apr 2014, at 08:29, Scott Rossi wrote:
>> 
>>> Hello List:
>>> 
>>> I'm hoping someone kn

Re: Delivering Files with lcServer ?

2014-04-25 Thread Peter W A Wood
Hi Scott

With a little help from Google, I have managed to put together this example of 
serving a file from LiveCode Server:

This is the html file from which you can request the download:


click here


and here is the LiveCode server page (webtest.lc)



The biggest problem that I had was getting LiveCode to download a working zip 
file until I added the "binary" to put. (I read to do that in the release notes 
for LiveCode Server 4.6.3, thanks to Google).

Hope this helps.

Regards

Peter


On 25 Apr 2014, at 14:38, Scott Rossi wrote:

> Thanks Simon.  This will likely do what I need.
> 
> But I'd really like to know how to do this with lcserver.  That's the
> point, right?  Not to have to rely on PHP?  :-)
> 
> What's the LC equivalent of what readfile() is doing below?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
> 
>> Hi Scott
>> 
>> I have done something similar in php before, where a page loads, and then
>> the file starts downloading a few seconds later, without leaving the main
>> page.
>> 
>> The main page contains a refresh tag that loads the script that starts the
>> download:
>> 
>> 
>> 
>> and then the sendfile.php consists of:
>> 
>> > header('Content-type: application/pdf');
>> header('Content-Disposition: attachment; filename="' .
>> basename('filename.pdf') . '"');
>> header('Content-Transfer-Encoding: binary');
>> readfile($filename);
>> ?>
>> 
>> Hope this helps.
>> Simon
>> 
>> 
>> On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
>> wrote:
>> 
>>> Hi Peter:
>>> 
>>> I started setting up a test page to demonstrate, and now I can't get
>>> anything to work, not even my single page test which worked a dozen
>>> times
>>> yesterday.  [sigh] Not sure what changed.
>>> 
>>> At any rate, I've seen PHP examples that involve setting content headers
>>> to facilitate a file transfer, so I figured since lcserver operates
>>> similarly, it should be possible to initiate the download of a zipped
>>> file
>>> (or any file).
>>> 
>>> Any examples out there that someone can point me to?
>>> 
>>> Thanks & Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI Design
>>> 
>>> 
>>> 
>>> 
>>> On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
>>> 
 Hi Scott
 
 What is the URL of the iframe? Does it include characters such as "?"
>>> or
 "&" ?
 
 Regards
 
 Peter
 
 On 25 Apr 2014, at 08:29, Scott Rossi wrote:
 
> Hello List:
> 
> I'm hoping someone knowledgable about server stuff has a solution to
>>> a
> problem I have delivering a file using lcServer via an iframe.
> 
> I'm using lcServer with the following code to trigger a file
>>> download:
> 
> put url ("binfile:files/sound.zip") into theFile
> put header "Content-Disposition: attachment; filename=" & quote &
> "sound.zip" & quote
> put new header "Content-Type: application/force-download"
> put new header "Content-Type: application/zip"
> put new header "Content-Type: application/octet-stream"
> put new header "Content-Type: application/download"
> put header "Content-Description: File Transfer"
> put header "Content-Length:" && the length of theFile
> put theFile
> 
> This appears to work fine from basic web page -- a download is
>>> triggered
> in the browser and the file is written to the drive.
> 
> When I run the same code on a page within an iframe, I get the raw
>>> file
> code posted to the iframe. :-(
> 
> All pages reside in the same domain (no cross domain issues) so I'm
>>> at a
> loss on how to deal with this.  Any ideas?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> 
>> -- 
>> 
>> *Simon Smith*
>> *seo, online marketing, web development*
>> 
>> w. http://www.simonsmith.co
>> m. +27 83 306 7862
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit

Re: Delivering Files with lcServer ?

2014-04-25 Thread Scott Rossi
Hi Simon:

Well, you helped me figure out a bit more.  Your script works, but not in
the arrangement I'm using (maybe I need to rethink).

I think my problem is I'm trying to trigger the download by reloading the
same page.  I have the lcserver code near the top of the page (note I
simplified your code):

 0 then
  put header "Content-type: application/zip"
  put header "Content-Disposition: attachment; filename=sound.zip"
  put header "Content-Transfer-Encoding: binary"
  put url "binfile:files/sound.zip" into theFile
  put theFile
   end if
?>


Then there'a simple form on the page:



   
   GET FILE




If I place only (the modified version of) your code on a simple page and
load it in a browser, it downloads the ZIP as expected.  When I run all of
the above on a page and press the submit button, the raw code of the ZIP
gets written to browser window (Chrome OS X).


So maybe I need to figure out another way of loading a page that contains
the download code.  I've tried using redirects and get the same problem --
raw code in the browser.  I don't get what the difference is between
loading a URL via the browser's address field, and "put"-ting a URL via
lcserver.

Thanks & Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 4/25/14 1:23 AM, "Simon Smith"  wrote:

>Hi Scott
>
>Played around with it in LiveCode and got this works for me:
>
>
>put header "Content-type: application/zip"
>put header "Content-Disposition: attachment; filename=myFile.zip"
>put header "Content-Transfer-Encoding: binary"
>
>put "myPDF.zip" into fileToRead
>open file fileToRead for binary read
>  read from file fileToRead until EOF
>  close file fileToRead
>put binary it
>
>lc ?>
>
>
>
>On Fri, Apr 25, 2014 at 8:38 AM, Scott Rossi 
>wrote:
>
>> Thanks Simon.  This will likely do what I need.
>>
>> But I'd really like to know how to do this with lcserver.  That's the
>> point, right?  Not to have to rely on PHP?  :-)
>>
>> What's the LC equivalent of what readfile() is doing below?
>>
>> Thanks & Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>>
>>
>>
>> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
>>
>> >Hi Scott
>> >
>> >I have done something similar in php before, where a page loads, and
>>then
>> >the file starts downloading a few seconds later, without leaving the
>>main
>> >page.
>> >
>> >The main page contains a refresh tag that loads the script that starts
>>the
>> >download:
>> >
>> >
>> >
>> >and then the sendfile.php consists of:
>> >
>> >> >header('Content-type: application/pdf');
>> >header('Content-Disposition: attachment; filename="' .
>> >basename('filename.pdf') . '"');
>> >header('Content-Transfer-Encoding: binary');
>> >readfile($filename);
>> >?>
>> >
>> >Hope this helps.
>> >Simon
>> >
>> >
>> >On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
>> >wrote:
>> >
>> >> Hi Peter:
>> >>
>> >> I started setting up a test page to demonstrate, and now I can't get
>> >> anything to work, not even my single page test which worked a dozen
>> >>times
>> >> yesterday.  [sigh] Not sure what changed.
>> >>
>> >> At any rate, I've seen PHP examples that involve setting content
>>headers
>> >> to facilitate a file transfer, so I figured since lcserver operates
>> >> similarly, it should be possible to initiate the download of a zipped
>> >>file
>> >> (or any file).
>> >>
>> >> Any examples out there that someone can point me to?
>> >>
>> >> Thanks & Regards,
>> >>
>> >> Scott Rossi
>> >> Creative Director
>> >> Tactile Media, UX/UI Design
>> >>
>> >>
>> >>
>> >>
>> >> On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
>> >>
>> >> >Hi Scott
>> >> >
>> >> >What is the URL of the iframe? Does it include characters such as
>>"?"
>> >>or
>> >> >"&" ?
>> >> >
>> >> >Regards
>> >> >
>> >> >Peter
>> >> >
>> >> >On 25 Apr 2014, at 08:29, Scott Rossi wrote:
>> >> >
>> >> >> Hello List:
>> >> >>
>> >> >> I'm hoping someone knowledgable about server stuff has a solution
>>to
>> >>a
>> >> >> problem I have delivering a file using lcServer via an iframe.
>> >> >>
>> >> >> I'm using lcServer with the following code to trigger a file
>> >>download:
>> >> >>
>> >> >> put url ("binfile:files/sound.zip") into theFile
>> >> >> put header "Content-Disposition: attachment; filename=" & quote &
>> >> >> "sound.zip" & quote
>> >> >> put new header "Content-Type: application/force-download"
>> >> >> put new header "Content-Type: application/zip"
>> >> >> put new header "Content-Type: application/octet-stream"
>> >> >> put new header "Content-Type: application/download"
>> >> >> put header "Content-Description: File Transfer"
>> >> >> put header "Content-Length:" && the length of theFile
>> >> >> put theFile
>> >> >>
>> >> >> This appears to work fine from basic web page -- a download is
>> >>triggered
>> >> >> in the browser and the file is written to the drive.
>> >> >>
>> >> >> When I run the same code on a page within an iframe, I get the raw
>> >>file
>> >> >> code posted to t

Re: [Enhancement Request] Open and BackUp in LiveCode DP and RC

2014-04-25 Thread Ben Rubinstein

On 24/04/2014 23:15, Richard Gaskin wrote:

Ben Rubinstein wrote:

 > I'd love to know: what do other people do to customise their
 > environment?




Is that all?!?


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Delivering Files with lcServer ?

2014-04-25 Thread Björnke von Gierke
I think most websites set the target to a new website in the link, to avoid 
having stuff randomly load within iframes. so i suggest to just make the link 
have a target of _blank or maybe _top. Then put the .lc code into its own 
independent file.

Also make sure to set the "content-transfer-encoding" to "binary" in addition 
to the "content-type" to "application/zip" (I don't think your'e allowed to 
define several "content-types" in one definition, and it might choose one of 
them at random, or just the last specified one).

cheers
Björnke

--

Anyone thinking about going to Zurich in the summer? 
Please fill out the form and send me an email: 
http://doodle.com/yapygihh3itgz2qr

On 25 Apr 2014, at 08:38, Scott Rossi  wrote:

> Thanks Simon.  This will likely do what I need.
> 
> But I'd really like to know how to do this with lcserver.  That's the
> point, right?  Not to have to rely on PHP?  :-)
> 
> What's the LC equivalent of what readfile() is doing below?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
> 
>> Hi Scott
>> 
>> I have done something similar in php before, where a page loads, and then
>> the file starts downloading a few seconds later, without leaving the main
>> page.
>> 
>> The main page contains a refresh tag that loads the script that starts the
>> download:
>> 
>> 
>> 
>> and then the sendfile.php consists of:
>> 
>> > header('Content-type: application/pdf');
>> header('Content-Disposition: attachment; filename="' .
>> basename('filename.pdf') . '"');
>> header('Content-Transfer-Encoding: binary');
>> readfile($filename);
>> ?>
>> 
>> Hope this helps.
>> Simon
>> 
>> 
>> On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
>> wrote:
>> 
>>> Hi Peter:
>>> 
>>> I started setting up a test page to demonstrate, and now I can't get
>>> anything to work, not even my single page test which worked a dozen
>>> times
>>> yesterday.  [sigh] Not sure what changed.
>>> 
>>> At any rate, I've seen PHP examples that involve setting content headers
>>> to facilitate a file transfer, so I figured since lcserver operates
>>> similarly, it should be possible to initiate the download of a zipped
>>> file
>>> (or any file).
>>> 
>>> Any examples out there that someone can point me to?
>>> 
>>> Thanks & Regards,
>>> 
>>> Scott Rossi
>>> Creative Director
>>> Tactile Media, UX/UI Design
>>> 
>>> 
>>> 
>>> 
>>> On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
>>> 
 Hi Scott
 
 What is the URL of the iframe? Does it include characters such as "?"
>>> or
 "&" ?
 
 Regards
 
 Peter
 
 On 25 Apr 2014, at 08:29, Scott Rossi wrote:
 
> Hello List:
> 
> I'm hoping someone knowledgable about server stuff has a solution to
>>> a
> problem I have delivering a file using lcServer via an iframe.
> 
> I'm using lcServer with the following code to trigger a file
>>> download:
> 
> put url ("binfile:files/sound.zip") into theFile
> put header "Content-Disposition: attachment; filename=" & quote &
> "sound.zip" & quote
> put new header "Content-Type: application/force-download"
> put new header "Content-Type: application/zip"
> put new header "Content-Type: application/octet-stream"
> put new header "Content-Type: application/download"
> put header "Content-Description: File Transfer"
> put header "Content-Length:" && the length of theFile
> put theFile
> 
> This appears to work fine from basic web page -- a download is
>>> triggered
> in the browser and the file is written to the drive.
> 
> When I run the same code on a page within an iframe, I get the raw
>>> file
> code posted to the iframe. :-(
> 
> All pages reside in the same domain (no cross domain issues) so I'm
>>> at a
> loss on how to deal with this.  Any ideas?
> 
> Thanks & Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> 
>> 
>> 
>> -- 
>> 
>> *Simon Smith*
>> *seo, online marketing, web develo

Re: Delivering Files with lcServer ?

2014-04-25 Thread Simon Smith
Hi Scott

Played around with it in LiveCode and got this works for me:





On Fri, Apr 25, 2014 at 8:38 AM, Scott Rossi  wrote:

> Thanks Simon.  This will likely do what I need.
>
> But I'd really like to know how to do this with lcserver.  That's the
> point, right?  Not to have to rely on PHP?  :-)
>
> What's the LC equivalent of what readfile() is doing below?
>
> Thanks & Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 4/24/14 11:03 PM, "Simon Smith"  wrote:
>
> >Hi Scott
> >
> >I have done something similar in php before, where a page loads, and then
> >the file starts downloading a few seconds later, without leaving the main
> >page.
> >
> >The main page contains a refresh tag that loads the script that starts the
> >download:
> >
> >
> >
> >and then the sendfile.php consists of:
> >
> > >header('Content-type: application/pdf');
> >header('Content-Disposition: attachment; filename="' .
> >basename('filename.pdf') . '"');
> >header('Content-Transfer-Encoding: binary');
> >readfile($filename);
> >?>
> >
> >Hope this helps.
> >Simon
> >
> >
> >On Fri, Apr 25, 2014 at 7:21 AM, Scott Rossi 
> >wrote:
> >
> >> Hi Peter:
> >>
> >> I started setting up a test page to demonstrate, and now I can't get
> >> anything to work, not even my single page test which worked a dozen
> >>times
> >> yesterday.  [sigh] Not sure what changed.
> >>
> >> At any rate, I've seen PHP examples that involve setting content headers
> >> to facilitate a file transfer, so I figured since lcserver operates
> >> similarly, it should be possible to initiate the download of a zipped
> >>file
> >> (or any file).
> >>
> >> Any examples out there that someone can point me to?
> >>
> >> Thanks & Regards,
> >>
> >> Scott Rossi
> >> Creative Director
> >> Tactile Media, UX/UI Design
> >>
> >>
> >>
> >>
> >> On 4/24/14 6:17 PM, "Peter W A Wood"  wrote:
> >>
> >> >Hi Scott
> >> >
> >> >What is the URL of the iframe? Does it include characters such as "?"
> >>or
> >> >"&" ?
> >> >
> >> >Regards
> >> >
> >> >Peter
> >> >
> >> >On 25 Apr 2014, at 08:29, Scott Rossi wrote:
> >> >
> >> >> Hello List:
> >> >>
> >> >> I'm hoping someone knowledgable about server stuff has a solution to
> >>a
> >> >> problem I have delivering a file using lcServer via an iframe.
> >> >>
> >> >> I'm using lcServer with the following code to trigger a file
> >>download:
> >> >>
> >> >> put url ("binfile:files/sound.zip") into theFile
> >> >> put header "Content-Disposition: attachment; filename=" & quote &
> >> >> "sound.zip" & quote
> >> >> put new header "Content-Type: application/force-download"
> >> >> put new header "Content-Type: application/zip"
> >> >> put new header "Content-Type: application/octet-stream"
> >> >> put new header "Content-Type: application/download"
> >> >> put header "Content-Description: File Transfer"
> >> >> put header "Content-Length:" && the length of theFile
> >> >> put theFile
> >> >>
> >> >> This appears to work fine from basic web page -- a download is
> >>triggered
> >> >> in the browser and the file is written to the drive.
> >> >>
> >> >> When I run the same code on a page within an iframe, I get the raw
> >>file
> >> >> code posted to the iframe. :-(
> >> >>
> >> >> All pages reside in the same domain (no cross domain issues) so I'm
> >>at a
> >> >> loss on how to deal with this.  Any ideas?
> >> >>
> >> >> Thanks & Regards,
> >> >>
> >> >> Scott Rossi
> >> >> Creative Director
> >> >> Tactile Media, UX/UI Design
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> ___
> >> >> use-livecode mailing list
> >> >> use-livecode@lists.runrev.com
> >> >> Please visit this url to subscribe, unsubscribe and manage your
> >> >>subscription preferences:
> >> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >> >
> >> >
> >> >___
> >> >use-livecode mailing list
> >> >use-livecode@lists.runrev.com
> >> >Please visit this url to subscribe, unsubscribe and manage your
> >> >subscription preferences:
> >> >http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> >
> >
> >
> >--
> >
> >*Simon Smith*
> >*seo, online marketing, web development*
> >
> >w. http://www.simonsmith.co
> >m. +27 83 306 7862
> >___
> >use-livecode mailing list
> >use-livecode@lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage yo