Can anyone point me as to where I set the "Content-Type" within my form so that I can change it from "Content-Type: text/plain" to "Content-Type: application/javascript".
My maps don't work when running under Google Chrome (they work under Firefox and I.E) but and from what I can tell with my limited knowledge on this the "Content- Type" passed in is incorrect and Chrome is more fussy than the other two browsers
using Google maps within an Ebase form
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 201
- Joined: Fri Dec 20, 2013 1:29 pm
- Location: Dartford Borough Council
- Contact:
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Neil,
If the Javascript scripts have been added via the Ebase Designer, the content type should have been set automatically to the default "text/javascript". The way this is configured depends on whether it's internal or external Javascript:
internal: it's a property of the Client Script - open it in the designer and click the content type icon on the toolbar.
external: it's configured at the point where the Javascript script is added as a web resource - this can be at template, form or page level. In this dialog you will see a content type field.
In both cases the content type ends up as the "type" attribute on the <script> tag in the browser e.g.
<script src="javascript/jquery-1.6.4.min.js" type="text/javascript" language="javascript"></script>
If you add Javascript via the Html++ facility or in some other way, you should make sure the <script> tag looks like this example.
Regards
Jon
If the Javascript scripts have been added via the Ebase Designer, the content type should have been set automatically to the default "text/javascript". The way this is configured depends on whether it's internal or external Javascript:
internal: it's a property of the Client Script - open it in the designer and click the content type icon on the toolbar.
external: it's configured at the point where the Javascript script is added as a web resource - this can be at template, form or page level. In this dialog you will see a content type field.
In both cases the content type ends up as the "type" attribute on the <script> tag in the browser e.g.
<script src="javascript/jquery-1.6.4.min.js" type="text/javascript" language="javascript"></script>
If you add Javascript via the Html++ facility or in some other way, you should make sure the <script> tag looks like this example.
Regards
Jon
0 x
Who is online
Users browsing this forum: No registered users and 26 guests