Hi guys,

In the same way I have used the cookie value to set which country flag
image is used, could I also alter the url: value in the $.ajax
funtion?

        var country = $.cookie('language'); // get cookie

        $('#countryFlag').attr("src", "images/" + country + ".gif");

        $.ajax({
                type: "GET",
                url: "language_sheet_en.xml",
                dataType: "xml",
                success: function(xmlDocument){
                        alert("Hello World");
                        //$(xmlDocument).find(...).dosomeThing(...)
                }
        });

So if japan was selected in the language drop down box the document
name would become "language_sheet_jp.xml"

Thank you.

Reply via email to