I am using using ublogsy 2.01 it works great in IE8+, firefox and chrome, however, my clients use IE7 and this is where ublogsy breaks in umbraco when I try to save anything on the umbraco backend? - Invalid json primitive
I believe this can be resolved by using json2.js from douglas crawford.
Do you know where the master page in ublogsy/utagsy is so I could add the reference to this file?
// deserialize and get tags object tags = ((Dictionary<string, object>)new JavaScriptSerializer().DeserializeObject(input))["tags"];
// make new object and save to umbraco this.umbracoValue = string.Join(",", ((IEnumerable)tags).Cast<string>().Select(x => x.Replace(uTagsy_hfLandingId.Value + "_" , string.Empty)));
// get json for this document type input = this.uTagsy_hfAllTags.Value.Replace("\\\"", "\"");
// get the document object document = ((Dictionary<string, object>)new JavaScriptSerializer().DeserializeObject(input))["document"];
// save json for document type SaveFileSettings(document); }
Sadly no on both counts, the client hands are tied over the browser they need to be able to use IE7. I've looked through the ublogsy source code and am trying to find the json packet that is fired on the ublogsy post doc type/template when saved that utagsy.ascx seems to point to. The json packets I've found in the source don't seem to be the ones that are used as I've referenced douglas crockford's json2 library (which make IE7 understand json) to these and the result is thhe same
Script 5009 - json is underfined editcontent.aspx?id=3478, line 397 character 21
HTML1115: X-UA-Compatible META tag ('IE=7') ignored because document mode is already finalized.
editContent.aspx?id=3478
Any hints?
Thanks.
P.S. As ublogsy is razor based I am assuming it will work on a Umbraco instance on a MySql as well as a SQLServer database?
uBlogsy and IE7
Hi,
I am using using ublogsy 2.01 it works great in IE8+, firefox and chrome, however, my clients use IE7 and this is where ublogsy breaks in umbraco when I try to save anything on the umbraco backend? - Invalid json primitive
I believe this can be resolved by using json2.js from douglas crawford.
Do you know where the master page in ublogsy/utagsy is so I could add the reference to this file?
This is probably due to some js crash and/or the way ie7 behaves to js.
It's the datatype is user control under /usercontrols/ on your file system website directory.
Hi Anthony,
Can you tell me how you used the [tags] primitive in this call ( in bold - line 109) in uTagsy.acsx.cs, as this seems to be what IE7 is falling over
protected void SaveSettings()
{
// fix json string
string input = this.uTagsy_hfTags.Value.Replace("\\\"", "\"");
// deserialize and get tags
object tags = ((Dictionary<string, object>)new JavaScriptSerializer().DeserializeObject(input))["tags"];
// make new object and save to umbraco
this.umbracoValue = string.Join(",", ((IEnumerable)tags).Cast<string>().Select(x => x.Replace(uTagsy_hfLandingId.Value + "_" , string.Empty)));
// get json for this document type
input = this.uTagsy_hfAllTags.Value.Replace("\\\"", "\"");
// get the document
object document = ((Dictionary<string, object>)new JavaScriptSerializer().DeserializeObject(input))["document"];
// save json for document type
SaveFileSettings(document);
}
Thanks
Paul
Sorry for the very late reply. I've been super busy and have neglected checking the forum.
Did you resolve your issue?
This issue can be caused by other packages having js errors. Newer browsers have much less issues. Any chance of moving away from IE 7?
Sadly no on both counts, the client hands are tied over the browser they need to be able to use IE7. I've looked through the ublogsy source code and am trying to find the json packet that is fired on the ublogsy post doc type/template when saved that utagsy.ascx seems to point to. The json packets I've found in the source don't seem to be the ones that are used as I've referenced douglas crockford's json2 library (which make IE7 understand json) to these and the result is thhe same
Script 5009 - json is underfined editcontent.aspx?id=3478, line 397 character 21
HTML1115: X-UA-Compatible META tag ('IE=7') ignored because document mode is already finalized.
editContent.aspx?id=3478
Any hints?
Thanks.
P.S. As ublogsy is razor based I am assuming it will work on a Umbraco instance on a MySql as well as a SQLServer database?
is working on a reply...