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:
meta http-equiv=refresh
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
Hi Scott
Played around with it in LiveCode and got this works for me:
?lc
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
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
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?
http://fourthworld.net/channels/lc/lc-tools.png
Is that all?!?
___
use-livecode mailing list
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
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:
html
a href=webtest.lcclick here/a
/html
and here is the LiveCode server page (webtest.lc)
?lc
put
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:
?lc
if number of
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:
html a href=webtest.lcclick here/a /html
and here is
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 jac...@hyperactivesw.com 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
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 david.bov...@gmail.com 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
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.
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 nakia.bre...@westrac.com.au 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
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
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
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
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,
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
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,
Looks good here, thank you
On Apr 25, 2014, at 11:06 AM, Benjamin Beaumont b...@runrev.com 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
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 :
script type=text/javascript
var priogesture = 1,
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 in...@kenjikojima.com wrote:
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
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
On Thu, Apr 24, 2014 at 3:51 PM, Rodney Green green.rod...@gmail.comwrote:
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
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:
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
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
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
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,
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.
31 matches
Mail list logo