Hi, I use hierarchical_select for vocabulary
I want add tid in response url. And i can process with tid for my website.
i see code hierarchical_select.js
var ajaxOptions = {
url: url,
type: 'POST',
dataType: 'json',
data: post,
beforeSend: function() {
Drupal.HierarchicalSelect.triggerEvents(hsid, 'before-' + updateType, settings);
Drupal.HierarchicalSelect.disableForm(hsid);
},
But i can not modify it work.
Any idea can help me?
Comments
Comment #1
wim leersSet
$_GET['tid'] = 999;before HS runs and that'll happen automatically.
:)
Comment #2
cuxi commentedHi Wim Leers
Thanks you reply.
but i don't know where add to your code.
Please help me
Comment #3
wim leersI don't know your code or what exactly you're doing so I can't help you with that. That's up to you.
Comment #4
cuxi commentedHi Wim Leers.
I have 3 field: City , distrist and project
I want when I select city then show distrist and project of that city.
I use taxonomy for city and distrist and a field cck select list for project.
So, I have a table project: with field: tid and project name ( tid project is tid of term),
When i select city then hierarchical_select show distrist but it can't show project in a other box.
So i want GET['tid'] city and Select all project form database where tid = GET['tid'].
then i apply to cck field project.
Comment #5
cuxi commentedHi , Wim Leers.
I add code to:
$tid = $_POST['tid'];
and now it's work.
thanks you.