Do you have control over the pages where the scripts would be hosted on?
The issue that I am seeing is that you wouldn't be able to pass parameters
since your host/client won't allow scripts. Are you allowed to do something
like:
<script type="text/javascript"
src="javascripts/registerObject.php?id=V01&version=9.0.0"></script>
And then create a page (in this case registerObject.php) that takes
parameters and outputs the script that you need? Which in this case would
just be:
<?php
$id = $_REQUEST['id'];
$ver = $_REQUEST['version'];
$results = 'swfobject.registerObject("$id", "$ver");';
die($results);
?>
That would be one way of creating a dynamic script that was still based on
the include of an external file. This would be a brute force way of doing
it, I suppose. There are security issues and scalability issues in theory,
but that would work especially if they allow you to host the .php script
offsite. The language doesn't matter, just the idea that you are generating
a HTML page that outputs valid javascript.
Vincent
On Fri, Feb 5, 2010 at 11:55 AM, wilson <[email protected]> wrote:
> Hi, just read an article on this site that shows a solution
> for people who CANT load an external .js file. Is the opposite
> possible? I mean, on my side, i CANT register the swf object INTO my
> HTML page's headers. Client's requierements indicate that i cant have
> Javascript
> into the headers but only links TO .js files.
>
> So i cant use this in my page's headers:
>
> <script type="text/
> javascript">swfobject.registerObject("V01","9.0.0");</script>
>
> You see my problem?
>
> - - -
>
> Is there a workaround? Id guess one way would be to create as many
> .js files as i have .html pages and in each of these pages id call
> (know its not the right code):
>
> <script type="text/javascript"
> src="myFileThatRegistersTheActualSWFs.js"></script>
>
> If i am right assuming this, how to code that .js file?
>
> Thanks to all. I am RUSHED by my clients to solve that problem.
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en.