|
|
Rank: Member
Joined: 11/24/2010 Posts: 6 Points: 18 Location: Pune
|
Hi, I have created Application , which contain
EntreeListItemDetailHyperlink TheItem = TheGroup.AddListItem<EntreeListItemDetailHyperlink>(); TheItem.Name = "Name"; TheItem.Href = "http://Localhost/MyFiles/File1.pdf"; TheItem.Text = "The Link";
but it was not opening, only blank screen appeared
Thanx in Advance
|
|
 Rank: ME Staff
Joined: 1/12/2009 Posts: 279 Points: 408 Location: VA
|
How are you testing this? Safari from the server?
Only the server will be able to resolve the URL you have specified, "http://Localhost/MyFiles/File1.pdf".
Also, try going directly to the file URL in your browser to see if you can actually open it.
-joe
|
|
Rank: Member
Joined: 11/24/2010 Posts: 6 Points: 18 Location: Pune
|
joe wrote:How are you testing this? Safari from the server?
Only the server will be able to resolve the URL you have specified, "http://Localhost/MyFiles/File1.pdf".
Also, try going directly to the file URL in your browser to see if you can actually open it.
-joe Hey thanx for reply , Actully I am tring the access the file from IPHONE Stimulator. file is accessible through the URLs.
|
|
 Rank: ME Staff
Joined: 1/12/2009 Posts: 279 Points: 408 Location: VA
|
Do you mean you are using Safari, with the iPhone User Agent selected from the Developer menu?
When you click on the link from your application, what is the URL displayed in your browser where you get the blank page?
|
|
Rank: Member
Joined: 11/24/2010 Posts: 6 Points: 18 Location: Pune
|
In safari it work correctly, but i am using Stimulator of iPhone.
|
|
 Rank: ME Staff
Joined: 1/12/2009 Posts: 279 Points: 408 Location: VA
|
The issue is most likely one in the simulator software you are using then, it probably does not support rending PDF documents. When a link to a document is presented in Mobile Entree, once the user clicks on the link, the user is no longer within the context of Mobile Entree and the rendering of the document is the resposiblity of the device/browser. Does this make sense?
|
|
Rank: Member
Joined: 11/24/2010 Posts: 6 Points: 18 Location: Pune
|
Ok , So which stimulator you recommend for testing purposes ? Actully we are string to render PDF file from .aspx page.
|
|
 Rank: ME Staff
Joined: 1/12/2009 Posts: 279 Points: 408 Location: VA
|
iPhone does not have a real emulator that I know of. The Windows Phone 7 emulator is pretty good, but PDF files are not supported without an app that can render them and you can't install the app on the emulator.
Unfortunately, your best way to test this particular scenario is on an actual device. Safari is great for testing normal applciation functionality, but it will handle documents differently than the actual phone will. On an iPhone, your link would open up a second browser window with the PDF file displayed whereas the Safari browser might prompt you to download it or it may display it in the current window.
|
|
Rank: Member
Joined: 11/24/2010 Posts: 6 Points: 18 Location: Pune
|
Thanx for your help.
|
|
|
Guest |