sherlockturtle
05-08-2011, 04:21 AM
Can a ifram connect to a href not a src. I tried but it wont show the page.
|
||||
Ifram Scr and Hrefsherlockturtle 05-08-2011, 04:21 AM Can a ifram connect to a href not a src. I tried but it wont show the page. DanInMa 05-08-2011, 04:26 AM iframes use src, not href. http://www.htmlcodetutorial.com/frames/_IFRAME.html sherlockturtle 05-08-2011, 04:28 AM i know but when i do src that only connects to the internet not a other one of my files. DanInMa 05-08-2011, 04:33 AM <iframe src="/files/myfile.htm" frameborder="0"></iframe> is how you would do it ( and remove the border to answer your other previous post). if it isnt working correctly you may need to provide more information and/or markup example sherlockturtle 05-08-2011, 04:36 AM thanks! sherlockturtle 05-08-2011, 04:38 AM Ugh what do you mean by files/myfile.htm were do you put the file name? and is the files just files our is it a variable. DanInMa 05-08-2011, 04:46 AM are you referring to something other than an html or php file? you need to be more specific sherlockturtle 05-08-2011, 04:50 AM no just a html file so it would be files/File name DanInMa 05-08-2011, 04:55 AM ok, than I already answered your question. if you want to display an html file in an iframe and the file is located at www.mysite.com/myfile.htm then you would use <iframe src="http://www.mysite.com/myfile.htm"></iframe> or you would use a relative link like so if the page your iframe is on is already on www.mysite.com <iframe src="/myfile.htm"></iframe> sherlockturtle 05-08-2011, 05:14 AM wate it not on the internet yet its just on my computer. DanInMa 05-08-2011, 05:16 AM src="file:///c:/myfiles/myfile.htm" what you are referring to would be a "local file". Im guessing you dont have a server installed on your computer or network to test with. ( interested in running a local test server? -- http://portableapps.com/apps/development/xampp ) sherlockturtle 05-08-2011, 05:49 AM nope but know i understand. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum