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

Missing parenthese after argument list #29

Open
gizmecano opened this issue Jul 8, 2013 · 2 comments
Open

Missing parenthese after argument list #29

gizmecano opened this issue Jul 8, 2013 · 2 comments

Comments

@gizmecano
Copy link

Greetings,

Assuming the App configuration is correct (according to issue #28), I started again to enforce this script from the beginning.

With te debug option activated, I now get this error (related to the configuration set in the header):

[...] SyntaxError: missing ) after argument list @ http://localhost/mysite/work/:36

For informations, this is the content of the configuration that I set:

<script type="text/javascript">
$(document).ready(function() {
    $('.tweet').tweet({
        username: 'username',
        list: null,
        favorites: false,
        avatar_size: null,
        count: 4
    });
}
</script>

Thanks if somebody gets an idea about this issue...

@paultibbetts
Copy link

Hey @gizmecano ,

You're missing a closing ) bracket around your javascript.

Try this ( I haven't tried this ):

<script type="text/javascript">
$(document).ready(function() {
    $('.tweet').tweet({
        username: 'username',
        list: null,
        favorites: false,
        avatar_size: null,
        count: 4
    });
})
</script>

If that isn't working, try it with all the options left in:
( I have set the modpath, I am assuming that your twitter folder is at http://localhost/mysite/twitter )

<script type="text/javascript">
jQuery(document).ready(function($){
  $(".tweet").tweet({
  modpath: '../twitter/', 
  join_text: "auto",
  username: "username",
  count: 4,
  template: "{join}{text}{time}",
  auto_join_text_default: "",
  auto_join_text_ed: "",
  auto_join_text_ing: "",
  auto_join_text_reply: "",
  auto_join_text_url: "",
  loading_text: "Loading..."
  });
});
</script>

@gizmecano
Copy link
Author

Thanks @ptibbetts

  1. With the (first) correction, I don't have the error any more, but nothing appears.
  2. With your (second) proposition, I don't have any error, but only the "loading" text appears.

I don't understand the problem. I followed twice all the instructions step by step...

😧

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