NETWEBEND on iOS

Previous topic - Next topic

Neurox

Hi,
I've a strange error with NETWEBEND function.

Code (glbasic) Select
NETWEBEND "file://"+Cartella$+"test.html"

and this is a debug result under iPhone :
Code (glbasic) Select
exiting with url file://private/var/mobile/Applications/594A6FC3-CC13-4855-B9F4-D5BB60C8597B/testprint.app/Media/test.html
Ignore the bad exec that will come now ;)


but under windows xp the app run the browser.

Bye bye,
Neurox
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

MrTAToad

Its quite possible that iOS won't/can't deal with file://

spicypixel

Code (glbasic) Select
file://refers to a local file so I'm guessing it's a read access issue.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Neurox

Obviously I tested without FILE:// with same result :(
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

spicypixel

I wonder if saving the file out from within your app to PLATFORMINFO documents by using WRITELINE or WRITESTR 1, text$ + "\n" would then allow you to view it using NETWEBEND. You don't even need to worry about all the headers if you want to test it just save out a file with the .htm extension and then see if NETWEBEND will view it. Worth a shot ?
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Neurox

I've wrote a HTML file with WRITESTR and saved in PLATFORMINFO$(DOCUMENT).
But I received the same error :  "Ignore the bad exec that will come now"  :(

Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

It's like this, I think:
You write the local file to the documents directory of your app. the webbbrowser gets started, but it can't access this file, because it's in another app and has no read-rights for your apps directories.

There is a way to make a html-viewer in a button (code on forums, just search).

Another way would be to write the file to a place where you can read and write from any app. But Apple will surely disapprove this app, then.

Neurox

Code (glbasic) Select
There is a way to make a html-viewer in a button (code on forums, just search).

I've just tested it but the call window.print() not function!
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

Haaaaaa!!!!
it must be "file://" plus the path, thus 3x "/":
If it's not working try this path:
"file:///var/mobile/Media/pdf/myout.html"

Neurox

Sorry Gernot,
but not function  :'(
:giveup:  :'(
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it

Kitty Hello

Trucidare yesterday mentioned he will look into it and provide a working example.

Neurox

Quote from: Kitty Hello on 2011-Oct-19
Trucidare yesterday mentioned he will look into it and provide a working example.

This is a good news  =D
Paolo Borzini | paolo@borzini.it
The WhiteFly Software | www.thewhitefly.it
Service on line for screen printers | www.4pellicole.it