XMLhttprequest doesn't work in safari

i have a website and it works fine in Internet Explorer, but the website doesn't work in Safari.
i use xmlhttprequest to get data from the database and that data i want to put in an selectbox.
i have multiple selectboxes and the first one i don't use ajax to get the data and that one works fine. but as soon as i use ajax it doesn't work anymore in safari.
this is the function i call to get the data.
function UpdateOrder(custid)
      var xhrrequest = getXhr();
          // Ici on va voir comment faire du post
      xhrrequest.open("GET","ajax/UpdateOrder.php" +"?q=" + custid, true);
      // ne pas oublier ?a pour le post
      xhrrequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded') ;
      xhrrequest.send("bedrijfsnaam="+custid);
      // On d?fini ce qu'on va faire quand on aura la r?ponse
      xhrrequest.onreadystatechange = function(){
       // On ne fait quelque chose que si on a tout re?u et que le serveur est ok
       if(xhrrequest.readyState==4 && xhrrequest.status==200){
        var string=xhrrequest.responseText;
        var array=eval(string);
        var tdaddress = document.getElementById("tdorderid");
        var selectiebox = document.getElementById("selorderid");
        if (array.length > 0)
         //selectiebox vullen met straatnamen
         var splarray = array.toString();
         var strarray = splarray.split(",");
         var i=0;
         for(i=0; i< strarray.length; i++)
          var oOption=document.createElement("option");
          oOption.setAttribute(i,strarray[i]);
          oOption.setAttribute('value',strarray[i]);
          var oText=document.createTextNode(strarray[i]);
          oOption.appendChild(oText);
          selectiebox.appendChild(oOption);
i also viewed the errorlog and there it said:
Failed to load resource: the server responded with a status of 404 (Not Found)
INVALID_CHARACTER_ERR: DOM Exception 5: An invalid or illegal character was specified, such as in an XML name.
can anyone help me please?

it works. there were some problems with the select box. the way it was created didn't work in safari and chrome. but now it does

Similar Messages

  • CMD+ any shortcut doesn't work in Safari after upgrading to Yosemite

    After upgrading from Mavericks to OS X Yosemite 10.10 not a single CMD+ shortcut works?!
    For example CMD+tab works (switching between apps), ctrl+tab works (switching between tabs), but none of these work: CMD+W, CMD+Q, CMD+F, CMD+C, CMD+X, CMD+P...
    They all work perfectly fine in all other apps. It's just Safari.
    Does anyone have any idea why and how to fix this?

    I have a similar pb :
    CMD+SHIFT+1,2,3,... doesn't work in safari.
    I'm using "English interface" with "French keyboard".
    following miladc advice and link (Shortcuts not working on Safari and Firefox),
    I changed my Language pref to French ... so I got "French interface" with "French keyboard" ... and it worked once !!!!
    But it works no more ... very weird
    All I want to do, it's having shortcut for my bookmarklet !

  • Download doesn't work with Safari

    Just a tip if you happen to be using Mac OS. It appears that the License Agreement
    page doesn't work using Safari. Works fine with Camino, though.
    Blake Meike

    Hi Matthew
    Does the Activity Window work normally when Rapport is uninstalled ?
    If so, I'm not sure what you could do beyond keeping it that way & watching for an updated version; or contacting
    http://www.trusteer.com/support/report-problem & seeing what they say, since it might conflict with some other add-on. You've the same trouble in a new account ?.

  • Paypal button doesn't work on Safari. but works on Firefox

    I have over 100 pairs of "Add to Cart" buttons on my website. One of each is on the individual item page and the other is on my Order Form.
    I have one button that works on the order form, but the identical button doesn't work on the individual page when using SAFARI, but works when I use FIREFOX!
    I have recreated the button several times and put it in the proper place several times, saved the changes and republished. Still it doesn't work in Safari!
    This must be a Safari issue not a PayPal issue
    Any suggestions?

    If that's checked, see: How to perform a "clean install" of Flash Player in Mac OS X

  • Java doesn't work on safari / xp

    Downloaded the latest Safari, 5.1.7, for Windows XP
    Downloaded the latest Java, JRE as well as tried JDK, 7.04 and configured for IE and Safari.
    Java.com test works on IE, but on Safari, refers to
    C:\Program Files\Oracle\JavaFX 2.1 Runtime\bin\server\jvm.dll
    There is no server directory, nor any jvm.dll anywhere in the Oracle install.
    What's wrong??
    Help!

    Ok, 3 days and no responses. I guess Java doesn't work on Safari/XP. Time to switch...

  • I have latest version of flash but flash doesn't work in safari!

    Why do I have latest version of flash but flash doesn't work in safari!I have flash for mac.Your help will be appreciated.

    If you're talking about using Flash on your iPod, you can't. There is no version of Flash that will work on any iOS device. If you're talking about using Flash on your computer, you may want to repost in the correct forum.

  • HT5655 Flash still doesn't work with Safari.

    I've done this repeatedly. Flash still doesn't work with Safari. It does work with Firefox and Chrome.
    I deleted the Flash plugin from Library>Internet Plugins. That didn't solve the problem either.
    What can I try next? Thanks.

    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 CANONiMAGEGATEWAYDL.plugin
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 DRM Plugin.bundle
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 DirectorShockwave.plugin
    drwxrwxrwx   3 root        wheel    102 Mar  2 08:17 Disabled Plug-Ins
    drwxrwxr-x   3 root        wheel    102 Mar 23 00:43 Flash Player.plugin
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 Flip4Mac WMV Plugin.plugin
    drwxrwxrwx   5 root        wheel    170 Sep  1  2012 Google Earth Web Plug-in.plugin
    drwxr-xr-x   3 root        wheel    102 Sep 25  2012 JavaAppletPlugin.plugin
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 OfficeLiveBrowserPlugin.plugin
    drwxrwxrwx   3 root        wheel    102 Jun 20  2012 Quartz Composer.webplugin
    drwxrwxrwx   3 root        wheel    102 Mar 19 23:30 QuickTime Plugin.plugin
    lrwxrwxrwx   1 root        wheel     68 Sep  1  2012 RealPlayer Plugin.plugin -> /Applications/RealPlayer.app/Contents/MacOS/RealPlayer Plugin.plugin
    drwxrwxr-x   3 root        admin    102 Apr 11  2012 Silverlight.plugin
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 ebldetect.bundle
    -rw-rw-r--   1 root        admin    856 Feb 28 21:45 flashplayer.xpt
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 googletalkbrowserplugin.plugin
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 iPhotoPhotocast.plugin
    drwxrwxrwx   3 root        wheel    102 Sep  1  2012 npgtpo3dautoplugin.plugin
    -rw-rw-rw-   1 root        wheel   2394 Jul 21  2012 nsIQTScriptablePlugin.xpt

  • Javascript doesn't work on safari desktop but works properly on Safari  ipad. I already cleaned a cache without success

    javascript doesn't work on safari desktop but works properly on Safari  ipad. I already cleaned a cache without success. IE, FF and Opera are working well

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • Flash Player doesn't work on Safari, Netscape, nor Mozilla

    I've downloaded the flash player but it's funny that it works
    on Internet Explorer but it doesn't work on the other browsers. I
    downloaded it from here --->
    http://get.adobe.com/flashplayer.
    Why is that? I don't like to use Internet Explorer and I rather use
    Mozilla or Safari.
    Then, why my computer says "You don't have sufficient disk
    space to complete this installation. Please free 5000 KB and try
    again" when I tried to download it from Safari/Mozilla????... the
    computer has around 142 GB free to use. I'm so confused.
    Help!!

    Hi Berryblue and Uniondue-
    With that issue, the most common problem is that drive C: is
    not the hard drive. FP is hard-coded to C: and won't dl to another
    letter.
    http://www.adobe.com/go/kb406903
    But, in this forum, I have seen another issue with Firefox.
    See the thread by ppalesch, dated 1/21/09 "latest flashplayer will
    not install on firefox".
    Also see "Insufficient diskspace to install: WRONG!" by
    PhaineinTerra, dated 4/28/07, read the replies by Darren McNally of
    Adobe.

  • Hyperlink to specific page in PDF doesn't work in Safari

    Hyperlink to specific page in PDF doesn't work in Safari

    Here is the URL http://www.soka.edu/files/documents/academics/academic-catalog-2013-2014.pdf#page=83
    It works in Windows machine but not in ipad safari.
    Thank you,
    Rutvi

  • Mailto: Link doesn't work in Safari

    In my project, we have a link to open a outlook mail. when i open the link in IE/Chrome/Firefox browser, it opens the outlook with the given mail id. But, same link was not working properly in safari browser.
    I am using safari version 5.1.7(7534.57.2). When i click the link, it opens the outlook mail, but my current(Parent) window gets crashed.
    Below is the sample code i used.
    mc.addEventListener(MouseEvent.CLICK, sendEmail);
    function sendEmail(e:MouseEvent):void{
         navigateToURL(new URLRequest("mailto:[email protected]"));
    Thank in advance

    Thanks for your reply..
    We already tried that too. But doesn't work.
    My problem is after clicking the link, my current window became black screen and it opens the outlook with the given mail id
    we are not sure, whether the issue is related to flash player or safari browser.
    Any idea?

  • Link doesn't work in safari landscape mode

    Hi All!
    Sometime I have problems with links in Safari. If I click on a link, it doesn't work, only when the iPhone is in landscape mode. If I turn the iPhone in portrait mode, I can click on the link correctly.
    Is there anyone with this problem?
    thanks!
    stefano

    same thing here, I've talked to apple twice and no resolution
    if you move the screen up you can usually get the links to work
    also when I do Google searches I can get to the second page of results and then I can go no further

  • Why Position:Relative from CSS doesn't work at Safari 5.03?

    If you watch my web page: http://clubdeleonesst.tk
    I designed a ComboBox and have some problems with position relative. I used jQuery to create it, you could watch the original example here:
    http://www.marghoobsuleman.com/jquery-image-dropdown
    And I have been watching that the transparency from Flash doesn't work too. I hope you can solve these bugs.
    Message was edited by: FANMixco
    Message was edited by: FANMixco

    The "disappearing" affect you describe is not normal. You may need to reinstall Safari.
    First, try removing the Apple cookies from your Safari Preferences>Security>Cookies panel. Also, go to your Safari Menu and Empty cache. Then try to log-on to Apple Discussions.
    Also, regarding the "disappearing" effect, try Safari from another User Account.
    Here is guidance from Apple on how to set up the account. You can ignore step 7 in the article.
    Also, on the system preference>Accounts panel, click on "log-in" options. There, select "fast user switching". This allows you to go back and forth between user accounts via an icon in your Menu Bar at the top of the computer screen.
    Log-on to the new account and start Safari. If Safari is stable in the new account, then your problem is specific to your regular user account. Otherwise, similar response means a system-wide problem.
    Post back with results.

  • Uploading doesn't work on Safari

    I need to upload photos on etsy, and it doesn't work on my defaul Safari browser. Never had problems before, even uploading to the same website(Etsy)
    Used Camino - no problems.
    Any idea what might be the reason ?
    Everything is up to date, incl. Safari 5.1.2 with Lion.
    Thanks!

    Empty your Safari cache and try resetting Safari from the menu bar.
    And go to Safari > Preferences then select the Privacy tab then click Details
    Type   etsy   in the search field  then click Remove All > Done
    Now disable the Lion "resume" feature. Go to System Preferences > General
    Deselect:    Restore windows when quitting and re-opening apps
    Restart your Mac, launch Safari. See if you can upload photos now.

  • Smart zoom doesn't work in Safari with Mavericks

    After update Mountain Lion to Mavericks, smart zoom in Safari doesn't work for me. Same case with swipe pages. Am i the only one?. Thanks.

    Check your Mouse and/or Trackpad settings in System Preferences. The upgrade may have disabled the Smart Zoom and Swipe gestures.
    Some users (myself included) are finding that re-enabling them doesn't work, though.

Maybe you are looking for