Do you have a JSP page rendering the javascript?
Then you can do:
var url = '<hst:resourceURL resourceId="..." />';
Woonsan
On 1/23/15 8:38 AM, nidhi chawhan wrote:
> Hi Woonsan,
> I need to send the few parameters in ajax call .
> I am not able understand the how i will create url in client side
>
> could please tell me
>
> Thanks,
> Nidhi
>
> On Fri, Jan 23, 2015 at 2:15 PM, Woonsan Ko <
w....@onehippo.com
> <mailto:
w....@onehippo.com>> wrote:
>
> Hi Nidhi,
>
> If you use form submit in html form, then you should use
> <hst:actionURL/> in the action attribute of the form. And you can read
> the parameters (HstRequest#getParameter(paramName)) in #doAction()
> method in your component.
>
> If you use AJAX submit in javascript instead, then you should use
> <hst:resourceURL resourceId="..."/> with resource template (servlet or
> jsp or whatever servlet-based one). See the following for detail:
> -
>
http://hippo.2275632.n2.nabble.com/ajax-support-HST-tp6711150p6757288.html
>
> Regards,
>
> Woonsan
>
> On 1/23/15 7:37 AM,
nidhi....@gmail.com
> <mailto:
nidhi....@gmail.com> wrote:
> > Hi Team,
> >
> > I want to send few parameters from my jsp to component class.
> > how i can do that?
> >
> > With POST call in jquery ??
> >
> > Help!!!
> >
> >
> > Thanks,
> > Nidhi
> >
> > --
> > Hippo Community Group: The place for all discussions and announcements
> > about Hippo CMS (and HST, repository etc. etc.)
> >
> > To post to this group, send email to
hippo-c...@googlegroups.com
> <mailto:
hippo-c...@googlegroups.com>
> <mailto:
hippo-community%2Bunsu...@googlegroups.com>
> > <mailto:
hippo-communi...@googlegroups.com
> <mailto:
hippo-community%2Bunsu...@googlegroups.com>>.
>
w....@onehippo.com <mailto:
w....@onehippo.com>
www.onehippo.com
> <
http://www.onehippo.com>
> Boston - 745 Atlantic Ave, 8th Floor, Boston MA 02111
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> US
+1 877 414 4776 <tel:%2B1%20877%20414%204776> (toll free)
> Europe
+31(0)20 522 4466 <tel:%2B31%280%2920%20522%204466>
>
> --
> Hippo Community Group: The place for all discussions and
> announcements about Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to
>
hippo-c...@googlegroups.com
> <mailto:
hippo-c...@googlegroups.com>
> <mailto:
hippo-community%2Bunsu...@googlegroups.com>.