facebook

How to embed a .pdf or open in new safari window

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #319690 Reply

    dhberry
    Member

    Hi Wayne –

    My customer links to a .pdf price sheet in his non-mobile website. When I link to it in the mobile site, I don’t get a back button.

    Is there a way to embed the .pdf in a panel?

    Is there a way to open the .pdf or any other linked non-mobi page in a new, separate safari window?

    Thanks!

    #319707 Reply

    support-michael
    Keymaster

    @dhberry

    >Is there a way to embed the .pdf in a panel?
    No. We researched this extensively. The limitation is with the mobile safari browser

    >Is there a way to open the .pdf or any other linked non-mobi page in a new, separate safari window?
    This is doable. Use a snippet of code similar to the following to trigger the action to load your pdf. Be sure to prefix the window.open() call with javascript: you place this code in the Link property of a widget, e.g., javascript:window.open(…)

    
      window.open(pdfURLHere,'_new'); //opens in new window instance, instance is shared 
    
    or 
    
      window.open(pdfURLHere,'_blank'); //opens in new window instance, instance is not shared
    

    Note: the Test Center only support a single browser window. Opening additional windows programmatically will open the URL in a limited full size browser that has no traditional browser chrome.

    Here is a screenshot and UI layout file of a simple example that I created to confirm this works.
    See attachment open-remote-site-screenshot.png
    See attachment OpenRemoteSite.mobi

    Attachments:
    You must be logged in to view attached files.
    #320113 Reply

    mezo
    Member

    Dear Wayne,
    I rrally want to do same as the above request, I downloaded your example but it’s not working also when called from the home screen.

    Would you please offer all a solution to this as it’s really needed.
    Thanks a lot.

    #320114 Reply

    mezo
    Member

    Dear Wayne,
    I rrally want to do same as the above request, I downloaded your example but it’s not working also when called from the home screen.

    Would you please offer all a solution to this as it’s really needed.
    Thanks a lot.

    #320128 Reply

    compware
    Member

    This message has not been recovered.

    #320143 Reply

    support-michael
    Keymaster

    This message has not been recovered.

    #320149 Reply

    mezo
    Member

    This message has not been recovered.

    #320150 Reply

    dhberry
    Member

    This message has not been recovered.

    #320179 Reply

    support-michael
    Keymaster

    This message has not been recovered.

    #320182 Reply

    mezo
    Member

    This message has not been recovered.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: How to embed a .pdf or open in new safari window

You must be logged in to post in the forum log in