Ajax Script not working in IE (window.XMLHttpRequest)

Hi,
I have written following code in ajax.
This is a javascript function called on onchange event of a button.
This code works fine in firefox and chrome but does not work in IE8.0+
the values don't get displayed.
plz suggest me if there is any change.
thnx in advance.
<script type="text/javascript">
function showUser(str) {
  if (str=="") {
    document.getElementById("userDetailsShownHere").innerHTML="";
    return;
  if (window.XMLHttpRequest) {
    // code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
  } else { // code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  xmlhttp.onreadystatechange=function() {
    if (xmlhttp.readyState==4 && xmlhttp.status==200) {
      document.getElementById("userDetailsShownHere").innerHTML=xmlhttp.responseText;
      document.getElementById("btn").name=str;
        showGift(str);
  xmlhttp.open("GET","getuser.php?username="+str,true);
  xmlhttp.send();
//This code will execute on button click
function showGift(str) {
    var life = document.getElementById("lifeLabel").value;
    var number = parseInt(life, 0);
    if(number == 55){      
        if (window.XMLHttpRequest) {
        // code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp=new XMLHttpRequest();
      } else { // code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4 && xmlhttp.status==200) {
          document.getElementById("userDetailsShownHere").innerHTML=xmlhttp.responseText;
         document.getElementById("btn").name=str;
       document.getElementById("btn").style.display="inline";
      xmlhttp.open("GET","getuser.php?username="+str,true);
      xmlhttp.send();
    else if(number > 0){
      document.getElementById("noLife").style.display="none";
        number = number - 1;
      if (window.XMLHttpRequest) {
        // code for IE7+, Firefox, Chrome, Opera, Safari
        xmlhttp=new XMLHttpRequest();
      } else { // code for IE6, IE5
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
       xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4 && xmlhttp.status==200) {
          document.getElementById("userDetailsShownHere").innerHTML=xmlhttp.responseText;
          document.getElementById("btn").name=str;
        document.getElementById("btn").style.display="none";
         if(document.getElementById("cometomorrow") || document.getElementById("win")){
            document.getElementById("btn").style.display="none";
            console.log("hide");
          }else{
            setTimeout("showButton()", 1000);
      xmlhttp.open("GET","getgift.php?username="+str+"&loop="+number,true);
      xmlhttp.send();
    else {
    document.getElementById("userDetailsShownHere").innerHTML="";
        document.getElementById("noLife").style.display="inline";
    document.getElementById("btn").style.display="none";
</script>

Hi Vishalika,
Please post questions about html, css and scripting for website development to
MSDN
IE Web Development forum is moving to stack-overflow
xmlhttpRequests is not available to webpages using the file: protocol in MSIE browsers.
If possible include with your questions a link to your website or a mashup that shows the issue.
If you are running the webpage from your file system (file: protocol), please advise as such.
f12>Debug tab to debug your webpage scripts and include any error messages from the console with your scripts... (however xmlhttprequests to local resources do not cause errors in the Developer tool console).... you should always test your web applications
from an actual web server first (localhost).
Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
Rob^_^

Similar Messages

  • My flash flayer does not work on my Windows 8 Surface Tablet, it also won't let me see if i already

    My flash flayer does not work on my Windows 8 Surface Tablet, it also won't let me see if i already have it installed...

    1.      Are you getting any error message?
    2.      Which browser are you using?
    3.      Were there any recent changes made on the computer prior to the issue?

  • Flash player does not work properly on Windows 7 32 bits

    Hello,
    My flash player does not work properly on Windows 7 32 bits with Firfox and IE8 (lasts versions).
    My Flash player version : 10.0.45.2, but I tried with version 9 too, with same problems.
    I have tried to uninstall, reboot, reinstall several times, ... witch did not worked.
    In fact, it works correctly on some sites, like youtube, but not on some others like :
    http://www.dailymotion.com/ => black screen instead of videos, right click gives flash context menu
    http://www.canalplus.fr/ => videos does not load, right click gives flash context menu
    http://www.myspace.com/ => no audio player, right click gives flash context menu
    some games in http://www.kongregate.com/ => black screen instead of games, right click gives flash context menu
    I have no problem with shockwave in http://www.adobe.com/shockwave/welcome/
    No problem too with flash player on http://www.adobe.com/software/flash/about/
    But in the Global Privacy Settings panel (http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager02.htm l), I cannot change any settings :
    I cannot check boxes,
    My changes are not saved.
    In most of flash animations, videos, ...,
    when I click on parameters, I cannot do anything, even closing.
    when I am in full screen mode, the message "press escape to exit...." does not disappear.
    Last thing, all those problems was not there when I was on Windows XP, few weeks ago, and appear with my registered Windows 7 premium familly edition, with the same hardware configuration...
    Thank you for your help

    Hi eidnolb
    Thanks for your answer.
    This is what I have :
    Verify user permissions
    I have an administrator account.
    I tried (uninstall, install and run) with super-administrator account for same results
    Install the most current version.
    I am running the latest version (10.0.45.2)
    Run the Clean Installer to Fix 3rd Party Flash Player Cleaners
    I did not "clean" my computer.
    Troubleshoot Pop-up blockers
    I have no Pop-up or esle blocker  software.
    Ensure that Internet utilities do not block Flash Player
    I tried (uninstall, install and run) without Avast.
    I have windows 7 firewall. I do not know where I can allow ActiveX  controls and Flash (SWF) content. I do not see anything relative to ActiveX an Flash in allowed program list.
    Fix machine crashes when displaying Flash content
    I have no freez or crash.
    Using IE, Shockwave Flash Object is Enabled and vs 10.0.45.2
    Using FF, I have SWF vs  10.0.45.2 and it is Enabled
    I really do not understand !!
    Thanks,
    Ju'

  • My itunes 11 Home sharing is not working with my windows 7 PC and iPad it shows up on iPad and when I go to share the music app does loading for 3 mins and crashes I am using a virgin super hub router please please please help

    My itunes 11 Home sharing is not working with my windows 7 PC and iPad it shows up on iPad and when I go to share the music app does loading for 3 mins and crashes I am using a virgin super hub router please please please help

    My itunes 11 Home sharing is not working with my windows 7 PC and iPad it shows up on iPad and when I go to share the music app does loading for 3 mins and crashes I am using a virgin super hub router please please please help

  • ExpressCard/34 not working in BootCamp Windows 7 64-bit. Apple's BIOS emulation does not give enough resources.

    MacBook Pro unibody, 15" 2009
    ExpressCard/34 (Card is by Transcend TS-RDF1, JMicron chip for SD card) is not working in BootCamp Windows 7 64-bit. Windows reports:
    "This device cannot find enough free resources that it can use. (Code 12)
    If you want to use this device, you will need to disable one of the other devices on this system."
    Other data points: Card works fine in Mac OSX, worked under Windows XP 32-bit (initially reported same problem, but works after reboot).
    Checking the forums there seems to be no actual device suggested to actually remove that would help the problem. And even if it was, the concept is ridiculous. What other device would you like to remove? Display adapter? Network adapter? No way. I use all available devices and don't want to compromise.
    It seems like BIOS emulation does not allocate enough resources to ExpressCard.
    Are others having the same problem?
    Does anyone have a fix for this?
    Is there anyone at Apple who cares to provide a solution?

    It is not a driver problem, but a problem in the BIOS emulated by bootcamp on some (not all) MBP models. So unless Apple fixes it in bootcamp, there is no real solution. And obviously, Apple doesn't care. They are dropping the Expresscard slot anyway.
    Unfortunately, this poster seems right: http://forums.macrumors.com/showthread.php?t=912259 :
    The 2008/2009 Macbook Pros don't allow to use the ExpressCard slot because of EFI/Bootcamp errors (Windows Vista/7 cannot allocate an IRQ to the slot). You don't need any drivers for using an ExpressCard slot on Windows, you only need the drivers for the corresponding card you are using.
    Bootcamped XP allowed to use the slot, but you could not use hot-plugging.
    And from the Sonnet site ( http://www.sonnettech.com/product/tempo_sata_express34.html ) :
    Tempo SATA ExpressCard/34 not supported under Windows 7 or Windows Vista when running on unibody MacBook Pro computers. The problem is caused by the MacBook Pro's BIOS emulation, which doesn't allocate enough resources to support certain kinds of Expresscard/34 devices, such as a SATA controller, in these operating systems.
    (added link to Sonnet's explanation)

  • Bug? ajax layers not working.

    hi
    just installed safari 5. i like the new address feature where we can type the page's title instead of the url. anyway, its a feature that firefox already had quite sometime.
    anyway, most pages with ajax is not working, especially those with layers. for example, the template monster search form, the options is not displaying. works fine in firefox though.
    is it a bug?

    hi
    just reset safari, and its now working.

  • HD Audio is not working in bootcamp windows in mac mini 2012

    HD Audio is not working in bootcamp windows in mac mini 2012

    Update to the latest bios: https://forum-en.msi.com/index.php?topic=163918.msg1260356#msg1260356 (Follow the guide)
    >>Clear CMOS<<
    Afterwards update the Intel Management Engine Driver in Windows.
    Reboot and afterwards install current Realtek drivers: http://www.msi.com/service/download/driver-22481.html

  • My sound is not working after downloading windows 10

    My sound is not working after downloading windows 10 please can you help me?

    right click start then select device manager see if there are any yellow ! in triagle symbols next to any device if there is you may need to reinstall the audio driver

  • Dc7700, window7, machine speaker not working. migrating from window xp to 7

    dc7700, window7, machine speaker not working. migrating from window xp to 7

    Hi:
    Just download and install the latest Realtek HD audio driver from the Realtek site.
    Accept the agreement. Download and install either the first or second driver on the list depending on whether you installed the 32 or 64 bit version of W7.
    http://www.realtek.com.tw/downloads/downloadsView.​aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownT​...
    Paul

  • Multitouch on track pad not working when running Windows 8 in boot camp

    Does anyone know a work around on how to resolve the issue of more than one fingers on the trackpad? For example, I use one finger to click a window then another finger to slide/move the window to a different location on the screen. This does not work when running Windows 8 in Boot Camp latest version. Any suggestion is much appreciated.

    very very few gestures are supported in windows
    https://discussions.apple.com/message/24548533#24548533
    if it's a limitation from ms you need to contact them
    if it's a limitation from apples drivers you can use feedback channel
    http://www.apple.com/feedback/

  • Magic Trackpad's One Finger "Tap to Click" Not Working in Login Window?

    Magic Trackpad's *One Finger* "Tap to Click" Not Working in Login Window:
    All of my iMac's accounts have *One Finger* "Tap to Click" turned on (checked) in System Preferences. However, in the Login Window where the user decides which account to login to, the Magic Trackpad's clicking ability does not work even though moving the arrow does work. How do I turn on the Magic Trackpad's ability to click in the Login Window?

    After accidentally pressing down on the Magic Trackpad, I realized the trackpad has tactile feedback, that is, it is a big button that can be pressed down and pop back up like old computer mice. Though this will allow the trackpad to select the account I want to open in the Login Window, it still doesn't explain why "tap to click" isn't working in the Login Window. Nevertheless, my question can be considered as answered.

  • Problem Windows 8 logon script not working from windows server 2008 R2

    hi there , this is third post regard this problem, here is my problem goes .....
    Is a very simple logon script for mapping drive purpose .... PLS take note Domain users can access and run this script for domain users using windows XP / WINDOWS VISTA / WINDOSWS 7 and only  users " WINDOWS 8.1 " Does NOT run
    at all . the script I put on logon script in Windows server 2008R2 group policy ... 
    @jrv :- http://social.technet.microsoft.com/profile/jrv/?ws=usercard-mini , insist said is my group policy setup problem so I post here agn...
    Manually run the script on WINDOWS 8.1 is 100 % perfect so it is definitely not my logon script issue , PLS any guidance pls share for me ok ?? thanks
    Below is my script syntax ;-
    @echo off
    REM Login.bat Version 1.0
    REM Exit if user has logged on to the Server
    IF %COMPUTERNAME%.==SL2011. GOTO END
    REM Delete pre-existing drive mappings
    REM
    REM Map M: to SL2011 on sl2011
    NET USE M: /DELETE >nul
    NET USE M: \\SL2011\sl2011 /YES >nul
    REM
    REM Map Y: to AccScan on rss2
    NET USE Y: /DELETE >nul
    NET USE Y: \\rss2\Public\AccScan /YES >nul
    REM

    Hi Tee Ee Foong,
    According to your post, the gpresult showed the GPO was applied and the script could run successfullymanully in the client. Right? Please follow the following step to narrow down
    the issue:
    1. Change the script to the following command: add 
    > %SystemDrive%\Users\test.txt to the script.
    2. Log on to a client with a regular user account, run gpupdate/force, and then re-log on to this client.
    3. Check if the test.txtfile exists in this location %SystemDrive%\Users.
    If the test.txtfile exists, the GPO with logon script is applied successfully when user logs on. But the result of running logon script achieves the goal we excepted or not which
    is still not sure.
    Regards,
    Lany Zhang

  • Script not working in SharePoint content editor webpart

    Hi All,
    <html>
    <head>
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script language="javascript" type="text/javascript">
    $(document).ready(function () {
    //Call your function here like
    //retrieveListItems();
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "SP.js");
    var siteUrl = '/vceo/PMO/EPMO/';
    var close1 = ''; var close2 = ''; var high = ''; var low = ''; var medium = ''; var lowMedium = ''; var mediumHigh = '';
    var open1 = ''; var open2 = ''; var high1 = ''; var low1 = ''; var medium1 = ''; var lowMedium1 = ''; var mediumHigh1 = '';
    var count = 0; var count1 = 0;
    var initiate = 0; var planning = 0; var execution = 0; var closing = 0;
    var sumMinimal = 0; var sumModerate = 0; var sumCritical = 0; var sumSevere = 0;
    var sumHighlyLikely = 0; var sumLikely = 0; var sumSomewhat = 0; var sumUnlikely = 0;
    var sumBudget = 0; var sumCommitted = 0; var sumConsumption = 0;
    function retrieveListItems() {
    alert("Welcome to Dashboard");
    var clientContext = new SP.ClientContext(siteUrl); alert("site url");
    var oList = clientContext.get_web().get_lists().getByTitle('Project Issues and Risks');
    var oList1 = clientContext.get_web().get_lists().getByTitle('Project');
    var oList2 = clientContext.get_web().get_lists().getByTitle('Risk Impact');
    var oList3 = clientContext.get_web().get_lists().getByTitle('Risk Probability'); alert("get by title");
    var camlQuery = new SP.CamlQuery(); var camlQuery1 = new SP.CamlQuery(); var camlQuery2 = new SP.CamlQuery(); var camlQuery3 = new SP.CamlQuery(); var camlQuery4 = new SP.CamlQuery(); var camlQuery5 = new SP.CamlQuery(); var camlQuery6 = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Issue</Value></Eq></Where></Query></View>');
    camlQuery1.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Project_x0020_Issue_x0020_Status" /><Value Type="Choice">Risk</Value></Eq></Where></Query></View>');
    camlQuery2.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Open</Value></Eq></Where></Query></View>');
    camlQuery3.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Overall_x0020_Status" /><Value Type="Choice">Closed</Value></Eq></Where></Query></View>');
    camlQuery4.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery5.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    camlQuery6.set_viewXml('<View><Query><Where><IsNotNull><FieldRef Name="Project_x0020_Code" /></IsNotNull></Where></Query></View>');
    this.collListItem = oList.getItems(camlQuery); this.collListItem1 = oList.getItems(camlQuery1); this.collListItem2 = oList1.getItems(camlQuery2); this.collListItem3 = oList1.getItems(camlQuery3);
    this.collListItem4 = oList2.getItems(camlQuery4); this.collListItem5 = oList3.getItems(camlQuery5); this.collListItem6 = oList1.getItems(camlQuery6);
    clientContext.load(collListItem); clientContext.load(collListItem1); clientContext.load(collListItem2); clientContext.load(collListItem3); clientContext.load(collListItem4); clientContext.load(collListItem5); clientContext.load(collListItem6);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    alert("retrieve list");
    function onQuerySucceeded(sender, args) {
    alert("succeed");
    var listItemEnumerator = collListItem.getEnumerator(); var listItemEnumerator1 = collListItem1.getEnumerator(); var listItemEnumerator2 = collListItem2.getEnumerator();
    var listItemEnumerator3 = collListItem3.getEnumerator(); var listItemEnumerator4 = collListItem4.getEnumerator(); var listItemEnumerator5 = collListItem5.getEnumerator(); var listItemEnumerator6 = collListItem6.getEnumerator();
    var sumClose = 0; var sumClose1 = 0; var sumHigh = 0; var sumMedium = 0; var sumLow = 0; var sumLowMedium = 0; var sumMediumHigh = 0;
    var sumOpen = 0; var sumOpen1 = 0; var sumHigh1 = 0; var sumMedium1 = 0; var sumLow1 = 0; var sumLowMedium1 = 0; var sumMediumHigh1 = 0;
    while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); sumClose += oListItem.get_item('Close'); sumOpen += oListItem.get_item('Open'); sumHigh += oListItem.get_item('High'); sumMedium += oListItem.get_item('Medium'); sumLow += oListItem.get_item('Low'); sumLowMedium += oListItem.get_item('LowMedium'); sumMediumHigh += oListItem.get_item('MediumHigh'); }
    while (listItemEnumerator1.moveNext()) { var oListItem1 = listItemEnumerator1.get_current(); sumClose1 += oListItem1.get_item('Close'); sumOpen1 += oListItem1.get_item('Open'); sumHigh1 += oListItem1.get_item('High'); sumMedium1 += oListItem1.get_item('Medium'); sumLow1 += oListItem1.get_item('Low'); sumLowMedium1 += oListItem1.get_item('LowMedium'); sumMediumHigh1 += oListItem1.get_item('MediumHigh'); }
    while (listItemEnumerator4.moveNext()) { var oListItem4 = listItemEnumerator4.get_current(); sumMinimal += oListItem4.get_item('Minimal'); sumModerate += oListItem4.get_item('Moderate'); sumSevere += oListItem4.get_item('Severe'); sumCritical += oListItem4.get_item('Critical'); }
    while (listItemEnumerator5.moveNext()) { var oListItem5 = listItemEnumerator5.get_current(); sumUnlikely += oListItem5.get_item('Unlikely'); sumSomewhat += oListItem5.get_item('Somewhat'); sumLikely += oListItem5.get_item('Likely'); sumHighlyLikely += oListItem5.get_item('HighlyLikely'); }
    while (listItemEnumerator6.moveNext()) { var oListItem6 = listItemEnumerator6.get_current(); sumBudget += oListItem6.get_item('Project_x0020_Budget_x0020_Amoun'); sumCommitted += oListItem6.get_item('Committed_x0020_Budget'); }
    count = this.collListItem2.get_count();
    count1 = this.collListItem3.get_count();
    while (listItemEnumerator2.moveNext()) {
    var oListItem2 = listItemEnumerator2.get_current();
    var stat = oListItem2.get_item('Project_x0020_Status');
    if (stat == "Intiation") {
    initiate = initiate + 1
    if (stat == "Planning") {
    planning = planning + 1
    if (stat == "Execution") {
    execution = execution + 1
    if (stat == "Closing") {
    closing = closing + 1
    //alert("initiate" + initiate); alert("planning" + planning); alert("execution" + execution); alert("closing" + closing);
    //alert("countOpen" + count); alert("closed:" + count1);
    window.close1 = sumClose; window.close2 = sumClose1; window.high = sumHigh; window.low = sumLow; window.medium = sumMedium; window.mediumHigh = sumMediumHigh; window.lowMedium = sumLowMedium;
    window.open1 = sumOpen; window.open2 = sumOpen1; window.high1 = sumHigh1; window.low1 = sumLow1; window.medium1 = sumMedium1; window.mediumHigh1 = sumMediumHigh1; window.lowMedium1 = sumLowMedium1;
    drawChart();
    function onQueryFailed(sender, args) { alert('Request failed.. ' + args.get_message() + '\n' + args.get_stackTrace()); }
    google.load("visualization", "1", { packages: ["corechart"] });
    function drawChart() {
    var data = google.visualization.arrayToDataTable([['Task', 'Issues'], ['Close', window.close1], ['Open', window.open1]]);
    var data1 = google.visualization.arrayToDataTable([['Task', 'Risks'], ['Close', window.close2], ['Open', window.open2]]);
    var data2 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high, window.mediumHigh, window.medium, window.lowMedium, window.low]]);
    var data3 = google.visualization.arrayToDataTable([['Program', 'High', 'Medium-High', 'Medium', 'Low-Medium', 'Low'], ['Category', window.high1, window.mediumHigh1, window.medium1, window.lowMedium1, window.low1]]);
    var data4 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Closed', count1], ['Open', count]]);
    var data5 = google.visualization.arrayToDataTable([['Project', 'Status'], ['Initiation', initiate], ['Planning', planning], ['Execution', execution], ['Closing', closing]]);
    var data6 = google.visualization.arrayToDataTable([['Program', 'Impact'], ['Minimal', sumMinimal], ['Moderate', sumModerate], ['Severe', sumSevere], ['Critical', sumCritical]]);
    var data7 = google.visualization.arrayToDataTable([['Program', 'Probability'], ['Highly Likely/Probable(76%-100%)', sumHighlyLikely], ['Likely(51%-76%)', sumLikely], ['Somewhat Likely(26%-50%)', sumSomewhat], ['Unlikely/Improbable(0%-25%)', sumUnlikely]]);
    var data8 = google.visualization.arrayToDataTable([['Project', 'Budget'], ['Approved', sumBudget], ['Committed', sumCommitted]]);
    var options = { title: 'Program Issues', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options1 = { title: 'Program Risks', width: 200, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options2 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options3 = { width: 200, height: 200, legend: { position: 'top', maxLines: 3 }, bar: { groupWidth: '25%' }, isStacked: true, vAxis: { title: 'Open', titleTextStyle: { color: 'red' } } };
    var options4 = { title: 'Project Status', width: 225, height: 300, legend: 'bottom', pieSliceText: 'value', pieStartAngle: 180, };
    var options5 = { width: 175, height: 200, legend: { position: 'top', maxLines: 10 }, pieSliceText: 'value', };
    var options6 = { title: 'Program Risk Impact', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options7 = { title: 'Program Risk Probable', width: 300, height: 300, legend: 'right', pieSliceText: 'value', };
    var options8 = { title: 'Project Budget', width: 300, height: 300, legend: 'bottom', pieSliceText: 'value', };
    var chart = new google.visualization.PieChart(document.getElementById('chart_div3'));
    chart.draw(data, options);
    var chart1 = new google.visualization.PieChart(document.getElementById('chart_div'));
    chart1.draw(data1, options1);
    var chart2 = new google.visualization.ColumnChart(document.getElementById('chart_div1'));
    chart2.draw(data2, options2);
    var chart3 = new google.visualization.ColumnChart(document.getElementById('chart_div2'));
    chart3.draw(data3, options3);
    var chart4 = new google.visualization.PieChart(document.getElementById('chart_div4'));
    chart4.draw(data4, options4);
    var chart5 = new google.visualization.PieChart(document.getElementById('chart_div5'));
    chart5.draw(data5, options5);
    var chart6 = new google.visualization.PieChart(document.getElementById('chart_div6'));
    chart6.draw(data6, options6);
    var chart7 = new google.visualization.PieChart(document.getElementById('chart_div7'));
    chart7.draw(data7, options7);
    var chart8 = new google.visualization.ColumnChart(document.getElementById('chart_div8'));
    chart8.draw(data8, options8);
    </script>
    </head>
    <body>
    <table >
    <tbody>
    <tr>
    <td id="chart_div8" colspan="2" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div4" style="border-bottom:ridge;border-left:ridge;border-top:ridge"></td>
    <td id="chart_div5" style="border-bottom:ridge;border-right:ridge;border-top:ridge"></td>
    </tr>
    <tr>
    <td id="chart_div" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div2" style="border-bottom:ridge;"></td>
    <td id="chart_div3" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div1" style="border-bottom:ridge;border-right:ridge""></td>
    </tr>
    <tr>
    <td id="chart_div6" colspan="2" style="border-bottom:ridge;border-left:ridge;"></td>
    <td id="chart_div7" colspan="2" style="border-bottom:ridge;border-left:ridge;border-right:ridge"></td>
    </tr>
    </tbody>
    </table>
    </body>
    </html>
    This content editor webpart not working in sharepoint page. Once I checked out to the page then chart is working. When i checkedin function not get called. How to fix this?
    THanks in advance!

    In SharePoint 2013, sp.js and sp.runtime.js does not load on the page in published mode. You need to explicitly load these files. You can check using IE developer tools in the Script section that in published mode these files are missing.
    In order to fix this issue explictly refer these two js files on your page.
    <script type="text/javascript" src="_layouts/15/sp.runtime.js"></script>
    <script type="text/javascript" src="_layouts/15/sp.js"></script>
    Geetanjali Arora | My blogs |

  • Batch process Flatten Script not working?

    Hi,
    I used to run the this.flattenPages(); in Acrobat pro 8 with no problems, Scince ive installed 9 the batch process requires the enter button to be pressed every time it processes a file??? Is there a work around for this? Im not too good with Javascript, In Acrobat 8 I just had the one line and it worked fine?
    Please help ive 80,000 files to process!
    Thanks
    Mike

    Dont know if you have found a solution or not but you could use this as a work around.
    http://www.autoitscript.com/autoit3/index.shtml
    It is a free program that you can create scripts in if you created and ran an Autoit script that would have a
    ;******************** auto it script not javascript ************
    $count = "1"
    $total = "80001"
    While( $count <= $total)
    sleep(100)
    winwait(_______x_______,_______y_________)
    send("{ENTER}")
    ;sleep(100)
    $count = $count + 1
    WEnd
    ;****************** end auto it script ***********************
    You will want to replace the _______x________ with the exact title of your message window that wants you to hit enter on. And the _________y________ with part of the text that is in the window that wants you to hit enter on.
    What it does is loop 80000 times. While looping it waits for the window with the exact title / words in it once it see that it will hit enter, add one to count and do it again.
    While running script if you want to stop the auto it program a blue A is on the lower right side of screen by system clock you can right click on it and end it.
    This may help you get done with them while you are searching for a better built in answer.

  • Script not working

    Hi - I am a coder of javascript-driven dhtml online games. The latest one I did is called "Difference" @ http://www.mah-jongg.ch/difference/difference.html and has been tested in MSIE, FF (Mac, Linux, Win), Chrome and Opera, and is working fine in all of them. Yet, not in Safari (both for Mac and Windows): The first difference can be clicked, and then the script stops working.
    Techs: The game is written in dynamic HTML, and its mechanics are based on the .innerHTML property of the "screen" object, on dynamically generated <area> tags the coords of which are stored in a three-dimensional array at the head of the script and, after a correct click, the positioning of css-formatted semi-transparent png images in order to mark the difference in question. The script can be found @ http://www.mah-jongg.ch/difference/difference.js
    Any ideas? Hints are most welcome! Thanks!
    twb

    So I still think it has something to do with the HTML dynamically generated by my script...
    maybe - but your html/js seem to work as expected with newer versions of webkit/webcore/javascriptcore, so it's possible that your code is ok & the release safari is at fault.
    Naturally you'll want it to work now, so I can only suggest checking the fixed bugs @webkit & seeing what matches up, then finding another way to get that function.

Maybe you are looking for

  • Exe build with database conn and report generation vi's?

    I tried to build an .exe and learned the hard way that there are many things needed to be included for this to work.  As is now my program is not working. I wanted to get a list of necessary steps to make a successful build.  Please correct me if I a

  • HTML Editor - converting "special characters" into entities

    Hi everyone, I'm currently in the middle of formatting my wife's novel into 'clean' html so I can use Calibre to create a well formatted epub/mobi/etc. I've read that TextMate on Mac includes a function to "Convert Selection to Entities excluding Tag

  • What is this extra peice

    What is this extra peice that kind of looks like a dock and comes with every iPod? What is it, and how does it work? What product can you use it on?

  • Positioning an image in an AP element of an editable region

    This is the current scenario: <div id="graphix">             <!-- #BeginEditable "graphixs" --><br>                                     <br>                                     <br>                                     <br>                            

  • Cannot install snow leopard. Keep getting"os product manager domain error-100"

    Cannot install snow leopard. Keep getting"os product manager domain error-100"