Page still refresh in Firefox even though I'm using SPServices

Jun 6, 2013 at 7:39 AM
Edited Jun 6, 2013 at 7:40 AM
I'm using SPServices GetListItems and it works in IE and chrome but when I tested it in Firefox the page refresh after completefunc.
Coordinator
Jun 6, 2013 at 12:12 PM
You're going to have to be a bit more specific than that.

M.
Jun 7, 2013 at 3:14 AM
Sir i have two dropdown then if I select from the first dropdown the second dropdown will be populated but the page refresh in Firefox whenever I select from the first dropdown. It's working fine in IE,Chrome and Safari.

$("#business_list").change(function(){
var btype = $(this).val();
    $("#postTo").empty().append("<option></option>");
    $().SPServices({
        operation: "GetListItems",
        async: false,
        listName: "Business Contacts",
        CAMLViewFields: "<ViewFields><FieldRef Name='Title'/></ViewFields>",
        CAMLQuery: "<Query><Where><Eq><FieldRef Name='BusinessType'/><Value Type='Text'>" + btype + "</Value></Eq></Where></Query>",
        completefunc: function (xData, Status) {
            $(xData.responseXML).SPFilterNode("z:row").each(function () {
                var title = ($(this).attr("ows_Title"));
                projListDD2(title);
            });
        }
    });
});

function projListDD2(d) {
    $("#postTo").append("<option>" + d + "</option>");
}
Coordinator
Jun 7, 2013 at 2:28 PM
There's got to be something else going on. There's nothing in your code above that would cause a page refresh.

M.