Welcome to TalkGraphics.com
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Add HTML Code to a Stretch Button or Text

    On your page, create a code placeholder object. This may be a rectangle of any size and color. Just make sure it is placed within the page boundaries. Don't worry about it's outlook, you will not see it on the exported page. With this object selected, go to the Placeholder tab of the Web properties dialog and insert following code in the body code field:
    Code:
    <form Method="POST" id="my_form1" Action="http://data.jewishgen.org/wconnect/wc.dll?jg~jgsys~allcountry2">
    <input type="hidden" name="allcountry" value="ALLLITHJG">
    <input type="hidden" name="srch1" value="Anyksciai">
    <input type="hidden" name="srch1v" value="T">
    <input type="hidden" name="srch1t" value="E">
    <input type="submit" value="Search the JewishGen Lithuania Database for Anyksciai">
    </form>
    Do not do this to your button as you did before. Now, that you have your placeholder set and exporting this code, you can add a link to any button or menu item that will execute this code. To do so, place following in the url field on the Link tab of the Web properties dialog, for your button object:
    Code:
    javascript:document.getElementById("my_form1").submit();
    John.

  2. #2
    Join Date
    Mar 2011
    Location
    Florida
    Posts
    28

    Default Re: Add HTML Code to a Stretch Button or Text

    Thank you. This helps somewhat. I see where you modified the html to remove the text within the H3 and p tags. I see that you also gave this code an id name so it could be referenced from my button as a url. I applied the changes as you suggested. However, something is still creating a button in addition to my stretch button. I have reuploaded the page so you can see it www.vitreouscom.com/resources.htm . Where is this being created? And how do I remove it?

    Thank you for your help so far. I am getting closer!

  3. #3
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Add HTML Code to a Stretch Button or Text

    Sorry, I forgot to remove the button from the code.
    Use following in the placeholder:
    Code:
    <form Method="POST" id="my_form1" Action="http://data.jewishgen.org/wconnect/wc.dll?jg~jgsys~allcountry2">
    <input type="hidden" name="allcountry" value="ALLLITHJG">
    <input type="hidden" name="srch1" value="Anyksciai">
    <input type="hidden" name="srch1v" value="T">
    <input type="hidden" name="srch1t" value="E">
    </form>
    John.

  4. #4
    Join Date
    Mar 2011
    Location
    Florida
    Posts
    28

    Default Re: Add HTML Code to a Stretch Button or Text

    Thank you. That makes a lot of sense. I have one more question about this that will help me the next time I need to add html code... What is the effect of checking the box WebsiteProperties->Placeholder->"re-generate placeholder image automatically"? When do you want to select it and/or when do you not want to select it?

  5. #5
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Add HTML Code to a Stretch Button or Text

    When it is checked, WD will try to generate the outlook of your code in the placeholder, and use it for the placeholder image. So if you have some code that is actually visible in the browser (some widget or just a plain text), your placeholder will look like it. Your code does not produce anything visible in the browser, so there's no point of using this checkbox in this particular case.
    John.

  6. #6
    Join Date
    Mar 2011
    Location
    Florida
    Posts
    28

    Default Re: Add HTML Code to a Stretch Button or Text

    Thank you so much. You have been very helpful!

 

 

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
  •