Author |
|
infrcad Newbie
Joined: 30 March 2010 Location: France
Online Status: Offline Posts: 4
|
Posted: 30 March 2010 at 9:44am | IP Logged
|
|
|
hi afterlogic
i have configured an iframe on websiteA as http://localhost/websiteA/testframe.aspx
<iframe frameborder="0" id="FrWebmail" runat="server" src="http://localhost/afterlogic/default.aspx" />
this issue is ok - the webmail is inside the iframe.
if on pageload of testframe.aspx, i add this instruction:
Dim Integr As New Integration("C:\www\folderdata\WebMailPro", "http://localhost/afterlogic/")
Integr.UserLoginByEmail("abc@abc.com", "abc@abc.com", "pwd", WMStartPage.Mailbox)
the webmail is outside the iframe !!! iframe become useless because url is not http://localhost/websiteA/testframe.aspx but
http://localhost/afterlogic/webmail.aspx.
how to make integration and return to frame ?
thanks for response
marc
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 31 March 2010 at 4:58am | IP Logged
|
|
|
If you have a code which passes authentication data through integration API, and you intend to use WebMail inside IFrame, that code should be running in the same IFrame.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
infrcad Newbie
Joined: 30 March 2010 Location: France
Online Status: Offline Posts: 4
|
Posted: 31 March 2010 at 5:59am | IP Logged
|
|
|
hi igor
I think that's what I did. the code runs in the application container (i add reference to webmail.dll) which try to integrate webmail and contains the iframe. webmail is not within the frame when i automate the login and it stays in iframe if i did not automate. Are you telling me that the frame should be in your application and not in my application?
thank you for your response to help me and sorry for the bad quality of my English.
marc
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 31 March 2010 at 6:08am | IP Logged
|
|
|
To put it simply, I was saying that if you'd like WebMail to be opened inside IFrame, your own code which uses integration API should run within that IFrame too.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
infrcad Newbie
Joined: 30 March 2010 Location: France
Online Status: Offline Posts: 4
|
Posted: 01 April 2010 at 11:40pm | IP Logged
|
|
|
Thank you very much
Your answer is so simple and concise it does not allow me to move forward.
Can you put in your response a source code indicating the source html and code behind?
Or simply as you like, you can get a project visual studio is available for download.
best regards
mc
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 02 April 2010 at 2:14am | IP Logged
|
|
|
Alright, let's walk through this from the start.
You have mentioned that you're using the following code:
Code:
Dim Integr As New Integration("C:\www\folderdata\WebMailPro", "http://localhost/afterlogic/")
Integr.UserLoginByEmail("abc@abc.com", "abc@abc.com", "pwd", WMStartPage.Mailbox) |
|
|
What we need to know is whether this code is placed in webpage which contains IFRAME, or in the IFRAME itself. And I am saying that it will NOT work in the first case. This code should be running inside the IFRAME.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
infrcad Newbie
Joined: 30 March 2010 Location: France
Online Status: Offline Posts: 4
|
Posted: 02 April 2010 at 10:39am | IP Logged
|
|
|
oh yes i successfully integrated
It is not clear that must TWO .aspx files for intégration. (it is a curious solution)
Container.aspx embed Testiframe.aspx and testiframe call UserLoginByEmail in behind code.
http:/localhost/applicationA/Container.aspx (embed iframe with html)
--
|
--->http:/localhost/applicationA/TestIframe.aspx (integration code)
--
|
--------->http:/localhost/Afterlogic/Webmail.aspx (other site embedded)
thanks...
mc
|
Back to Top |
|
|