![]() ![]() To pass your abortController variable as an input parameter to the abortRequests function, click Assign next to Input Parameters and drag abortController under Application Variables on the Sources pane onto abortController under Parameters on the Target pane.In the action's Function Name property, select abortRequests to specify the JS function that calls the abort method on the AbortController instance for the specific REST request.From the Actions palette, drag a Call Function action onto the icon.Click + Action Chain and create a new action chain with abortRequestsChain as its ID.Click Actions to open the Action Chains editor."signal": " request on a page, we define the abort action chain also at the page level (but you can also define it at the app level). Click the Chat widget icon to start your chat bot.Click Run to start the web application in a separate tab.Run the project to test the integration:. ![]() Line 15 defines the delay between the rendering of a page and the display of the messenger icon or widget. Line 9 establishes the connection with the server. Line 8 initializes the library with the configuration. This is done to ensure that the page gets loaded. Line 7 calls the functionality after 2 seconds. Line 3-6 sets the URI and channelID which are passed as a parameter. Line 1 points to the web-sdk.js file stored in the resources/native-client-sdk-js folder. Window.Bots = new WebSDK(chatWidgetSettings) Embed your web app using Page Composer or Application Composer.įor more information on which one you will use with your Oracle Cloud Application, see Differences Between Using Page Composer and Application Composer in Configuring and Extending Applications.Prepare your web app in Visual Builder.To add your web app to an Oracle Cloud Application, you'll need to: This authentication only occurs when the user first accesses the embedded web app and may mean that the web app takes a long time to load. When a user is logged in to an Oracle Cloud Application, the application provides the user's Oracle Cloud Account details for authentication when accessing the embedded web app, so the web app will appear in the application's page without requiring any additional login. Specifically, the Allow only secure applications to be created setting in the instance must be unchecked to prevent users from seeing this message: Refused to display '' in a frame because it set 'X-Frame-Options' to 'deny'. If youre new to CSS, check out the following tutorials to get you up to speed. Contact your service administrator or project owner if you are unsure about how your Visual Builder instance is configured. ![]()
0 Comments
Leave a Reply. |