473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What is my error? I can't find why code doesn't work!

tpgames
785 512MB
This code works how I want it too work.
2 letter quiz

This code does not work how I want it too. The links refuse to load up in the frame no matter what I change the 2.html link to be.
2.html

The js file is the same between the two pages.
Its the jyz.js file thats the same. This file does work in the first link, but doesn't have the desired effect in the second link. When I had this issue on the other page, it was the iframe src that I had wrong. Thus,
I know that the iframe src=... must be the same as the page that the user starts on in order for the links to upload on that same page. However, no matter what link I put as the iframe src link, it won't work.

Please, write out between code tags exactly what that url should be as I'm not seeing it!
Thanks!
Apr 17 '07 #1
6 1686
tpgames
785 512MB
Relevant iFrame code that WORKS. All links load up in the iframe on the page 1g.html like it should.
Expand|Select|Wrap|Line Numbers
  1.     <iframe src="1g.html" width="700" height="550" name="content" id="content" align="right" frameborder="1">Your browser does not support iframes</iframe>
  2.     <ul> Click a Question </ul>
  3.  
  4.     <li><a href="../2letter/g1.html"> Question 1</a><br />
  5.     <li><a href="../2letter/g2.html"> Question 2</a><br />
  6.     <li><a href="../2letter/g3.html"> Question 3</a><br />
  7.     <li><a href="../2letter/g4.html"> Question 4</a><br />
  8.     <li><a href="../2letter/g5.html"> Question 5</a><br />
  9.     <li><a href="../2letter/g6.html"> Question 6</a><br />
  10.     <li><a href="../2letter/g7.html"> Question 7</a><br />
  11.     <li><a href="../2letter/g8.html"> Question 8</a><br />
  12.     <li><a href="../2letter/g9.html"> Question 9</a><br />
  13.     <li><a href="../2letter/g10.html"> Question 10</a><br />
Relevant code that does NOT work. The links do NOT load up on to page 2.html like they should.
Expand|Select|Wrap|Line Numbers
  1.     <iframe src="http://www.tpgames.net/gaming/2/word/cipher/f/2.html" width="800" height="130" name="content" id="content" align="right" frameborder="1">Your browser does not support iframes</iframe>
  2.     <ul> Click a Question </ul>
  3.  
  4.     <li><a href="http://www.tpgames.net/gaming/2/word/cipher/f/c/c1.html"> Question 1</a><br />
  5.     <li><a href="http://www.tpgames.net/gaming/2/word/f/c/c2.html"> Question 2</a><br />
  6.     <li><a href="../f/c/c3.html"> Question 3</a><br />
  7.     <li><a href="../f/c/c4.html"> Question 4</a><br />
  8.     <li><a href="../f/c/c5.html"> Question 5</a><br />
  9.     <li><a href="../f/c/c6.html"> Question 6</a><br />
  10.     <li><a href="../f/c/c7.html"> Question 7</a><br />
  11.  
  12.     <li><a href="../f/c/c8.html"> Question 8</a><br />
  13.     <li><a href="../f/c/c9.html"> Question 9</a><br />
  14.     <li><a href="../f/c/c10.html"> Question 10</a><br />
  15.  
Only c1 and c2 exist. The other pages haven't been made yet.
I do have a iFrame on page c1, but wanted only c1 to load normally within the iframe on 2.html Is this why its not working? ?I have a iframe on page c1 so is confusing for the browser?
Apr 17 '07 #2
tpgames
785 512MB
Not even g2.html will load into the frame! Thus, I just have to have a link wrong! And, it just has to be the iframe src="????" link that is wrong! Ugh!

Recap of what I've tried for links for iframe on page 2.html
Expand|Select|Wrap|Line Numbers
  1. http://www.tpgames.net/gaming/2/word/cipher/f/2.html
  2. ../2.html
  3. ../gaming/2/word/cipher/f/2.html
  4. ../2/word/cipher/f/2.html
  5. ../word/cipher/f/2.html
  6. ../cipher/f/2.html
  7. ../f/2.html
  8.  
Apr 17 '07 #3
tpgames
785 512MB
Okay, so the main page and the pages you want to load into frames must be in the same folder - but why??? This is the only different between the two codes!
Apr 17 '07 #4
tpgames
785 512MB
That didn't even work! I put 2DOThtml in the same page as the c1 + files and it still didn't upload c1 onto the same page.
Put in code tags so that it wouldn't make them a URL.
Expand|Select|Wrap|Line Numbers
  1. I even put the jyz.js file into the same folder! 
  2. I copied jyz.js from the original file and copied it between folders. 
  3.  
  4. Thus, 2.html, jyz.js and c1.html, and c2.html are all in the folder marked c. 
Apr 17 '07 #5
tpgames
785 512MB
I never found the error, but I did copy the 1g file over to the other folder. I then changed the links. I have no clue what was wrong, but it now works! I'm sure its the case of a little dot or tiddle out of place. LOL
Apr 17 '07 #6
tpgames
785 512MB
I found the problem. The 2 js files weren't playing nicely with each other.
Apr 17 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: sachin bond | last post by:
The following code(in c++) is supposed to divide a file into 'n' different files. suppose i'm having a file called "input.zip". The execution of the following code should divide "input.zip"...
3
by: sachin bond | last post by:
this code does not work.... plz help...... void breaker() {
1
by: chris | last post by:
hi i am trying to make a vb.net control using Imports System.Web Dim email As New System.Web.Mail.MailMessage but it gives me the error Type 'System.Web.Mail.MailMessage' is not defined....
2
by: Rhys.Mataira | last post by:
My code will not show up anything at all on the screen can someone guide me why this would be? <?php $pagetitle="Login"; If (!$_POST) or (!$_POST) { echo" <head></head> <style...
1
by: Eric | last post by:
This program is running fine in my office i just copy it and run at home it start given that error and highlight Chr(13). I dont know is this is what the error is or some thing else Compiler...
4
by: raaman rai | last post by:
Hi guys, i installed WAMP Server 2 yesterday but i waz surprised to see that the following code doesnt work. Today is <? print strftime("%m/%d/%Y"); ?> The output is just: Today is ...
9
by: AGP | last post by:
I've been scratching my head for weeks to understand why some code doesnt work for me. here is what i have: dim sVal as string = "13.2401516" dim x as double x = sVal debug.writeline ( x)
2
Thew
by: Thew | last post by:
<script language="javascript" type="text/javascript"> function spoilershow(){ document.getElementById("spoiler").style.visibility='visible'; document.getElementById("show").value='close';...
0
by: xteaun | last post by:
Hi! I am trying to use the following code in a little VB.Net project and I just cant get it to work. I get an error that says the "adressof"-command isnt using the right delegate type and some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.