PDA

View Full Version : How to do iframe with jquery?


toplisek
03-10-2010, 07:36 PM
How to do iframe with jquery?

I have implemented iframe as posted at URL:
http://api.jquery.com/contents/

I have code working :

<iframe id='myframe'></iframe>
<script>$("#myframe").contents().find("a").css("background-color","#FFFFFF");</script>
</div>


1. How to do without border and white background?

2. How to request this content within frame name myframe from link of form?

Code to execute this frame is:

<form name="myframe" action="myphpfile.php">

Spudhead
03-11-2010, 05:09 PM
I'm sorry, I don't understand. Are you trying to get the contents of the iframe?

Can you describe in more detail what you're trying to do, or link us to the page you're working on?

toplisek
03-12-2010, 08:23 PM
Hi,
thanks for reply.
I like to do the following:
iframe has to be used as I have within iframe encoding UTF-8.
Now other part of page will be different encoding.

So, need to show text within iframe but without border or any scroll bar.
Issue is that client should not notice any different iframe to other parts of websites.