1 / 8
Aug 2019

Hi guys Im terrible at JS. Im trying to create an object and get this error.

unexpected token identifier

Here is my code:

var person = new Object();
person.\$header = \"<div class=\"clearfix floatbox_cap\"><h3 class=\"floatbox_title\"><span>Crop Avatar</span></h3><div class=\"ow_box_cap_icons clearfix\"><a title=\"close\" class=\"ow_ic_delete close\" href=\"javascript://\"></a></div></div>\";

person.\$body = \"width: 749\";



document.avatarFloatBox = person;

Level up your JavaScript skills with ‘Modern JavaScript’ - Free.

Package management, linting, transpilation, module bundling, minification, source maps, frameworks, unit testing, and more. We wrote this book for any intermediate JavaScript developer looking to go to the next level.

Read online

Hi thanks for the reply. Im using Oxwall script and in change_avatar.js there is a line:

document.avatarFloatBox.$header.find(".floatbox_title span").html(OW.getLanguageText('base', 'avatar_crop'));

Id like to overdrive it or disable it without changing the file.

Their forum sucks buddy nobody wants to help out just wanna charge you for everything.

Would you be able to help.

3 months later

closed Oct 30, '19

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.