Please consider registering
guest

Log In Members

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
jQuery.find not working in IE7 for xml data
July 28, 2012
6:47 am
Madison Miller
Guest

As part of troubleshooting a shareoint functionality, we found that jQuery.find not working.

We were using jQuery.ajax to call a sharepoint web service and in success function, finding an element in response xml to render it on div.

We fixed this and there are couple of options to fix this that we found from stackoverflow.

1. add dataType: 'xml​' in jQuery.ajax and that will fix it.

2. in response, check for browser is IE7 and variable that is having data is blank, do it with another method, here is javascript code:

if ($.browser.msie && liHtml == "") {
xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(response);
liHtml = $("XmlTagNameToFind",xml).text();
}

ligHtml here is the variable which has jQuery.find().text() output.

I hope this will help you as well.

For more info about Sharepoint Development Visit – http://www.binaryrepublik.com/

August 25, 2012
8:49 am
Member
Forum Posts: 12
Member Since:
August 25, 2012
Offline

Thanks Madison,

 

It will be really helpful to me on my working project.

Forum Timezone: UTC 0

Most Users Ever Online: 91

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Member Stats:

Guest Posters: 1110

Members: 16881

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 10

Topics: 1137

Posts: 2545

Administrators: Learning SharePoint (212)