-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello i want to ask i have a question, i already tried to using jquery in zkoss for ajax what i want to do is i want to passing all parameter data from javascript to java i am already used jq.ajax(); but for url java i cannot reach it in zkoss giving result error like this "The requested resource is not available." can someone help me thanks in advance
Hi There, Welcome on the forum.
You can fire events directly from client-side (in JS) but that's usually an advanced for very specific customization use.
The good thing about ZK is that it usually handles client/server communication by itself. For example, if a user types in data in a textbox, selects an item in list or any general action, the client engine will fire the info to the server if you have declared the relevant listener in your java code.
You mentioned parameters, are you trying to retrieve URL params? those are already available in Java code from the context objects. see here.
What are you trying to send to the server exactly? I'm 99% sure that there should be a built-in solution that doesn't require customized ajax calls.
This said, if you really need to send an event from the client manually, here's how.
Asked: 2019-10-09 15:49:07 +0800
Seen: 23 times
Last updated: Oct 09 '19