Yeah, as much as I hate brute force stuff, as long as you are keeping a sane
naming convention for yourself, there's nothing wrong with what you are
doing.  The only kind of crappy bit is that you will also need to make sure
that the tags you are using in each javascript page match to your related
HTML page.  But, you'd have to do that anyway, so... /shrug.

Vincent

On Fri, Feb 5, 2010 at 1:48 PM, Vincent Polite <[email protected]
> wrote:

> Well truth be told the security issues would only be if you were not
> hosting it on the same site and cared as to whether or not someone could
> just surf to the web page and inject something bad into those variables.  I
> dunno, you're going to have to include those pages anyway.  Whether you do
> it as a script (which would be easier for me because of just the way I work)
> or brute force a bunch of individual files is up to you.  My way, you only
> have one file to maintain and you just pass different parameters.  Your way,
> you're maintaining a crap ton of javascript files.  Both will work fine.
> Either way you'll have to cut and paste some sort of custom code.  But as
> long as the file you link to just has the code that you would have between
> your script tags anyway, it should work fine.
>
> V
>
>
> On Fri, Feb 5, 2010 at 1:25 PM, wilson <[email protected]> wrote:
>
>> Hi, yes i have control over the pages, but i want to use as little
>> script possible. I have 100s of pages that contains 300+ swfs that
>> work fine except than (..) little thing that i HAVE TO comply:
>> -----  NO JAVASCRIPT UNLESS IT EXTERNAL .JS FILES -----
>>
>> So, bringing PHP to the rescue and adding security and scalability
>> issues arent very appealing, with all respect.
>>
>> Ive been suggested this. Instead of this:
>>
>> <script type="text/javascript" src="../../../scripts/swfobject.js"></
>> script>
>> <script type="text/javascript">swfobject.registerObject("V01",
>> "9.0.0");</script>
>>
>> Use this
>>
>> <script type="text/javascript" src="../../../scripts/swfobject.js"></
>> script>
>> <script type="text/javascript" src="page10swf.js"></script>
>>
>> and into that page10swf.js file, just copy this line (as many as
>> needed):
>>
>> swfobject.registerObject("V01", "9.0.0");
>> swfobject.registerObject("V02", "9.0.0");
>>
>> would that work?
>>
>> Thanks!
>>
>> --
>> 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.

Reply via email to