-
AuthorPosts
-
relevanceweb Friend
relevanceweb
- Join date:
- May 2011
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
July 30, 2011 at 9:01 pm #166882Hi 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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 31, 2011 at 5:17 am #403766which template you use ? post your admin details via PM
relevanceweb Friendrelevanceweb
- Join date:
- May 2011
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
July 31, 2011 at 9:17 am #403784I made it. Can that make any difference to the functioning of the module?
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 31, 2011 at 12:33 pm #403788no 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 Friendrelevanceweb
- Join date:
- May 2011
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
July 31, 2011 at 1:54 pm #403790Hi 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 Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 31, 2011 at 3:05 pm #403795Yes 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 Friendrelevanceweb
- Join date:
- May 2011
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
July 31, 2011 at 3:28 pm #403798yes, but how can I attach this to the radio buttons to make them work like the select list???
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
August 1, 2011 at 2:38 am #403846I 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 Friendrelevanceweb
- Join date:
- May 2011
- Posts:
- 11
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
August 1, 2011 at 12:09 pm #403977No, 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
-
AuthorPosts
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