Therages's Posts
Nairaland Forum › Therages's Profile › Therages's Posts
Visit this site to get along with the best php developers, its a coding standard both (Zend) and (PEAR2) use. It has all the best practices, do's and don'ts www(.)horde(.)org/apps/horde/docs/CODING_STANDARDS And for the guys, please drop me the php ebooks => sobeo17 at gmail(.)com jst advanced OOP and MySQL or ANY 1 please. |
tanx alot in advance @nicekeno |
@nicekeno can i get those books too. Actualy not a dummy buh nid 2 wrap some code arnd my head on my spare time. My email: sobeo17 at gmail .com |
webdev no easy o. More grease 2 Your elbows. Sory if my prev post got u vexed. Buh even 1 person can do better. |
owk @ yawa-ti-de |
![]() |
CROSS-BROWSER compactibility is ONE of the major targets of a good webdeveloper, if there are bugs in the big/desktop browsers then what abt the mobile devices? AND for you to call yourself a web dev, and you can't code with YOUR HANd . . Mehn you never start. . Remember say na hand people take write some of dose Tools wey u dey use. AND PLEASE ALL JS CODERS WHAT WILL THESE 2 codes RETURN ? //here it goes var foo = { bar: function() { return this.baz; }, baz: 1 }; (function(){ return typeof arguments/[0/](); })(foo.bar); //And var a; if (!("a" in window)) { a = 1 ; } alert(a); |
@webmaster you can use javascript to detect mobile fones and specify a css layout for them. Using screenWidth and screenHeight events. The largest fone screen won't be up to a mini lapi's screen i'm sure. |
@dhtml, your website looks unecessarily complex. Poor navigation provision. Except i'd d one not able to find one. I tink you should put links of the available tuts at the bottom of each page for easy switching to another tuts, mayb the major ones. Just a suggestion. And if u go employ me 4 js/tuts, i'm at ur service. |
Use NOTEPAD++ it wit syntax highlighting capability. Note: not notepad o. I mean NOTEPAD++ . Start typing with hands avoid copy and paste for now. |
I might be too late buh i'd like to add this extra spice @ Ibro Try using Array literals e.g var arr = [1,2,2,3,5, ]; it will save u few extra bytes, and again You don't have to specify the Array length, its a sign of bad written code, because Arrays are always one higher dan the highest index so, new values can be added on the fly with mayb the Array push() method or arr[length] ="newVal"; I'm pretty sure its an old code buh take note Using the array constructor (new Array(2)) and asigning one (number)value to it javascript atomatically interpret it as the Array length. I just hope i made sense. |
if not for the fact that i almost know nothing about programming i 4 follow join. |
@binaflex i'v also tried it, didn't work, n dnt knw y. Buh u cn fix it by givin d elements name n id 2geda. Iz nt abt d moni @dhtml. <html> <head> <script type="text/javascript"> function displaymessage() {var i=3; while(i--){ alert(document.getElementById('pp'+i).value); } } </script> </head> <body> <form name='fnm' id='bb'> <input name='inm' 'id='pp2' type="button" value="Click me!" onclick="displaymessage()" /> </form> </body> </html> |
//try dis // avoid global variables //enclose ur code in a function var i = 3, bookingForm = document.forms['formName']; while(i--){ var qty = bookingForm.fieldName +'i'.value; } //but if d order matter //u can use a for loop insted i.e var bookingForm = document.forms['formName']; for(var i =0; i<=3;i++){ var qty = bookingForm.fieldName +'i'.value; } |
please drop the full javascript code, so i or sum1 else cn figure out d error. And try debugging using firebug. Its a firefox extension |
missed out 2bad. Incase u nid my help. Javascript n css. |
