Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to influence the order of meta and script tags?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
MeBe  
View profile  
 More options Aug 2 2012, 9:00 am
From: MeBe <push0...@gmail.com>
Date: Thu, 2 Aug 2012 06:00:53 -0700 (PDT)
Local: Thurs, Aug 2 2012 9:00 am
Subject: How to influence the order of meta and script tags?

Hello,

My joomla (2.5) module contains the following code to add a meta tag and an ajax app to the site:

$doc =& JFactory::getDocument();
$doc->addCustomTag('<meta name="gwt:property" content="locale=en" />');
$doc->addScript(JURI::root(true).'/gwt/myapp.nocache.js');

The problem is, addCustomTag() (althoug it is called before addScript) adds the meta tag at the end of the head section (i.e. after the apps script tag), but the ajax app requires the meta tag to be defined before its "<script src..." tag.
How can I ensure the meta tag appears before the script tag in the output html's header?

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rouven Weßling  
View profile  
 More options Aug 2 2012, 3:11 pm
From: Rouven Weßling <m...@rouvenwessling.de>
Date: Thu, 2 Aug 2012 21:11:26 +0200
Local: Thurs, Aug 2 2012 3:11 pm
Subject: Re: [jgen] How to influence the order of meta and script tags?

You could add the script as a custom tag as well.

Rouven

On 02.08.2012, at 15:00, MeBe <push0...@gmail.com> wrote:

  smime.p7s
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
MeBe  
View profile  
 More options Aug 2 2012, 7:29 pm
From: MeBe <push0...@gmail.com>
Date: Thu, 2 Aug 2012 16:29:43 -0700 (PDT)
Local: Thurs, Aug 2 2012 7:29 pm
Subject: Re: [jgen] How to influence the order of meta and script tags?

A way too obvious solution :-)
Thank you very much!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »