need to replace lcd touch screen on camera supplier

A very common camera repair performed today, no matter the type or manufacturer, is the replacement of the LCD (Liquid Crystal Display) screen. At the outset of this walkthrough a few things must be stressed; a disclaimer if you will. Trying to replace an LCD without proper knowledge and experience can be very difficult and sometimes hazardous. Pulling electronics apart and seeing how they work can be fun for some, but it can easily result in further damage and far more costly repairs. Nine times out of ten, when an LCD is being replaced, it is physically broken due to damage that was likely caused by some sort of trauma (from dropping etc).

Cameras are very tightly packed little pieces of technology and generally the LCD is attached to and/or part of a lot of other integral components. Because of this, there is a high probability that there are other things broken that only a trained professional can diagnose/fix easily. Also, having spare parts on hand doesn’t make economic sense for your average consumer because the costs of replacement parts for cameras are not in proportion to their selling price.

Furthermore, camera repair facilities have the necessary testing, calibration and adjustment equipment to get cameras fully operational. Bottom line, if one does attempt this at home, there is very little to no margin for error. Keep in mind this is a general walkthrough NOT a repair guide, I take no responsibility for any damage to property or personal harm that may occur from anyone making use of this information. With that said…

The first things first, parts and tools are necessary to doing this job right. Obviously the part needed is a replacement LCD. It has to be for that particular make and model; this ensures the connections align and it fits properly. The essential tools for “most” LCD replacements are:

And now for the show, replacing the LCD! Please keep in mind this is a general many camera models are more complex and will require additional disassembly in order to remove and replace the LCD.

Location and unscrewing of all housing screws to remove the necessary housing cover(s).It is easy to strip out the tiny screw heads; many manufacturers “glue” the screws in place. If the LCD was damaged due to impact, the housing may have shifted, making the screws problematic to remove.

Proprietary screws can also be a problematic; the screwdriver may have to be special ordered from the manufacturer. Screws may also be hidden behind stickers or panels.

There is a very real risk of shock from this point on. DO NOT TOUCH ANY CIRCUITRY. The flash capacitor circuit on some models is located nearby and will give a painfull serious jolt if one is not careful.

The screws securing the LCD to the rest of the camera are now removed. These are fairly easy to find but there may be additional clips or seals to watch out for.

Connecting components (generally wires or FPC’s) that run from the LCD to the rest of the camera are disconnected using the appropriate set of tweezers.

The new LCD has a protective plastic sheet that is removed before installation. Touching it with bare hands must be avoided, potential damage could be done. It’s also in bad form to get any oils on the nice new LCD screen.

The Battery and memory card are replaced and the camera is powered on. This only tests if the LCD was installed correctly. If the camera/LCD is not working there are countless other things that could be going wrong and are evaluated. As mentioned in the beginning, there is a high possibility that something else is broken and/or needed to be calibrated/adjusted. Further testing of the entire camera must be done to ensure the camera is fully operational.

Just to stress again, trying these kinds of repairs at home, can be a great hobby for some, shouldn’t be taken lightly. Professional photographers always have a backup camera in case of any type of equipment malfunction; it’s not a bad idea.

Kevin Gornto is a Factory Trained and Authorized Technician at C.R.I.S. Camera Services, a digital camera repair company located in Chandler, AZ. Kevin has an electronics degree that provided him with his advanced hardware knowledge and digital imaging expertise. He also enjoys writing about his technical experience and is a major contributor for the company’s camera repair blog; focused on care, maintenance and repair tips for digital cameras and imaging equipment.

need to replace lcd touch screen on camera supplier

Magdiel...I mentioned the heat around edge of screen during removal, because it keeps the screen from flexing so much during removal. The Home button can be damaged if the screen is flexed to much. Here"s what I suggest to both of you:

1. Make sure that the connector on home button is properly seated to connector on screen, it can be a little difficult to connect. If it is...I suggest you remove home button and camera cable and temporarily put them on old screen, attach to phone and test them. If the home button, camera and sound works properly, then the new screen is bad. The screen has the home button cable built into it that connects to the phone, and could be bad. If home button is good but camera is bad...then you have a issue with the camera cable where it connects to phone.

need to replace lcd touch screen on camera supplier

OK, I have been reading these comments and while there are some that are correct, there are few or more that are way out there. Guys, as a electronics tech, I have fixed many phones such as this in my time. Yes the cheap screens will fix it most of the time, but there are times when this is not the case. There is no easy fix for this.

First you have to diagnose the problem and the cause and then fix it. Sometimes its as simple as restarting the phone and sometimes the problem is hardware of the phone.

1) Check if the screen responds to any touch at all. If it does work but you get “ghost touch”, problem is likely going to be fixed without replacing the screen. Usually one of the connectors are dirty or not plugged in correctly. Easier fix is to open the iphone, lift the screen from the rest of the case/motherboard and unplug the lcd and other connectors that run from the screen to the board. You could use 99% alcohol and a tooth brush. Scrub the connectors gently and wait a few seconds for the alcohol to evaporate before plugging the connectors in. Usually this will fix the trouble and you will have a perfectly working phone without replacing any parts. IMPORTANT: Do not use 50% or 75% alcohol or acetone. Low grade alcohol is 50% water (and we know what water does to the phones)and the acetone can short out the motherboard or melt the certain parts that are important.

2) If only lower or upper or left or right side of the screen work, chances are very high that you need to replace the screen. You can try the solution above, but it will rarely work.

3) If you had a cracked screen and replaced it with the new one and now touch is not working, chances are that you either did not assemble it correctly or the screen is bad. If your old screen was responding to the touch and the new one doesnt, simply try to install the old one again and see if it still responds to the touch. If it does then the new screen is defective and you should return it. If it doesnt then try the first solution again to see if this will help.

4) Everything is installed correctly but the phone still doesnt work. This can be a bigger issue with the board. There is a tiny little IC(chip) on the phone that controls the touch. There are also few tiny little resistors and capacitors that are connected to the same part of the system. If one of these are bad then your phone is pretty much done. Yes they can be replaced, however finding the person with the skill and equipment to do this it likely near 0. most of the resistors and capacitors are covered with the ceramic coating that is nearly impossible to remove, but it can be done. The best thing technician could do in this case it to reheat the motherboard. This likely will not fix the problem permanently but you may get few extra days, weeks or months before its done for good.

The iphone uses BGA type of chips for all of their phones. These are “ball grid array” chips and they have these tiny little ball of solder that connect to the board. Some may have 10 and some chips have 50-60 or more of them. You can not see them like you would on a SM chip(surface mount). While you are using the phone they have electricity running through them . This makes them heat up and cool down constantly. Problem that occurs is called “Cold solder”. Over the time because of it heating and cooling the solder become brittle and it cracks. Once it cracks it will start to cause problems. This is why sometimes if you press the phone in certain spot it actually starts to work. Well, you are forcing the chip to connect to the board by pressing it in, but once you let go it stops. This sometimes can be fixed by reheating the chip, or to use technical term, “re-flowing”. sometimes it needs so little that the heat may just connect the broken link and it will be fine. Temperature you use to reheat it very important. If you take it to the shop and you see them using one of those industrial heat guns used to strip the paint from home depot, you will probably need a new phone. Temperature is important, but the force of the air flow just as important.

I know most people wont read this whole thing, but there is some useful information I wrote here and everything I wrote applies to almost any phone on market today. All of the phones are basically the same. They all have the same parts, only difference if what those parts are going to look like and their location o the phone, but they all need to have the CPU’s, memory chips, power management chips, lcd or touch controller chips and so on.

need to replace lcd touch screen on camera supplier

Apple has determined that a small percentage of iPhone 11 displays may stop responding to touch due to an issue with the display module. Affected devices were manufactured between November 2019 and May 2020.

If your iPhone 11 has been exhibiting this issue, please use the serial number checker below to see if your device is eligible for this program. If so, Apple or an Apple Authorized Service Provider will provide service, free of charge.

Choose one of the options below to have your iPhone 11 serviced. Your iPhone will be examined prior to any service to verify that it is eligible for this program.

If your iPhone 11 has any damage which impairs the ability to complete the repair, such as a cracked screen, that issue will need to be resolved prior to the service. In some cases, there may be a cost associated with the additional repair.

need to replace lcd touch screen on camera supplier

For most customers, visiting a professional repair provider with certified technicians who use genuine Apple parts is the safest and most reliable way to get a repair. These providers include Apple and Apple Authorized Service Providers, and Independent Repair Providers, who have access to genuine Apple parts.* Repairs performed by untrained individuals using nongenuine parts might affect the safety of the device or functionality of the display. Apple displays are designed to fit precisely within the device. Additionally, repairs that don"t properly replace screws or cowlings might leave behind loose parts that could damage the battery, cause overheating, or result in injury.

Depending on your location, you can get your iPhone display replaced—in or out of warranty—by visiting an Apple Store or Apple Authorized Service Provider, or by shipping your iPhone to an Apple Repair Center. Genuine Apple parts are also available for out-of-warranty repairs from Independent Repair Providers or through Self Service Repair.*

The iPhone display is engineered together with iOS software for optimal performance and quality. A nongenuine display might cause compatibility or performance issues. For example, an issue might arise after an iOS software update that contains display updates.

* Independent Repair Providers have access to genuine Apple parts, tools, training, service guides, diagnostics, and resources. Repairs by Independent Repair Providers are not covered by Apple"s warranty or AppleCare plans, but might be covered by the provider"s own repair warranty. Self Service Repair provides access to genuine Apple parts, tools, and repair manuals so that customers experienced with the complexities of repairing electronic devices can perform their own out-of-warranty repair. Self Service Repair is currently available in the United States for iPhone 12 and iPhone 13 models and iPhone SE (3rd generation).

need to replace lcd touch screen on camera supplier

When I went to put the screen on it didn’t sit flush in the phone I actually had to slightly force it to fit which caused the left side to bow up slightly. Later I accidentally dropped it from about a foot and a half off the ground onto carpet and due to all the tension the screen fully shattered becoming completely unusable. I have replaced screens myself several times and know what I’m doing so I know it wasn’t due to any fault of my own. Also in the item description and pictures it stated that it would come with a new camera, ear piece, proximity sensor, home button, and all the necessary tools needed for the replacement process but it came with none of that. Overall I’m very disappointed not impressed. I know the price is low and the urge to save a few bucks is tempting but I suggest you learn from my mistake and buy a little higher quality screen for a few more dollars or else you’ll just end up spending more money later having to fix it again like I have to do now.Read full review

need to replace lcd touch screen on camera supplier

New: A brand-new, unused, unopened, undamaged item in its original packaging (where packaging is applicable). Packaging should be the same as what is found in a retail store, unless the item is handmade or was packaged by the manufacturer in non-retail packaging, such as an unprinted box or plastic bag. See the seller"s listing for full details.See all condition definitionsopens in a new window or tab

need to replace lcd touch screen on camera supplier

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

need to replace lcd touch screen on camera supplier

As mobile phone displays are much tougher than they used to be, it seems like they"re indestructible. Sadly, they"re not. Dropping your phone can often break the display. Your phone can no longer be considered useful.

Cracked your mobile phone display? Dropped it in the street, or crushed it playing football? Sat on it, even? You know by now that you"ve given yourself a headache. Can the phone be repaired, and if so, what are the costs?

Many services available online and locally will repair your mobile phone, for a price. But if you have access to the parts and they"re inexpensive, why not perform the procedure yourself?

You should also consider the non-monetary costs: time spent without a phone, data that needs archiving from the device. Hopefully your mobile platform"s cloud service can help here, or perhaps a desktop utility can check the phone"s contents.

Fitting a new display that costs the same as a replacement phone is pointless. However, if replacing the mobile phone screen is closer to $15, it makes sense to have a go yourself.

The most obvious location for a replacement display is eBay. Simply searching for the mobile phone model and the word display will turn up the required parts. Just remember to shop safely when using eBay.

In my case, "nexus 5 display" returned a wealth of accurate (and, sadly, slightly inaccurate) results. Take the time to check that the component you choose is genuinely for your device. Often, components may appear in the results thanks to a poorly written listing.

Amazon is also a resource for replacement screens, but you should also consider a general Google search as this will turn up specialist suppliers who might be able to provide a lower price.

Note that you may find listings that offer just the display, versus listings with half the phone"s chassis. Which one you buy depends on how complicated you want things to get. For example, just the display means melting the adhesive using a heatgun or hairdryer.

Alternatively, a replacement display kit that includes half the phone"s body will require components being transferred from the old body into the replacement.

These tools are included to remove the case and unscrew any components that obstruct replacing the display. For example, a mobile phone will have Torx screws under the battery cover that will need removing before you gently prize the case apart.

Note that spending money on these tools isn"t totally necessary. Sanding off the ends of a couple of plastic bicycle wheel levers will produce usable alternatives---otherwise, they can be sourced relatively cheaply.

There are so many different mobile phone models on the market (either new or used) that providing a standardized guide is next to impossible. Additionally, some models cannot be repaired without sending them back to the manufacturer.

To begin, remove (where possible) the rear cover, battery and identify where the Torx (or standard) screws might be hidden. Look under labels and beside USB ports. You might find screws in the battery cavity if you have a device with a removable cell.

These are often threaded through the different layers of hardware within the phone. Ribbon cables are delicate; easily broken, take care as damage to these could change the dynamic of the repair considerably.

Persuading your phone"s display to part with the body isn"t usually difficult. Pushing through the camera hole against the glass to begin with, slowly prize the glass display away from the body.

In this case, you won"t need to remove the display, but you will need to remove components (and even the motherboard) from the damaged device into the new body.

Narrow rolls of replacement adhesive can be bought online. Have some double-sided sticky tape laying around? Cut this into narrow 1 mm slivers, then apply the adhesive to the phone"s frame, rather than the glass.

Apply light pressure where the display meets the adhesive. Take care not to put pressure on the middle of the glass display. Excessive force can break even the strongest Gorilla glass.

Reconnect the relevant cables, locking them down where necessary. Place the components back in the case with care, checking that there are no cables or screws left over. Test the phone to check that it works.

The moment of truth: does the new screen work? Remember, a touchscreen display has two purposes: touch interaction, and displaying the phone"s operating system.

However, it isn"t always plain sailing. I"ve fitted a replacement display that caused the phone to overheat. Therefore, it is important to buy components from reputable sellers, and ensure you"re buying the right parts for your phone.

Most importantly, don"t walk into performing such a repair without some device-specific research first. Video guides are particularly useful; once you"re ready, get hold of the right tools and surprise yourself!

Here"s another tech problem you can solve yourself with a bit of time and effort: phone display flickering. And if you drop your phone into the water, don"t panic, follow these tips to help save it.

need to replace lcd touch screen on camera supplier

No, the liquid damage service includes all parts and labor required to the get phone back to fully functional condition, but does not include liquid damage sensor replacement.

Due to its high cost, the logic board is the only part in the device that is not included in the liquid damage service. If the logic board has been irreversibly damaged, we will not be able to repair it and you will be refunded, minus the cost of return shipping if applicable.

It depends on the liquid. We reserve the right to decline liquid damage repair if the phone or device has been exposed to a liquid that may be hazardous in any way. Please call us at 1-877-320-2237 to inquire and make the proper arrangements.

Absolutely. Although salt water is corrosive and can be very damaging to electronic devices, we can still attempt to repair it. Our success rate on salt water damage is lower than that of a device that has been dropped in other liquid, but there is still a good chance that it can be repaired. If we cannot repair it, we will refund you the repair cost, minus the cost of return shipping if applicable.

First and foremost, do not attempt to turn the device on as that can cause a serious short circuit. Next, send the device in for our liquid damage service as soon as possible. The sooner we receive a liquid damaged device, the higher the chance we can repair it.

It is possible that a device can begin working normally on its own after liquid damage, but it is very uncommon. It is more likely that corrosion and residue deposits will begin to form on the logic board making the repair process more difficult. We recommend sending the device in as soon as possible, even if it is still wet. The sooner we receive a liquid damaged device, the higher the chance we can repairing it.

Probably. Even if only one function is not working, it could be caused by a variety of things. When a device has been liquid damaged, standard rules do not apply. This why we offer a liquid damage service specially tailored for liquid damaged devices.

Most liquid damage services are done in 45 minutes or less, depending on the level of damage. However, this estimate can vary depending on the extent of the damage to the logic board and other components.

If we are unable to repair your liquid damaged device for any reason, your payments will be refunded, minus the cost of return shipping if applicable, and your device will be returned. If your device could not be repaired and you do not want the device back or do not wish to pay for return shipping, please let us know and we will recycle the device at our repair facility.

need to replace lcd touch screen on camera supplier

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

need to replace lcd touch screen on camera supplier

By continuing to use AliExpress you accept our use of cookies (view more on our Privacy Policy). You can adjust your Cookie Preferences at the bottom of this page.

need to replace lcd touch screen on camera supplier

You can count on Canon"s award-winning service and repair options to help keep your gear in peak operating condition. Our expert factory-trained technicians can provide regular maintenance and repairs.

Enterprise CPS is customized to provide service and support benefits to medium and large sized organizations that own large quantities of Canon imaging products. Enterprise CPS benefits include priority telephone support and repair processing, repair discounts, and on-site equipment maintenance. Standard program options are available and the program can also be customized to meet the specific and unique needs of your organization.

The Canon Corporate Service Training Program offers corporate customers who own a large number of Canon imaging products a cost effective alternative to conventional equipment service. Under this program, individuals from the corporate customer are professionally trained in basic maintenance and repair procedures for their selected products. The program also includes follow-up technical support. Having staff qualified to perform service on site can significantly reduce costs associated with down time and shipments to Factory Service centers. Varying levels of training are available to suit specific corporate needs.

CarePAK PLUS is a cost-effective and easy-to-use additional coverage plan. It provides up to four years*** of service and support for your Camera, Binoculars, Camcorder, Printer or Projector.

Canon CarePAK MAXIFY and CarePAK MAXIFY Priority Extended Service Plans are cost-effective coverage plans to ensure your business is not interrupted in the unlikely event there is an issue with your product.

Canon CarePAK PRO AV Extended Service Plan (CarePAK PRO AV) offers options for 1 year or 2 years additional coverage for up to 5 full years of service and support from the date the Canon REALiS Pro AV install projector is purchased.*

eCarePAK Extended Service Plans were created to help save costs associated with post-purchase maintenance and to maximize uptime throughout the life of your product.

Genuine Canon accessories, including batteries, chargers, straps, cases, filters, cables, ink, printing media, etc. are available for purchase online directly from Canon or from Canon’s network of authorized dealers.

Genuine Canon replacement service parts, including inkjet printer print heads are available to purchase by calling the Canon Parts Order Desk at (866) 481-2569. Please note that for both product safety and optimal product operation most service parts should be installed only by a Canon authorized service provider.

