Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 20 of 26 total
Thread Help with basic
Tue, Mar 1 2016 1:41 PMPermanent Link

Riaz

Hi, Raul

the ewbsrvr is running on my spare pc with the database on the same pc

i have enable the "Enable Cross-Origin Resource Sharing"

i had problem last time when you helped me and Tim wrote
"Riaz,

<< i have a problem with the following error

Error: Dataset load response error ( cannot connect to server)

this works ok http://epos4u.4irc.com:6005/datasets?method=rows&dataset=butts >>

It's a bug in the cross-origin resource handling for the datasets.  A fix will be in 2.02 B5.

Tim Young
Elevate Software
www.elevatesoft.com"

Riaz
Wed, Mar 2 2016 9:19 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Riaz,

<< the ewbsrvr is running on my spare pc with the database on the same pc >>

How are you running the actual EWB application ?  In other words, which web server is serving up the HTML and JS for the EWB application ?  That's what determines what the origin (protocol/domain/port) is for the application.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Mar 2 2016 10:24 AMPermanent Link

Riaz

Hi Tim,

i am uploading the html file to my hosting company who host my website

link here  http://epos2go.com/butts.html

Many thanks,
Riaz



Tim Young [Elevate Software] wrote:

Riaz,

<< the ewbsrvr is running on my spare pc with the database on the same pc >>

How are you running the actual EWB application ?  In other words, which web server is serving up the HTML and JS for the EWB application ?  That's what determines what the origin (protocol/domain/port) is for the application.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Mar 2 2016 11:30 AMPermanent Link

Raul

Team Elevate Team Elevate

On 3/2/2016 10:24 AM, Riaz wrote:
> i am uploading the html file to my hosting company who host my website
> link here  http://epos2go.com/butts.html

Riaz,

So your setup looks like this :

EWB app : http://epos2go.com/butts.html
DATA (using EWB Web Server) : http://epos4u.4irc.com:6005

I did a quick trace of the HTTP traffic and this is what i see :

- The initial data load from server works OK (data is returned in JSON
and loaded into grid) so to me at least it looks like the CORS headers
are all setup correctly.

IN fact checking the response headers i'm seeing it as
"Access-Control-Allow-Origin: http://epos2go.com"

When doing the edit  the payload being posted appears to be blank "{
"operations": [ ] }".

EWB Web Server does respond with 200 but now the CORS headers are
duplicated : "Access-Control-Allow-Origin: http://epos2go.com,
http://epos2go.com"). Full response header :

HTTP/1.1 200
Date: Wed, 2 Mar 2016 16:14:47 GMT
From: sch@epos4u.com
Server: Elevate Web Builder Web Server
Connection: Keep-Alive
Access-Control-Allow-Origin: http://epos2go.com, http://epos2go.com
Cache-Control: no-cache
Content-Type: text/plain
Content-Length: 0

There is no data returned.

The error does popup here also : "Error: Database commit response error
(Cannot connect to server)    Line:1"

I think we need Tim to take a closer look as it's a simple CORS issue IMHO.

Raul
Wed, Mar 2 2016 11:31 AMPermanent Link

Raul

Team Elevate Team Elevate

On 3/2/2016 11:30 AM, Raul wrote:
> I think we need Tim to take a closer look as it's a simple CORS issue IMHO.

Correction - i meant "we need Tim to take a closer look as it's NOT a
simple CORS issue IMHO".

Raul
Wed, Mar 2 2016 12:02 PMPermanent Link

Riaz

Raul wrote:

On 3/2/2016 11:30 AM, Raul wrote:
> I think we need Tim to take a closer look as it's a simple CORS issue IMHO.

Correction - i meant "we need Tim to take a closer look as it's NOT a
simple CORS issue IMHO".

Raul

Thank you Raul, i think you are correct, i have been going around in circles for weeks lol

hope Tim can shed some light on this

Riaz
Thu, Mar 3 2016 9:00 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Riaz,

<< Thank you Raul, i think you are correct, i have been going around in circles for weeks lol >>

Are you using an EWB Web Server module with this, or is this just a straight-up dataset that is defined on the EWB Web Server ?

If it's a module, please send me the source code that you're using.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Mar 3 2016 9:06 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Riaz,

Also, please send me the EWB client application source code, and I'll take a look and see what the issue is.  As Raul indicated, you're not sending over any data during the commit, so I suspect that you've got a coding error in the client application.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Mar 3 2016 9:08 AMPermanent Link

Riaz

Tim Young [Elevate Software] wrote:

Riaz,

Also, please send me the EWB client application source code, and I'll take a look and see what the issue is.  As Raul indicated, you're not sending over any data during the commit, so I suspect that you've got a coding error in the client application.

Tim Young
Elevate Software
www.elevatesoft.com


attached, thanks you



Attachments: menutest.zip
Fri, Mar 4 2016 9:39 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Riaz,

Thanks.  I forgot one thing, though:  I need your DBISAM table also.

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 3Next Page »
Jump to Page:  1 2 3
Image