|
Posted by shimmyshack on 05/09/07 19:09
On May 9, 7:50 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(shimmyshack)
>
> >if you wanted to just submit info you could indeed use get.
> ><script type="text.javascript" src="http://www.whereever.com/
> >ProcessTheData.php?A=Field1&B=Field2"></script>
> >that would do, stick it in the head and the data is sent to the
> >script.
> >ProcessTheData.php
> >should return the correct content-type for javascript.
> >header( 'Content-Type: text/x-javascript' );
>
> JFTR: There are registered MIME types for JavaScript:
>
> http://www.rfc-editor.org/rfc/rfc4329.txthttp://www.iana.org/assignments/media-types/application/
>
> Micha
whoops yeah 2 typos
header( 'Content-Type: application/x-javascript' );
(although I use x-, this is only because its the default on apache
2.2.x and why change the worlds most popular server to the "correct"
mimetype, I'll wait till they change it!)
also
<script type="text/javascript" ...
Navigation:
[Reply to this message]
|