Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: page/page.c
- Revision:
- 57:8fa31ff4e773
- Parent:
- 56:f6e814fe0159
- Child:
- 58:e5ab14ef6ea6
--- a/page/page.c Wed Mar 06 11:43:29 2019 +0000
+++ b/page/page.c Thu Mar 07 13:40:12 2019 +0000
@@ -127,19 +127,6 @@
HttpAddText("</span>");
HttpAddText ("</div>\r\n");
}
-void PageAddLabelledName(char* label, float labelwidth, char* name, char* suffix)
-{
- char text[100];
- HttpAddText("<div>");
- snprintf(text, sizeof(text), "<div style='width:%.1fem; display:inline-block;'>", labelwidth);
- HttpAddText(text);
- HttpAddText(label);
- HttpAddText("</div><span id='");
- HttpAddText(name);
- HttpAddText("'></span>");
- HttpAddText(suffix);
- HttpAddText("</div>\r\n");
-}
void PageAddLabelledOnOff(char* label, float labelwidth, int value)
{
if (value) PageAddLabelledValue(label, labelwidth, "On");
@@ -257,5 +244,13 @@
HttpAddText("</div>\r\n");
}
+void PageAddAjaxLabelled(float labelwidth, char* label, char* id, char* suffix)
+{
+ HttpAddText("<div>");
+ HttpAddF ("<div style='width:%.1fem; display:inline-block;'>%s</div>", labelwidth, label);
+ HttpAddText("<span id='"); HttpAddText(id); HttpAddText("'></span>");
+ HttpAddText(suffix);
+ HttpAddText("</div>\r\n");
+}