Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    57

    Default Use of buttons to change data object content

    I'm trying to create a webpage that can display several information pages stored in Word (HTM) files.
    In my example I use a rectagle containing a placeholder with this htm-code for the body:
    <object data="....(path & filename)..." type="text/html" width=100% height=100%></object>
    But this is static information displayed when the page is opened.

    Is it possible to have something like this static example but where the content of the rectagle is changed when pressing a button.

    Thanks
    Frank
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	InfoViaKnop.jpg 
Views:	58 
Size:	67.2 KB 
ID:	127926  
    Attached Files Attached Files

  2. #2
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,895

    Default Re: Use of buttons to change data object content

    couldn't say whether that would work as the url links to a drive on your computer, not on a web server. Try uploading the file to your webserver and create the link to point at that GK5
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,743

    Info Re: Use of buttons to change data object content

    The solution is in three parts:

    1. Change the Placeholder code to
      Code:
      <iframe src="" width="100%" height="100%" frameborder="0" scrolling="auto" name="infopage" ><p>Your browser does not support iframes.</p></iframe>
    2. Change your buttons' links to match the following example: "file:\\\e:\TestMap\Xara\InfoViaKnop\Helpdesktest1. htm", without the double quotes.
    3. Crucial: type in "infopage" into the Web Properties > Link > Open link in: infopage.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  4. #4
    Join Date
    Aug 2004
    Location
    Belgium
    Posts
    57

    Default Re: Use of buttons to change data object content

    @Acorn
    Thank you very much. It's working perfect!!!
    Frank

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,743

    Default Re: Use of buttons to change data object content

    Quote Originally Posted by GK5 View Post
    @Acorn
    Thank you very much. It's working perfect!!!
    Frank
    Frank, you are welcome.

    Few come back and report success or failure.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •