[theme-reviewers] using onclick attribute in the temlplates

Jose Castaneda jomcastaneda at gmail.com
Sat Aug 24 13:30:15 UTC 2013


Rather than hard coding it why not use an event listener?


On Sat, Aug 24, 2013 at 6:27 AM, priyanshu mittal <
priyanshu.mittal at gmail.com> wrote:

> i want to make a template in which after clicking category, with the help
> of ajax request, the posts under the category will be displayed
>
>
> On Sat, Aug 24, 2013 at 6:53 PM, Chip Bennett <chip at chipbennett.net>wrote:
>
>> I don't think there's anything inherently wrong with using onClick; any
>> potential issues would depend on what's actually being *done* onClick.
>>
>>
>> On Sat, Aug 24, 2013 at 9:12 AM, priyanshu mittal <
>> priyanshu.mittal at gmail.com> wrote:
>>
>>>  Hey i want to do something on the click of anchor tag i.e
>>> onClick="xyz()" for which already enqueued the js in the headers . Do I
>>> allowed to do the same in  the template
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130824/e0c67096/attachment.html>


More information about the theme-reviewers mailing list