AJAX container
-
- Profound User
- Posts: 42
- Joined: Wed Aug 04, 2010 5:12 pm
- First Name: Bob
- Last Name: Steach
- Company Name: APHA
- Contact:
AJAX container
How exactly does the AJAX container work. I have put a URL in the AJAX URL property and nothing shows in the container when it is displayed ?
-
- Experienced User
- Posts: 170
- Joined: Mon Jul 19, 2010 2:40 pm
- First Name: Jorge
- Last Name: Cabrera
- Company Name: Lennar Corp
- Phone: 305-229-6400
- Contact:
Re: AJAX container
how the ajax works I do not know either, but to show an URL in a container you should use the Iframe container, and the properties should be field type= iframe, under Field Settings iframe url = bind a field for example of 300 chars (it will be populate it in your RPG with your URL), frame border = true. In your RPG, exfmt Recfmt (name of the iframe record format). Good luck
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: AJAX container
The AJAX container makes an AJAX request to retrieve HTML content and displays it within a Profound UI screen. The AJAX response is typically provided by a CGI or an RPGsp program on the backend. Similar functionality can be provided by an IFrame widget, which is easier to use.
The main advantage of an AJAX container over an IFrame is that the AJAX content is actually rendered within the same HTML document as the original Profound UI screen. Therefore, JavaScript can be used to facilitate interaction between the two. If you don’t need this capability, then you can simply use an IFrame.
There are, however, some disadvantages of AJAX vs. and IFrame:
- AJAX cannot work across domains without additional configuration. This is probably why you are not seeing anything in your container.
- If the content is a full application that allows users to submit pages or to follow links, it will not work.
The main advantage of an AJAX container over an IFrame is that the AJAX content is actually rendered within the same HTML document as the original Profound UI screen. Therefore, JavaScript can be used to facilitate interaction between the two. If you don’t need this capability, then you can simply use an IFrame.
There are, however, some disadvantages of AJAX vs. and IFrame:
- AJAX cannot work across domains without additional configuration. This is probably why you are not seeing anything in your container.
- If the content is a full application that allows users to submit pages or to follow links, it will not work.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest