flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: More dog food
Date Mon, 21 Sep 2015 19:55:06 GMT
Actually, I copied the IInputParser.as file to the local package.  The
cross-compiler took care of creating the JS version (SO COOL!!!)  I will
check it in soon.

As expected, I am now hitting the CORS error:
XMLHttpRequest cannot load
https://apache-flex-dashboard.appspot.com/query?id=ahdzfmFwYWNoZS1mbGV4LWRhc2hib2FyZHIVCxIIQXBpUXVlcnkYgICAgICAgAoM&format=json.
No 'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'null' is therefore not allowed access.

I will try fixing the server to handle this.

Thanks,
Om

On Mon, Sep 21, 2015 at 12:40 PM, OmPrakash Muppirala <bigosmallm@gmail.com>
wrote:

> On Mon, Sep 21, 2015 at 9:12 AM, Alex Harui <aharui@adobe.com> wrote:
>
>>
>>
>> On 9/21/15, 4:26 AM, "omuppi1@gmail.com on behalf of OmPrakash Muppirala"
>> <omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:
>>
>> >I have checked in a new example, FlexWebsiteStatsViewer, which, as the
>> >README says:
>>
>> Sounds very cool.  Maybe we should integrate it with the project
>> dashboard?
>>
>>
> Absolutely.  I wanted to take this opportunity to see how easy it is to
> build a project from scratch.  But I am okay with merging this into the
> project dashboard.
>
>
>> >
>> >We have a very rich set of data in our flex.apache.org google analytics
>> >site.  Google Analytics exposes something called a SuperProxy, which
>> >essentially allows public access of the analytics data for the website
>> >without the need for a app id, token, etc.  This is good for us because
>> we
>> >can use this rich data without restrictions to build cool visualizations.
>> >We can even do real time data visualization.  I am open to ideas on how
>> >else we can use this data.
>>
>> Did you try running from http:// and not just file://?  I’m curious as to
>> how it works around browser cross-domain security.
>>
>
> We control the SuperProxy app on https://apache-flex-dashboard.appspot.com,
> so I went ahead and added a cross domain xml on the server.
> https://apache-flex-dashboard.appspot.com/crossdomain.xml
>
> It works fine when I run it from http://locahost and an internal remote
> server.  I can try putting it up in a secret page on flex.apache.org if
> we want test it for real.
>
> Once I get the javascript version building, I will see if it works by
> default.  If not, I believe I can set the Access-Control-Allow-Origin
> header to * for the server responses which would take care of CORS in the
> JS version.
>
>
>>
>> >
>> >Before I post links, there is one bug on the javascript side:
>> >
>>
>> >==========================================================================
>> >====
>> ><snip>
>> >using SWC: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64
>> >Bit)\sdks\FlexJS_0.5_nightly\frameworks\libs\Network.swc
>> >Could not find file for class:
>> >org.apache.flex.collections.parsers.IInputParser
>> >java.lang.RuntimeException: Unable to find JavaScript filePath for class:
>> >org.apache.flex.collections.parsers.IInputParser
>>
>> Please grep the output to see who wants IInputParser.  So far, none of our
>> examples needed one on the JS side.  Maybe we just need to add one.
>>
>
> I created a new JSON input parser here:
>
> https://github.com/apache/flex-asjs/blob/develop/examples/flexjs/FlexWebsiteStatsViewer/src/controllers/GAJSONInputParser.as
>
> I assumed that the IInputParser would be available because it works in
> other other examples.  Now I realize that we need to add it to the JS side.
>
>
> I still need to get my FlexJS build fixed before I can do that.  Perhaps
> you can add that file in the js version so that we can quickly test if the
> JS version works as well?
>
> Thanks,
> Om
>
>
>>
>> -Alex
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message