plainblack.com
Username Password
search
Bookmark and Share
Head tags for dataform form fields  (#10333)
Issue

I posted this as a bug:

Dataform in 7.6.21: the link, style and script tags are being added to the body of the html instead of the head section.

W/ wobject focus this problem appears consistently, but on a page it seems to happen on and off.

 

Colin suggested a solution (see the original bug report):

"Each Form element would have a method which returns a list of what files it uses (js, CSS, graphics, etc.). When the Dataform calls prepareView, it would find the form elements that it uses and set them into the head tags all at once.  This would get JS and CSS links into the HEAD section."

 

My request is to implement this (or some other solution) to prevent the head tags being added to the html body.

 

Thanks,

Rogier

Solution Summary
Comments
JT
0
5/14/2009 10:57 am
approved.

We could just render the form in the prepareView method and that would also solve this problem, and probably a lot easier than the suggested way.
JT
0
5/14/2009 10:57 am
I should say, render the form elements into template variables. Not render the template itself.
rogier
0
11/25/2009 2:53 am
I just ran into this bug again: http://www.webgui.org/use/bugs/tracker/11273

Will this RFE be adressed when building the new forms system in WG8?
perlDreamer
0
9/21/2010 4:25 pm
Changed the Form plugin system, and the DataForm so that SCRIPT and LINK tags can be put inside the HEAD tags.

Added to 7.10.1 (8750c4f48898b4e1a8f347237d52642c3f6869e4, is the last commit in the merge, there is no single commit that encapsulates the whole change).
Details
Ticket Status Resolved  
Rating0.0 
Submitted By rogier  
Date Submitted2009-05-06 
Assigned To unassigned  
Date Assigned 2019-05-20  
Assigned By  
What to improve? WebGUI 7 Stable  
URLrfe/request-for-enhancement/10333
Karma
Difficulty 4  
Karma So Far600
Karma Rank150.00
Keywords
Ticket History
9/21/2010
9:25 PM
Resolved perlDreamer
11/9/2009
8:44 AM
600 karma transfered rogier
5/14/2009
3:57 PM
Difficulty changed to 4 JT
5/6/2009
7:55 AM
Ticket created rogier
© 2019 Plain Black Corporation | All Rights Reserved