• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a javascript callback?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a javascript callback?


  • Subject: Re: Creating a javascript callback?
  • From: James Cicenia <email@hidden>
  • Date: Fri, 22 Jun 2012 19:08:16 -0500

I think this might work, though it doesn't yet for me.

I put in the wod as per the docs:

XMLProxy : AjaxProxy {
proxyName = "wopage";
name = "jsonrpc";
} 

then in the html I put the following line at the top:

<webobject name="XMLProxy" />


When I render the page it doesn't seem to add anything?

Then in the Sencha _javascript_ I have:

  proxy: {

                type: 'ajax',

                url: 'jsonrpc.wpage.dataSetQ4',



The parent component has  a method that returns a string (xml) named dataSetQ4()

Anything obvious? dataSetQ4 never gets called.

Thanks


On Jun 22, 2012, at 6:26 PM, Ramsey Gurley wrote:

AjaxProxy maybe?

On Jun 22, 2012, at 4:12 PM, James Cicenia wrote:

I have some old charting components I am looking to upgrade so Sencha.

As such, I need to supply the sencha _javascript_ with a URL to the XML file.

My old components already have the logic that creates the xml. 
So what is the best way to tie the old and new together?

It would have to take into account security and session state.

Is there some ajax call back magic in wonder?

Thanks
James

Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Creating a javascript callback?
      • From: Ramsey Gurley <email@hidden>
References: 
 >Creating a javascript callback? (From: James Cicenia <email@hidden>)
 >Re: Creating a javascript callback? (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: Creating a javascript callback?
  • Next by Date: Re: Creating a javascript callback?
  • Previous by thread: Re: Creating a javascript callback?
  • Next by thread: Re: Creating a javascript callback?
  • Index(es):
    • Date
    • Thread