Tweet.js-Mod icon indicating copy to clipboard operation
Tweet.js-Mod copied to clipboard

Missing parenthese after argument list

Open gizmecano opened this issue 12 years ago • 2 comments

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...

gizmecano avatar Jul 08 '13 13:07 gizmecano

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>

paultibbetts avatar Jul 08 '13 14:07 paultibbetts

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...

:anguished:

gizmecano avatar Jul 08 '13 15:07 gizmecano