Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: states and countries Pin
Arun Jacob15-Apr-10 19:42
Arun Jacob15-Apr-10 19:42 
AnswerRe: states and countries Pin
Peace ON15-Apr-10 21:00
Peace ON15-Apr-10 21:00 
AnswerRe: states and countries Pin
Sandeep Mewara15-Apr-10 21:03
mveSandeep Mewara15-Apr-10 21:03 
Questionalternative to iFrame Pin
A M SOMAN15-Apr-10 19:27
A M SOMAN15-Apr-10 19:27 
AnswerRe: alternative to iFrame Pin
Chetan Patel15-Apr-10 20:46
Chetan Patel15-Apr-10 20:46 
AnswerRe: alternative to iFrame Pin
Chetan Patel15-Apr-10 20:48
Chetan Patel15-Apr-10 20:48 
GeneralRe: alternative to iFrame Pin
Sandeep Mewara15-Apr-10 21:05
mveSandeep Mewara15-Apr-10 21:05 
AnswerRe: alternative to iFrame Pin
Peace ON15-Apr-10 20:48
Peace ON15-Apr-10 20:48 
I've been dealing with this myself for quite some time. Though some people may frown upon the practice of using iframes, sometimes it is the only (or at least the most sane and feasible) way to "interface" two standalone software systems. Also, there is rumor that IFRAME may become deprecated, but the jury appears to still be out on that. So, it's a good thing to start examining alternatives now.

That said, here is an article that may interest you:

http://www.w3.org/TR/WD-frames-970331[^] - The most pertinent part is about halfway down. It's a bit technical, but worth the read.

Here are more links that may help:

http://intranation.com/test-cases/object-vs-iframe/[^]

http://www.thescripts.com/forum/thread568067.html[^]

http://www.webmasterworld.com/forum21/6539.htm[^]

http://www.456bereastreet.com/archive/200612/dump_iframes_and_use_object_elements_instead/[^]

Second Method is described below.

The use of iframes is an ongoing controversy. Are they good? Are they bad? I can honestly say I’m unbiased on this. I feel that iframes aren’t necessarily bad, but that there are alternatives that allow for better accessibility and greater search engine optimization. This is a mini-tutorial (hardly any work at all) dealing with CSS and XHTML which will allow you to create the same effect that comes with the standard iframe.

To start off, all you’ll need to create your ‘iframe’ is a DIV layer, and a cascading stylesheet linked to the source (optional).

Step 1: Create your div.

<div>Paragraph or two of text here....</div>

Step 2: Add the styles to the div.
This is fairly simple. If you don’t have a stylesheet linked to the source, or have a style section in the head at the top of your source, you can simply add the following attribute to the div element.

<div style="overflow:auto; width:200px; height:200px;">Paragraph or two of text here....</div>

If you’re using a linked stylesheet or have one in the head at the top of your source, define the div with the following (NOTE: I am using the div class ‘iframecopy’ with this example so you’ll have to add class=”iframecopy” to the div attribute for it to work.):

div.iframecopy {
width: 200px;
height: 200px;
overflow: auto;
}

That’s it! What you typed simply says that once the text reaches a height of 200px, the famous iframe scrollbar will appear, allowing the div to stay at the specified height and still contain more text than that which it would ordinarily allow.

There you have it! An iframe copy, using a single div and a little bit of CSS, without the mess of unecessary attributes that are needed to make the iframe practical.

If you want to go even further with this, you can use PHP ‘includes’ to get the ‘target’ feature that comes with iframes and links used together. I hope this opens your horizons a bit, while still allowing the functionality of the recognized iframe.

Just FYI - I know AJAX is big now, but, among other things, I do have concerns over cross-browser compatibility issues involving XMLHttpRequest (I think this may be Microsoft-specific, so not sure how this would work across all the modern browsers now available, i.e. Mozilla-flavors, FireFox, Opera, etc.). Again, not sure, but it is cause for pause. As a matter of fact, I read this http://www.phpclasses.org/blog/post/51-PHPClasses-20-Beta-AJAX-XMLHttpRequest-x-IFrame.html[^] not long ago at PHP Classes where the experts there decided to support Iframe and not AJAX for several reasons.

Hope this helps!
Jinal Desai

GeneralRe: alternative to iFrame Pin
A M SOMAN15-Apr-10 23:35
A M SOMAN15-Apr-10 23:35 
QuestionFacing problem in the url when using url rewritind Pin
Member 438775715-Apr-10 3:53
Member 438775715-Apr-10 3:53 
AnswerRe: Facing problem in the url when using url rewritind Pin
Martin Jarvis15-Apr-10 8:09
Martin Jarvis15-Apr-10 8:09 
GeneralRe: Facing problem in the url when using url rewritind Pin
Member 438775715-Apr-10 18:30
Member 438775715-Apr-10 18:30 
QuestionRe: Facing problem in the url when using url rewritind Pin
Member 438775715-Apr-10 19:13
Member 438775715-Apr-10 19:13 
QuestionOpen source LMS? Pin
Dotnetkanna15-Apr-10 2:32
Dotnetkanna15-Apr-10 2:32 
QuestionPlay Live FP TV Pin
anilaabc15-Apr-10 2:29
anilaabc15-Apr-10 2:29 
AnswerRe: Play Live FP TV Pin
sasha winston15-Apr-10 3:59
sasha winston15-Apr-10 3:59 
GeneralRe: Play Live FP TV Pin
anilaabc15-Apr-10 18:33
anilaabc15-Apr-10 18:33 
QuestionMy dedicated server got hacked Pin
Rohit16db15-Apr-10 1:32
Rohit16db15-Apr-10 1:32 
AnswerRe: My dedicated server got hacked Pin
Morgs Morgan16-Apr-10 4:10
Morgs Morgan16-Apr-10 4:10 
Questionproblem in getting the value in minutes and seconds Pin
Amit Spadez15-Apr-10 0:12
professionalAmit Spadez15-Apr-10 0:12 
AnswerRe: problem in getting the value in minutes and seconds Pin
Sandeep Mewara15-Apr-10 0:31
mveSandeep Mewara15-Apr-10 0:31 
GeneralRe: problem in getting the value in minutes and seconds Pin
Amit Spadez15-Apr-10 0:39
professionalAmit Spadez15-Apr-10 0:39 
AnswerRe: problem in getting the value in minutes and seconds Pin
nish11115-Apr-10 0:44
nish11115-Apr-10 0:44 
GeneralRe: problem in getting the value in minutes and seconds Pin
Amit Spadez15-Apr-10 0:44
professionalAmit Spadez15-Apr-10 0:44 
GeneralRe: problem in getting the value in minutes and seconds Pin
nagendrathecoder15-Apr-10 0:47
nagendrathecoder15-Apr-10 0:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.