Skip to content

ic-push-url not working return #237

Open
@mrGrochowski

Description

@mrGrochowski

Related to #77 (comment)
Can You show me example of X-IC-PushURL ? @carsongross
I can't make it work in client-side script only. My backend dev w
on't hear about return special http headers.

For me if some field is sent by GET method it have to appear in url adress like in simple
<a ic-src=''></a> url..

There is code example of my project (new lines only for readability):

<form ic-push-url="true" 
action="index.php" 
ic-get-from="index.php" 
ic-target="#content" 
ic-select-from-response="#content" 
method="GET" 
id="form">
	<input type="hidden" name="co"       value="{{switch}}" />
	<input type="hidden" name="akcja"    value="{{akcja}}" />
	<input type="hidden" name="segment"  value="{{GETsegment}}" />
	<input type="hidden" name="spolka"   value="{{GETspolka}}" />
	<input type="hidden" name="doradca"  value="{{GETdoradca}}" /> 
	<select              name="okres"    id="select-okres">
	    {% for item in arr %}
	        <option value="{{item.id}}" 
		{% if item.id == GETokres %} selected="selected" {% endif %}>
                {{item.nazwa}} 
            </option>
	    {% endfor %}
	</select>
</form>

or

<form ic-push-url="true" 
action="index.php" 
ic-get-from="index.php?co={{switch}}
&akcja={{akcja}}
&segment={{GETsegment}}
&spolka={{GETspolka}}
&doradca={{GETdoradca}}" // as you see I can't put &okres={{GETokres}} field becouse i send double times 
ic-target="#content" 
ic-select-from-response="#content" 
method="GET" 
id="form">
	//<input type="hidden" name="co" value="{{switch}}" />
	//<input type="hidden" name="akcja" value="{{akcja}}" />
	//<input type="hidden" name="segment" value="{{GETsegment}}" />
	//<input type="hidden" name="spolka" value="{{GETspolka}}" />
	//<input type="hidden" name="doradca" value="{{GETdoradca}}" /> 
    <select name="okres" id="select-okres">
	    {% for item in arr %}
	        <option value="{{item.id}}" {% if item.id == GETokres %} selected="selected" {% endif %}>
                {{item.nazwa}} 
            </option>
	    {% endfor %}
	</select>
</form>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions