Today i ran into this issue, simply described:
I have a SharePoint custom list where I have added a custom button in the it's ribbon, this button pops up a custom ASPX modal dialog, this dialog only contains an ASP dropdown and a button, se screenshot below:

What I'm willing to achieve is to retrieve all values of for example the "Title" list column, and populate those values into the dialog's dropdown. Se script below:
$(window).bind("load", function () {
var container = new Array(),
i = 0;
$().SPServices({
operation: "GetListItems",
listName: "Project review",
webUrl: "/internal/lists/project%20review",
async: false,
CAMLQuery: "<Query><Where><Eq><FieldRef Name='Title'/><Value Type='Text'></Value></Eq></Where></Query>",
CAMLViewFields: "<ViewFields>" + "<FieldRef Name='Title' />" + "</ViewFields>",
completefunc: function (xData, ID) {
$(xData.responseXML).find('z\\:row, row').each(function () {
container[i++] = $(this).attr("ows_Title");
alert(container);
for (var i = 0; i < container.length; i++) {
var opt = container[i];
var option = document.createElement("option");
option.textContent = opt;
option.value = opt;
var toDropDown = document.getElementById("managers_list");
toDropDown.appendChild(option);
}
});
}
});
})
The script does unfortunately not do my purpose, anyone who could shed some light upon this issue?
Thanks in advance!