Simple Click To Call Services

Please look around our website and familiarise yourself with Click to Call or Click2call Services. Please contact us for more information or to discuss any specific service requirements you may be after, as were are more than happy to build a flexible solutiong for your calling needs.

For further information regarding our other services you can goto: Fax To Email Service or here for information about 1300 number and 1800 numbers

Are you making the most of your web traffic? Use Click to CALL

INSTALLATION INSTRUCTIONS - CLICK TO CALL


Installation Guide for PHP, Java & ASP.NET C#

zip PHP c2call_php.zip

zip Java c2call_jsp.zip

zip ASP.NET C# c2call_asp.net_csharp.zip

Extract the c2call directory from the supplied zip file into the home directory on your website. Once you have done this, you can get the sample click to call form to work by inserting your Script Id in sample.html on line 14, then navigate to: http://example.com/sample.html

If you want to integrate the form elsewhere on your website: Copy and paste the following sections of code into the relevant areas.

Click to Call Webpage - Displays the form


<SCRIPT LANGUAGE="JavaScript" SRC="/c2call/c2call.js"></SCRIPT>

<!-- THE TEXT INPUT, CHECKBOX AND SUBMIT TAGS BELOW CAN BE PLACED ANYWHERE IN YOUR PAGE //-->
<!-- THEY CAN BE USED MULTIPLE TIMES //-->
<!-- ALL 3 FIELDS MUST BE IN THE PAGE //-->
<input name="c2call_numtocall" type="text" id="c2call_numtocall" onKeyPress="return c2call_numbersonly(event,this);" onKeyDown="c2call_checkBackSpace(event,this);" maxlength="10" onPaste="c2call_checkString(this);">

<input name="c2call_savenum" type="checkbox" id="c2call_savenum" value="y"> <label for="c2call_savenum">Remember Me</label>

<input name="c2call_callMeSubmit" type="submit" id="c2call_callMeSubmit" onClick="c2call_callMeNow();" value="Waiting.." disabled>


<script language="JavaScript" type="text/JavaScript">
  // TODO: replace '111111' with your script id.
  c2call_runAction('111111');
</script>



Installation Guide for Ruby on Rails

zip Ruby c2call_ruby.zip

Extract the c2call directory into the root directory on your rails project. Once you have done this, you can get the sample click to call form to work by inserting your Script Id in sample.html.erb on line 14, then navigate to: http://example.com/main/sample

If you want to integrate the form elsewhere on your website: Copy and paste the following sections of code into the relevant areas.

Controller - posts data to our API

def c2call
  # build url
  url = URI.parse(params[:url_base] + params[:url_path])
  ps = params
  # add visitor ip to params
  ps['visitor_ip'] = request.remote_ip
  req = Net::HTTP::Post.new(url.path)
  req.set_form_data(ps)
  res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
  case res
  when Net::HTTPSuccess, Net::HTTPRedirection
    # OK
    @stuff = res.body
  else
    res.error!
  end
end

View - to output and process the results from our API (c2call.html.erb)

<%= @stuff %>

View - the form

<%= javascript_include_tag 'click2call' %>

<script language="JavaScript" type="text/JavaScript">
  // TODO: replace '111111' with your script id.
  c2call_runAction('111111');
</script>

Your Number: <input name="c2call_numtocall" type="text" id="c2call_numtocall" onKeyPress="return c2call_numbersonly(event,this);" onKeyDown="c2call_checkBackSpace(event,this);" onPaste="c2call_checkString(this);">
<br/>

<input name="c2call_savenum" type="checkbox" id="c2call_savenum" value="y">
Check this and we will remember your number<br>

<input name="c2call_callMeSubmit" type="submit" id="c2call_callMeSubmit" onClick="c2call_callMeNow();" value="Waiting.." disabled><br>

Javascript

Change click2call.js on line 4 to point to the correct path for the c2call action.