diff options
| author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-29 17:41:38 +0000 |
|---|---|---|
| committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2007-07-29 17:41:38 +0000 |
| commit | 6bd91ddffe86ebeb10420f05a232f8e779eaf86d (patch) | |
| tree | 09fe2c9617c08799e2689afa2fc9d0366bd16ff9 /pages/xmlresponse.ecpp | |
| parent | c6754ca96830f5034ca56a4ca2987df4c50375db (diff) | |
| download | vdr-plugin-live-6bd91ddffe86ebeb10420f05a232f8e779eaf86d.tar.gz vdr-plugin-live-6bd91ddffe86ebeb10420f05a232f8e779eaf86d.tar.bz2 | |
- Made vdr ajax requests work also via a static page. This is for
browsers that don't support javascript (e.g. PDA browsers)
- Implemented for AJAX request a visual notification how requested action
performed.
- Adapted styles for this.
- Moded images for rounded boxes (formerly tip-hint-??.png) to central
image directory and renamed them according to their color. This
makes them reusable in different themes.
- Adapted themes to this move.
Diffstat (limited to 'pages/xmlresponse.ecpp')
| -rw-r--r-- | pages/xmlresponse.ecpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pages/xmlresponse.ecpp b/pages/xmlresponse.ecpp index 54fe088..4bca87f 100644 --- a/pages/xmlresponse.ecpp +++ b/pages/xmlresponse.ecpp @@ -3,6 +3,10 @@ #include "i18n.h" using namespace std; +using namespace vdrlive; + +string const XMLHEADER = "<?xml version=\"1.0\" encoding=\"" + LiveI18n().CharacterEncoding() + "\"?>"; + </%pre> <# ------------------------------------------------------------------------- #> @@ -15,7 +19,7 @@ using namespace std; bool result; string error; </%args> -<?xml version="1.0" encoding="<$ LiveI18n().CharacterEncoding() $>"?> +<$$ XMLHEADER $> <service> <request name="<$ name $>"> <param name="<$ pname $>"><$ value $></param> @@ -39,7 +43,7 @@ using namespace std; string prev_chan; string next_chan; </%args> -<?xml version="1.0" encoding="ISO-8859-1"?> +<$$ XMLHEADER $> <service> <request name="ibox"> <param name="update"><$ update $></param> |
