Author Topic: about html  (Read 4810 times)

zclan

  • Guest
about html
« on: April 17, 2012, 10:45:14 pm »
Hi,
    How can I show my html page in my app? Does anybody have some ideas?
Thanks

nednones

  • Guest
Re: about html
« Reply #1 on: April 18, 2012, 01:33:00 am »
Currently you can only display text/images via the Netsend function which you'll have to do some clever processing to ensure images and text are received and correctly displayed. I think, in the next release by DFSDK there may a browser functionality because if you look in the DFSDK header file it has browseradd and browser navigation so I'm not sure if they are implementing HTML support

zclan

  • Guest
Re: about html
« Reply #2 on: April 18, 2012, 02:24:33 am »
Thanks a lot :)

martol1ni

  • Guest
Re: about html
« Reply #3 on: April 18, 2012, 08:56:15 am »
I am not 100% sure on this, but BrowserLaunh works? It just doesn't implement it in your app, it opens up your safaribrowser, and displays it there. But I am guessing that wouldn't be enough? Are you trying to get information from the website?

budershank

  • Guest
Re: about html
« Reply #4 on: April 18, 2012, 09:06:40 am »
I am not 100% sure on this, but BrowserLaunh works? It just doesn't implement it in your app, it opens up your safaribrowser, and displays it there.

It does.  I use it quite a bit but yeah,  it won't pull data back into your app.

martol1ni

  • Guest
Re: about html
« Reply #5 on: April 18, 2012, 09:19:32 am »
That is true.. For that, you have to use NetSend, which works very good. The only bad thing that you can't see whether it reached the url or not. At least I haven't found a way. That is easier with xcode/ASIHTTPRequest, but other than that, NetSend does the trick.


Seldon

  • Guest
Re: about html
« Reply #6 on: April 21, 2012, 03:33:18 pm »
@nednones: can you show a sample of how to get and display an image with NetSend() ? Thank you !

korn3l

  • Guest
Re: about html
« Reply #7 on: April 26, 2012, 12:42:54 pm »
Download Images in your Documents Folder is quite easy:

Code: [Select]
  NetSend("http://your-url.com/Image.PNG", OnResponse);
Code: [Select]
int OnResponse(int event, char *response, int length)

{
response[length]=0;

int file;
file=FileCreate("myimage.png");

FileWrite(file,response,length);
FileClose(file);

  return event;

}

Air-dog

  • Guest
Re: about html
« Reply #8 on: May 18, 2012, 10:13:30 am »
Currently you can only display text/images via the Netsend function which you'll have to do some clever processing to ensure images and text are received and correctly displayed. I think, in the next release by DFSDK there may a browser functionality because if you look in the DFSDK header file it has browseradd and browser navigation so I'm not sure if they are implementing HTML support

Hi, has anybody heard any more news on the ability to add HTML pages into an App? This would be an absolute life saver for a project I'm currently working on.

tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: about html
« Reply #9 on: May 21, 2012, 01:21:55 pm »
If you need HTML pages, why not consider UmbrellaSDK, our sister product?  It's 100% HTML5 compatible development for mobile devices...

http://www.umbrellasdk.com
Tim Sommers
DragonFireSDK Team

stuckerj

  • Guest
Re: about html
« Reply #10 on: May 28, 2012, 01:09:48 pm »
Interesting...!  Does Umbrella SDK work on Windows Phone too?  I see iOS and Android listed...

chris

  • Guest
Re: about html
« Reply #11 on: May 28, 2012, 07:56:00 pm »
UmbrellaSDK does not support Windows Phone -- it does support iOS, Android, and the Chrome Web Store.