revlet can't connect to the internet

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

revlet can't connect to the internet

Post by shadowslash » Mon Aug 02, 2010 3:27 am

Here's a simple code:

Code: Select all

answer url("http://google.com")
It works seamlessly on the desktop but once I compile it and run it as a revlet on any browser, all it does is show an empty answer box w/c I think means that it didn't access the internet. Area there any info as to how to get around this? Thank you for your kind answers!
Parañaque, Philippines
Image
Image

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revlet can't connect to the internet

Post by Mark » Mon Aug 02, 2010 3:26 pm

Dear shadowslash ,

On the Web tab in the standalone application settings, you will find a few checkboxes under the header "Secutiry Settings". I think you need to check the Network box.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: revlet can't connect to the internet

Post by shadowslash » Mon Aug 02, 2010 3:37 pm

Mark wrote:Dear shadowslash ,

On the Web tab in the standalone application settings, you will find a few checkboxes under the header "Secutiry Settings". I think you need to check the Network box.

Best,

Mark
I actually already tried checking all of the options out of desperation. xD
But that didn't help either, it still can't seem to connect to the internet.. =/
Parañaque, Philippines
Image
Image

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revlet can't connect to the internet

Post by Mark » Mon Aug 02, 2010 3:49 pm

Dear shadowslash,

Have you tried a different URL? Try your own website, double-check that the data is actually sent by your server.
Have you tried displaying a simple message in the answer dailog? Try "Hello World".
Are you sure that you have downloaded and installed the most recent version of the web plugin?

You can try to check the result after getting the URL:
put url "http://simple.domain.com/file.html" into myHtml
put the result into rslt
put myHtml & cr & rslt into myHtml
Don't use an answer dialog for this test. What do you get?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: revlet can't connect to the internet

Post by shadowslash » Mon Aug 02, 2010 4:11 pm

Mark wrote:Dear shadowslash,

Have you tried a different URL? Try your own website, double-check that the data is actually sent by your server.
Have you tried displaying a simple message in the answer dailog? Try "Hello World".
Are you sure that you have downloaded and installed the most recent version of the web plugin?

You can try to check the result after getting the URL:
put url "http://simple.domain.com/file.html" into myHtml
put the result into rslt
put myHtml & cr & rslt into myHtml
Don't use an answer dialog for this test. What do you get?

Best,

Mark
I tried that, answer dialog works fine with some few tests, nothing happened on the first button click to fetch the URL, a second click following the first one after 10 minutes of waiting returned the result "error Previous request not completed". It somehow just doesn't seem to connect or is being blocked. I tried a desktop compile and it ran smoothly without error. I also asked another friend of mine to try it out on his own machine and it returned the same end-result. I'm pretty sure proxy isn't setup as I checked all browsers and default system configuration for proxies. At first I thought that the proxy was causing trouble like my last problem but no it seems it's not. I can post a video recording of me attempting to try out the stack on Firefox with the latest RevWeb plugin. I'm pretty sure I've got the latest one because they haven't updated the revweb plugin in ages. I even re-checked the revweb website just to make sure. I can also post the source file of the revlet. Tell me if you need any more detail for this problem.
Parañaque, Philippines
Image
Image

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revlet can't connect to the internet

Post by Mark » Mon Aug 02, 2010 4:31 pm

shadowslash ,

Actually, with this kind of problems, you should always report your operating system...

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Contact:

Re: revlet can't connect to the internet

Post by shadowslash » Mon Aug 02, 2010 4:34 pm

Mark wrote:shadowslash ,

Actually, with this kind of problems, you should always report your operating system...

Best,

Mark
My operating system is Windows XP SP 2...
Parañaque, Philippines
Image
Image

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revlet can't connect to the internet

Post by Mark » Wed Aug 04, 2010 9:29 am

Shadowslash,

Did you quit and retart Revolution already? I guess you have, but I want to know for sure. You might want to try removing all custom plug-ins and make sure that you have a pristine copy of RunRev.

Could you post your entire mouseUp handler, containing aforementioned simple test?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

heatherlaine
Site Admin
Site Admin
Posts: 351
Joined: Thu Feb 23, 2006 7:59 pm

Re: revlet can't connect to the internet

Post by heatherlaine » Wed Sep 08, 2010 12:03 pm

Hi Mr ShadowSlash,

Could you contact me via the support@runrev.com email address? We are looking for a case study for our new website of younger persons using Rev and you would be ideal if you were willing to participate - let me know asap!

Regards,

Heather
Customer Services Manager
RunRev Ltd.

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: revlet can't connect to the internet

Post by AndyP » Wed Sep 08, 2010 9:22 pm

Hi ShadowSlash,

Yep, just tried this myself and i'm seeing the same...no result.

Also tried to retrieve header info. Ok in standalone no results in revlet.


Does anyone know if there is a list of what is and what is supported in a revlet?
Andy .... LC CLASSIC ROCKS!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revlet can't connect to the internet

Post by Mark » Fri Sep 10, 2010 1:21 am

Dear ShadowSlash and AnyP,

I did a test. My test showed that the put URL command works fine in a revlet on Windows XP. If you need more help, then you should post a complete script to demonstrate the problem.

AndyP, if you look at security section on the Web tab of the standalone settings window, you should get at least some idea of what is supported.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: revlet can't connect to the internet

Post by AndyP » Fri Sep 10, 2010 12:23 pm

Hi Mark,

So we are all doing the same test can you post your tested and working code please.

Also what version of Rev are you using?
Andy .... LC CLASSIC ROCKS!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: revlet can't connect to the internet

Post by Mark » Fri Sep 10, 2010 12:31 pm

AndyP,

I don't think that my script will help you much:

Code: Select all

on mouseUp
     put empty into fld 1
     put url "http://www.google.com" into myData
     put the result & cr & cr & myData into fld 1
end mouseUp
It just proves that it works. I used Rev 4.0 for this test, afaik it works fine with 4.5 as well. I believe you'd better post your script.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: revlet can't connect to the internet

Post by AndyP » Fri Sep 10, 2010 12:55 pm

Hi Mark,

Thanks.

Well now it gets interesting!

Using your code works in exe but not in revlet.

http://hdweb.co.uk/temp/test.html

I'm using Rev Ent V 4.5.0-dp-3

Going to try an older version next.

Also need to check my version of the browser plugin.
Andy .... LC CLASSIC ROCKS!

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: revlet can't connect to the internet - Solved -

Post by AndyP » Fri Sep 10, 2010 1:16 pm

---- SOLVED ----

Hi Mark,

Ok, rebuilt using 4.0.0

Now works as expected.

http://hdweb.co.uk/temp/test2.html

ShadowSlash -- What version of Rev are you using?
Andy .... LC CLASSIC ROCKS!

Post Reply