You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background: I'm looking at using timeglider in an open-source project that runs on top of salesforce.com, which means I'm stuck and/or blessed with following the way their platform runs. While on salesforce it's possible to have a "normal" ajax URL that returns a JSON string, it has extra overhead performance-wise and is a sperate "page" that has to have access granted for it, making this approach sub-optimal.
WIth that said, they have a very nice system that allows you to annotate a method and have it directly callable from within a page, e.g. the javascript String someJSON = myClass.getJSON(); would handle all the work of making the "AJAX" request, escaping it, etc. for me. However, I can't use this approach with timeglider as it required a URL to fetch data from, and doesn't seem to be able to directly accept a string or object to use as a data source. If this were possible it would make my life much easier, and in one use case would prevent the same data from being generated twice on the server side.
The text was updated successfully, but these errors were encountered:
You can use a data object rather than a URL for loading
into Timeglider: it just has to have the same properties the
JSON would have had. Try loading a data object that's
just like timeglider JSON into the "source" option for the
widget.
Out of curiosity, can you tell me more about the open source
project you're using? While I'm excited about integration with
Salesforce, Timeglider has a commercial/non-commercial license
structure. If you're doing something "non-commercial", it's free,
but there is a license fee for commercial use.
Email me directly about this, since it's not code/git
related: [email protected]
Background: I'm looking at using timeglider in an open-source project that
runs on top of salesforce.com, which means I'm stuck and/or blessed with
following the way their platform runs. While on salesforce it's possible to
have a "normal" ajax URL that returns a JSON string, it has extra overhead
performance-wise and is a sperate "page" that has to have access granted
for it, making this approach sub-optimal.
WIth that said, they have a very nice system that allows you to annotate a
method and have it directly callable from within a page, e.g. the
javascript String someJSON = myClass.getJSON(); would handle all the work
of making the "AJAX" request, escaping it, etc. for me. However, I can't
use this approach with timeglider as it required a URL to fetch data from,
and doesn't seem to be able to directly accept a string or object to use as
a data source. If this were possible it would make my life much easier, and
in one use case would prevent the same data from being generated twice on
the server side.
Reply to this email directly or view it on GitHub: #38
Background: I'm looking at using timeglider in an open-source project that runs on top of salesforce.com, which means I'm stuck and/or blessed with following the way their platform runs. While on salesforce it's possible to have a "normal" ajax URL that returns a JSON string, it has extra overhead performance-wise and is a sperate "page" that has to have access granted for it, making this approach sub-optimal.
WIth that said, they have a very nice system that allows you to annotate a method and have it directly callable from within a page, e.g. the javascript String someJSON = myClass.getJSON(); would handle all the work of making the "AJAX" request, escaping it, etc. for me. However, I can't use this approach with timeglider as it required a URL to fetch data from, and doesn't seem to be able to directly accept a string or object to use as a data source. If this were possible it would make my life much easier, and in one use case would prevent the same data from being generated twice on the server side.
The text was updated successfully, but these errors were encountered: