Skip to main content

Call XmlHttpProxy from my javascript client

2 replies [Last post]
metalrabby
Offline
Joined: 2008-03-18
Points: 0

Hi,
I want to call XmlHttpProxy from my javascript client, for instance from a jsp page, using jmaki.doAjax method call, but my page doesn't recognize jmaki objects, while from glue.js I can call jmaki methods. Is there a namespace I should insert in my test.jsp so that my page can see jmaki objects? Or should I edit some configuration file in my web application?

thanks in advance

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bakarirum
Offline
Joined: 2005-07-07
Points: 0

When you import a jMaki widget into your source, you will notice the rendered page will also import the jmaki.js (on older versions of jMaki) or jmaki-min.js (on newer versions). This is what I noticed when I was looking to use the same method call you described without using any jmaki widgets. So in the head of your document, just include the */resources/jmaki.js or */resources/jmaki-min.js file. As a quick rule of thumb, if you have the jmaki-min.js file use it else use jmaki.js. This should handle the scenario no matter which version of jmaki you are using. This should give you access to the jmaki object which contains the doAjax call. Example import below...



...

...

...


]]>

HTH

Marc

metalrabby
Offline
Joined: 2008-03-18
Points: 0

it works!!
thank you, bakarirum!
[for my version i found jmaki.js file in /resources]