Envy 4502 new cartridge issue (2024)

  • Sign up
  • ·
  • Sign in
  • Sign up / Sign in
  • ×

    Information

    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more

    Information

    Need Windows 11 help?

    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.

  • ×

    Information

    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more

    Information

    Need Windows 11 help?

    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.

  • HP Community
  • Printers
  • Envy 4502 new cartridge issue

Envy 4502 new cartridge issue

Solved

Options

  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page

turn on suggested results

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Search instead for

Did you mean:

Start a conversation

Envy 4502 new cartridge issue (3)

Guidelines

Experiencing 'Printer Blocked' or 'Printer Error' message? Click here for more information.

Envy 4502 new cartridge issue (4)

Create an account on the HP Community to personalize your profile and ask a question

Your account also allows you to connect with HP support faster, access a personal dashboard to manage all of your devices in one place, view warranty information, case status and more.

Sign in / Create an account

Learn more

Sign in / Create an account / Learn more

Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our Black or Color Ink Not Printing, Other Print Quality Issues info about: Print quality and Cartridge Issues.

Envy 4502 new cartridge issue (5)

It has been a while since anyone has replied. Simply ask a new question if you would like to start the discussion again.

Envy 4502 new cartridge issue (6)

Forddoctor

1 0 0

1,772

New member

‎04-21-201608:49 PM

Envy 4502 new cartridge issue (7) HP Recommended

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Flag Post

Product: Envy 4502

Operating System: Microsoft Windows 8.1 (64-bit)

I purchased new ink cartridges from Inkfarm.com. They are the correct number (61, color and B&W). My printer is giving me the message "Ink cartridge problem". "The following ink cartridges must be replaced" with a sideways hourglass. No other buttons on the printer will function. I have unplugged the machine and taken the cartridges out and put them back in numerous times. And yes, I did ensure that I removed the tape from them before putting them in.

Solved!Go to Solution.

Tags (2)

  • Tags:
  • envy 4502
  • Microsoft Windows 8.1 (64-bit)

View All (2)

2 people had the same question

I have the same question

1 ACCEPTED SOLUTION


Accepted Solutions

Envy 4502 new cartridge issue (8)

Envy 4502 new cartridge issue (9)Drakster

4,038 621 306

1,730

Retired

‎04-22-201603:10 PM - edited ‎04-22-201603:10 PM

Envy 4502 new cartridge issue (10) HP Recommended

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Flag Post

Hi @Forddoctor,

Welcome to the HP Support Forums!

I understand that you're experiencing problems with the ink cartridges that you purchased from Inkfarm.com. I would be happy to look into this with you and please remember to return to this thread and mark 'Accept as Solution', if I have successfully helped you resolve the issue. If you wish to say 'thanks' for my effort to help, click the 'thumbs up' to give me a Kudos.

I checked Inkfarm.com and they sell both genuine and remanufactured ink cartridges.

Which did you buy? If you purchased remanufactured ink cartridges and they aren't working contact the Inkfarm.com.

If they are genuine HP ink cartridges, follow the steps within this guide:

If you have a defective genuine HP ink cartridge, it might be under warranty. To check the warranty on your ink supplies, go to hp.com/go/learnaboutsupplies, select your country/region, then review the limited warranty information for your supplies.

If you completed all the preceding steps and your product still has an issue, service the product.

Contacting HP for service in all countries/regions except Asia Pacific.

First, go to Check your product warranty to check your printer warranty status, and then go to Contact HP Support to find an authorized service dealer or to schedule a repair.

Repair fees might apply for out-of-warranty printers.

What you can do, is use the following link to create yourself a case number, then call and it may help speed up the call process:

Step 2. Enter Product number or select to auto detect

Step 3. Scroll down to "Still need help? Complete the form to select your contact options"

Step 4. Scroll down and click on HP contact options - click on Get phone number

Case number and phone number appear.

I hope this information is helpful. Please respond to this post with the results. Good Luck!

Drakster
I work on behalf of HP

If you found this post helpful, you can let others know by clicking the “Accept as Solution” button. You can also show your appreciation, with a kudos, by clicking the “thumbs up" button!

View solution in original post

Tags (2)

  • Tags:
  • envy 4502
  • Microsoft Windows 8.1 (64-bit)

