I can say the form is not being submitted, which pointed me to the
fact that the event onchange did not get picked up by my
javascript. The script only forces a submit of the form, and
nothing else. Since this doesn't work, Mac users have to manually
hit the submit button, which reloads the page with the updated
dropdown. I'm keenly aware that this isn't the best solution, and
thank you for pointing to me an alternative. Though I'm not
familiar with AJAX, I guess I'll take a look at it. Any pointers
on a good exemple of what I would need? I'll be doing my own
research of course, but it would still help.
Here's the code, hope it comes through :
function forms_onload()
{
var forms = document.forms;
var i, j, elm, form;
for(i = 0; i < forms.length; i++)
{
form = forms[i];
if (typeof(form.onLoad) == "function") form.onLoad();
for (j = 0; j < form.elements.length; j++)
{
elm = form.elements[j];
if (typeof(elm.onLoad) == "function") elm.onLoad();
}
}
return true;
}
//
// If element exist than bind function func to element on event.
// Example: check_and_bind
('document.NewRecord1.Delete1','onclick',page_NewRecord1_Delete1_OnCli
ck);
//
function check_and_bind(element,event,func) {
var htmlElement = eval(element);
if (htmlElement) {
if (typeof(htmlElement)=="object" && !htmlElement.tagName &&
htmlElement.length > 0)
{
for (var i=0; i < htmlElement.length; i++)
eval(element+"["+i+'].'+event+'='+func);
}else eval(element+'.'+event+'='+func);
}
}
function page_membersSearch_s_talent_cat_OnChange()
{
var result;
document.forms["membersSearch"].submit();
return result;
}
function bind_events() {
if (document.forms["membersSearch"]) check_and_bind
('document.forms
["membersSearch"].s_talent_cat','onchange',page_membersSearch_s_talent
_cat_OnChange);
forms_onload();
}
window.onload = bind_events;