Error Retrieving Attribute
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up jQuery 1.8.1 data() error retrieving HTML5 data-attribute up vote 0 down vote favorite I'm trying to extract the FIRST data attribute from the following mark-up: the JS I've conjured is: var button1 = $('.buttonMiddle').get(0).data('vid'); console.log(button1); Chrome's console gives me this: Uncaught TypeError: Object # has no method 'data' I've covered the basic troubleshooting --> jQuery is loaded before this js file, they are both loaded just before the closing body tag (so no need for $(function() {// find data-attribute});. javascript jquery html5 custom-data-attribute share|improve this question edited Dec 24 '15 at 17:42 Brian Tompsett - 汤莱恩 3,091132775 asked May 6 '13 at 13:00 Mat Methodik 104 2 .get() will get you a DOM Element - if you want to use .data() you need a jQuery object because .data() is a jQuery method so using .eq() will return a jQuery object –ᾠῗᵲᄐᶌ May 6 '13 at 13:08 add a comment| 1 Answer 1 active oldest votes up vote 6 down vote accepted Try to use eq() instead of get() here: var button1 = $('.buttonMiddle').eq(0).data('vid'); share|improve this answer answered May 6 '13 at 13:02 Eli 12.9k54471 Perfect, thats the solution! For anyone else who comes by this, if you want to read more on @wirey's explanation check it out here --> api.jquery.com/eq –Mat Methodik May 6 '13 at 16:04 Be careful about key that must be lowercas
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Android Support Library v7: Error retrieving parent http://stackoverflow.com/questions/16399331/jquery-1-8-1-data-error-retrieving-html5-data-attribute for item up vote 40 down vote favorite 10 I am trying to build the Android Support Library v7 samples. For that, I created an sampleproject through Eclipse -> New Android Sample Project and added the android-support-v7-* projects as "Android Project From Existing Code" to Eclipse, and made the sample project reference them. But I am getting the following errors in android-support-v7-mediarouter/res/values/styles.xml: error: Error retrieving parent for http://stackoverflow.com/questions/18964902/android-support-library-v7-error-retrieving-parent-for-item item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'. (line 18) error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.ActionButton'. (line 28) What can I do to fix these errors and build the sample project? android android-layout android-support-library share|improve this question edited Sep 23 '13 at 20:00 asked Sep 23 '13 at 17:02 Nutomic 7921722 I think you should change your target version to 18 in the manifest. android:targetSdkVersion="18" –khubaib Sep 23 '13 at 17:35 Remember to do a project clean after changing the API level. Api level 14 or 15 or above will do. –khubaib Sep 23 '13 at 17:42 1 I have target API 18 on all projects (in project.properties), and target SDK 18 in the samepl project. Cleaning all projects helps nothing. –Nutomic Sep 23 '13 at 18:19 Possible duplicate of Can't Find Theme.AppCompat.Light for New Android ActionBar Support –blahdiblah Oct 14 '13 at 19:57 add a comment| 1 Answer 1 active oldest votes up vote 87 down vote accepted You must make the android-support-v7-mediarouter project "aware" of the android-support-v7-appcompat project as a referenced library. Right click android-support-v7-mediarouter project, select Prop
from 8hAM to 12hPM PDT. During that time, you will not be able to view or create cases online. If you need any assistance, you can either email, or call us at one of our office locations. Did this help you? Yes No Partially Tell Us More: Select This content appears incomplete The content appears incorrect or outdated Difficult to follow Other Comments:(Max 1000 chars) Would you like a response? Email is required. Email: KB01428 - Error retrieving the current PI server time. -10733 PINET: RPC Resolver is Off-Line Product: PI Data Archive Version(s): All Platform: Windows Issue When using any of the PI Clients, such as PI Coresight, PI ProcessBook, PI DataLink, or PI WebParts, you may encounter the following error: Error retrieving the current PI server time. [-10733] PINET: RPC Resolver is Off-Line. OR Data Error: -2147219957 .Description: Data was not available for attribute 'xxxxxxxxx': Error retrieving the current PI server time. [-10733] PINET: RPC Resolver is Off-Line Solution This error occurs because the PI Message Subsystem is unavailableon the PI Data Archivenode. Find root cause of PI Message Subsystemis unavailable (view the application event logs for possible crash) Start the PI Message Subsystem (make sure that the Startup Type is set to Automatic) Background This error indicates that there is an issue with the PI Message Subsystem. When PI Message Subsystem is not available, PI Data Archive components write messages to the Windows event log Article ID: KB01428 Created: 2016-07-11 Article Type: Troubleshooting Last Updated: 2016-07-12 Enabling Operational Intelligence Privacy Legal Copyright Contact Us