ePages 6.14.0 - DE_EPAGES/RemoteSearch/UI/SuggestProxy.pm

Package DE_EPAGES::RemoteSearch::UI::SuggestProxy

Redirect AJAX request to epages-j search service. This ViewAction is a fallback for installations without reverse proxy setup

Base
DE_EPAGES::Presentation::UI::JSON

Functions

SuggestProducts

SuggestProducts

Send suggest request to epages-j and return answer as JSON string. If parameter 'callback' is set answer will be JSONP with your callback value.

Syntax
my $JSON = SuggestProducts( $Servlet );
Input
$Servlet (object)
Current Servlet
Return
$JSON or $JSONP (String)
return JSON answer, if parameter 'callback' is set
answer in JSONP format