was not a new top, just reply

Post all HTML related questions here. No support.

Moderator: Project members

Locked
Message
Author
motdaugrnds
550 Permission denied
Posts: 24
Joined: 2013-08-11 22:55

hyperlinks not working...help please

#1 Post by motdaugrnds » 2013-10-23 15:27

Can anyone tell me what I'm doing wrong with this scripting?
I'm trying to turn four (4) Iframes into one Iframe with several hyperlinks on my "index.php" file.

On that page I have a table with 2 columns. I'm only working now with the widest column on the left side. I placed this coding between the <head></head> tags in my index.php file:

<HEAD><TITLE>farm-sales</TITLE><script type="text/javascript">function showPage(typeName) {try {var lstrPageName = '';switch (typeName) {case "antique":lstrPageName = 'antique.html';break;case "finejewelry":lstrPageName = 'FineJewelry.html';break;case "costume":lstrPageName =
'costume.html';break;case "loose":lstrPageName = 'loosestones.html';break;}document.getElementB---('mainFrame').src = lstrPageName;} catch (e) {alert('There was an error while trying to load the page: ' + e);}}</script></HEAD>

Then I placed this coding into the table. (You can see it by "view source" if you want.)

[ <a href="javascript:showPage('antique');">Antique Jewelry</a> | <a href="javascript:showPage('finejewelry');">Fine Jewelry</a> | <a href="javascript:showPage('costume');">Costume Jewelry</a> | <a href="javascript:showPage('loose');">Loose Stones</a> ]<br /><!-- This is coding for the Iframes. !--><iframe src="antique.html" width="100%" height="1200" border="0" scrolling="" id="mainFrame"></iframe><!-- Above is the coding for several Iframes. !-->


I did get the one Iframe; however, the hyperlinks don't work. What did I do wrong?

You can see my site at

Code: Select all

http://motdaugrnds.com/farmsales
Last edited by boco on 2013-10-23 15:49, edited 2 times in total.
Reason: You should know already it is not allowed to post such links here, at least not in a clickable format.

User avatar
botg
Site Admin
Posts: 35552
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: hyperlinks not working...help please

#2 Post by botg » 2013-10-24 17:34

Oh dear, javascript for what could be simple links...

motdaugrnds
550 Permission denied
Posts: 24
Joined: 2013-08-11 22:55

Re: hyperlinks not working...help please

#3 Post by motdaugrnds » 2013-10-25 10:26

Well, now that was great information; however, without knowledge of those "simple links", I'm still pretty much stuck. :(

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: hyperlinks not working...help please

#4 Post by boco » 2013-10-25 21:18

The problem is, we don't deal with website code at all, only FTP. You may not get much answers here, the better option would be asking in a dedicated HTML/JS forum.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

motdaugrnds
550 Permission denied
Posts: 24
Joined: 2013-08-11 22:55

was not a new top, just reply

#5 Post by motdaugrnds » 2013-10-26 00:02

Thank you. I had thought this forum was for "all things html"; and I don't know of any forum where I might get an answer.

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: was not a new top, just reply

#6 Post by boco » 2013-10-27 02:41

This forum only exists so the HTML questions don't clutter the main forums. Additionally, there are chances (albeit low) that someone skilled passes by and answers your question.

Here is the HTML forum's description (most people seem to overlook it):
Post all HTML related questions here. No support.

Edit: I will combine the topics. Edit 2: Done.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Locked