DCSIMG
JavaScript - Avi Pinto

Avi Pinto

על הבלוג

Follow uberPinto on Twitter

View Avi Pinto's profile on LinkedIn

Subscribe in a reader Subscribe by Email

 


Two new sculptures

View my Air Brush Work at Avipinto.com

Helping a friend, great tool for fixing file names

JavaScript Tutorial


Disclaimer All postings/content on this blog are licensed under a Creative Commons Attribution By license and provided "AS IS" with no warranties, and confer no rights.
All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors.

Browse by Tags

All Tags » JavaScript (RSS)
Good talk on JavaScript performance + some notes
Smashing magazine posted a Seven Must-See Videos and Presentations for Web App Developers finally had the chance to start watching these videos(on the bus :)) The first one deals with Speeding up your JavaScript by Nicholas C. Zakas Very interesting talk: While watching this remember that you should take the problematic places that need to perform better and make the changes there( as Nicholas also stated at the beginning of the talk and also in this post following the talk ). I think that performance...
jQuery Gotcha: val() might select the wrong option at a select element
Let's imagine you have the following select element: <select id="someSelect"> <option value="">-Select-</option> <option value=" 12 ">21</option> <option value=" 11 ">20</option> <option value=" 10 ">19</option> <option value="9">18</option> <option value="8">17</option> <option value="7">16</option> <option value="6">15<...
My simple JSON flavor - JavaScriptSerializer at the server and json2.js at the client
קודם כל, עבור הקורא היחידי שלי, אני מתנצל על העדר הכתיבה בבלוג, אוסף של תירוצים הוביל טיוטות של פוסטים אל ה GMAIL שלי ואני מקווה שייצאו בקרוב. עכשיו לעניין הפוסט, זהו אמנם לא סיפור חדש בכלל, אבל אולי יחדש למישהו משהו. אין שום סיבה לבנות/לפרסס מחרוזת JSON בעצמנו, http://www.flickr.com/photos/wwworks/ / CC BY 2.0 בצד השרת: קיימות כבר זמן רב ספריות מוכנות חיצוניות כמו JSON.net by Newton או זו של Ajax Pro ושתיים שמגיעות עם ה framework: JavaScriptSerializer DataContractJsonSerializer תוך כדי כתיבת שורות...
Cancel the CAPTCHA on Firefox
שלמה כתב את הפוסט המצויין Cancel the CAPTCHA - או לכתוב תגובות גם כשפתחתם כמה פוסטים במקביל כדי שנוכל להגיב בקלות (עד שיתקנו את הבאג המרגיז הזה). כיוון שאני משתמש בעיקר בשועל האש, החלטתי להכין חיקוי עלוב (לא התקנה או משהו מתוחכם) עבורו: צרו רשומה חדשה ב Bookmarks toolbar תנו לרשומה זו שם (לשלי קראתי Captcha Killer ) וב location תדביקו את הקוד הבא: java[space]script: var elems = document.getElementsByTagName( "*" ); for ( var i = 0; i < elems.length; ++i) { if (elems[i].clientvalidationfunction...
RegisterArrayDeclaration unexpected behavior
למי שלא מכיר עדיין ClientScript.RegisterArrayDeclaration מיועדת להוספת מערך javascript אל הדף + ערך. זו פונקציה נחמדה שבודקת אם המערך כבר קיים על הדף, ואם כן, רק מוסיפה את הערך. אני משתמש בה בעיקר ב custom controls. תוך כדי פיתוח של control, עלתה הדרישה לעיתים לאתחל את המערך ללא איברים, כדי שיאותחל לאחר מכן ע"י javascript (על הסיבה לכך בהזדמנות אחרת), זו לא היתה בעיה כל אחת מהשורות הבאות תייצר את המערך SomeJSarr ריק על הדף: this.Page.ClientScript.RegisterArrayDeclaration("SomeJSarr"...
Quick VS 2008 Tip: IntelliSense for in-house JavaScript files
כשיצא Visual Studio 2008 אחד מהפיצ'רים שדיברו עליהם היה IntelliSense ל javascript. לא ממש בדקתי את הסיפור כיוון שהבנתי שזה מאופשר עבור האובייקטים שבאים עם השפה ועבור ספרית ה client של Ajax.Net. בעקבות הפוסט של אוהד בנושא Intellisense for jQuery ודברים טובים אחרים ששמעתי על הספריה, התחלתי לשחק קצת ב jQuery . עניין ה IntelliSense נראה די מדליק ומה שמאפשר אותו זו שורה קטנה בראש קובץ JS שמשמשת reference לקובץ אחר: /// <reference path="Scripts/SomeInHouseCommon.js" /> הוספת השורה לעיל...