Meet us at Drupa 24. Dusseldorf/Germany. May. 28 - Jun 7.
Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
ExpressLayouts  
#1 Posted : Sunday, January 31, 2016 11:57:22 AM(UTC)
ExpressLayouts

Rank: Newbie

Groups:
Joined: 1/29/2016(UTC)
Posts: 1

How do I load a state Id using the Iframe API?

configuration = {

initialMode : 'Advanced',

lang : 'en',

state : $("#stateID").val(),

userId : $("#memberID").val(),

widgets : {FinishButton: {mode: "Disabled"}},

};

var editor = CustomersCanvas.IframeApi.loadEditor(iframe, productDefinition, configuration);

This is not working - although the state is saved in the Customer Canvas Admin...

Helpjavascript:__doPostBack('forum$ctl03$PostReply','')

Edited by user Sunday, January 31, 2016 12:02:42 PM(UTC)  | Reason: Not specified

Kate D.  
#2 Posted : Monday, February 1, 2016 4:52:46 AM(UTC)
Kate D.

Rank: Advanced Member

Groups:
Joined: 10/20/2015(UTC)
Posts: 52

Was thanked: 14 time(s) in 13 post(s)
Hi,

Just put the stateId parameter as a string instead the ProductDefeniciton argument of the loadEditor functions as follows:

Code:

CustomersCanvas.IframeApi.loadEditor(iframe, "e092a510-efaf-4263-a150-33f23e49eef2" , configuration})

Hope it helps.

If the problem still exists, please send me your source code (html-file) and I will try to fix it.

Best regards,

Kate

Users browsing this topic
Guest
Similar Topics
Load stateId with iFrame API - How do I load a state Id dynamically using the Iframe API? (Discussions – Customer's Canvas)
by benadams 4/18/2018 3:35:40 PM(UTC)
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.