Hi,
I am having an issue concerning calling a flowscript continuation from a form within an iframe.
The form is being generated from the following sequence:
1.
function artistDetails() {
var artistID = cocoon.parameters.artistID;
var artist = Artist.getArtist(artistID);
var artistStk = stk.getStock(artistID);
var artist_name = artist.getArtistName();
var artist_info = artist.getArtistInfo();
var track_info = artistStk.getItemTitle();
var track_location = artistStk.getItemDemo();
var stock_code = artistStk.getID();
if (userGlobal != null) {
var userID = userGlobal.getID();
}
cocoon.sendPageAndWait("userID":userGlobal.getID()});
cocoon.sendPage("addNewStock");
cocoon.redirectTo("artistDetails/" + artistID);
}
2.
<map:match pattern="artistDetails1">
<map:generate type="jxt" src="jx/artistDetails.jxt"/>
<map:transform type="xslt" src="style/artist-page.xsl"/>
<map:call resource="serialize"/>
</map:match>
form page is generated within iframe and has a continuation id in the form tag
3. on submitting the page, the continuation sequence should follow onto cocoon.sendPage("addNewStock"). Instead I am getting the above mentioned error.
The sitemap pipe for the continuation is:
<map:match pattern="**frame/*.kont">
<map:call continuation="{2}"/>
</map:match>
The frame code is:
<form method="post" action="frame/${cocoon.continuation.id}.kont">
<table>
<tr>
</td>
<td><input type="text" name="quantity" value=""/></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="submit"/></td>
</tr>
<input type="hidden" name="artistID" value="${artistID}"/>
<input type="hidden" name="userID" value="${userID}"/>
<input type="hidden" name="stockID" value="${stock_code}"/>
</table>
</form>
what am I doing wrong?
Peter
- Re: Sorry, Cocoon couldn't find the resource you reque... beyaNet Consultancy
- Re: Sorry, Cocoon couldn't find the resource you ... beyaNet Consultancy
- Re: Sorry, Cocoon couldn't find the resource you ... Ugo Cei
- Re: Sorry, Cocoon couldn't find the resource ... beyaNet Consultancy