|
-
Jan 1st, 2010, 03:22 AM
#17
Re: Minimizing Javascript use
 Originally Posted by kows
... except that won't load anything in IE. you need to have the <param> tag present with the 'movie' attribute defined to let IE know what is being loaded; otherwise, you're telling it you have an object to load and then you never get around to telling it what to put inside of that object.
HTML Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="550" height="400" id="Untitled-1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="Untitled-1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
</object>
</noscript>
Looking at that code you there is no javascript involved if whoever need to include the javascript code in browser for whatever reason it was why don't Microsoft, etc just include the javascript code in their browsers?
why are you even doing any of this?
To see if it is possible to do create websites like I have been doing except without using javascript.
 Originally Posted by Pradeep1210
Each has its own role to play, and you should make full use of both.
Use javascript for simple tasks that don't have any security risk but spice up the user browsing experience. e.g. appearence related things, etc. Always put fallback code too. Never assume that your javascript code will always succeed, as you have no control over it.
Use PHP or other server side code to do heavy processing or database related tasks etc.
I agree! However, as stated above I have seen instances where javascript would be used for things such as form validation.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|