Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
pneumagion #1
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
-
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,... -
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... -
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... -
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... -
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... -
rob::digitalburn #2
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
-
Murray *TMM* #3
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
-
pneumagion #4
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
-
Murray *TMM* #5
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
-
rob::digitalburn #6
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
-
rob::digitalburn #7
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
-
pneumagion #8
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 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
-
rob::digitalburn #9
Re: external html load in layer
Glad you got it working ;)
pneumagion wrote:mm_menu_0126123730_0.addMenuItem("About SMMA" ,"window.open('about/smma.> ;)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:
>
>
>
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
-
Murray *TMM* #10
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 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



Reply With Quote

