external html load in layer

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default external html load in layer

    NewB here; please be gentle :D

    I would like to know if there is a way to load an external html file into a
    layer (div). My site for your reference is [url]http://smma.us[/url] and it uses tables as
    the basic layout. Currently, I am trying to use a layer, and I have its
    properties set as follows:

    <div id="Layer1" style="position:absolute; visibility:visible; width:540px;
    height:420px; z-index:1; background-color: #00CCFF; border: 1px none #000000;
    overflow: auto;"></div>

    It moves and sizes appropriately with moving & sizing of the window; it also
    has the overflow option set to auto. Is there a way, with js or html or
    whatever, to call an html page to that layer with an onclick event in my popup
    menu? I think it would be easier to manage files and content that way instead
    of having multiple layers in one file.

    Your feedback is greatly appreciated. Thanks.

    pneumagion Guest

  2. Similar Questions and Discussions

    1. Load external html into a Layer?
      I've created a framework of a kids' site using CSS layers to overlap a Skyline image overtop of another 2 layers, one showing a BG image of the sky,...
    2. how to load external html file into mxml file
      hi all plz tell me how i can load external html file in mcml file just like say when we receive mail in inbox and see our mail data .. i have...
    3. Masked layer does not load external text file
      I used a ScrollPane Component loading an external SWF file which contain html generated textfields frloading from an external text file. I tried to...
    4. textArea's and external html files> linking in the html to a new file
      Is it possible to have a link like an <a href... in a html file loaded into a textArea which then if clicked loads a new html into the same...
    5. Flash layer on top of normal HTML layer
      I am using z-index to put a flash advertisement with a transparent background at the utmost top layer of my webpage. Since I want it to move...
  3. #2

    Default Re: external html load in layer

    Just use an iframe instead of a layer. Looks and works very similarly to a
    div, but you can load content into it as if it were a frame.


    pneumagion wrote:
    > NewB here; please be gentle :D
    >
    > I would like to know if there is a way to load an external html file
    > into a layer (div). My site for your reference is [url]http://smma.us[/url] and
    > it uses tables as the basic layout. Currently, I am trying to use a
    > layer, and I have its properties set as follows:
    >
    > <div id="Layer1" style="position:absolute; visibility:visible;
    > width:540px; height:420px; z-index:1; background-color: #00CCFF;
    > border: 1px none #000000; overflow: auto;"></div>
    >
    > It moves and sizes appropriately with moving & sizing of the window;
    > it also has the overflow option set to auto. Is there a way, with js
    > or html or whatever, to call an html page to that layer with an
    > onclick event in my popup menu? I think it would be easier to manage
    > files and content that way instead of having multiple layers in one
    > file.
    >
    > Your feedback is greatly appreciated. Thanks.

    rob::digitalburn Guest

  4. #3

    Default Re: external html load in layer

    [url]http://www.yaromat.com[/url] ---> URL2Layer extension.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "pneumagion" <webforumsuser@macromedia.com> wrote in message
    news:ctr4cf$1pg$1@forums.macromedia.com...
    > NewB here; please be gentle :D
    >
    > I would like to know if there is a way to load an external html file into
    > a
    > layer (div). My site for your reference is [url]http://smma.us[/url] and it uses
    > tables as
    > the basic layout. Currently, I am trying to use a layer, and I have its
    > properties set as follows:
    >
    > <div id="Layer1" style="position:absolute; visibility:visible;
    > width:540px;
    > height:420px; z-index:1; background-color: #00CCFF; border: 1px none
    > #000000;
    > overflow: auto;"></div>
    >
    > It moves and sizes appropriately with moving & sizing of the window; it
    > also
    > has the overflow option set to auto. Is there a way, with js or html or
    > whatever, to call an html page to that layer with an onclick event in my
    > popup
    > menu? I think it would be easier to manage files and content that way
    > instead
    > of having multiple layers in one file.
    >
    > Your feedback is greatly appreciated. Thanks.
    >

    Murray *TMM* Guest

  5. #4

    Default Re: external html load in layer

    Yeah, I finally found the iframe tag after doing some more checking. I can link
    into my iframe with my regular links; however, I can't do the same with my
    popup menus. Do I need another javascript function, or is there something I'm
    not calling out in my tags? I tried to add an onclick event into the
    addmenuitem callout in the javascript function mmLoadMenus, but nothing
    happened.

    Any thoughts? Thanks in advance...

    pneumagion Guest

  6. #5

    Default Re: external html load in layer

    Gad - don't use those things. There are much better ways - read these....

    [url]http://apptools.com/rants/jsmenu.php[/url]
    [url]http://apptools.com/rants/menus.php[/url]


    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "pneumagion" <webforumsuser@macromedia.com> wrote in message
    news:ctrlin$rtp$1@forums.macromedia.com...
    > Yeah, I finally found the iframe tag after doing some more checking. I can
    > link
    > into my iframe with my regular links; however, I can't do the same with my
    > popup menus. Do I need another javascript function, or is there something
    > I'm
    > not calling out in my tags? I tried to add an onclick event into the
    > addmenuitem callout in the javascript function mmLoadMenus, but nothing
    > happened.
    >
    > Any thoughts? Thanks in advance...
    >

    Murray *TMM* Guest

  7. #6

    Default Re: external html load in layer

    You can use a bit of Javascript to load content into your iframes
    (regardless of which menu system you're using). It can be on onClick or
    whatever other event is useful to you.

    The code itself might look like something such as,

    obj=document.getElementById("id of iframe"); //you might have to do some
    fancy stuff here if you're working with nested iframes or calling from one
    iframe into another or anything such as that
    obj.src="content to load in.whatever";


    rob::digitalburn Guest

  8. #7

    Default Re: external html load in layer

    Oh, and by the way, linking using Javascript isn't (currently) spider-able
    by search engines, so if you do want to be search engine friendly, I'd
    suggest putting a standard text based menu system on the site in addition to
    your main one, perhaps in a hidden layer. This could also be of assitance to
    people who need a higher level of accessibility.


    rob::digitalburn Guest

  9. #8

    Default Re: external html load in layer

    ;)I got it to work! It was actually really easy. (BTW Murray, I did check out
    the rants and downloaded the extensions--turns out I didn't need to, but
    thanx.) I brought up the popup menu dialog box in DW, and then picked a target
    to send the link to. I then found the javascript that it correlated to in the
    HEAD, and found this:


    mm_menu_0126123730_0.addMenuItem("About&nbsp;SMMA" ,"window.open('about/smma.htm'
    , 'ifrm');");

    Apparently, it switches from a location='file.htm' callout to a window.open
    call shown above. Anyhow, FYI problem solved! Thank you for playing!! :)

    SMMA

    pneumagion Guest

  10. #9

    Default Re: external html load in layer

    Glad you got it working ;)

    pneumagion wrote:
    > ;)I got it to work! It was actually really easy. (BTW Murray, I did
    > check out the rants and downloaded the extensions--turns out I didn't
    > need to, but thanx.) I brought up the popup menu dialog box in DW,
    > and then picked a target to send the link to. I then found the
    > javascript that it correlated to in the HEAD, and found this:
    >
    >
    >
    mm_menu_0126123730_0.addMenuItem("About&nbsp;SMMA" ,"window.open('about/smma.
    htm'
    > , 'ifrm');");
    >
    > Apparently, it switches from a location='file.htm' callout to a
    > window.open call shown above. Anyhow, FYI problem solved! Thank you
    > for playing!! :)
    >
    > SMMA

    rob::digitalburn Guest

  11. #10

    Default Re: external html load in layer

    You have been warned.

    These menus should have never been in the product, and now you are using
    them. Think about why none of the experienced people here use them - there
    is a reason.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "pneumagion" <webforumsuser@macromedia.com> wrote in message
    news:cts63h$j7o$1@forums.macromedia.com...
    > ;)I got it to work! It was actually really easy. (BTW Murray, I did check
    > out
    > the rants and downloaded the extensions--turns out I didn't need to, but
    > thanx.) I brought up the popup menu dialog box in DW, and then picked a
    > target
    > to send the link to. I then found the javascript that it correlated to in
    > the
    > HEAD, and found this:
    >
    >
    > mm_menu_0126123730_0.addMenuItem("About&nbsp;SMMA" ,"window.open('about/smma.htm'
    > , 'ifrm');");
    >
    > Apparently, it switches from a location='file.htm' callout to a
    > window.open
    > call shown above. Anyhow, FYI problem solved! Thank you for playing!! :)
    >
    > SMMA
    >

    Murray *TMM* Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139