var baseURL = "https://www.usa.canon.com"; var prodSite = "Y"; var wcmPathStripStart = "canon_newweb_products/products"; var portalContextRoot = "/internet/portal"; var virtualPortalName = "/us"; var useMaritzCXSurvey = "Y"; var maritzSurvey = "M6BSBQ"; var maritzSurveyUrl = "https://canonusa.allegiancetech.com/surveys/M6BSBQ/Scripts/clientExtensibility.js"; var surveyURL = "https://canonusa.allegiancetech.com/cgi-bin/qwebcorporate.dll?idx=M6BSBQ"; var mcxSiteInterceptParameters = { surveyURL: surveyURL, //string showOnLoad: true, //boolean invitationID: undefined, //string probability: 33, //number (0 - 100 (%)) width: 750, //number (px) height: 900, //number (px) cookieID: "", //string expireDaysIfYes: 60, //number (days) expireDaysIfNo: 60, //number (days) delay: undefined, //number (ms) waitUntilClose: false, //boolean placeholderURL: undefined, //string showInline: undefined, //boolean inlineID: undefined, //string inlineWrapperID: undefined, //string inlineCloseID: undefined, //string cleanseCookie: false, //boolean debug: undefined, //boolean ignoreWarning: undefined, //boolean enabled: undefined, //boolean domainPath: "", pagevisit: 45, mcxBlackList: ["http.support..usa.canon.com/kb/index.page=home"] }; (function(w){ "use strict"; //Check to make sure custom parameters exist if(typeof w.mcxSiteInterceptParameters === "undefined") { //Backward compatibility (for customers who have 0; }; if(isArray()) { var MCX_DEFAULT = "MCX_DEFAULT"; var mcxUniqueID = w.mcxUniqueID || MCX_DEFAULT; //Check over each item to see if a uniqueID matches for(var i = 0; i < w.mcxSiteInterceptParameters.length; i++) { if(w.mcxSiteInterceptParameters[i].uniqueID && mcxUniqueID == w.mcxSiteInterceptParameters[i].uniqueID) { w.mcxSiteInterceptParameters = w.mcxSiteInterceptParameters[i]; } } //If no matches were found, attempt to assign default if(isArray()) { for(var j = 0; j < w.mcxSiteInterceptParameters.length; j++) { if(w.mcxSiteInterceptParameters[j].uniqueID && MCX_DEFAULT == w.mcxSiteInterceptParameters[j].uniqueID) { w.mcxSiteInterceptParameters = w.mcxSiteInterceptParameters[j]; } } //If no default was assigned, use the first item if(isArray()) { w.mcxSiteInterceptParameters = w.mcxSiteInterceptParameters[0]; } } } var mcxPresetParam = w.mcxSiteInterceptParameters; w.McxSiteInterceptOnExit = { //Parameters used for customizing script parameters: { //Defaults surveyURL: typeof mcxPresetParam.surveyURL === "string" ? mcxPresetParam.surveyURL : "", showOnLoad: typeof mcxPresetParam.showOnLoad === "boolean" ? false : false, invitationID: typeof mcxPresetParam.invitationID === "string" ? mcxPresetParam.invitationID : "", probability: typeof mcxPresetParam.probability === "number" ? mcxPresetParam.probability : 100, //0 - 100% width: typeof mcxPresetParam.width === "number" ? mcxPresetParam.width : 550, //px height: typeof mcxPresetParam.height === "number" ? mcxPresetParam.height : 520, //px cookieID: typeof mcxPresetParam.cookieID === "string" ? mcxPresetParam.cookieID : "", expireDaysIfYes: typeof mcxPresetParam.expireDaysIfYes === "number" ? mcxPresetParam.expireDaysIfYes : 30, //days expireDaysIfNo: typeof mcxPresetParam.expireDaysIfNo === "number" ? mcxPresetParam.expireDaysIfNo : 30, //days delay: typeof mcxPresetParam.delay === "number" ? mcxPresetParam.delay : 0, //ms waitUntilClose: typeof mcxPresetParam.waitUntilClose === "boolean" ? mcxPresetParam.waitUntilClose : false, placeholderURL: typeof mcxPresetParam.placeholderURL === "string" ? mcxPresetParam.placeholderURL : "", showInline: typeof mcxPresetParam.showInline === "boolean" ? mcxPresetParam.showInline : false, inlineID: typeof mcxPresetParam.inlineID === "string" ? mcxPresetParam.inlineID : "mcxSurveyDialog", inlineWrapperID: typeof mcxPresetParam.inlineWrapperID === "string" ? mcxPresetParam.inlineWrapperID : "mcxSurveyWrapper", inlineCloseID: typeof mcxPresetParam.inlineCloseID === "string" ? mcxPresetParam.inlineCloseID : "mcxSurveyClose", cleanseCookie: typeof mcxPresetParam.cleanseCookie === "boolean" ? mcxPresetParam.cleanseCookie : false, debug: typeof mcxPresetParam.debug === "boolean" ? mcxPresetParam.debug : false, ignoreWarning: typeof mcxPresetParam.ignoreWarning === "boolean" ? mcxPresetParam.ignoreWarning : false, enabled: typeof mcxPresetParam.enabled === "boolean" ? mcxPresetParam.enabled : true, pageVisit: typeof mcxPresetParam.pageVisit === "number" ? mcxPresetParam.pageVisit : 4, mcxBlackList: typeof mcxPresetParam.mcxBlackList === "object" ? mcxPresetParam.mcxBlackList : [], domainPath: typeof mcxPresetParam.domainPath === "string" ? mcxPresetParam.domainPath : "" }, takeSurvey: false, //Script-level variable, leave false. surveyWindow: undefined, //Survey window, leave undefined. surveyURLParams: undefined, cachedHTML: undefined, //Called when the page is loaded. Executes logic to determine whether to show the invitation or not. onPageLoad: function () { w.mcxLog("onPageLoad"); w.McxSiteInterceptOnExit.cookieVisitCount(); if(w.McxSiteInterceptOnExit.parameters.uniqueID) { w.mcxLog("uniqueID: " + w.McxSiteInterceptOnExit.parameters.uniqueID); } w.McxSiteInterceptOnExit.surveyURLParams = sessionStorage["mcx.surveyURLParams"]; if (!w.McxSiteInterceptOnExit.surveyURLParams) { sessionStorage["mcx.surveyURLParams"] = "[{}]"; } var rand = Math.floor(Math.random() * 100); if(w.McxSiteInterceptOnExit.parameters.probability < 1 && w.McxSiteInterceptOnExit.parameters.probability > 0) { var decimal = w.McxSiteInterceptOnExit.parameters.probability; w.McxSiteInterceptOnExit.parameters.probability = Math.floor(w.McxSiteInterceptOnExit.parameters.probability * 100); w.mcxWarn("mcxSiteIntercept warning: The script detected a probability between 0 and 1. Probability should be a whole number between 0 and 100. The script has converted it to a whole number: " + decimal + " -> " + w.McxSiteInterceptOnExit.parameters.probability); } if(w.McxSiteInterceptOnExit.parameters.probability <= 0) { w.mcxWarn("mcxSiteIntercept warning: Probability it set to " + w.McxSiteInterceptOnExit.parameters.probability + ". It must be greater than 0 to have any chance of displaying the survey."); } //Check if random number is less than probability (less than means probability met) and that survey is enabled if (rand < w.McxSiteInterceptOnExit.parameters.probability && w.McxSiteInterceptOnExit.parameters.enabled && parseInt(w.McxSiteInterceptOnExit.RgetCookie("McxPageVisit")) >= w.McxSiteInterceptOnExit.parameters.pageVisit && w.McxSiteInterceptOnExit.McxBlackList() === false){ //If no cookie exists, and showOnLoad is true, display the survey modal if (!w.McxSiteInterceptOnExit.hasCookie() && w.McxSiteInterceptOnExit.parameters.showOnLoad) { if(w.McxSiteInterceptOnExit.parameters.invitationID.length > 0) { w.McxSiteInterceptOnExit.showModal(); } else { w.mcxLog("delay " + w.McxSiteInterceptOnExit.parameters.delay + " ..."); w.setTimeout(function () { w.mcxLog("... delay "); w.McxSiteInterceptOnExit.popUp(); }, w.McxSiteInterceptOnExit.parameters.delay); } } } else { if(!w.McxSiteInterceptOnExit.parameters.enabled) { w.mcxLog("Survey is disabled"); } else { w.mcxLog("Probability fail. Chance to succeed: " + w.McxSiteInterceptOnExit.parameters.probability + "%"); } } }, //Page visit count cookieVisitCount: function(){ if(w.McxSiteInterceptOnExit.RgetCookie("McxPageVisit") == "" ){ document.cookie="McxPageVisit= 1; path=/; domain="+(w.McxSiteInterceptOnExit.parameters.domainPath)+";"; } else { var pageVisit = parseInt(w.McxSiteInterceptOnExit.RgetCookie("McxPageVisit")); document.cookie="McxPageVisit=" +(pageVisit + 1)+ "; path=/; domain="+(w.McxSiteInterceptOnExit.parameters.domainPath)+";"; } }, RgetCookie: function(cname) { var name = cname + "="; var ca = document.cookie.split(";"); for(var i=0; i< aL; i++){ var testEx = RegExp(checkArray[i]); var finalCheck = testEx.test(curUrl); if (finalCheck){ return true; } } return false; }, //Function to add a parameter to URL addUrlParameter: function (value, name) { w.mcxLog("Added URL parameter: [" + value + ", " + name + "]"); w.McxSiteInterceptOnExit.surveyURLParams = sessionStorage["mcx.surveyURLParams"]; var object = JSON.parse(w.McxSiteInterceptOnExit.surveyURLParams); object[0][value] = name; sessionStorage["mcx.surveyURLParams"] = JSON.stringify(object); w.McxSiteInterceptOnExit.surveyURLParams = sessionStorage["mcx.surveyURLParams"]; }, //Function to remove a parameter from URL removeUrlParameter: function (value) { w.mcxLog("Removed URL parameter: [" + value + "]"); var object = JSON.parse(w.McxSiteInterceptOnExit.surveyURLParams); delete object[0][value]; sessionStorage["mcx.surveyURLParams"] = JSON.stringify(object); w.McxSiteInterceptOnExit.surveyURLParams = sessionStorage["mcx.surveyURLParams"]; }, //Converts the URL parameters to a query string that will get appended to the survey URL urlParametersToQueryString: function() { w.mcxLog("urlParametersToQueryString ..."); if(w.McxSiteInterceptOnExit.surveyURLParams) { var parameters = JSON.parse(w.McxSiteInterceptOnExit.surveyURLParams)[0]; var queryString = []; for(var property in parameters) { if(parameters.hasOwnProperty(property)) { queryString.push(property + "=" + parameters[property]); } } w.mcxLog("... urlParametersToQueryString "); return "&" + queryString.join("&"); } else { return ""; } }, //Creates a cookie with the given parameters createCookie: function (name, value, days) { w.mcxLog("createCookie: [" + name + ", " + value + ", " + days + "]"); var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); w.docCookies.setItem(name, value, date); }, hasCookie: function() { var hasCookie = w.docCookies.hasItem("mcxSurveyQuarantine" + w.McxSiteInterceptOnExit.parameters.cookieID, w.McxSiteInterceptOnExit.parameters.cleanseCookie); w.mcxLog("hasCookie: " + "mcxSurveyQuarantine" + w.McxSiteInterceptOnExit.parameters.cookieID + ": " + hasCookie); return hasCookie; }, //Called when page is closed or domain is changed. onPageClose: function () { w.mcxLog("onPageClose"); if(w.McxSiteInterceptOnExit.parameters.enabled) { //w.McxSiteInterceptOnExit.addUrlParameter("mcxReferrerURL", encodeURIComponent(w.location.href)); if (w.McxSiteInterceptOnExit.takeSurvey && w.McxSiteInterceptOnExit.surveyWindow && w.McxSiteInterceptOnExit.surveyWindow.opener && !w.McxSiteInterceptOnExit.surveyWindow.opener.closed) { w.McxSiteInterceptOnExit.surveyWindow.location = (w.McxSiteInterceptOnExit.parameters.surveyURL + w.McxSiteInterceptOnExit.urlParametersToQueryString()); } else { return; } } }, //Brings up the survey popUp: function () { w.mcxLog("popUp"); var rand = Math.floor(Math.random() * 100); if (!w.McxSiteInterceptOnExit.hasCookie() && w.McxSiteInterceptOnExit.parameters.enabled && rand < w.McxSiteInterceptOnExit.parameters.probability) { var strWindowFeatures = "menubar=0,location=yes,resizable=yes,scrollbars=yes,toolbar=0,status=yes,modal=yes,width=" + w.McxSiteInterceptOnExit.parameters.width + ",height=" + w.McxSiteInterceptOnExit.parameters.height; w.McxSiteInterceptOnExit.takeSurvey = true; w.McxSiteInterceptOnExit.createCookie( ("mcxSurveyQuarantine" + w.McxSiteInterceptOnExit.parameters.cookieID), ("mcxSurveyQuarantine" + w.McxSiteInterceptOnExit.parameters.cookieID), w.McxSiteInterceptOnExit.parameters.expireDaysIfYes); var inv = document.getElementById(w.McxSiteInterceptOnExit.parameters.invitationID); if(inv) { inv.style.display = "none"; } if(w.McxSiteInterceptOnExit.parameters.waitUntilClose) { //Opens window and shows placeholderURL w.McxSiteInterceptOnExit.surveyWindow = w.open(w.McxSiteInterceptOnExit.parameters.placeholderURL, "_blank", strWindowFeatures); //w.McxSiteInterceptOnExit.surveyWindow.blur(); //window.global.focus(); } else { //Logic for showing survey on the page rather than a separate window if(w.McxSiteInterceptOnExit.parameters.showInline) { var elem = document.getElementById(w.McxSiteInterceptOnExit.parameters.inlineID); //Make sure elem exists on page, otherwise create a DIV with inlineID if(!elem) { elem = document.createElement("div"); elem.setAttribute("id", w.McxSiteInterceptOnExit.parameters.inlineID); document.body.appendChild(elem); } //Preserve existing HTML if(typeof w.McxSiteInterceptOnExit.cachedHTML === "undefined") { w.McxSiteInterceptOnExit.cachedHTML = elem.innerHTML; } //Inject additional required HTML and survey elem.innerHTML = w.McxSiteInterceptOnExit.cachedHTML + "

"; elem.style.display = "block"; //Event listener for closing the dialog var el = document.getElementById(w.McxSiteInterceptOnExit.parameters.inlineCloseID); if (el.addEventListener) { el.addEventListener("click", w.McxSiteInterceptOnExit.closeSurveyModal, false); } else { el.attachEvent("onclick", w.McxSiteInterceptOnExit.closeSurveyModal); } } else { //Shows survey right away (if both waitUntilClose and showInline are false) w.McxSiteInterceptOnExit.surveyWindow = w.open((w.McxSiteInterceptOnExit.parameters.surveyURL + w.McxSiteInterceptOnExit.urlParametersToQueryString()), "_blank", strWindowFeatures); } } w.focus(); } }, //Hides modal closeSurveyModal: function() { w.mcxLog("closeSurveyModal"); document.getElementById(w.McxSiteInterceptOnExit.parameters.inlineID).style.display = "none"; }, //Accepts the invitation. acceptSurvey:function() { w.mcxLog("acceptSurvey"); var curUrl = window.location.href; w.McxSiteInterceptOnExit.addUrlParameter("ref_url", curUrl); w.McxSiteInterceptOnExit.popUp(); }, //Creates a quarantine cookie and hides the invitation. declineSurvey: function () { w.mcxLog("declineSurvey"); w.McxSiteInterceptOnExit.createCookie( ("mcxSurveyQuarantine" + w.McxSiteInterceptOnExit.parameters.cookieID), ("mcxSurveyQuarantine" + w.McxSiteInterceptOnExit.parameters.cookieID), w.McxSiteInterceptOnExit.parameters.expireDaysIfNo); document.getElementById(w.McxSiteInterceptOnExit.parameters.invitationID).style.display = "none"; }, //Shows the invitation showModal: function (delay) { w.mcxLog("showModal ..."); if(w.McxSiteInterceptOnExit.parameters.enabled) { if(!delay) { delay = w.McxSiteInterceptOnExit.parameters.delay; } w.setTimeout(function () { w.mcxLog("... showModal"); var invitation = document.getElementById(w.McxSiteInterceptOnExit.parameters.invitationID); if(invitation) { invitation.style.display = "block"; } }, delay); } }, addOnLoadEvent: function (func) { var oldonload = w.onload; if (typeof w.onload != "function") { w.onload = func; } else { w.onload = function () { if (oldonload) { oldonload(); } func(); }; } }, addBeforeUnLoadEvent: function (func) { var oldonload = w.onbeforeunload; if (typeof w.onbeforeunload != "function") { w.onbeforeunload = func; } else { w.onbeforeunload = function () { if (oldonload) { oldonload(); } func(); }; } }, addOnUnLoadEvent: function (func) { var oldonload = w.onunload; if (typeof w.onunload != "function") { w.onunload = func; } else { w.onunload = function () { if (oldonload) { oldonload(); } func(); }; } } }; w.docCookies = { getBrowser: function () { // Opera 8.0+ var isOpera = (!!window.opr && !!opr.addons) || !!window.opera || navigator.userAgent.indexOf(" OPR/") >= 0; // Firefox 1.0+ var isFirefox = typeof InstallTrigger !== "undefined"; // Safari 3.0+ "[object HTMLElementConstructor]" var isSafari = /constructor/i.test(window.HTMLElement) || (function (p) { return p.toString() === "[object SafariRemoteNotification]"; })(!window["safari"] || (typeof safari !== "undefined" && safari.pushNotification)); // Internet Explorer 6-11 var isIE = /*@cc_on!@*/false || !!document.documentMode; // Edge 20+ var isEdge = !isIE && !!window.StyleMedia; // Chrome 1+ var isChrome = !!window.chrome && !!window.chrome.webstore; return { isOpera: isOpera, isFirefox: isFirefox, isSafari: isSafari, isIE: isIE, isEdge: isEdge, isChrome: isChrome } }, getItem: function (sKey) { if (!sKey) { return null; } return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*([^;]*).*$)|^.*$"), "$1")) || null; }, setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) { if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)) { return false; } var sExpires = ""; if (vEnd) { switch (vEnd.constructor) { case Number: sExpires = vEnd === Infinity ? "; expires=Fri, 31 Dec 9999 23:59:59 GMT" : "; max-age=" + vEnd; break; case String: sExpires = "; expires=" + vEnd; break; case Date: sExpires = "; expires=" + vEnd.toUTCString(); break; } } var browser = this.getBrowser(); if (browser.isIE || browser.isEdge || !McxSiteInterceptOnExit.parameters.domainPath) { w.mcxLog("Building cookie without domain. IE: " + browser.isIE + "; Edge: " + browser.isEdge + "; domainPath: not used(IE)", true); document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + "; path=/"; } else { w.mcxLog("Building cookie with domain. domainPath: " + McxSiteInterceptOnExit.parameters.domainPath, true); document.cookie = encodeURIComponent(sKey) + "=" + encodeURIComponent(sValue) + sExpires + "; domain=" + McxSiteInterceptOnExit.parameters.domainPath + "; path=/"; } return true; }, removeItem: function (sKey) { if (!this.hasItem(sKey)) { return false; } document.cookie = encodeURIComponent(sKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=" + McxSiteInterceptOnExit.parameters.domainPath + "; path=/"; return true; }, hasItem: function (sKey, cleanseCookie) { if (!sKey) { return false; } if (cleanseCookie === true) { this.removeItem(sKey); } return (new RegExp("(?:^|;\\s*)" + encodeURIComponent(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie); }, keys: function () { var aKeys = document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g, "").split(/\s*(?:\=[^;]*)?;\s*/); for (var nLen = aKeys.length, nIdx = 0; nIdx < nLen; nIdx++) { aKeys[nIdx] = decodeURIComponent(aKeys[nIdx]); } return aKeys; } }; w.mcxWarn = function(warning, ignorePrefix) { var consoleWarn = typeof console !== "undefined" && console.warn && w.McxSiteInterceptOnExit.parameters.ignoreWarning === false; if(consoleWarn) { var prefix = ignorePrefix ? "" : "mcxSiteIntercept: "; console.warn(prefix + warning); } }; w.mcxLog = function(log, ignorePrefix) { var consoleLog = typeof console !== "undefined" && console.log && w.McxSiteInterceptOnExit.parameters.debug === true; if(consoleLog) { var prefix = ignorePrefix ? "" : "mcxSiteIntercept: "; console.log(prefix + log); } }; w.AllegianceSiteInterceptOnExit = w.McxSiteInterceptOnExit; //Backward compatibility (for customers who have var Allegiance = (function() { var showSurvey = function(surveyId, cimId, pimId, modelDesc, transID) { var url = "https://canonusa.allegiancetech.com/cgi-bin/qwebcorporate.dll?"; var idx = surveyId; var cim = cimId; var pim = pimId; var model = modelDesc; var surveyTimeStamp = ""; var finalSurveyUrl = url+"&idx="+idx+"&CIM="+cim+"&PIM="+pim+"&Model="+model+"&TransID="+transID+"&t="+surveyTimeStamp; $("#allegiance-iframe").attr("src", finalSurveyUrl); }; return { showSurvey : showSurvey }; })(); $(document).ready(function() { // Need to show ConfirmIt only on support pages if (window.location.href.indexOf("/support/p") > -1) { var model = ""; var category = ""; if (useMaritzCXSurvey == "N") { ConfirmIt.openSurvey(encodeURIComponent(model),encodeURIComponent(category)); } else { McxSiteInterceptOnExit.addUrlParameter("mcxModel", model); McxSiteInterceptOnExit.addUrlParameter("mcxPCategory", category); //Survey ID McxSiteInterceptOnExit.addUrlParameter("mcxID", "M6BSBQ"); McxSiteInterceptOnExit.addUrlParameter("mcxReferrerURL",encodeURIComponent(window.location.href)); McxSiteInterceptOnExit.acceptSurvey(); //$("#surveyModal").modal("show"); } } });