You are here: Foswiki>Tasks Web>Item12902 (05 Jul 2015, GeorgeClark)Edit Attach

Item12902: The JQueryAjaxHelper Query fetcher section is broken

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Extension
Component: JQueryPlugin
Branches: trunk
Reported By: JohnHart
Waiting For:
Last Change By: GeorgeClark
The Server portion of the Query Fetcher section of the JQueryAjaxHelper topic needs to handle the topic parameter to be able to query on topics other than the JQueryAjaxHelper... (e.g. the example is only capable of returning metadata values of JQueryAjaxHelper).

-- JohnHart - 19 May 2014

Could you be more specific, e.g. by providing the url of the REST call?

Try on http://trunk.foswiki.org/System/JQueryAjaxHelper to see whether the behavior still exists in the upcoming JQueryPlugin.

-- MichaelDaum - 20 May 2014

It seems a fairly small issue actually - looking at the following topic source:

Line 288 references:
 ... /JQueryAjaxHelper?section=query;topic=%SOURCE%; ...

Which is processed by lines 305-308:
 %STARTSECTION{"query"}%<noautolink>%QUERY{ 
   "%URLPARAM{"query" default="query missing"}%" 
   style="json" 
 }%</noautolink>%ENDSECTION{"query"}% 

Lines 305-308 do not process the topic parameter... the topic parameter simply needs to be added to the code --- my guess is that the example works because the QUERY assumes the current topic but if you try to use the System/JQueryAjaxHelper as a library (aka passing a topic parameter to perform the query) this code doesn't work... for my personal use, I've built my own version of the basic logic shown here - but since the System/JQueryAjaxHelper topic claims to be a library it makes sense to update this --- I would have made the change myself, but I'm still very new to FOSWiki and am unfamilar with the contribution process (e.g. social customs and trust)...

P.S. I cannot log into the development branch to check the link you included above

Thanks; JohnHart - 22 May 2014

Hi John

If you would like to contribute directly to the foswiki project, you can request subversion access at RequestAccessToSubversion

Regarding the trunk link, The Username / Password you registered with on foswiki.org should also work at http://trunk.foswiki.org/ The two sites share the same password file.

-- GeorgeClark - 07 Jun 2014

Actually the current topic is set using the topic parameter. However, as soon as that happens, the section isn't found anymore. So the parameter should be named differently, not topic. Better is source as documented.

-- MichaelDaum - 17 Jun 2014
 

ItemTemplate edit

Summary The JQueryAjaxHelper Query fetcher section is broken
ReportedBy JohnHart
Codebase 1.1.9
SVN Range
AppliesTo Extension
Component JQueryPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:ee6157b320a6
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches trunk
trunkCheckins distro:ee6157b320a6
Release01x01Checkins
Topic revision: r9 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy