The very basic reason why I as a customer might want a developer to adhere to such a draconian requirement is this: If something goes wrong, it's straightforward for me to remove references to the file or just rename the file, and the site should still generally work. If you allow some script kiddie to come in and fill the page with script tags haphazardly, then that can be a nuisance to maintain.
Regardless, all the registration for a given page should occur in one file and that file should be referenced/loaded in the head. Within the body of the page, you'll still need tags, but that markup CAN be very inobtrusive depending on your publishing method and the existence of pre-existing divs for the swfs to find. This particular requirement isn't the worst I've seen. :) Vincent On Fri, Feb 5, 2010 at 1:57 PM, X.Smalbil <[email protected]> wrote: > This is a typical case of: the customer isnt always right. Could you > explain why the customer wants this ? Why would they give such a specific > task for you to do ? Isnt there a way to > flip the side and re-do the side from scratch ? > > > > On Fri, Feb 5, 2010 at 10:49 PM, Vincent Polite < > [email protected]> wrote: > >> 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]<swfobject%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/swfobject?hl=en. >> > > > > -- > Universal Video Funk > www.VideoFunk.nl > t-foon / 053 851 3517 m-foon / 06 1753 1650 > e-mail / [email protected] > > -- > 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.
