phocoa icon indicating copy to clipboard operation
phocoa copied to clipboard

WFYAHOO_widget_PhocoaDialog

Open SwissalpS opened this issue 15 years ago • 5 comments

I've got a WFYAHOO_widget_PhocoaDialog set up as it is in the examples/ajax/container as a child I have a WFModuleView with it's targetRootModule property set to false

now when I set the invocationPath statically it works. but when I bind invocationPath with ValuePattern (resulting in the same path as when I set statically, I've tested this with a WFLabel and the wf.log shows the same final value) I get an error: Problem submitting XHR request.

SwissalpS avatar Aug 10 '10 12:08 SwissalpS

the same error msg is shown when I set the invocationPath from the module using $page->outlet('WFModuleViewName')->setValueForKey('the/invocation/path', 'invocationPath');

SwissalpS avatar Aug 10 '10 13:08 SwissalpS

Is the page online somewhere for me to see? Hard to say what's going on without seeing it in action.

apinstein avatar Aug 10 '10 13:08 apinstein

have responded to your .me email account

SwissalpS avatar Aug 10 '10 14:08 SwissalpS

I can hardly believe my eyes: ValuePattern : bridge/media/%1% works but ValuePattern: /bridge/media/%1% will throw the error. LEADING '/' IS BAD at least in this case

SwissalpS avatar Aug 10 '10 19:08 SwissalpS

Ah actually that makes sense. Invocation Paths don't have leading /. Only URLs do. The difference is subtle.

I actually did think about that but I couldn't figure out why it was failing before even loading the XHR... glad you found it!

apinstein avatar Aug 10 '10 20:08 apinstein