Hi all,

I have recently joined this mailing list and I'm not sure if this had
already been answered. I have a function that gets called from the
<body> onload event and fills the drop-down (<select> tag) with the
data from the database. The function is as follows:

function initForm(frm) {
  switch (frm) {
        case "style":           
                Element.hide('newcat', 'newcol', 'newfab', 'btnAddFab', 
'notify');
                // fill the category drop-down
                var opt = {
                                method: 'get',
                                parameters: 'list=cat',
                                onSuccess: function(t){
                                        var catItems = new 
Insertion.Top('category',t.responseText);
                                },
                                onFailure: function(t){alert('Error [' + 
t.status + '] ' + t.responseText);}
                        }
                var catAjax = new Ajax.Request('incs/logic/listings.php', opt);
                break;
  }
}

This function fills in the drop-down properly in Safari and Firefox;
but it does nothing in IE 6.
 Am I doing something wrong or missing something here?

Thanks in advance... Cheers.

Farhan
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to