The Syndk8 - Black Hat SEO Paradise
Fantomaster - Industrial Strength Black Hat SEO Tools
Affiliate Earners: Affiliate Programs
Home
Help
Search
Login
Register
RSS for SEOIdiot
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 24, 2012, 01:57:38 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home (Index)
Level 1 Cache: General Discussion
Callback Routines
@perks
Pages: [
1
]
« previous
next »
Print
Author
Topic: @perks (Read 666 times)
nop_90
Global Moderator
Lifer
Offline
Posts: 2203
@perks
«
on:
September 23, 2009, 04:37:32 AM »
Too lazy to look up the post.
But where u wanted to set/get the property of ur widget.
And see if it changed.
I suggested a getter/setter
but maybe u could use a "watch" which is like a perl tie.
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Object/watch
Logged
perkiset
Olde World Hacker
Administrator
Lifer
Offline
Posts: 9896
Re: @perks
«
Reply #1 on:
September 23, 2009, 10:46:15 AM »
Thanks Nop ... actually I don't need to get/set, I thought that was someone else...
the PHP get/set is rather crappy in that ALL properties are set through a single magic method... and if you define the method, then all getting or setting goes through it. It's a PIA and doesn't "feel" right. It can be used (I've used it thus) to limit access or even ensure that you're doing things correctly: you can spontaneously "set" an object property that doesn't even exist, so the ability for you to create code where you think something's happening but it really isn't is high - so the ability to lock down / add code to the getting/setting of properties is good, but it's not entirely well thought out IMO. Using it you could also do type enforcement. I just don't care for it very much.
Logged
It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Level 1 Cache: General Discussion
-----------------------------
=> Init() - New Member Introductions
=> NEW BOARD: The n00b Zone
=> Callback Routines
=> Recovered Sectors
=> freemem() & Garbage Collection
=> All Things General Tech
=> All Things Android
=> All Things Apple
=> All Things Database
=> All Things Microsoft
=> All Things *nix
-----------------------------
Level 2 Cache: Speciality Items
-----------------------------
=> AJAX
=> ASP & .NET
=> C/++/#/Objective, Java, ObjectPascal
=> CSS, HTML & SEO, Cloaking
=> JavaScript
=> Music Technology
=> PERL
=> PHP
=> Obscurites, Curiosities & Arcanity
=> Regex
-----------------------------
Frameworks, Applications & Projects
-----------------------------
=> phpMyIDE
=> The iPhone SMF Theme Project
=> SMF
-----------------------------
Retired Boards
-----------------------------
=> ColdFusion
=> phpMyIDE
=> SalesForce / Apex
=> Javascript Code Repository & Examples
=> PHP Code Repository / Examples
Perkiset's Place Home
Best of The Cache
phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's
Pinkhat's Perspective
cache
mart
coder
programmers
ajax
php
javascript
Loading...