4 Replies - 521 Views - Last Post: 21 February 2013 - 05:29 AM

#1 mohan1984  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 06-March 09

Coding not supported in Safari

Posted 21 February 2013 - 04:46 AM

The below coding works well in IE. I also need to work this code in safari.

    if(window.ActiveXObject)
    {//For IE Browsers. This coding works well in IE browsers
    var tempNode=xmlSoapTemplate.selectSingleNode(pathString+"xmlDatasets");
    tempNode.appendChild(xmlDataReturn.documentElement);
    }

    else
    {//verify the code below.(Safari Support)
    alert("Checking");
    var tempNode=xmlSoapTemplate.evaluate(pathString+"xmlDatasets", xmlSoapTemplate, null, XPathResult.ANY_TYPE,null);
    alert("Passed");
    tempNode.appendChild(xmlDataReturn.documentElement);
    }


Kindly verify the safari code.
The code execution breaks after showing the alert("Checking");

Is This A Good Question/Topic? 0
  • +

Replies To: Coding not supported in Safari

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6064
  • View blog
  • Posts: 23,518
  • Joined: 23-August 08

Re: Coding not supported in Safari

Posted 21 February 2013 - 05:02 AM

Also found here.

Are we supposed to just KNOW what xmlSoapTemplate is?
Was This Post Helpful? 0
  • +
  • -

#3 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3541
  • View blog
  • Posts: 10,236
  • Joined: 08-June 10

Re: Coding not supported in Safari

Posted 21 February 2013 - 05:04 AM

View Postmohan1984, on 21 February 2013 - 12:46 PM, said:

The code execution breaks after showing the alert("Checking");

then there should be an Error Message.
Was This Post Helpful? 0
  • +
  • -

#4 mohan1984  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 06-March 09

Re: Coding not supported in Safari

Posted 21 February 2013 - 05:11 AM

View PostDormilich, on 21 February 2013 - 05:04 AM, said:

View Postmohan1984, on 21 February 2013 - 12:46 PM, said:

The code execution breaks after showing the alert("Checking");

then there should be an Error Message.


No. There is problem in the following line.
Kindly verify the conversion from ActiveXobject to XMLHttpRequest (Which is, IE support to Safari support)

From this
var tempNode=xmlSoapTemplate.selectSingleNode(pathString+"xmlDatasets");

To this
var tempNode=xmlSoapTemplate.evaluate(pathString+"xmlDatasets", xmlSoapTemplate, null, XPathResult.ANY_TYPE,null);

Is there any problem?
Was This Post Helpful? 0
  • +
  • -

#5 mohan1984  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 06-March 09

Re: Coding not supported in Safari

Posted 21 February 2013 - 05:29 AM

View PostJackOfAllTrades, on 21 February 2013 - 05:02 AM, said:

Also found here.

Are we supposed to just KNOW what xmlSoapTemplate is?


I just want to support the following code in safari
var tempNode=xmlSoapTemplate.selectSingleNode(pathString+"xmlDatasets");
tempNode.appendChild(xmlDataReturn.documentElement);

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1