Is updating BIOS safe without losing data? (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
  • Notebooks
  • Notebook Software and How To Questions
  • Is updating BIOS safe without losing data?

Is updating BIOS safe without losing data?

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

Is updating BIOS safe without losing data? (3)

Guidelines

Any failures related to Hotkey UWP service? Click here for tips.

Is updating BIOS safe without losing data? (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 out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs, VIDEOS AND MORE.

Is updating BIOS safe without losing data? (6)

w20grippy

25 10 0

28,482

Level 3

‎05-12-201706:22 AM - edited ‎05-12-201706:22 AM

Is updating BIOS safe without losing data? (7) HP Recommended

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

Product: HP Pavilion Dv6

Operating System: Microsoft Windows 10 (64-bit)

My notebook product id is:B3J78PA#UUF

I have older BIOS which can be seen in the following linkhttps://screenpresso.com/=Oksub

What I need to do is updating this bios to a new one. I need to understand that as I am running Windows 10 creator on my machine, Would it be safe to update bios and could it cause any data loss to my hard drive?

Tags (2)

  • Tags:
  • hp pavilion dv6
  • Microsoft Windows 10 (64-bit)

View All (2)

I have the same question

5 REPLIES 5

Is updating BIOS safe without losing data? (8)

GBL84

4,161 1,369 563

28,475

Level 10

‎05-12-201706:30 AM

Is updating BIOS safe without losing data? (9) HP Recommended

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

Hello@w20grippy,

Updating BIOS has no relation with Hard Drive data. Andupdating BIOS will not wipe out files.

If your Hard Drive fails -- then you could/would lose your files.

BIOS stands for Basic Input Ouput System and this just tells your computer what kind of hardware is connected to your computer. The BIOS controls things like the hard drives, peripherals, ports, central processing unit and other basic programs.

Hope this helps, for any further queries reply to the post andfeel free to join us again !!

**Click the White Thumbs Up Button on the right to say Thanks**

Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Thank You,

GBL84

I am not an HP Employee

3 people found this reply helpful

Was this reply helpful?YesNo

Is updating BIOS safe without losing data? (10)

w20grippy

Author

25 10 0

28,466

Level 3

‎05-12-201706:42 AM

Is updating BIOS safe without losing data? (11) HP Recommended

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

As I came up with an understanding that my current bios is older and the HP support page which allowed to select OS either Winodws 7 or Winodws 8 and then I found there is an Bios update the same version (for Win7/8) but I am running Windows 10, Would it be a factor in updating the BIOS?

Was this reply helpful?YesNo

Is updating BIOS safe without losing data? (12)

GBL84

4,161 1,369 563

28,460

Level 10

‎05-12-201706:52 AM

Is updating BIOS safe without losing data? (13) HP Recommended

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

Hello@w20grippy,

The BIOS version available is only tested for WIN 7 and 8. And not for WIN 10.

So installng this version of BIOS update might damage your PC. We do not recommend you for the update.

Now the only way for you to update BIOS is by downgrading the operating system to WIN 8 from 10. Update the BIOS and then upgrade to WIN 10 again, Which is a lengthy process.

Rather kindly wait till HP releases BIOS Update for WIN 10. Keep checking the website often.

Hope this helps, for any further queries reply to the post andfeel free to join us again

**Click the White Thumbs Up Button on the right to say Thanks**

Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Thank You,

GBL84

I am not an HP Employee

1 person found this reply helpful

Was this reply helpful?YesNo

Is updating BIOS safe without losing data? (14)

w20grippy

Author

25 10 0

28,456

Level 3

‎05-12-201707:00 AM

Is updating BIOS safe without losing data? (15) HP Recommended

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

Thanks for that information. I was probably going to damage my hardware without knowing. Can I take a backup of my current bios and then preserving it to use later in case i need to test new bios that are released for Win7 and Win8?

1 person found this reply helpful

Was this reply helpful?YesNo

Is updating BIOS safe without losing data? (16)

GBL84

4,161 1,369 563

28,449

Level 10

‎05-12-201707:45 AM

Is updating BIOS safe without losing data? (17) HP Recommended

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

Hello@w20grippy,

Yes , You may save it to a USB Pen Drive and recover later.

See this document :

https://support.hp.com/us-en/document/c02693833

Hope this helps, for any further queries reply to the post andfeel free to join us again

**Click the White Thumbs Up Button on the right to say Thanks**

Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

Thank You,

GBL84

I am not an HP Employee

1 person found this reply helpful

Was this reply helpful?YesNo

Is updating BIOS safe without losing data? (18)

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.

Is updating BIOS safe without losing data? (19)

  • English

    Open Menu
    • English

    • Español

    • Português

    • 中文

Is updating BIOS safe without losing data? (20)

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 = 'Notebooks';hpmmd.page.subsection = 'Notebook Software and How To Questions';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 = "Notebook-Software-and-How-To-Questions"; 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%2FNotebook-Software-and-How-To-Questions%2FIs-updating-BIOS-safe-without-losing-data%2Ftd-p%2F6119331"; window.location= "/plugins/common/feature/oauth2sso_v2/sso_login_redirect?referer=https%3A%2F%2Fh30434.www3.hp.com%2Ft5%2FNotebook-Software-and-How-To-Questions%2FIs-updating-BIOS-safe-without-losing-data%2Ftd-p%2F6119331"; } }, 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/Recovery/thread-id/224734","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 = '7Ciri78ZFqe8_-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 = '

    Is updating BIOS safe without losing data? (21)

    '; $.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"); });});

    • Is updating BIOS safe without losing data? (2024)
      Top Articles
      Latest Posts
      Article information

      Author: Amb. Frankie Simonis

      Last Updated:

      Views: 5828

      Rating: 4.6 / 5 (76 voted)

      Reviews: 91% of readers found this page helpful

      Author information

      Name: Amb. Frankie Simonis

      Birthday: 1998-02-19

      Address: 64841 Delmar Isle, North Wiley, OR 74073

      Phone: +17844167847676

      Job: Forward IT Agent

      Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

      Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.