Posts: 7
Threads: 2
Joined: Apr 2018
Reputation:
0
Location: Spain
Hello
In a Delphi Intraweb application I use a TIWTemplateProcessorHTML with a html template as a workframe, but at runtime, the head section of my html is duplicated, hence runtime issues.
I've uploaded the html page created by Chrome.
What do I do wrong? Any ideea?
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Are you using master templates? Most of the times this is caused by issues on the html used as template... so I'd have to check your template do know
Posts: 7
Threads: 2
Joined: Apr 2018
Reputation:
0
Location: Spain
11-27-2019, 09:57 AM
(This post was last modified: 11-27-2019, 10:02 AM by radub .)
Yes, I use master templates and in all of them the head is duplicated. I've attach the template below and the code generated by Chrome at runtime.
Attached Files
webMainForm.html (Size: 6.49 KB / Downloads: 4)
view-source_127.0.0.1_8899_$_.html (Size: 9.5 KB / Downloads: 3)
Posts: 7
Threads: 2
Joined: Apr 2018
Reputation:
0
Location: Spain
11-27-2019, 12:49 PM
(This post was last modified: 11-27-2019, 12:50 PM by radub .)
I've put it and now it duplicates the body too; the head remains duplicated.
I've attached both files.
Attached Files
view-source_127.0.0.1_8899_$_.html (Size: 14.5 KB / Downloads: 0)
webMainForm.html (Size: 6.53 KB / Downloads: 2)
Posts: 288
Threads: 0
Joined: Mar 2018
Reputation:
29
Location: Franca-São Paulo-Brasil
Hi, i think you don't understand how IW works when using MasterTemplates. I rewrite your page. In your ServerController -> MasterTemplate := 'MASTER.html';
Attached Files
MASTER.html (Size: 1.55 KB / Downloads: 9)
webMainForm.html (Size: 5.01 KB / Downloads: 12)
Posts: 7
Threads: 2
Joined: Apr 2018
Reputation:
0
Location: Spain
Thank you a lot.
You were right.
It works now.