Adding web content

You can use the Web Content Proxy widget to extend your Rhythm for Civics pages with your own controls or HTML markup. You can specify the URL of an external site to be displayed within the widget, or you can enter you own HTML.

If you specify a URL, you can also forward the current window's query strings to the external site to generate dynamic content.

To enter your own HTML, use the Web Proxy Content field. Example:

    <span>Validation Code: </span>
    <input placeholder="" type="text" name="name" id="name" tabindex="1" autofocus />
    <div id="name-error" class="error"></div>
    <a href="#" onClick="$.ajax({url: 
     ' + $('#name').val(),success: function(result){ $('#name-error').html
     (;}})">click here</a>

When using the URL configured proxy, you must modify the cross domain policy header to allow Rhythm for Civics to render the web content. To modify the cross domain policy, add this code to the Web.config file:

        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Methods" value="POST,GET,OPTIONS,PUT,DELETE" />