cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaNet Consultancy <beya...@ntlworld.com>
Subject Re: Sorry, Cocoon couldn't find the resource you requested.
Date Tue, 27 Apr 2004 14:14:12 GMT
further to my earlier post, even if I comment out the sitemap pipe for  
the continuation, instead of getting an error saying that there was no  
pipe match, I still get the above message when trying to post the form  
from within the iframe.

Peter
On 27 Apr 2004, at 15:02, beyaNet Consultancy wrote:

> 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("artistDetails1",{"artistID": 
> artistID,"artist_name":artist_name,"artist_info": 
> artist_info,"track_info":track_info,"track_location": 
> track_location,"stock_code":stock_code,"userGlobal": 
> userGlobal,"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>quantity</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

Mime
View raw message