Uncaught TypeError: Cannot read property 'toggleUploader' of undefined at HTMLSpanElement.onclick

More
6 years 9 months ago #72314 by marc.light
Hi,

I have an image field and in the front-end form when I click the select button:

<span class="add-on fcfield-uploadvalue fcfont-icon fc_files_uploader_toggle_btn active" data-rowno="0" onclick="var box = jQuery(this).closest('.fcfieldval_container').find('.fcimg_preview_box'); box.parent().find('.fc_file_uploader').is(':visible') ? box.show() : box.hide(); box.is(':visible') ? jQuery(this).removeClass('active') : jQuery(this).addClass('active'); custom_image_radio_uploader_.toggleUploader(jQuery(this).data('rowno'), false);"></span>

I get this error:

Uncaught TypeError: Cannot read property 'toggleUploader' of undefined at HTMLSpanElement.onclick

Can someone help?

Thanks.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72316 by micker
hello at first check your template (what his name)? maybe need to unify jquery

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72326 by marc.light
It's a custom template. Looks like it was built from scratch.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72328 by micker
i think you have js conflict ... without link difficult to help you

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72329 by marc.light

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72330 by micker
has i said if i check console at loading page you have this error
Code:
Uncaught TypeError: Cannot read property 'replace' of undefined at HTMLDocument.<anonymous> (scripts.js:96) at i (jquery.min.js?23b3d3b4a229bce6961daafa5f561706:2) at Object.fireWith [as resolveWith] (jquery.min.js?23b3d3b4a229bce6961daafa5f561706:2) at Function.ready (jquery.min.js?23b3d3b4a229bce6961daafa5f561706:2) at HTMLDocument.K (jquery.min.js?23b3d3b4a229bce6961daafa5f561706:2)
its a conflict with your own script

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.418 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline