Linking To Iframes !?

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

Linking To Iframes !?

kvarnerexpress
I have a Java Menu and on the data part of it which would be al the text and links i have


td_1 = "Home "
url_1 = "home.html "
td_2 = "Biography "
url_2= "bio.html"
td_3 = "Gallery "
td_4 = "W W W "
td_5 = "Guestbook "
url_5 = ""
td_6 = "More... "

and alot more of course!

but how do i get them to open up in the Iframe

do i put them like this?

td_1 = "Home "
url_1 = "home.html " target="mainFrame"
td_2 = "Biography "
url_2= "bio.html" target="main"
td_3 = "Gallery "
td_4 = "W W W "
td_5 = "Guestbook "
url_5 = ""
td_6 = "More... "

I put url_1 = "home.html " target="mainFrame" but nothing,i need to open in mainFrame,I need code....

And so forth?

I would realy apreciate some help here
anyone got any ideas if this is correct or if theres a better way of doing it?

 

 

 


Reply

smartbei
Firstly, I would do it using an array, as it is much neater and easier to access:
CODE
var titles = new Array("Home", "Biography", "Gallery");
var urles = new Array("home.html", "bio.html", "gallery.html");


Next, to send pages to the iframe you would write:
CODE

function open_content (which) {
     iframename.location = urles[which];
}


Or something like that.

Reply

kvarnerexpress
thanks!

Reply

smartbei
QUOTE(kvarnerexpress @ Feb 25 2006, 01:01 AM) *

thanks!


No Problem :-)

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : linking, iframes

  1. Php Linking
    Ned help to do this through a internal portal page. (2)
  2. Vb 2008 Linking To Another Form..
    (0)
    if i want to link another form will i use this code or there is easier one? code : form2.show or
    hide : form2.hide is there another code to be used...? thanks....
  3. Html In Os X- Linking To An Alias
    (0)
    Is anyone able to tell me how to hyperlink in a HTML web page to a folder in OS X tiger and have it
    open in finder (not the web browser)? Or how to link to a local file on os x (outside of the web
    server's folder), I am not sure how to put it, is it just as simple as a
    href="/Users/saitunes/documents/doc1.doc" I am running the built in web server and all the folders
    I want to access would be located in the web server's directory E.G
    http://localhost/~user/folder or /Users/User/Sites/folder I don't know how to get directories
    opening on finder, nor do ....
  4. How Do I Remove The Iframes Scrollbars?
    (5)
    Hello. My Iframes are not working properly at the moment. I have some problems with removing the
    scrollbars. I also need them to automatically extend, without that I need to change the height and
    width. I have tried with 100% and auto , but there must be something I am doing wrong. (I do not
    know much HTML, really.) I will explain a bit more. On my front page, I have an Iframe linked to my
    blog, and other things. And as I have said, I need to remove the scrollbars and so on... Here is
    the code I am using. (Of course "URL1" is replaced with my url.) CODE <ifr....
  5. Will This Code Work
    php linking script ?p= (5)
    hi i'm not that great at php so i'm not to sure if this will work or not. but what i want to
    do is be able to use ?p=staff or what ever page name, with out the php extion, and i would like to
    no if this simple script i made would work. the code is: CODE <?php $p =
    $_GET['p']; if ( !empty($p) &&
    file_exists('./' . $p . '.php') && stristr( $p, '.'
    ) == False ) { // pages = directory where you store your pages    $file = './'
    . $p . '....
  6. Php And Iframes
    (15)
    Hello! I am wondering whether or not it is possible to have a dynamic iframe that changes when a
    link is pressed. I believe I know a way for this to be done with the php $_GET variable and
    only using a certain part of the url. I am wondering if this would maybe work. I want this for a
    chatbox that will have a little side menu for BBCode reference and a notepad. CODE <?php
    if($_GET['toolbar'] == 'bbcode') { //display my bbcode
    reference page here } if($_GET['toolbar'] == 'notepad') ....
  7. Php Linking
    One of the major advantages of PHP is the ability to create something (4)
    PHP Links Requirements 1. You should understand the majority of PHP (ex: variables, echo, etc.
    www.w3schools.com is a good reference). 2. Experienced with HTML. 3. You need a PHP compatible
    server if you wish to see your results. Description One of the major advantages of PHP is the
    ability to create something similar to an Iframe, only without the scroll-bar. The main advantage of
    this is that you only need one layout page, while the others can be simple 'white space &
    content' pages. Another advantage of this is your web site doesn't look like a fi....
  8. Question About Linking
    When is enough enough? (3)
    I do have quite a few links on my site now, but nearly every day I get requests to exchange links
    with other sites. I know links are important for search engine placement and all that stuff, but
    I'm wondering about maybe when is it too much of a good thing? I also feel funny about
    placing links to site that I know nothing about, are they honest people with good products? I
    don't want to send my customers to con artists or other unsavory charectors. Most of the links
    I have now are for people I actually know. Where do you draw the line?....
  9. Prevent People From Linking To Your Downloads
    (5)
    Ever find that found some people are listing items, images and tuts and linking directly to the
    download url (those that are like image.php?id=0). To prevent this, you can add a piece of code to
    the download pages that checks which page referred them to the download page: if it's your
    domain, it downloads the file normally, if it's not, it will redirect to your home page instead.
    Important: Not all browsers log referrers, so this won't work depending on the browser the
    visitor uses and this method can be also bypassed, but it will work for for the major part....
  10. Simple Php Calendar And Yahoo! Calendar Connection
    linking each date to Yahoo! calendar (7)
    Original simple PHP calendar source here I was looking for a simple PHP generated calendar. But I
    wanted to place detailed information to show on demand. And installing another database with
    separate management would have been too much of access codes and passwords to remember. And what if
    I want someone else to manage the calendar when I am not able? This is my version of using simple
    PHP calendar script to link to Yahoo! calendar. The twist is that figuring out how Yahoo!
    calendar selection worked. And then depending on which date was clicked it will bring ....
  11. Iframes Coder Needed
    (4)
    Dear all, If you know HTML, then you will know how to use iFrames. I need three sets of Frames for
    my layout. Please make the content area have a scrollbar. Thank you! I have no reward, but
    if you give me your nickname/full name and I will give credit to you on the site. I have a domain,
    I'm not a tker /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif"
    /> Btw, I know it's basic but I don't care.....
  12. Title Tags For Linking Text?
    (3)
    what are title tagas for llinkign text? how are they used? just for SEO? I know they're kinda
    like alt tags, but does the SE's like or loath them? Thanks, Andy....
  13. Check Referrer To Prevent Linking Yours From Other Sites
    Check referrer with Php and Mysql (8)
    Check Referrer Using Php To Prevent People Linking To Your Downloads From Other Sites Ever
    find that found some people are listing items, images and tuts and linking directly to the download
    url (those that are like my photoshop tutorial.php?id=0), which is a .php to count the number of
    downloads. To prevent this, you can add a piece of code to the download pages that checks which page
    referred them to the download page: if it's my domain, it downloads the file normally, if
    it's not, it will redirect to my home page instead. Important : Not all browser....
  14. Tips For Linking
    it should help a bit (5)
    QUOTE Well actually, linking isn't fun at all. In fact, it's quite tedious. Seeking,
    responding to requests and adding links takes time and effort. But, if you're not actively
    building links the RIGHT way you are going to be left behind. In other words, your site will be
    "Lost in Cyberspace". The plain fact is Google, and to a lesser extent, other important search
    engines, reward sites with links from relevant and important pages. If you want your site to
    deliver lots of targeted search engine traffic (and who doesn't?) there are two equally importa....
  15. Use External Linking To Increase Traffic
    Sounds crazy, but might work. (4)
    See what you would do, is take and host your files on multiple sites, using external linking. So
    you take and maybe have a templates area on Trap17, and then your homepage on computing host,
    regular pages on freewebs, or lycos, whatever, and then you submit them to different search engines.
    I mean submit all your pages hosted with each search engine. Then you are bringing in traffic to
    different areas of your site. There are several pros and cons to this: Pros: You get an amazing
    amount of response to your site, because you have every area of your site listed in all ....
  16. Iframes
    a small question about it (5)
    I have a game site with links to sites so people can vote for it. When the click on the link i want
    it to update the database and open the page at the same time. Im using a ghost page at the moment
    but my friend suggested a ghost page so people cant cheat and refresh it multipple times. I was
    wondering how to make a iframe and still have it update the daytabse and open the page in a new
    window without a ghost page.....
  17. A Question About Iframes
    Just a quick one,..hopefully. (7)
    So I have this sidebar right? It is a basic sidebar for a lot of pages, and I need to be able to
    change one file for the whole thing. My solution? Iframes. The problem? I need it to be the same
    as my background on the sidebar. I can do that on my main file. That isn't my problem. can
    someone please give me the attribute for making no border? So it looks like part of the page. For
    instance. Look at the shout box. In the input field, there is a border around it. If you turned
    the input field to green, it would still show that border around it. I don't....
  18. Fossil Linking Land To Sea
    ...and how some people still don't see the light, as it were (2)
    Recently, a fossil was unearthered that bridged the gap between land animals and fish. It had
    devloped 'flippers' and opposable digits and was believed to be able to survive both in and
    out of the water. (I'd link ot the actual article but I'm lazy). Yet creationalists are
    still holding to "god created man" and to them (and I quote from a creationalist trying to explain
    this finding to me) "that means that god created man. not an ape to ;evolve' into man.
    that's just silly. these fossils are just first attempts by god to create the perfect c....
  19. Linking
    This may be a bit of a n00b question... (1)
    Ok, well I'm just getting my site up. I havn't added any pages or anything, I wanted to get
    my rosters onto thier already, before I clear out my HostUltra account. So I'm typing the link
    as "http://mysitehere.trap17.com/home/darealch/rosterfiles/maddennfl06/file-name here" Which is
    correct, everything is right on my part. Do I use /home/darealch? Someone please help me!....
  20. Linking To Mp3's
    (7)
    There are many sites which offers free downloads of mp3 songs....Can i give a direct link to those
    mp3's ? i wont upload them on my site but just give link to them...for example i can write on my
    site "Download Song" and give link to that mp3 file , please give me advice since i dont want to do
    anything which is not allowed.....
  21. Linking To Mysql From Vb
    (6)
    Hi I have used vb to link to an access 2003 database using the adodc component- (connection string
    etc etc). Right I am now working with mysql (which I would like to say I am loving it) and I have
    migrated the access 2003 db's into mysql using the migration toolkit . How can I link to mysql
    db in a similar fashion. Please reply. Thanx. kvarnerexpress....
  22. How To Stop Image Hot Linking
    for a selected directory. (17)
    Those of you that don't know what is meant by 'hotlinking', it is when someone directly
    links to an image on your site so it will display on their site. This is what is called
    'bandwidth theft' and being as accounts here have a limit on bandwidth, your bandwidth limit
    could be exceeded by someone else hotlinking to your images. As most users of cPanel will know,
    there is an option to disable hotlinking of images in the "Site Management Tools" section.
    However, this disables hotlinking to all directories, what if you only want to disable hotlinki....
  23. A Couple Of Phpbb Questions
    adding code, css files, linking (5)
    Sorry about the vague title, but I couldn't possibly fit what I needed in such a small line.
    Anyway, I would really appreciate it if anyone can answer any of these questions that I have about
    PHPBB. First, I want to know how I can change the logo of the PHPBB. When you first install PHPBB,
    it gives you their logo. You know, the one on the top-left. How do I change it to something that I
    want? Second, how do I make it so that when you click on the logo, you go to a different location
    instead of the forum root? Third, is it possible to add addition code to the forum....
  24. A Question About Html Iframes
    Need help in <iframe> (7)
    We have an upcoming project in our class...I've a cool idea of lay out but i hav a problem.
    I'm using a lot of images. I need to embed my contents in those images (texts and graphics)
    using table cells... My friend told that there is a so called tag to solve it but he doesn't
    know how.... Can you please send me some hot info about parameter and hows' of iframes? Samples
    would be great. Tnx... Use a more descriptive title next time. ....
  25. Does Trap17 Have A Button?
    For Linking To Trap17.com From My Site (7)
    Does Trap17 have a linking button? I want to put it on my site, at the bottom of each page, like
    this: Hosted By * Trap17 Link Button Here* If they don't already have a button, can we make
    one? I'm willing to make a simple 88x31 button and then post it so everyone can use it.
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ....
  26. Linking CSS to HTML
    (2)
    CODE <LINK REL="StyleSheet" HREF="basic.css" TYPE="text/css"
    TITLE="Preferred Style" MEDIA="screen, projection"> <LINK
    REL="Alternate StyleSheet" HREF="altstyle.css" TYPE="text/css"
    TITLE="Alternate Style" MEDIA="screen"> Linking to an External Style
    Sheet --- LINK tag The link tag is used between the HEAD tags. It is the most common way
    to link CSS to HTML. REL Attribute The REL attribute defines the differences between a
    persistent or prefe....
  27. Javascripts and Iframes withing php nuke ????
    (1)
    when ever i try and put in some java into blocks or storys it says my html tags are not accepted ...
    is there anyway i can change this too be accepted also can i install iframes or anothe photo gallery
    thing.....
  28. Javascript loading iframes
    (1)
    Im getting this message CODE Line: 14 Char: 3 Error:
    'document.getElementByID(...)' is null or not an object Code: 0 URL:
    http://www.stoneddevilinc.com?i=full_site_part_1.html when i try to run this code
    CODE <script type='text/javascript'> function setIframe() { var url =
    window.location.href; var i = url.indexOf("?i="); if( i>-1 ) {
     url = url.substr(i+3);  document.getElementById("content").src = url;
    } } ....
  29. Linking A Url To A Button
    How to Link a URL using getURL() (4)
    Linking a URL to a Button in Flash This seems to be a problem for beginners to Flash, and I
    thought I'd address it. When building a Flash-navigated site, you need to link one page to
    another through the flash interface, just like you would a my link in HTML/XHTML. Once
    you've created your button on the page, you can link the button very simply. Right-click it, and
    select "Actions" from the menu. This will open the ActionScript editor, in which you can right
    ActionScript code. Don't worry. It's not detailed to put this link in. Make sure you are i....
  30. Iframes (and Other Annoyances)
    Grrrrrr! (7)
    I'm using Dreamweaver MX 2004 with a combination of design and coding, right? Should be simple
    to make a rather simplistic but cool-looking web site. Easy, right? Well, when it comes to iframes,
    it's not. I don't know exactly how I did it in the first place, but I used the iframe tag
    set (using DW's nice little "insert tag here" feature) and now I'm rather lost on how to get
    it to work right. Anyway, I'm blathering here, so I'll get to the point. Go to my webpage
    and take a look. You'll notice that the news.html file properly displays wi....

    1. Looking for linking, iframes

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for linking, iframes

*MORE FROM TRAP17.COM*
advertisement



Linking To Iframes !?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE