• Winsoft Tech.
  • 0 Points
  • Member since 2007

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
  • 0
In Custom s-control , i want to read xml data from follwing URL.
And want to display the parsed xml data in a table using Html and javascript.
But when I load this xml file using  custom s-control:
var myxmldoc=new ActiveXObject("Msxml2.DOMDocument");
It is giving me error that Access is denied. Below is the source code.
 <title>TurboWidgets Example - TurboGrid</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
 <script language="JavaScript" type="text/javascript"> 
  function StockUrl()
  alert("In StockUrl()");
  var ReadText=document.getElementById("names");
  var url="http://www.411sync.com/cgi-bin/search.rss—kw=quote" + " "+ ReadText.value;

 function Navigate(url)
  alert("In Navigate");
  var row;
  var x;
  var y;
  var z;
  var myxmldoc=new ActiveXObject("Msxml2.DOMDocument");
  var i;
  var temp="";  
  var root=myxmldoc.documentElement;
   temp += root.getElementsByTagName("item/title")[i].childNodes[0].nodeValue + " ";
  var temp1 = temp.split(" ");
  var arr=[temp1.length-1];
  for (var j=0;j<temp1.length-1;j++)
  var count=0;   
   for (i=0;i<(temp1.length-1)/3;i++)
   for (var j=0;j<3;j++)
    var y=row.insertCell(j);

 <input type="text" id="names" name="names" />
 <input type="button" id="GetStock" name="GetStock" onclick="StockUrl()" value="Get" />
 <table border="1" id="output">
  <td>Market rate</td>


Its working properly if i make a simple html file of that code and run from my system.(Not on salesforce.com).
But when i use same code in s-control on salesforce.com ,  i am facing this problem (Access is denied while loading XML data through URL)
In this code, there is a textbox which allow user to enter names of the scrips e.g  Goog, Yhoo etc.
On click of button Get , Only data for entered text is parsed from mentioned URL and displays in a table.

Whether  anybody is having solution of mentioned problem?
      I have created some custom objects and look relationship in them . All objects contains at least 20-30 records each. Then i created one user. When that user login to salesforce.com , he is able to see only all custom objects and there relationship but not able to see Data (which i can see on my login).
If i want to allow him to see all the records on his login , is this possible?
      How to change the color of standard Tabs e.g. Home,dashboard,Reports etc.
In custom formula  field  i want to do some calculation. This calculation depends on fields from another custom object. But these fields and there custom objects are not accessible to me. So, How to access these fields . Is there any solution is available for this.
There are three custom objects namely , Security , product and Benchmark.
There is relationship between  Security  and Benchmark  and  between product and Benchmark.
In benchmark object, I want to calculate some value which is depends on some filelds of Security object and product object. I am facing problem for accessing fileds from Security object and product object in Benchark while creating formula in Benchmark.
For example:-
I want  to calculate Quantity like below.
Quantity= (Model AUM * Holding) /Market Price.
Where ,
Model AUM is from product  object.
Market Price is from Security object.
Holding is from Benchmark object.
Quantity is formula field in Benchmark.
In Benchmark object, i created new formula field Quantity,
selected filed type as Benchmark. But in insert filed drop down list the fileds Model AUM and Market Price fields are noe accessible to me. Only custom objects (Product and security) are availabel to me.
So is any solution is there to acess Model AUM and Market Price  from Product and security objects respectively to calulate Quantity.  Or can we acess these fileds through there respective objects like Product.Model_AUM
How can  I upload my own .js file on salesforce.com and how to use it in Custom s-control.
I want to upload that .js file for displaying data in the grid from database.