Infinite Scroll
ExpressionEngine 1.x, ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Laisvunas
This form has expired
Support Request
Ahmet Cetin
|
Posted: 04 May 2014 02:20 AM |
|
|
|
Hi,
I just used your example to test, just replaced the channel name and the paths, but when I clicked on “More” button, it gives “This form has expired. Please refresh and try again.” error. You can see my page here:
http://yelloretail.net/news/test
Can you help me what I’m doing wrong? Here are the codes I used:
Main template:
<html>
<head>
<title>Infinite Scroll demo (link "More" used)</title>
<style type="text/css">
/*Common*/
body { color: black; font-family: "arial unicode ms", helvetica, arial, sans-serif; margin: 0; font-size: small; padding: 0; }
a { color: #4372aa; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
/*Main content*/
#maincontent { width: 48em; position: relative; left: 50%; margin-left: -24em; padding-bottom: 1em; }
/* Headings */
h1 { font-size: 1.5em; font-weight: normal; }
h2 { font-size: 1.1em; font-weight: bold; }
/* Indicator */
.process_indicator { background-image: url({site_url}/images/ajax-loader.gif); background-repeat: no-repeat; background-position: bottom left; height: 3em; width: 100%; text-align: left; display: none; }
</style>
</head>
<body>
<div id="maincontent">
<h1>Infinite Scroll demo (link "More" used)</h1>
{embed="news/_scrollembed"}
</div><!-- End of #maincontent -->
</body>
</html>
Embed template:
{exp:infinite_scroll:wrapper ajax_container="ajax_container" embed_template_url="{site_url}/news/_scrollembed" xid_element_id="infinite_scroll_xid" process_indicator="process_indicator" next_chunk_link="next_chunk_link" parse="inward" }
{infinite_scroll_container_top} <div id="ajax_container"> {/infinite_scroll_container_top}
<input type="hidden" id="infinite_scroll_xid" value="4d7e4b418d4d0f5298f00a4a8f540fd4975e17a3">
{exp:channel:entries channel="malls" sort="asc" orderby="title" limit="5" paginate="bottom" dynamic="no" parse="inward"}
<p>{absolute_count}. <a href="{path=">{title}</a></p>
{if count == total_results} <div class="process_indicator"> Loading… </div> {/if}
{paginate} {exp:infinite_scroll:next_chunk_link} {if next_page}<a href="{auto_path}" class="next_chunk_link">More</a>{/if} {/exp:infinite_scroll:next_chunk_link} {/paginate}
{/exp:channel:entries}
{infinite_scroll_container_bottom} </div><!-- End of #ajax_container --> {/infinite_scroll_container_bottom}
{/exp:infinite_scroll:wrapper}
|
|
|
Ahmet Cetin
|
Posted: 04 May 2014 02:30 AM |
# 1
|
|
|
ok, found the problem. If anyone has the same problem, just replacing the hash in the value of input tag with {XID_HASH} solved the problem.
|
|
|