test
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • relevanceweb Friend
    #166882

    Hi all,

    I need to change the category dropdown to radio buttons, which I have done but I don’t know how to add the javascript to a radio button to call the extra fields correctly.

    The test site is http://www.dolmenyachts.co.cc

    I looked at the html of the page and used the option values to create the radio buttons. This pulls the items from the correct category but it doesn’t call the right set of fields so nothing else will work.

    Looking through the files I can see that the category dropdown has an onclick attribute which gets the needed information. I have tried adding this to the radio buttons but it doesn’t work.

    I’m not sure what other information to include, but just let me know if it’s not possible and I will look for another solution.

    chavan Friend
    #403766

    which template you use ? post your admin details via PM

    relevanceweb Friend
    #403784

    I made it. Can that make any difference to the functioning of the module?

    chavan Friend
    #403788

    no it will not, but the name of the html element should be same.

    I mean the previous dropdown <select> tag name and the New radio button must have the name same

    as far as this is maintained nothing will go wrong.

    Note: If you Find my Post useful please click on the Thanks Icon

    relevanceweb Friend
    #403790

    Hi there,
    You can see from the source code that the name for both elements is “catid” and the input values are the same as the select box, but there is clearly something going wrong!
    The select box has an onchange=”load_extrafields(this.value,”mod_ja_group_”)” attribute attached to it which is loading the extra fields for the selected category. If this is not added to the radio buttons the extra fields are not loaded and none of the extra fields work in the search. I have tried adding this to the radio buttons but it doesn’t seem to do anything.

    Thanks for your help

    Rob

    chavan Friend
    #403795

    Yes you are correct The following is the code that displays the Extra field in that search module

    ‘ onchange=”load_extrafields(this.value,”mod_ja_grou p_”)” ‘

    Thanks 🙂

    relevanceweb Friend
    #403798

    yes, but how can I attach this to the radio buttons to make them work like the select list???

    chavan Friend
    #403846

    I saw it working on your site. clear your joomla cache and browser cache

    Note: If you Find my Post useful please click on the Thanks Icon

    relevanceweb Friend
    #403977

    No, this is in no way working and never has done.

    Click on sale or charter and it will bring up the correct fields for each category, click on sailing yacht and you should only see yachts with sails but you see all of them, likewise with motoryachts.

    This is not a cache problem

    Regards,

    Rob

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 2 voices, and was last updated by  relevanceweb 13 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum