Add Tags in Frontend

More
11 years 9 months ago #39827 by Miken
Add Tags in Frontend was created by Miken
Good day, I think I found a Bug.
On the frontside, with no editing of the item added to the tags.

All problem in the function: function addToList (id, name)
Code:
obj = $ ('ultagbox'); - does not work as intended, the reason being that the container is here this form. <ul id="ultagbox"> </ul>

but I rewrote this function like this:
Code:
function addToList(id, name) { var oldHtml = $('#ultagbox').html(); $('#ultagbox').html(oldHtml + "<li class=\"tagitem\"><span>"+name+"</span><input type='hidden' name='jform[tag][]' value='"+id+"' /><a href=\"javascript:;\" class=\"deletetag\" onclick=\"javascript:deleteTag(this);\" title=\"<?php echo JText::_( 'FLEXI_DELETE_TAG' ); ?>\"></li>"); }

Maybe it's just me, but maybe not. :roll:

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 9 months ago #39841 by ggppdk
Replied by ggppdk on topic Add Tags in Frontend
Hello,
$('ultagbox')
is the tag ID selector for mootools

you are using
$('#ultagbox') which a jQuery tag ID selector

so if $('#ultagbox') is working, it means that you are loading jQuery , without jQuery noConflict()

this will break other things and field in the frontend


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 9 months ago #39846 by Miken
Replied by Miken on topic Add Tags in Frontend
Mootols about something I have not thought of that.

noConflict I ​​have. apparently out of sequence load scripts

Thanks for the help

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 9 months ago #39847 by Miken
Replied by Miken on topic Add Tags in Frontend
Where to write but noConflict() to work?

Now here's scripts are loaded in the following order
Code:
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script> <script src="/media/system/js/core.js" type="text/javascript"></script> <script src="/media/system/js/modal.js" type="text/javascript"></script> <script src="****/components/com_flexicontent/librairies/jquery/js/jquery-1.8.3.min.js" type="text/javascript"></script> <script src="****/components/com_flexicontent/librairies/jquery/js/jquery-ui-1.9.2.min.js" type="text/javascript"></script> <script src="****/components/com_flexicontent/librairies/select2/select2.js" type="text/javascript"></script> <script src="/media/system/js/mootools-more.js" type="text/javascript"></script> <script src="****/administrator/components/com_flexicontent/assets/js/itemscreen.js" type="text/javascript"></script> <script src="***/administrator/components/com_flexicontent/assets/js/admin.js" type="text/javascript"></script> <script src="****/administrator/components/com_flexicontent/assets/js/validate.js" type="text/javascript"></script> <script src="***/administrator/components/com_flexicontent/assets/js/tabber-minimized.js" type="text/javascript"></script> <script src="/administrator/components/com_flexicontent/assets/jquery-autocomplete/jquery.bgiframe.min.js" type="text/javascript"></script> <script src="/administrator/components/com_flexicontent/assets/jquery-autocomplete/jquery.ajaxQueue.js" type="text/javascript"></script> <script src="/administrator/components/com_flexicontent/assets/jquery-autocomplete/jquery.autocomplete.min.js" type="text/javascript"></script> <script src="/administrator/components/com_flexicontent/assets/js/jquery.pager.js" type="text/javascript"></script> <script src="/media/bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <script src="/components/com_flexicontent/assets/js/fcvote.js" type="text/javascript"></script> <script src="****/components/com_flexicontent/assets/js/tmpl-common.js" type="text/javascript"></script>

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 9 months ago #39849 by ggppdk
Replied by ggppdk on topic Add Tags in Frontend
Hello

which FLEXIcontent version are you using?
on which Joomla version ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
11 years 9 months ago #39850 by Miken
Replied by Miken on topic Add Tags in Frontend

ggppdk wrote: Hello

which FLEXIcontent version are you using?
on which Joomla version ?

joomla 2.5.14
flexi 2.1.0 r1742a

Flexicontent 3.1.1 & Joomla 3.7.1

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.396 seconds
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
Save