Giter Club home page Giter Club logo

ape_jsf's People

Contributors

ape-project avatar cpojer avatar efyx avatar lcharette avatar paraboul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ape_jsf's Issues

JSON Breaks on single quotes.

missing ) after argument list

...raw":"data","data":{"msg":"<span style="color: #800">I'm awesome!"}}]'

I am sending using php with the given example the line

"<span style=\"color: #800\">I'm awesome!</span>" 

Firefox "NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN: Illegal document.domain value"

Hi,

I've installed APE Server on my laptop and checked the installation by running Demos (Chat, Controller, Move, Shoutbox) and Check page on Google Chrome, and everything works fine.

But if I do the same tests on Firefox, it doesn't work and if I look at JS console, I always get the same error "NS_ERROR_DOM_BAD_DOCUMENT_DOMAIN: Illegal document.domain value"

For now, I'm testing APE locally (client and server on same computer), so :

  • I did not change ape.conf file
  • here is my Config.js file :

....................
/***

  • APE JSF Setup
    */

APE.Config.baseUrl = 'http://localhost/ape_jsf'; //APE JSF
APE.Config.domain = 'localhost';
APE.Config.server = 'localhost:6969'; //APE server URL

[...]

.....................

  • here is my /etc/hosts file :

....................
127.0.0.1 localhost
127.0.0.1 0.localhost
127.0.0.1 1.localhost
127.0.0.1 2.localhost
127.0.0.1 3.localhost
127.0.0.1 4.localhost
127.0.0.1 5.localhost
127.0.0.1 6.localhost
127.0.0.1 7.localhost
127.0.0.1 8.localhost
127.0.0.1 9.localhost
127.0.0.1 10.localhost
127.0.0.1 11.localhost
127.0.0.1 12.localhost
127.0.0.1 13.localhost
// I did not know where to stop subdomains ;-)

// The following lines are desirable for IPv6 capable hosts
[...]
....................

Tools/Check page gives following log :

...................
Running test : Init
Running test : Loading Client
Running test : Loading config
Config values are :

identifier : ape
init : true
frequency : 0
scripts : http://localhost/ape_jsf/Source/mootools-core.js,http://localhost/ape_jsf/Source/Core/APE.js,http://localhost/ape_jsf/Source/Core/Events.js,http://localhost/ape_jsf/Source/Core/Core.js,http://localhost/ape_jsf/Source/Pipe/Pipe.js,http://localhost/ape_jsf/Source/Pipe/PipeProxy.js,http://localhost/ape_jsf/Source/Pipe/PipeMulti.js,http://localhost/ape_jsf/Source/Pipe/PipeSingle.js,http://localhost/ape_jsf/Source/Request/Request.js,http://localhost/ape_jsf/Source/Request/Request.Stack.js,http://localhost/ape_jsf/Source/Request/Request.CycledStack.js,http://localhost/ape_jsf/Source/Transport/Transport.longPolling.js,http://localhost/ape_jsf/Source/Transport/Transport.SSE.js,http://localhost/ape_jsf/Source/Transport/Transport.XHRStreaming.js,http://localhost/ape_jsf/Source/Transport/Transport.JSONP.js,http://localhost/ape_jsf/Source/Transport/Transport.WebSocket.js,http://localhost/ape_jsf/Source/Core/Utility.js,http://localhost/ape_jsf/Source/Core/JSON.js
baseUrl : http://localhost/ape_jsf
domain : localhost
server : localhost:6969

Running test : Setting document.domain
Running test : Checking APE.Config.baseUrl
APE JSF Version 1.1
Running test : Contacting APE Server
domain = localhost
Running test : Contacting APE Server (adding frequency)
Running test : Initializing APE Client
Can't load APE JSF
Something went wrong. If you can't fix it by yourself post a message on the newsgroups with the output below or join our IRC channel

...............

Can someone please help me ? It seems I'm not the first one having this kind of issue but did not find any solution

Thanks,

Fred

Can't load APE JSF error, please help me out

Running test : Init
Running test : Loading Client
Running test : Loading config
Config values are :
identifier : ape
init : true
frequency : 0
scripts : http://example.com/ape-jsf/Source/mootools-core.js,http://example.com/ape-jsf/Source/Core/APE.js,http://example.com/ape-jsf/Source/Core/Events.js,http://example.com/ape-jsf/Source/Core/Core.js,http://example.com/ape-jsf/Source/Pipe/Pipe.js,http://example.com/ape-jsf/Source/Pipe/PipeProxy.js,http://example.com/ape-jsf/Source/Pipe/PipeMulti.js,http://example.com/ape-jsf/Source/Pipe/PipeSingle.js,http://example.com/ape-jsf/Source/Request/Request.js,http://example.com/ape-jsf/Source/Request/Request.Stack.js,http://example.com/ape-jsf/Source/Request/Request.CycledStack.js,http://example.com/ape-jsf/Source/Transport/Transport.longPolling.js,http://example.com/ape-jsf/Source/Transport/Transport.SSE.js,http://example.com/ape-jsf/Source/Transport/Transport.XHRStreaming.js,http://example.com/ape-jsf/Source/Transport/Transport.JSONP.js,http://example.com/ape-jsf/Source/Core/Utility.js,http://example.com/ape-jsf/Source/Core/JSON.js
baseUrl : http://example.com/ape-jsf
domain : example.com
server : ape.example.com:6969
Running test : Setting document.domain
Running test : Checking APE.Config.baseUrl
APE JSF Version 1.0
Running test : Contacting APE Server
domain = example.com
Running test : Contacting APE Server (adding frequency)
Running test : Initializing APE Client
Can't load APE JSF
Something went wrong. If you can't fix it by yourself post a message on the newsgroups with the output below or join our IRC channel

MooTools 1.3

I get "item.$family is not a function" if I try to run my project with 1.3 compat.

Has anyone yet started to port APE_JSF to MooTools 1.3 ?

'APE' is undefined error in Internet Explorer 7

Occasionally on IE7 a whole host of 'APE' is undefined errors are shown for the following libs:

Events.js
Core.js
Pipe.js
PipeProxy.js
PipeMulti.js
PipeSingle.js
Request.js
Request.Stack.js
Request.CycledStack.js
Transport.longPolling.js
Transport.SSE.js
Transport.XHRStreaming.js
Transport.JSONP.js

After which 'iframe.contentWindow.APE' is null or not an object is thrown (apeClientJS.js line 112).

wrong placing of script tag

in JavaScript.js, line #118 should be:

    var theHtml = '<html><head>';
    for (var i = 0; i < config.scripts.length; i++) {
        theHtml += '<script src="' + config.scripts[i] + '"></script>';
    }
    theHtml += '</head><body></body></html>';

Otherwise I get an error.

apeReconnect event doesn't work properly in Google Chrome

It seems that the bind to requestFail function in doRequest/send function in Transport Class passes different parameters to the executing function.
In Firefox and IE, the failStatus value is -2, and has the request object
In Google Chrome, the failStatus value is [-2, object], and does not have the request object

It seems when call the bind need to pass these parameters: (this.ape, [-2, this], this)
and in the Transport need to check the failStatus type before checking the value

multipart/x-mixed-replace with boundary

Hi

can i use this library to listen to a continuous response (multipart/x-mixed-replace with boundary) containing images?
i need to do a post with some parameters and the response is the one i described above (just so u know i am talking about the Google Open Spherical Camera API ... camera.getLivePreview is the command i need to execute)

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.