Re: [symfony-users] Re: Textarea onclick event?
On Tue, 2 Nov 2010, Parijat Kalia wrote: Oh guys, please chill out, none of that was for either of you, it was for Mr.Eno, because he typically comes up with smart ass sentences like those way too often. I haven't posted here for months. I agree with the smart part - I had the correct answer when noone else did (not that you thanked me). And yes, the issue that I was dealing with is Javascript, but in a symfony tags context The problem had nothing to do with symfony. I did the 10 sec google search several times, and read the API, before I decided to seek help here. 10 seconds is hardly thorough research... OK maybe you have ADD but still... -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
Eno, I think you need to review the thread. The problem was that Parijat was calling textarea_tag('hint-box','','size=70x4',array('onclick'='javascript:alert(yo)')); So as you can see there are four arguments here. Parijat stated that the onclick attribute was not being rendered. Why not? Because the function only accepts three parameters: $name, $content, $options. So what is the problem? Is it javascript? No. The javascript is not being rendered yet. So maybe *you* have ADD and cannot fully read questions. You lack professionalism. The issue is over and you had to dish it out with the classic oh you couldve googled. Sure but the issue has been solved and so you are not adding anything to the conversation or making any constructive statement, just as you are continuing to bitch now. I realize that I am adding little to this thread myself in posting this, however I must defend the Parijat as he clearly (by my above recap of the problem) was having a problem with symfony and NOT with javascript. The onclick attribute was NOT even appearing on the textarea. Anyways, have yourself a good day sir. On Wed, Nov 3, 2010 at 08:42, Eno symb...@gmail.com wrote: On Tue, 2 Nov 2010, Parijat Kalia wrote: Oh guys, please chill out, none of that was for either of you, it was for Mr.Eno, because he typically comes up with smart ass sentences like those way too often. I haven't posted here for months. I agree with the smart part - I had the correct answer when noone else did (not that you thanked me). And yes, the issue that I was dealing with is Javascript, but in a symfony tags context The problem had nothing to do with symfony. I did the 10 sec google search several times, and read the API, before I decided to seek help here. 10 seconds is hardly thorough research... OK maybe you have ADD but still... -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
@Enojust to point out, your solution was not what I wanted, I got it through Alex, and Gareth chipped in with some information as well. The problem is symfony, you clearly have not read through carefully about what I faced. Please read it again. As Alex pointed earlier, the issue is over. On Wed, Nov 3, 2010 at 6:18 AM, Alex Pilon alex.pi...@gmail.com wrote: Eno, I think you need to review the thread. The problem was that Parijat was calling textarea_tag('hint-box','','size=70x4',array('onclick'='javascript:alert(yo)')); So as you can see there are four arguments here. Parijat stated that the onclick attribute was not being rendered. Why not? Because the function only accepts three parameters: $name, $content, $options. So what is the problem? Is it javascript? No. The javascript is not being rendered yet. So maybe *you* have ADD and cannot fully read questions. You lack professionalism. The issue is over and you had to dish it out with the classic oh you couldve googled. Sure but the issue has been solved and so you are not adding anything to the conversation or making any constructive statement, just as you are continuing to bitch now. I realize that I am adding little to this thread myself in posting this, however I must defend the Parijat as he clearly (by my above recap of the problem) was having a problem with symfony and NOT with javascript. The onclick attribute was NOT even appearing on the textarea. Anyways, have yourself a good day sir. On Wed, Nov 3, 2010 at 08:42, Eno symb...@gmail.com wrote: On Tue, 2 Nov 2010, Parijat Kalia wrote: Oh guys, please chill out, none of that was for either of you, it was for Mr.Eno, because he typically comes up with smart ass sentences like those way too often. I haven't posted here for months. I agree with the smart part - I had the correct answer when noone else did (not that you thanked me). And yes, the issue that I was dealing with is Javascript, but in a symfony tags context The problem had nothing to do with symfony. I did the 10 sec google search several times, and read the API, before I decided to seek help here. 10 seconds is hardly thorough research... OK maybe you have ADD but still... -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
We solved the problem.. if you have nothing to contribute the save your time. On Nov 1, 2010 11:57 PM, Gareth McCumskey gmccums...@gmail.com wrote: And not exactly a great way to endear people to you calling them smart ass. On Tue, Nov 2, 2010 at 4:50 AM, Parijat Kalia kaliapari...@gmail.com wrote: Yes smart ass, ... -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
I am making a contribution, just as Eno was. He was right. The email address for this list is symfony-u...@googlegroups.com, not javascript-users. A 10 second google search brought up millions of Javascript resources, tutorials and advice, amongst which would have contained all the info that Parijat could want. Instead of diluting the usefulness of this mailing list with questions that have nothing to do with the reason it was created (i.e. symfony), other more useful, complete and designed for purpose resources could be used. On Tue, Nov 2, 2010 at 12:16 PM, Alex Pilon alex.pi...@gmail.com wrote: We solved the problem.. if you have nothing to contribute the save your time. On Nov 1, 2010 11:57 PM, Gareth McCumskey gmccums...@gmail.com wrote: And not exactly a great way to endear people to you calling them smart ass. On Tue, Nov 2, 2010 at 4:50 AM, Parijat Kalia kaliapari...@gmail.com wrote: Yes smart ass, ... -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
I wsnt talking to you, and the posters problem wasn't with javascript. On Nov 2, 2010 6:44 AM, Gareth McCumskey gmccums...@gmail.com wrote: I am making a contribution, just as Eno was. He was right. The email address for this list is symfony-u...@googlegroups.com, not javascript-users. A 10 second google search brought up millions of Javascript resources, tutorials and advice, amongst which would have contained all the info that Parijat could want. Instead of diluting the usefulness of this mailing list with questions that have nothing to do with the reason it was created (i.e. symfony), other more useful, complete and designed for purpose resources could be used. On Tue, Nov 2, 2010 at 12:16 PM, Alex Pilon alex.pi...@gmail.com wrote: We solved the problem.. if you have nothing to contribute the save your time. On Nov 1, 20... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proj... -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
Oh guys, please chill out, none of that was for either of you, it was for Mr.Eno, because he typically comes up with smart ass sentences like those way too often. For both Alex and Gareth, I am grateful for that advice. Thanks a ton! And yes, the issue that I was dealing with is Javascript, but in a symfony tags context, I had it working with the regular text area but in symfony, the syntax I was getting wrong, I did the 10 sec google search several times, and read the API, before I decided to seek help here. Hopefully that clears it up, no offence, Cheers On Tue, Nov 2, 2010 at 4:11 AM, Alex Pilon alex.pi...@gmail.com wrote: I wsnt talking to you, and the posters problem wasn't with javascript. On Nov 2, 2010 6:44 AM, Gareth McCumskey gmccums...@gmail.com wrote: I am making a contribution, just as Eno was. He was right. The email address for this list is symfony-u...@googlegroups.com, not javascript-users. A 10 second google search brought up millions of Javascript resources, tutorials and advice, amongst which would have contained all the info that Parijat could want. Instead of diluting the usefulness of this mailing list with questions that have nothing to do with the reason it was created (i.e. symfony), other more useful, complete and designed for purpose resources could be used. On Tue, Nov 2, 2010 at 12:16 PM, Alex Pilon alex.pi...@gmail.com wrote: We solved the problem.. if you have nothing to contribute the save your time. On Nov 1, 20... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proj... -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Textarea onclick event?
On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
I would say wrong is not the right word here.. perhaps not the maximum best practice. It depends on your audience.. if it doesn't make a huge deal to your audience then its not that big of a deal. however if you can afford the resources then using unobtrusive hooks is a best practice and helps keep code maintainable. asp.net uses html 5 data- attributes to hook up unobtrusive javascript calls to elements.. its quite interesting. On Mon, Nov 1, 2010 at 12:17, Massimiliano Arione garak...@gmail.comwrote: On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Thanks for the guidelines though, anybody with an answer for this? On Mon, Nov 1, 2010 at 9:21 AM, Alex Pilon alex.pi...@gmail.com wrote: I would say wrong is not the right word here.. perhaps not the maximum best practice. It depends on your audience.. if it doesn't make a huge deal to your audience then its not that big of a deal. however if you can afford the resources then using unobtrusive hooks is a best practice and helps keep code maintainable. asp.net uses html 5 data- attributes to hook up unobtrusive javascript calls to elements.. its quite interesting. On Mon, Nov 1, 2010 at 12:17, Massimiliano Arione garak...@gmail.comwrote: On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
What version of symfony are you using? According to the source code for 1.0, 1.1 and 1.2 there seems to only be three parameters. Where as you are passing it four. ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? Should this be ?php echo textarea_tag('hint_box','',array('size'=70x4,'onclick'='alert(yo)')); ? Let me know if that works.. and by looking at the source code I would say it should.. function textarea_tag($name, $content = null, $options = array()) { $options = _parse_attributes($options); if ($size = _get_option($options, 'size')) // HERE it does with the size stuff. { list($options['cols'], $options['rows']) = explode('x', $size, 2); } } Word! On Mon, Nov 1, 2010 at 13:45, Parijat Kalia kaliapari...@gmail.com wrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Thanks for the guidelines though, anybody with an answer for this? On Mon, Nov 1, 2010 at 9:21 AM, Alex Pilon alex.pi...@gmail.com wrote: I would say wrong is not the right word here.. perhaps not the maximum best practice. It depends on your audience.. if it doesn't make a huge deal to your audience then its not that big of a deal. however if you can afford the resources then using unobtrusive hooks is a best practice and helps keep code maintainable. asp.net uses html 5 data- attributes to hook up unobtrusive javascript calls to elements.. its quite interesting. On Mon, Nov 1, 2010 at 12:17, Massimiliano Arione garak...@gmail.comwrote: On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
Yip Alex...looks like that should work, apparently, you can simply specify size=70x4 rather than having to get it into an array, but if it has javascript function, then that needs, to change..Thanks again! On Mon, Nov 1, 2010 at 11:21 AM, Alex Pilon alex.pi...@gmail.com wrote: What version of symfony are you using? According to the source code for 1.0, 1.1 and 1.2 there seems to only be three parameters. Where as you are passing it four. ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? Should this be ?php echo textarea_tag('hint_box','',array('size'=70x4,'onclick'='alert(yo)')); ? Let me know if that works.. and by looking at the source code I would say it should.. function textarea_tag($name, $content = null, $options = array()) { $options = _parse_attributes($options); if ($size = _get_option($options, 'size')) // HERE it does with the size stuff. { list($options['cols'], $options['rows']) = explode('x', $size, 2); } } Word! On Mon, Nov 1, 2010 at 13:45, Parijat Kalia kaliapari...@gmail.comwrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Thanks for the guidelines though, anybody with an answer for this? On Mon, Nov 1, 2010 at 9:21 AM, Alex Pilon alex.pi...@gmail.com wrote: I would say wrong is not the right word here.. perhaps not the maximum best practice. It depends on your audience.. if it doesn't make a huge deal to your audience then its not that big of a deal. however if you can afford the resources then using unobtrusive hooks is a best practice and helps keep code maintainable. asp.net uses html 5 data- attributes to hook up unobtrusive javascript calls to elements.. its quite interesting. On Mon, Nov 1, 2010 at 12:17, Massimiliano Arione garak...@gmail.comwrote: On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this
Re: [symfony-users] Re: Textarea onclick event?
Cool, glad I could help :) On Mon, Nov 1, 2010 at 15:05, Parijat Kalia kaliapari...@gmail.com wrote: Yip Alex...looks like that should work, apparently, you can simply specify size=70x4 rather than having to get it into an array, but if it has javascript function, then that needs, to change..Thanks again! On Mon, Nov 1, 2010 at 11:21 AM, Alex Pilon alex.pi...@gmail.com wrote: What version of symfony are you using? According to the source code for 1.0, 1.1 and 1.2 there seems to only be three parameters. Where as you are passing it four. ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? Should this be ?php echo textarea_tag('hint_box','',array('size'=70x4,'onclick'='alert(yo)')); ? Let me know if that works.. and by looking at the source code I would say it should.. function textarea_tag($name, $content = null, $options = array()) { $options = _parse_attributes($options); if ($size = _get_option($options, 'size')) // HERE it does with the size stuff. { list($options['cols'], $options['rows']) = explode('x', $size, 2); } } Word! On Mon, Nov 1, 2010 at 13:45, Parijat Kalia kaliapari...@gmail.comwrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Thanks for the guidelines though, anybody with an answer for this? On Mon, Nov 1, 2010 at 9:21 AM, Alex Pilon alex.pi...@gmail.com wrote: I would say wrong is not the right word here.. perhaps not the maximum best practice. It depends on your audience.. if it doesn't make a huge deal to your audience then its not that big of a deal. however if you can afford the resources then using unobtrusive hooks is a best practice and helps keep code maintainable. asp.net uses html 5 data- attributes to hook up unobtrusive javascript calls to elements.. its quite interesting. On Mon, Nov 1, 2010 at 12:17, Massimiliano Arione garak...@gmail.comwrote: On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you
Re: [symfony-users] Re: Textarea onclick event?
And that would be any other option, not only a javascript.. or in this case an onclick. On Mon, Nov 1, 2010 at 15:09, Alex Pilon alex.pi...@gmail.com wrote: Cool, glad I could help :) On Mon, Nov 1, 2010 at 15:05, Parijat Kalia kaliapari...@gmail.comwrote: Yip Alex...looks like that should work, apparently, you can simply specify size=70x4 rather than having to get it into an array, but if it has javascript function, then that needs, to change..Thanks again! On Mon, Nov 1, 2010 at 11:21 AM, Alex Pilon alex.pi...@gmail.com wrote: What version of symfony are you using? According to the source code for 1.0, 1.1 and 1.2 there seems to only be three parameters. Where as you are passing it four. ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? Should this be ?php echo textarea_tag('hint_box','',array('size'=70x4,'onclick'='alert(yo)')); ? Let me know if that works.. and by looking at the source code I would say it should.. function textarea_tag($name, $content = null, $options = array()) { $options = _parse_attributes($options); if ($size = _get_option($options, 'size')) // HERE it does with the size stuff. { list($options['cols'], $options['rows']) = explode('x', $size, 2); } } Word! On Mon, Nov 1, 2010 at 13:45, Parijat Kalia kaliapari...@gmail.comwrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Thanks for the guidelines though, anybody with an answer for this? On Mon, Nov 1, 2010 at 9:21 AM, Alex Pilon alex.pi...@gmail.comwrote: I would say wrong is not the right word here.. perhaps not the maximum best practice. It depends on your audience.. if it doesn't make a huge deal to your audience then its not that big of a deal. however if you can afford the resources then using unobtrusive hooks is a best practice and helps keep code maintainable. asp.net uses html 5 data- attributes to hook up unobtrusive javascript calls to elements.. its quite interesting. On Mon, Nov 1, 2010 at 12:17, Massimiliano Arione garak...@gmail.comwrote: On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to render itself in the HTML tag. Any pointers what I am doing wrong here? It's wrong to rely on html inline javascript. You should move your javascript logic into a javascript file, relying on javascript events. See http://api.jquery.com/click/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Alex Pilon (613) 608-1480 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to
Re: [symfony-users] Re: Textarea onclick event?
On Mon, 1 Nov 2010, Parijat Kalia wrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Are you really too lazy to read up on JavaScript events or even use Google? The clue is that not all widgets support onClick. You probably want to be using onFocus() instead (or perhaps onBlur() if its validation you're doing). -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
Yes smart ass, I am 2 lazy about it On Mon, Nov 1, 2010 at 7:43 PM, Eno symb...@gmail.com wrote: On Mon, 1 Nov 2010, Parijat Kalia wrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Are you really too lazy to read up on JavaScript events or even use Google? The clue is that not all widgets support onClick. You probably want to be using onFocus() instead (or perhaps onBlur() if its validation you're doing). -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
On Mon, 1 Nov 2010, Parijat Kalia wrote: Yes smart ass, I am 2 lazy about it Its considered poor netiquette to post questions on a mailing list without doing some BASIC research. Do your homework before posting needlessly. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Textarea onclick event?
And not exactly a great way to endear people to you calling them smart ass. On Tue, Nov 2, 2010 at 4:50 AM, Parijat Kalia kaliapari...@gmail.comwrote: Yes smart ass, I am 2 lazy about it On Mon, Nov 1, 2010 at 7:43 PM, Eno symb...@gmail.com wrote: On Mon, 1 Nov 2010, Parijat Kalia wrote: Doesn't really answer my question. I have used several javascripts in the format : array('onclick'='javascript:alert(yo)')...the alert is just a filler function for now, there are offcourse different javascript functions. Every other input tag that I have used a javascript fucntion, it works fine, so I am more concerned about it's positioning in the textarea tag than I am for the right method of coding. Are you really too lazy to read up on JavaScript events or even use Google? The clue is that not all widgets support onClick. You probably want to be using onFocus() instead (or perhaps onBlur() if its validation you're doing). -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en