logo

WikiFX Search Plugin Invocation Documentation

This documentation is created to guide developers to build a broker search box on their own website and then open a list of matched brokers of www.wikifx.com in a new window based on the input.

Step 1:Create a Container

Create and append a div in the proper place of <body></body> and assign a unique ID to it, e.g. <div id="div_jiaoyishang"></div>. This div is utilized as a container to ensure the HTML fragment generated by JavaScript code will make the search box on the page visible.

Step 2:Invoke JavaScript Code【Method 1:Basic invocation, modify and configure the URL parameter value】
  • 01.
  • 02.
  • 03.

<script type="text/javascript" src="https://www.wikifx.com/Contentgj/js/tradersearch.js?id=div_jiaoyishang&width=350px&height=30px&buttomwidth=50px&border=1px&color=#f4c830&ts=" + Math.random()></script>

【Method 2:JavaScript object configuration, modify and configure the object's property value】
  • 01.
  • 02.
  • 03.
  • 04.
  • 05.
  • 06.
  • 07.
  • 08.
  • 09.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.

<script type="text/javascript">

var fx = new Object();

fx.id="div_jiaoyishang";

fx.width="350px";

fx.height="30px";

fx.buttomwidth="50px";

fx.border="1px";

fx.color="#f4c830";

var script=document.createElement("script");

script.type="text/javascript";

script.src="https://www.wikifx.com/Contentgj/js/tradersearch.js?id="+ fx.id +"&width="+fx.width+"&height="+fx.height+"&buttomwidth="+fx.buttomwidth

+"&border="+fx.border+"&color="+fx.color+"&ts=" + Math.random();

document.getElementsByTagName('body')[0].appendChild(script);

</script>

Parameter Illustration
Parameter Name Parameter Type Required or not Parameter Illustration
id String Yes Assign the place of search box, i.e. ID of the div created at Step 2
width String No Configure the total width of the search box, namely the container width
height String No Configure the total height
buttomwidth String No Width of the button on the left, used to adjust the input box and buttons
border String No Border thickness of the search box which may be configured according to the overall size of the input box
color String No Background Color

Remarks: Place the JavaScript code mentioned in Step 2 after the div container, the bottom of body is recommend

Practical Case

Instructions: Type the company name or the license number into the search box to enter WikiFX SERP

Warning

Please ignore this e-mail if you have not registered for WikiFX membership; Of course, you are cordially invited to become WikiFX member.

Given the complexity of forex industry, some brokers are issued legal licenses by regulation institutes by cheating. If the data published by WikiFX are not in accordance with the fact, please use Complaints and Correction function to inform us. We will check immediately and publish the results.

Foreign exchange, precious metals and over-the-counter (OTC) contracts are leveraged products, which have high risks and may lead to losses of your investment principal. Please invest rationally.

Special Notice: Information provided by WikiFX is only for reference and does not indicate any investment advice. Investors should choose brokers by themselves. The risk involved with brokers is not relevant with WikiFX. Investors shall bear the relevant consequences and responsibilities on his own.

×

Select Country/District