Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2014
    Posts
    11

    Default insert tag <form>...</form>

    Hi.
    I need to integrate html tag in my button “buy” on my web site. I work in XARA WD 9 P. This form tag I got from “Intercassa service”, which is generated automatically. Here is the example:

    <form id="payment" name="payment" method="post" action="https://sci.interkassa.com/" enctype="utf-8">
    <input type="hidden" name="ik_co_id" value="53ad484fbf4efc2310c0ba44" />
    <input type="hidden" name="ik_pm_no" value="12345" />
    <input type="hidden" name="ik_am" value="50.00" />
    <input type="hidden" name="ik_cur" value="USD" />
    <input type="submit" value=”BUY”
    </form>


    I tried to put this htmlcode in placeholder, but the only word “BUY” appears. How can I replace this content with picture I prepared to be a button or probably another way to fix this problem.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,964

    Default Re: insert tag <form>...</form>

    Have a look at the code here; http://www.talkgraphics.com/showthre...holder-Problem.
    If you have a Xara-generated image for your button, then you need give it a Name with filename=button-image.
    Then the bold detail would be similar to:
    Code:
    <input type="image" src="index_htm_files/button-image.jpg" border="0" name="submit" alt="buy">
    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

  3. #3
    Join Date
    Aug 2014
    Posts
    11

    Default Re: insert tag <form>...</form>

    Thanks a lot for quick reply.
    Could you please explain once more in details? As far as I understood I should replace the last row in my code <input type="submit" value=”BUY”> with that you mentioned <input type="image" src="index_htm_files/button-image.jpg" border="0" name="submit" alt="buy">
    The button I wanna use basically is the group of objects in XARA (text, rectangle with shadow etc). or should I use the picture previously uploaded on website with its src?

  4. #4
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,964

    Default Re: insert tag <form>...</form>

    Sorry, it is a bit tricky to get your head round initially.
    Basically, you have a grouped set of blobs that you give a special Name to.
    when your application build the page, that name is associated with the blobs and the resulting image is saved as <name>.png in the index_htm_files folder.
    Knowing the filename, you can add it to a Placeholder or incorporate it into a form, as you need.

    The steps are:


    • Select all the items that make up your image.
    • Group them (Ctrl-G).
    • Pick Utilities > Names... and enter filename=button and press the Add button. This then appears in the Names applied box.
    • Click the Close button.
    • Hide the Group behind another object on your site.
    • Create a Placeholder object and in its HTML code (body) put <img src="index_htm_files/button.png">; I have checked and the image created is a png, which is better as it allows the image to have a transparent background.
    • Preview the page.


    When you are happy that you are seeing the image correctly, include the source path into your form code.

    The attached is an example of lots of images invoked through Placeholders: Placeholder Images.xar.

    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
  •