I'm trying to display an image, content and a link to open new list item dialog box. This is working in Firefox, but in IE it gives the error "wrong number of arguments or invalid property assignment".It is showing this error in the jquery 19.0 min.js file. Any idea on what is wrong?
<head>
<script type="text/javascript" src="http://mysiteurl</Javascript/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="http://mysiteurl/jquery.SPServices-2013.01.min.js"></script>
<script type="text/javascript">
function OpenDialog() {.
var options = {
url: "http://mysiteurl/_layouts/listform.aspx?PageType=8&ListId={list guid}",
autoSize: true,
allowMaximize: true,
title: 'Add your story',
showClose: true,
};
var dialog = SP.UI.ModalDialog.showModalDialog(options);
}
function DisplayInfo()
{
var cmlquery="<Query><OrderBy><FieldRef Name='Created' Ascending='FALSE' /></OrderBy><QueryOptions><RowLimit>1</RowLimit></QueryOptions><Where><Eq><FieldRef Name='Approved_x003f_' /><Value Type='Choice'>Yes</Value></Eq></Where></Query>";
$().SPServices({
operation: "GetListItems",
async: false,
listName: "Stories",
CAMLQuery: cmlquery,
CAMLRowLimit: 1,
completefunc: function (xData, Status) {
$(xData.responseXML).SPFilterNode("z:row").each(function () {
var story = $(this).attr("ows_Content");
var image = $(this).attr("ows_Image");
image=image.replace(',','').trim();
var html="<img src='"+image+"' border='0'/><br/><br/>"+story+"<br/>Click <a href='#' onclick='OpenDialog()'>here</a> to add your story";
$("#teamdata").append(html);
});
}
});
}
$(document).ready(function(){
DisplayInfo();
});
</script>