View All (2)

Was this reply helpful?YesNo

1 REPLY 1

Envy 4502 new cartridge issue (11)

Envy 4502 new cartridge issue (12)Drakster

4,038 621 306

1,731

Retired

‎04-22-201603:10 PM - edited ‎04-22-201603:10 PM

Envy 4502 new cartridge issue (13) HP Recommended

  • Mark as New
  • Bookmark
  • Subscribe
  • Permalink
  • Print
  • Flag Post

Hi @Forddoctor,

Welcome to the HP Support Forums!

I understand that you're experiencing problems with the ink cartridges that you purchased from Inkfarm.com. I would be happy to look into this with you and please remember to return to this thread and mark 'Accept as Solution', if I have successfully helped you resolve the issue. If you wish to say 'thanks' for my effort to help, click the 'thumbs up' to give me a Kudos.

I checked Inkfarm.com and they sell both genuine and remanufactured ink cartridges.

Which did you buy? If you purchased remanufactured ink cartridges and they aren't working contact the Inkfarm.com.

If they are genuine HP ink cartridges, follow the steps within this guide:

If you have a defective genuine HP ink cartridge, it might be under warranty. To check the warranty on your ink supplies, go to hp.com/go/learnaboutsupplies, select your country/region, then review the limited warranty information for your supplies.

If you completed all the preceding steps and your product still has an issue, service the product.

Contacting HP for service in all countries/regions except Asia Pacific.

First, go to Check your product warranty to check your printer warranty status, and then go to Contact HP Support to find an authorized service dealer or to schedule a repair.

Repair fees might apply for out-of-warranty printers.

What you can do, is use the following link to create yourself a case number, then call and it may help speed up the call process:

Step 2. Enter Product number or select to auto detect

Step 3. Scroll down to "Still need help? Complete the form to select your contact options"

Step 4. Scroll down and click on HP contact options - click on Get phone number

Case number and phone number appear.

I hope this information is helpful. Please respond to this post with the results. Good Luck!

Drakster
I work on behalf of HP

If you found this post helpful, you can let others know by clicking the “Accept as Solution” button. You can also show your appreciation, with a kudos, by clicking the “thumbs up" button!

Tags (2)

  • Tags:
  • envy 4502
  • Microsoft Windows 8.1 (64-bit)

View All (2)

Was this reply helpful?YesNo

Envy 4502 new cartridge issue (14)

Be alert for scammers posting fake support phone numbers and/or email addresses on the community.

If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.

Envy 4502 new cartridge issue (15)

  • English

    Open Menu
    • English

    • Español

    • Português

    • 中文

Envy 4502 new cartridge issue (16)

Didn't find what you were looking for? Ask the community

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.

"); } },500) }); })(LITHIUM.jQuery); var btn = $('.backToTopButton');$(window).scroll(function() { if ($(window).scrollTop() > 300) { btn.addClass('show'); } else { btn.removeClass('show'); }});btn.on('click', function(e) { e.preventDefault(); $('html, body').animate({scrollTop:0}, '300');}); (function($) { $(document).ready(function(){ $(window).scroll(function() { var s = $(".lia-top-quilt > .lia-quilt-row.lia-quilt-row-header:first-child"); var p = s.find(".lia-quilt-row-custom-header"); var top = s.offset().top; var scroll = $(window).scrollTop(); if (scroll >= 400) { $(".ask-common-wrap").addClass("footer-fixed"); } else { $(".ask-common-wrap").removeClass("footer-fixed"); } if ( scroll >= top ) { if (!(p.parent().hasClass("custom-header-background"))) { p.wrap("

