This application is not used any more and exists only for history. Post new tickets on the Github account.
Cette application n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #792 (confirmed enhancement)

Opened 6 years ago

Last modified 3 years ago

AJAX response: warn about functions not supported in tpl plugins, like addJSLink

Reported by: bibo Owned by: laurentj
Priority: low Milestone:
Component: jelix:core response Version: trunk
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

addJSLink is a good candidate. It is supported only in response html and not for json, or htmlfragment response.

Upon such cases, we could raise a warning (in developper edition) to remind adding the JS manually in the response where an AJAX call was initiated.

Change History

comment:1 Changed 6 years ago by bibo

  • Summary changed from AJAX resposne: warn about functions not supported in tpl plugins, like addJSLink to AJAX response: warn about functions not supported in tpl plugins, like addJSLink

comment:2 Changed 6 years ago by laurentj

  • Owner set to laurentj
  • Priority changed from normal to low
  • Component changed from jelix to jelix:core response
  • Severity changed from normal to minor

comment:3 Changed 3 years ago by flav

I suggest you to see here : http://unixpapa.com/js/dyna.html The question is : Is it possible to make addJSLink support for json and htmlfragment response with a dynamic script loading method? And is it can be W3C valid?

My limited javascript experience does not enable me to bring good responses.

comment:4 Changed 3 years ago by laurentj

  • Status changed from new to confirmed
Note: See TracTickets for help on using tickets.