WebGUI
      Click here to register.
      
View Cart (0)
IRC banner

View All Tickets
Link and Javascript headers output in wrong place  (#3209)
Issue

Inside the position1_loop, I have an asset that is generating the following extra headers:

<link href="/extras/contextMenu/contextMenu.css" rel="stylesheet" type="text/css" />
<script src="/extras/contextMenu/contextMenu.js" type="text/javascript"></script> 

I do not have any extra headers nor is this code in any of my templates. From what I can tell, it is being inserted by the <tmpl_var content> variable inside the position1_loop.

I cannot replicate this behavior on the demo site. Turning on Debugging did not provide any additional information. I need to get to the root of this problem as it is making my site non-XHTML compliant.

Solution Summary
Comments
JT
0
7/24/2007 12:36 pm
This is not a bug, at least what you're reporting is not a bug. Not to say that some other bug somewhere didn't cause the problem you are reporting. What you have reported is that these tags end up being inlined into the body of your HTML. While that is syntactically incorrect for HTML, it isn't necessarily WebGUI's fault for doing it. The only way that stuff gets inlined like that is if something is out of whack for the order of operations. The easiest and most common of these is when a user uses the AssetProxy macro. Macros are not capable of sticking stuff into the head block. The reason for this is that macros don't get processed until the page is sent, and therefore the head block is already in your browser by the time the macro is processed. The AssetProxy macro does it's very best to position content outside of the normal display mechanisms, but ultimately it just can't do everything that an asset can
knowmad
0
7/24/2007 3:44 pm
This makes sense though I'd prefer a bit more feedback when headers are brought in via an AssetProxy and more control over whether they are added. I'll post an RFE for these features with more details.
Details
Ticket Status Closed  
Rating0.0 
Submitted Byknowmad 
Date Submitted2007-07-01 
Assigned To unassigned  
Date Assigned2008-10-12 
Assigned By 
Severity Cosmetic (misspelling, formatting problems)  
What's the bug in?  
WebGUI / WRE Version 7.3.18  
URLbugs/tracker/link-and-javascript-headers-output-in-wrong-place
Keywords
Ticket History