I am new to javascript and downloaded an script to my website.
It has columns like Bid, Ask, High values. I like to add an extra column (Spread = Ask – Bid).
Is their way to add this extra column? Any guidance or reference to material is highly appreciated.
Applet:
<script type="text/javascript"
src="http://cs.iitech.dk/Site/PartnerProgramme/Scripts/
DCQuoteList.asp?id=3707081"></script>

<script type="text/javascript">

QuoteListFull(
"EURJPY|USDJPY|GBPJPY|GBPUSD|GBPAUD|EURUSD|EURGBP|AUDUSD|AUDJPY", // Instrument List
"Bid|Ask|Low|High|Net|Time", // Fields
"Symbol,Bid,Ask,Low,High,Net,Time(GMT)", // Headers
"100%", // Width
"", // Height
"FFFFFF",
"FFFFFF",
"000000",
"Dialog",
"8",
"plain",
"3707081",
"",
"EN",
"" );

</script>

Recommended Answers

All 4 Replies

As per the documentation for the script at the location
http://www.saxobank.com/?id=660&Lan=EN&Au=1&Grp=5
the maximal list of headers is 'Bid|Ask|High|Low|Pct|Net|Time'.
So it seems that addition of a new column wont be possible

Contact the corresponding script provider for further help in this regard

Dear Parry_kulk,
Thanks for your reply. If not in this applet can we have a different location or another page where we can calculate the (Spread=Bid-Ask)?
Can we access the values of Bid and Ask for calculation purposes?
Regards,

I don't think it will be possible to access the values. It will be better if you ask the author/provider of the applet for more details

Thank ypu very much Parry_Kulk.
I will try to do that.
Regards,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.