Connection failed..!

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Connection failed..!

Post by snop21 »

hi guys,

I have a problem of connecting my sample app on my Server online.

When I tested it with my Desktop it's working and also in android emulator but when I tested on my android tab problem occurred I can't connect.

I attached the sample script along with my credentials of my database since this is only for testing.

Thank you guys..

-snop21
Attachments
MyOnlinedatabase.livecode.zip
here's my script guys..
(4.22 KiB) Downloaded 296 times
bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Connection failed..!

Post by bangkok »

I'm afraid you hit the same problem you've had in january !

http://forums.runrev.com/viewtopic.php?f=53&t=18838&p
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Connection failed..!

Post by snop21 »

-bangkok

yah..! That's for LAN now is for Online Server.

-having a hard time for this one.. Not bad for a beginner to this PL.. :))

Hoping I can solve this soon of course with the help you guys here in the forum.

Regards

-snop21
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Connection failed..!

Post by Simon »

hee heee heee
You don't have "Internet" selected in your standalone setting :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Connection failed..!

Post by snop21 »

-Simon,

Olrights.. :)) Thank you..! I got it working..

I am connected now to my database..! But what's wrong with my code I can't insert data to it... :((

I double check it my code there's nothing's wrong with it but Can't insert.. :((
I attached it the stack..

-snop21
Attachments
MyOnlinedatabase.livecode.zip
Updated MyOnlineSample
(4.39 KiB) Downloaded 292 times
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Connection failed..!

Post by Klaus »

HI snop21,
snop21 wrote:I double check it my code there's nothing's wrong with it but Can't insert..
come on, BOTH button groups "connect" and "save" have the SAME (sic!) script,
which only connects to the database, so what did you exspect! 8)


Best

Klaus
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Connection failed..!

Post by snop21 »

Klaus,

never mind the connect button, I just place the connection script and the sql statement for insert to the save button.

regards

-snop21
snop21
Posts: 90
Joined: Mon Jan 20, 2014 2:54 pm

Re: Connection failed..!

Post by snop21 »

klaus,

I am sorry I think I attached the wrong file.. My bad..

here's the right one.

Thanks

-snop21
Attachments
myonlinesample.livecode.zip
the right file..
(3.93 KiB) Downloaded 307 times
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Connection failed..!

Post by Klaus »

I guessed :D

Sorry, don't have an Android device at hand.
No idea what is happening, works fine on desktop!?

You can add this line right after the "revexecute..." statement to get a clue (hopefully):
...
revexecute...
answer the result
...


Best

Klaus
Post Reply