"); } var backgroundDiv = p.parent(); var placeholderDiv = backgroundDiv.parent(); parentHeight = backgroundDiv.outerHeight(); placeholderDiv.css('min-height', parentHeight+'px'); backgroundDiv.addClass("stick"); } else { if(p.parent().hasClass("custom-header-background")) { p.unwrap(); } if(p.parent().hasClass("custom-header-placeholder")) { p.unwrap(); } } }); }); })(LITHIUM.jQuery);;(function($){// Workaround for survey - Part 2 function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } async function surveyManualTrigger() { if (QSI.API) { await sleep(65000); QSI.API.run() } else {} } window.addEventListener("qsi_js_loaded", surveyManualTrigger, false);// Workaround for survey - Part 2 - END})(LITHIUM.jQuery);;function getParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^]*)"), results = regex.exec(location.search); return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));}(function($) {$("#markMessageAsAcceptedSolutionSecondaryButton").click(function(e){localStorage['accepted-solution-clicked'] = true;});var hpmmd=window.hpmmd||{type: 'Cleansheet Wash', page:{events:[]}, product:{},user:{},legacy:{},promo:{},search:{}};hpmmd.page.site = 'csf';hpmmd.page.name = 'ForumTopicPage'; hpmmd.page.section = 'Printers';hpmmd.page.subsection = 'Printing Errors or Lights & Stuck Print Jobs';hpmmd.page.content_id = ''; if (LITHIUM.CommunityJsonObject.WebTracking.Activities && LITHIUM.CommunityJsonObject.WebTracking.Activities.UserMessageEvent) { hpmmd.page.page_action = LITHIUM.CommunityJsonObject.WebTracking.Activities.UserMessageEvent.replace("tracking.message.","")+" "+'forum'; hpmmd.page.content_id = ''; } if(localStorage['accepted-solution-clicked']){ localStorage.removeItem("accepted-solution-clicked"); hpmmd.page.page_action = "accepted-solution " +'forum'; hpmmd.page.content_id = ''; } if(hpmmd.page.page_action=="new forum") { if(localStorage['post-from-board']) { hpmmd.page.page_action += " board_page"; } else { hpmmd.page.page_action += " thread_page"; } } if(getParameterByName("post-from-board")=="true") { localStorage["post-from-board"] = true } else if(localStorage['post-from-board']) { localStorage.removeItem("post-from-board"); }hpmmd.user.login = 'false'; if (LITHIUM.CommunityJsonObject.WebTracking.Activities.SearchTerm) { if (!hpmmd.search) {hpmmd.search = {}} hpmmd.search.keyword = LITHIUM.CommunityJsonObject.WebTracking.Activities.SearchTerm; } window.hpmmd = hpmmd;})(LITHIUM.jQuery); ;(function($){ console.log("Medallia Global Data Layer - Checking if we have Global data layer"); if (!window.hasOwnProperty('globalDataLayer')) { console.log("Medallia Global Data Layer - No Global data layer. Creating it"); window.globalDataLayer = {} } console.log("Medallia Global Data Layer - Adding language code: " + "en"); window.globalDataLayer.LanguageCode = "en"; window.globalDataLayer.popUpSurvey = true; window.globalDataLayer.isUserAnonymous = true; window.globalDataLayer.threadboardname = "Printing-Errors-or-Lights-Stuck-Print-Jobs"; var startTime = new Date(); var surveyPollingTimeout = 60000; var interval = setInterval(function () { if (Math.abs(new Date() - startTime) > surveyPollingTimeout) { clearInterval(interval); } if ($("#nebula_div_btn").length) { clearInterval(interval); $('.alert-section ul').append('

  • Feedback
  • '); $('.alert-section-mobile ul').append('

  • Feedback
  • '); var feeedbackButtonText = $('.kampyle_button-text').text(); $('.opt-feedback-link').text(feeedbackButtonText); $('[id^=opt-custom-feedback]').on('click', function(){ $('#nebula_div_btn').trigger('click'); }); } }, 500);})(LITHIUM.jQuery);(function($) {/* Check the environment (STG vs PRO) to set the correct URL. The code will run both on Stage and Production */var url = "https://global-navbar-backend.id.hp.com/api/v1/session/sso_check";$.ajax({ type: 'GET', url: url, contentType: 'application/json', dataType: 'json', xhrFields: { withCredentials: true }, success: function(data) { /* If the call is successfull, have two scenarios: */ /* If the user is NOT logged in and the results from the API says that a valid session exists, redirect the user to the Khoros sign in plugin, which will take care of authenticating the user on the community automatically */ if(data.sessionIsValid) { // window.location="https://h30434.www3.hp.com/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fh30434.www3.hp.com%2Ft5%2FPrinting-Errors-or-Lights-Stuck-Print-Jobs%2FEnvy-4502-new-cartridge-issue%2Ftd-p%2F5594373"; window.location= "/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fh30434.www3.hp.com%2Ft5%2FPrinting-Errors-or-Lights-Stuck-Print-Jobs%2FEnvy-4502-new-cartridge-issue%2Ftd-p%2F5594373"; } }, error: function (jqXHR,textStatus,errorThrow) { /* If the call is not successfull, don't take any action. */ console.log("Single Sign-on | Error: " + errorThrow); } });})(LITHIUM.jQuery);(function () { window._uxa = window._uxa || []; try { if (typeof dataLayer !== 'undefined') { } } catch (e){} if (typeof CS_CONF === 'undefined') { window._uxa.push(['setPath',window.location.pathname+window.location.hash.replace('#','?__')]); var mt = document.createElement("script"); mt.type = "text/javascript"; mt.async = true; mt.src = "https://t.contentsquare.net/uxa/eee8c774-ec16-4fc4-a63b-ee91d06bc089.js"; document.getElementsByTagName("head")[0].appendChild(mt); } else { window._uxa.push(['trackPageview',window.location.pathname+window.location.hash.replace('#','?__')]); }})();LITHIUM.PartialRenderProxy({"limuirsComponentRenderedEvent":"LITHIUM:limuirsComponentRendered","relayEvent":"LITHIUM:partialRenderProxyRelay","listenerEvent":"LITHIUM:partialRenderProxy"});LITHIUM.AjaxSupport({"ajaxOptionsParam":{"event":"LITHIUM:partialRenderProxyRelay","parameters":{"javascript.ignore_combine_and_minify":"true"}},"tokenId":"ajax","elementSelector":document,"action":"partialRenderProxyRelay","feedbackSelector":false,"url":"https://h30434.www3.hp.com/t5/forums/v4/forumtopicpage.liabase.basebody.partialrenderproxy:partialrenderproxyrelay?t:ac=board-id/PostPrint/thread-id/543684","ajaxErrorEventName":"LITHIUM:ajaxError","token":""});LITHIUM.Auth.API_URL = "/t5/util/authcheckpage";LITHIUM.Auth.LOGIN_URL_TMPL = "/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2FREPLACE_TEXT";LITHIUM.Auth.KEEP_ALIVE_URL = "/t5/status/blankpage?keepalive";LITHIUM.Auth.KEEP_ALIVE_TIME = 300000;LITHIUM.Auth.CHECK_SESSION_TOKEN = 'ayDQrrVfoUA8_-1';LITHIUM.AjaxSupport.useTickets = true;LITHIUM.Loader.runJsAttached();// -->

    '); } var cardWrapper = $('.hover-card-container'); var error = false; var thisUserID = ''; var cardTimer; allHoverCardTriggers.on({ mouseenter: function() { var thisEl = $(this); cardTimer = setTimeout(function(){ var docWidth = $(document).width(); var rightSide = false; //return user id var userLink = thisEl.attr('href'); if($('.ViewProfilePage').length && $('img.lia-user-avatar-profile',thisEl).length){ var userLink = document.location.href; } else if(thisEl.attr('href')=='#'){ return false; } var thisLen = (userLink).split('/'); thisUserID = (thisLen)[thisLen.length-1]; var thisCard = $('.profileCard[data-user='+thisUserID+']',cardWrapper); var thisElLeftOffset = Math.round(thisEl.offset().left+(thisEl.width())); var thisElTopOffset = Math.round(thisEl.offset().top+(thisEl.height()/2)-94); if((thisElLeftOffset+387)>=docWidth){ //hover card is too far to the right of the screen var thisElLeftOffset = Math.round(thisEl.offset().left-387); rightSide = true; } if(thisCard.length && $('.profileCard[data-user='+thisUserID+'] .preloader',cardWrapper).length<1){ $('.profileCard',cardWrapper).hide(); rightSide?thisCard.addClass('rightArrow'):thisCard.removeClass('rightArrow'); thisCard.delay(500).css({'top':thisElTopOffset,'left':thisElLeftOffset}).stop().show(); } else { var ajaxReturn = ''; //just in case thisCard.remove(); //hover card wrapper markup var rightArrowClass = rightSide?'rightArrow':''; var profileCardHtml = '

    Envy 4502 new cartridge issue (17)

    '; $.when( //get the background $.ajax({ type: 'GET', url: userApiUrl+thisUserID, dataType: 'html', success: function(data) { $('.profileCard',cardWrapper).hide(); ajaxReturn = data; } }) ) .done(function(){ cardWrapper.append(profileCardHtml); $('.profileCard[data-user='+thisUserID+']',cardWrapper).eq(0).empty().html(ajaxReturn).on({mouseleave: function() { clearTimeout(cardTimer); if($('.profileCard[data-user='+thisUserID+']',cardWrapper).length){ $('.profileCard[data-user='+thisUserID+']',cardWrapper).delay(500).fadeOut('fast'); } } }); if($('.profileCard[data-user='+thisUserID+'] .preloader',cardWrapper).length){ $('.profileCard[data-user='+thisUserID+'] .preloader',cardWrapper).parents('div.profileCard').remove(); } }) .fail(function(){ //uh oh - bail out! $('.profileCard',cardWrapper).hide(); }); } },400); }, mouseleave: function() { clearTimeout(cardTimer); if($('.profileCard[data-user='+thisUserID+']',cardWrapper).length){ $('.profileCard[data-user='+thisUserID+']',cardWrapper).delay(500).fadeOut('fast'); } } }); } } window.common = common; $(document).ready(function() { common.profileCard(); }); })(LITHIUM.jQuery);

    '); var dropdownTriggerAnchorId = actualElId+'_dd_headerLink'; var dropdownTabIndex = $('#'+actualElId).attr('tabindex'); var ariaLabel = $('#'+actualElId).attr('aria-labelledby'); var dropdownTriggerValueId = actualElId+'_dd_headerValue'; if(ariaLabel==null || ariaLabel==undefined){ ariaLabel = dropdownTriggerValueId; } else{ ariaLabel = ariaLabel + " "+ dropdownTriggerValueId; } if($('#'+actualElId).hasClass('disabled')) { dropdownContainer.addClass('disabled'); } var dropdownTrigger = $('

    '); if(typeof dropdownTabIndex == "undefined" || dropdownTabIndex == "" ){ var dropdownTriggerAnchor = $('

    '); } else{ var dropdownTriggerAnchor = $('

    '); } var dropdownTriggerValue = $('

    '); $(dropdownTriggerAnchor).append(dropdownTriggerValue); $(dropdownTrigger).append(dropdownTriggerAnchor) $(dropdownContainer).append(dropdownTrigger); var DropdownListId = actualElId+'_dd_list'; var DropdownList = $('

      '); $(dropdownContainer).append(DropdownList); //insert the custom container after the select tag dropdownContainer.insertAfter($('#'+actualElId)); //populate the list items populateDropdownList(actualElId, DropdownListId); //Populate the Dropdown Header Value valueReq = $('#'+actualElId).attr('valuereq') if(valueReq!=null && valueReq!="" ){ var valObtained = getParameterByName(valueReq)?getParameterByName(valueReq):getCCLC(valueReq); if(valObtained != null && valObtained != ''){ valObtained = valObtained.toLowerCase(); /*check if language dropdown and customize for cn-zh hk-zh or tw-zh */ if($(this).attr('valuereq')=="lc") { if( getCCLC("cc") == "cn" && valObtained == "zh"){ valObtained = "zh-hans"; // for china return chinese simplified } else if((getCCLC("cc") == "tw" || getCCLC("cc") == "hk") && valObtained == "zh"){ valObtained = "zh-hant"; // for taiwan and hongkong return chinese traditional } } } populateDropdownHeader(actualElId, valObtained); } else populateDropdownHeader(actualElId, "");};populateDropdownHeader = function(elId, val) {//set the dropdown Header Value to the first elem var firstVal = $($('#'+elId).children('option')[0]).html(); $('#'+elId+'_dd_headerValue').empty().append(firstVal); $('#'+elId+'_dd_headerValue').addClass('default'); //set the hidden dropdown value if(!$('#'+elId).children('option').eq(0).prop('disabled')) { $('#'+elId).val(0) } if(val!="" ) { var elem = ""; $('#'+elId+'_dd_list li.elem a span.value').each(function(){ if($(this).html()==val){ //set the dropdown Header Value to the found elem elem = $(this).parents('a').html() $('#'+elId+'_dd_headerValue').empty().append(elem); //set the hidden dropdown value $('#'+elId).val(val); } }); }};populateDropdownList = function(elId, listId) { $('#'+elId).children('option').each(function() { var listItem = $('

    • '); var listItemAnchor = $(''); var spanValue = $(''); var spanImgUrl = $(''); var spanSeoLabel = $(''); var spanRedirectUrl = $(''); var spanClazzType = $(''); var listData = $(this).html(); var dataValue = $(this).attr('value'); if( $(this).attr('hidden') ) { listItem.addClass('hide'); } $(listItemAnchor).append(listData); $(spanValue).append($(this).attr("value")); listItemAnchor.append(spanValue); if($(this).attr("imageurl")){ $(spanImgUrl).append($(this).attr("imageurl")); listItemAnchor.append(spanImgUrl); } if($(this).attr("seo-label")){ $(spanSeoLabel).append($(this).attr("seo-label")); listItemAnchor.append(spanSeoLabel); } if($(this).attr("redirectUrl")){ $(spanRedirectUrl).append($(this).attr("redirectUrl")); listItemAnchor.append(spanRedirectUrl); } if($(this).attr("clazzType")){ $(spanClazzType).append($(this).attr("clazzType")); listItemAnchor.append(spanClazzType); } $(listItem).append(listItemAnchor); $('#'+listId).append(listItem); });};attachClickHandler = function(elId) { $('#'+elId+'_dd').on('click', function(e){ e.stopPropagation(); if(!$(this).hasClass("disabled")) { $(this).toggleClass("open"); if($(this).hasClass("open")) { positionDropdown($(this).attr('id')); } } }); $(window).on("resize.customDropdown", function() { $(".open .dropdown-menu").each(function(){ positionDropdown($(this).parent().attr('id')); }); }); $(document).click(function (e) { e.stopPropagation(); if ($('#'+elId+'_dd').has(e.target).length === 0 && $('#'+elId+'_dd').hasClass('open')) { $('#'+elId+'_dd').removeClass("open"); } }); $('#'+elId+'_dd_list li').on('click', function(){ //set value in the hidden select tag //populate header value selValue = $(this).children('a').children('span.value').html(); $('#'+elId).val(selValue); populateDropdownHeader(elId, selValue); $('#'+elId).trigger('change'); //set focus to the main anchor tag $('#'+elId+'_dd_headerLink').focus(); });};positionDropdown = function(elId){ var diff = 0; var padding = 15; if( $("#"+elId).children(".dropdown-menu").outerWidth() >$("#"+elId).outerWidth() ) { diff = ($("#"+elId).outerWidth() - $("#"+elId).children(".dropdown-menu").outerWidth())/2; } $("#"+elId).children(".dropdown-menu").removeAttr("style"); overflowLeft = ($(window).width() - padding) - ( $("#"+elId).offset().left + diff + $("#"+elId).children(".dropdown-menu").outerWidth() ); overflowRight = ($("#"+elId).offset().left + diff - padding); if(overflowLeft < 0 && overflowRight < 0) { $("#"+elId).children(".dropdown-menu").css("max-width", "" + ($(window).width() - $("#"+elId).offset().left - padding ) + "px" ); diff = 0; } else if(overflowLeft < 0 ) { diff = diff + overflowLeft; } else if(overflowRight < 0) { diff = diff - overflowRight; } $("#"+elId).children(".dropdown-menu").css("left", diff + "px"); }attachKeyboardListeners = function(elId){ //keydown evets for esc/bcksp/tab $('#'+elId+'_dd').on('keydown', function(e) { if(e.keyCode == 8 || e.keyCode == 9 || e.keyCode == 27 ){ //if the user hits backspace, esc, or tab it should close the dropdown if($(this).hasClass('open')){ e.preventDefault(); e.stopPropagation();//to prevent popups from closing $(this).removeClass('open'); } } if(e.keyCode == 13 && !$(this).hasClass('open') ){ $(this).addClass('open') } }); //keypress events for typeahead $('#'+elId+'_dd').on('keypress', function(e) { if(e.keyCode != 37 || e.keyCode != 38 || e.keyCode != 39 || e.keyCode != 40){ key = String.fromCharCode(e.charCode != null ? e.charCode : e.keyCode); clearTimeout(timeOutResetLetters); timeOutResetLetters = setTimeout(function(){ letterPressed = []; },500); letterPressed.push(key); if(getTyped() == letterPressed.join('')){ setTyped(letterPressed.join('')); setCounter(getCounter()+1); } else{ setCounter(1); setTyped(letterPressed.join('')); } typeahead(letterPressed.join(''), this); } }); //To handle typeahed for more than once $('#'+elId+'_dd').on('blur', function(e) { setCounter(1); setTyped(''); }); $('#'+elId+'_dd ul > li').on('mouseover', function(e) { setTypeAhead(this); });};typeahead = function(what, elem){ var els = $('#'+$(elem).attr('id')+' .elem').filter(function(index) { return $(this).children('a').html().toLowerCase().search(what) == 0; }); var index = (typeAheadCounter - 1) % els.length; if(els && els.length > 0 && els[index] && els[index].childNodes[0]){ els[index].childNodes[0].focus(); }}setTypeAhead = function(el){ var hoveredEl = $(el); var hoveredChar = hoveredEl.children('a').html().toLowerCase().split('<')[0][0]; setTyped(hoveredChar); setCounter(0); /* var i = 1; //TODO: revisit for mouse hover logic var els = hoveredEl.parent().children('.elem').filter(function(index) { return $(this).children('a').html().toLowerCase().search(hoveredChar) == 0; }); while(i < els.length){ console.log(hoveredEl+' == '+els); if(hoveredEl == els[i-1]){ setCounter(i); console.log(hoveredChar+', '+i); } i+=1; } */ }var letterPressed = [];var timeOutResetLetters = null;var typeAheadCounter = 1;var typeAheadText = '';function setCounter(val) { typeAheadCounter = val;}function getCounter() { return typeAheadCounter;}function setTyped(val) { typeAheadText = val;}function getTyped() { return typeAheadText;}getSelectedData = function(opt,elID) { var elem = $('#'+elID+'_dd_headerValue'); if(opt=='value'){ return $(elem).children('span.value').html(); } if(opt=='imgurl'){ return $(elem).children('span.imgurl').html(); } if(opt=='seoLabel'){ return $(elem).children('span.seoLabel').html(); } if(opt=='redirectUrl'){ return $(elem).children('span.redirectUrl').html(); } if(opt=='clazzType'){ return $(elem).children('span.clazzType').html(); }}attachChangeListener = function(elId){ $('#'+elId).on('change',function(){ var currentValue = $(this).val(); populateDropdownHeader(elId, currentValue); if(($('#'+elId).hasClass('disabled') || $('#'+elId).prop('disabled')) && !$('#'+elId+'_dd').hasClass('disabled')) { $('#'+elId+'_dd').addClass('disabled'); } else if ((!$('#'+elId).hasClass('disabled') && !$('#'+elId).prop('disabled')) && $('#'+elId+'_dd').hasClass('disabled')) { $('#'+elId+'_dd').removeClass('disabled'); } });}$(document).ready(function() { $("body.PostPage select, body.EditPage select, body.ReplyPage select").addClass("hpStyleDropdown"); getHpStyleDropdown(); /* Workaround for jQuery 'trigger' not launching the event handler inside the closure (LITHIUM.MessageEditorForm.BoardChooser) */ var changeTriggered = false; $('body.PostPage #lia-board, body.ForumPage #sortthreads').on('change', function() { if(!changeTriggered) { changeTriggered = true; $(this)[0].dispatchEvent(new Event("change")); setTimeout(function(){ changeTriggered = false; },100) } }); $('body.PostPage #no-product, body.ReplyPage #no-product, body.EditPage #no-product').on('change', function() { $("#s-products").trigger("change"); });});

    • Envy 4502 new cartridge issue (2024)
      Top Articles
      Latest Posts
      Article information

      Author: Jeremiah Abshire

      Last Updated:

      Views: 5892

      Rating: 4.3 / 5 (54 voted)

      Reviews: 85% of readers found this page helpful

      Author information

      Name: Jeremiah Abshire

      Birthday: 1993-09-14

      Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

      Phone: +8096210939894

      Job: Lead Healthcare Manager

      Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

      Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.