Aurigma Forums
»
Customer's Canvas
»
Discussions – Customer's Canvas
»
How to give arguments in IFrame API Product definition like query string API
Rank: Member
Groups: Member
Joined: 10/19/2015(UTC) Posts: 21
Thanks: 11 times
|
Hi, Using Query string api we can specify printColorSpace , renderExt , etc.. Same like I need to specify arguments while using Iframe api. Eg: Code:productDefinition = {
surfaces: [
{
printAreas: [{
designFile: "file_1",
safetyLines: [{
margin: 9,
color: 'rgba(0,255,0,255)',
altColor: 'rgba(255,255,255,0)',
stepPx: 5,
widthPx: 1
}]
}]
}]
In this product definition how can I give such arguments? I have given same query string arguments in this iframe definition but it didn't work. I need to specify different printColorSpace and renderExt arguments in each product defenition, how I do that with iframe ??? Edited by moderator Tuesday, January 12, 2016 9:34:38 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 10/20/2015(UTC) Posts: 52
Was thanked: 14 time(s) in 13 post(s)
|
Hi jee88,
Well, you could specify these parameters as the third parameter of loadEditor, but we have found the bug and this feature doesn't work. We will fix it to the next release.
Thanks for the bug report. I will keep you updated
Best regards, Kate Danilova Aurigma Inc.
|
1 user thanked Kate D. for this useful post.
|
|
|
Rank: Member
Groups: Member
Joined: 10/19/2015(UTC) Posts: 21
Thanks: 11 times
|
Hi,
Now I am calling customer canvas from another solution using query string api, But I can only render editor page with download button. How can I implement approval page and download page view within that mvc razor view. Finish design button and approval button scripts added like customer canvas solution but it didn't work.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 10/20/2015(UTC) Posts: 52
Was thanked: 14 time(s) in 13 post(s)
|
jee88, Instructions for initializing of CC editor on your page you can find here: http://customerscanvas.c...roduct-customization.htmTo implement approval page you should: 1. Create html-file (your approval page). 2. Bind your approval button with your approval page. 3. Call the getProofImages method. See this article: http://customerscanvas.c...ion.htm#approvingProductIt return the object containing the proof images links. 4. Pass these links as the src parameters of IMG tag on your approval page. To implement download page you should: 1. Create html-file (your download page). 2. Bind your download button with your download page. 3. Call the finishProductDesign method. See this article: http://customerscanvas.c...htm#renderingHiresOutputIt return the object containing the hi-res output link. 4. Display this hi-res output link on your download page. I have created the simple html-file, which demonstrates how it works. You can get it here: https://drive.google.com...NDRZMDQ/view?usp=sharingHope it helps. Best regards, Kate Danilova Aurigma Inc.
|
1 user thanked Kate D. for this useful post.
|
|
|
Aurigma Forums
»
Customer's Canvas
»
Discussions – Customer's Canvas
»
How to give arguments in IFrame API Product definition like query string API
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.