I think every browser supports the frames array, but Ricardo's approach
would certainly work well if you want to play it completely safe. Give your
iframe an id= attribute and then code:
$('#theIframeID').attr({ src: theUrl });
-Mike
> From: __marcus__
>
> Frankly, I use jQuery because I hate
Frankly, I use jQuery because I hate Javascript and I was just afraid
frames['results'].location.href
is not compatible enough.
Thanks for your answers.
On 25 Sep., 18:27, Michael Geary <[EMAIL PROTECTED]> wrote:
> Were you thinking that there might be a better way to do that with
> jQuery? Yo
oops. I was going to say something to Michael but I think I quit :D
On Sep 25, 1:42 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> Michael,
>
> In case you need it:
>
> $('#frameid').attr('src','http://');
> or
> $('iframe').attr('src','http://');
>
> You have to access the parent's element, not t
Michael,
In case you need it:
$('#frameid').attr('src','http://');
or
$('iframe').attr('src','http://');
You have to access the parent's element, not the iframe
document to do this. You could use $(frames['frame'])[0].location.href
but that's an absolutely unnecessary waste of resources.
- ri
Were you thinking that there might be a better way to do that with
jQuery? Your code looks just about perfect the way it is.
The only change I would make would be to simplify it a bit:
frames.results.location =
It would be hard for any JavaScript library to improve on that. :-)
-Mike
> I have
5 matches
Mail list logo