Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on wordpress #113

Closed
NeoCsatornaja opened this issue Oct 23, 2013 · 11 comments
Closed

Not working on wordpress #113

NeoCsatornaja opened this issue Oct 23, 2013 · 11 comments

Comments

@NeoCsatornaja
Copy link

I tryed this plugin,but seems him dosen't want work for me in wordpress.:D
The jquery is a first srcipt and your script looks like this:
http://pastebin.com/X7zbCYiP

@jackmoore
Copy link
Owner

Sorry, that isn't enough information for me to be able to diagnose your problem.

@NeoCsatornaja
Copy link
Author

My comment form id is comment,and the textarea dosent expand,just show the scroll.
The crhome console sayed me:
TypeError: Object [object Object] has no method 'autosize'
This help you?

@NeoCsatornaja
Copy link
Author

if you like, you can se in here:
http://www.neocsatblog.mblx.hu/?p=2030#respond

@jackmoore
Copy link
Owner

You have a variety of errors showing in the browser developer console unrelated to autosize, which would prevent or other plugins from working properly.

@NeoCsatornaja
Copy link
Author

Now I have just one erorr,your plugin, can you check it?

@jackmoore
Copy link
Owner

I did check it, the page has changed since I checked it. $ and jQuery point to two different versions of the library. jQuery has been extended to include the autosize plugin, but the $ version has not. Since I can't tell that you have any need to include the library more than once (both versions are v1.10), you should remove the 2nd one.

@NeoCsatornaja
Copy link
Author

I can't remove the duplicate script,becouse these come with plugins,not my work.
The other plugis works for this,just this not.
Are you sure this is the problem?

@jackmoore
Copy link
Owner

Yes. If you want autosize to work, then you need to use the correct jQuery alias. Instead of this:

$(function(){

                $('#comment').autosize({append: "\n"});
            });

You need to do this:

jQuery(function($){

                $('#comment').autosize({append: "\n"});
            });

Also, there is no element with an id of 'comment' on that page.

@NeoCsatornaja
Copy link
Author

Must be login,that you the the comment form,(spam protaction)

@NeoCsatornaja
Copy link
Author

Whao!
Now works,thanks for your help:D
Just a little falters for my writing, you can have an idea why?

@jackmoore
Copy link
Owner

Sorry, referenced wrong issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants