Missing parenthese after argument list
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...
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>
Thanks @ptibbetts
- With the (first) correction, I don't have the error any more, but nothing appears.
- 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: