« first day (748 days earlier)      last day (4216 days later) » 

10:00 PM
array(3) {
  ["class"]=>
  string(13) "CButtonColumn"
  ["template"]=>
  string(17) "{update} {delete}"
  ["deleteButtonLabel"]=>
  string(4) "TEST"
}
this is the important part
not ["deleteButtonUrl"]
did you remove it ?
 
We try it for just test, at beggining of our conversation :) did you remember you said my try changing `
"deleteButtonLabel"=>"TEST" `
it's because of this
i can't delete it, doesn't matter
 
35 mins ago, by tereško
@Eray , can you change "deleteButtonLabel" ?
it was NOT
> can you change "deleteButtonUrl" to "deleteButtonLabel"
 
No i don't change Url to Label
you misunderstood me :)
 
is the URL still there ?
 
i just add "deleteButtonLabel"=>"TEST" line after you said @Eray , can you change "deleteButtonLabel" ?
no it's not there
 
10:04 PM
is the "deleteButtonUrl" => 'something/something' still in your configuration ?
 
i`array(
"class"=>"CButtonColumn",
"template"=>"{update} {delete}",
),` my configuration
No it's not :)
 
because i'm getting error when i put this :D
 
thank you for wasting my hour , good bye
 
it's not rendering page when i put it
that's the problem
because of this i asked you , you think is it a bug?
i didn't waste your time
i said that to you
 
@PeeHaa the problem is the OTHER answer
 
@tereško Wait! Wut? Enlighten me
 
with closures you can create private-ish methods and variables
 
@tereško , thank you for your help
 
the problem is that the +5 answer had "You can't" and 20 minutes later it stole the link from your linked answer
 
10:11 PM
@tereško But that doesn't answer OP does it?
If I'm correct what OP asks just cannot be done (or am I wrong)? BTW looking for dupe at the same time (must be there somewhere I think)
 
var foo = (function () {
    var i_am_private = function(){};

    return {
         x: function(){
             i_am_private();
         }
   };
}());
 
@tereško Where is the prototype in that?
 
foo.prototype.test = function(){
   // _should_ be available  here
}
 
@tereško But how can you access i_am_private from within that?
1 sec lemme see
 
i have not tested, but you should be able to do it the same way as in foo.x()
but, as i said , i have not tested it
if not, there are some other tricks one can use
 
10:17 PM
Now I'm really curious. I always thought JavaScript was too fucked up genius for private variables. Checking it out now
I.e. properties that can be accessed prototype
^ wow that sentence sucked
 
i will try out too .. just move the cats to the side , so that i can put my elbows down
 
(139) PHP | chat.stackoverflow.com
Hmm... I missed 139 messages :D
 
Hey!
Can someone please do me the favor of trying to reproduce this stackoverflow.com/q/13203759/89771?
 
10:36 PM
@tereško Not unless you put the foo.prototype.test declaration inside the closure.
 
hmm .. yes
it seem unable to modify the prototype after it has already been created , while still having access to closure
 
It is doable, it's just a properly mind melting syntax (much like the rest of JS). If you define the constructor and it's prototype methods inside a closure, anything declared inside the closure is also available to the prototype methods (because of lexical scoping), and in a way it is better to do it that way because it means that private methods only have a single instance of the Function object
 
@DaveRandom yeah ... i am not really inclined to dig too deeply
 
however it's also easy to get carried away and start trying to make private properties in this way, but you can't do it unless you want effectively static variables, since all instance will then reference the same variable.
 
@DaveRandom not necessarily
you can create separate closure for each object
but at that point it is better to stop instead , because the code becomes equivalent to black magic .. if you make it work , you wont be able to comprehend it after 24 hours
 
10:44 PM
Conclusion: JS == black magic
 
no , classical inheritance in JS is black magic
JS by it's nature is much closer to Lisp and Smalltalk then it is to C++
 
That's what makes it hard it comprehend for me (in my defense) :)
 
The hardest part to understand is lexical scoping. Once you get that, it's easy.
 
It's just so difficult to get used to the idea that it you want an object you start with an object. It's like building a house without any plans. And you can do these funny little 3-year-old-style drawings of a house and try and build it based on that, but the walls end up all wonky and tiles keep sliding off the roof.
 
Well, the so-called prototypal inheritance in JS is very crippled as well. Which means that both prototypal and classical inheritance are hard.
 
user1125394
11:03 PM
seen a link today, C++ = fundamentalists, C = judaists, JS ?
 
@cyril Heretics?
 
user1125394
blog.aegisub.org/2008/12/… Js is not mentionned
 
> PHP would be Cafeteria Christianity - Fights with Java for the web market.
wut?
What is a Java on the web?
 
@PeeHaa yea, they have applets.
 
:P
 
11:12 PM
Java Server Pages...
 
user1125394
the author of this blog is a python fan
 
Sorry. I only heard: fart, puke and security hole ;)
 
Yeh, and you don't wanna be farting and puking out the same hole, secure or otherwise...
 
I kinda like python @cyril
 
11:18 PM
@DaveRandom looooolz
 
That's what we pay our license fee for. For the BBC to commission properly weird shit like that.
 
Your country is messed up my friend :P
 
Please give us the rendered HTML output. Not some gibberish language no one wants to understand. — Madara Uchiha 9 secs ago
Let the keyboard wars begin.
 
Hmm... I see Action.jsp...
methode="post" should be method="post", by the way. — Shaquin Trifonoff 14 secs ago
 
@MadaraUchiha You want to close the duplicate of the first?
 
Indeed.
The fact that it exists, doesn't mean it's ok
 
Have fun all. Later!
 
2
Q: Should AJAX use hashtag /#!/ or not?

Student of HogwartsI've made a webpage that has the URL-form http://www.example.com/module/content It's a very dynamic webpage, actually it is a web app. To make it as responsive as possible, I want to use AJAX instead of normal page requests. This is also enabling me to use JavaScript to add a layer to provide of...

If anyone wants to try and answer that with a better solution than my own, have fun.
Interesting question.
 

« first day (748 days earlier)      last day (4216 days later) »