[jQuery] Re: how to change the iframe src

2009-02-07 Thread jQuery Lover
Don't forget the space between iframe and id: $('#connectframe'+' iframe').attr("src"," Why do you have a concatination there anyway ??? $('#connectframe iframe').attr("src"," Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Feb 7, 2009 at 4:08 AM, cindy wrote:

[jQuery] Re: how to change the iframe src

2009-02-06 Thread cindy
I tried to use Richardo' method, it is still not working. SourceCOde: http://www.w3.org/1999/xhtml";> RAP Console var refreshTime=3; var summaryTab=1; var connectTab=2; var diagTab=3; var isSummaryInit= true; var isConnectInit=false; var isDiagInit=false; var mode="p

[jQuery] Re: how to change the iframe src

2009-02-06 Thread cindy
the src int he iframe needs to access parent's java script. I have to set src. On Feb 6, 2:02 pm, "Andy Matthews" wrote: > It might be easier to just use the location method. > > .location.href = 'newlink.html'; > > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@

[jQuery] Re: how to change the iframe src

2009-02-06 Thread Ricardo Tomasi
$('connectframe'+'iframe') should be $('#connectframe'+' iframe') (notice the whitespace) and so on.. On Feb 6, 7:34 pm, cindy wrote: > Hi, > > what I want to do is to change iframe src, when click the tab. The > click function is called, but the iframe src is not changed at all. Do > you know

[jQuery] Re: how to change the iframe src

2009-02-06 Thread Andy Matthews
It might be easier to just use the location method. .location.href = 'newlink.html'; -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of cindy Sent: Friday, February 06, 2009 3:35 PM To: jQuery (English) Subject: [jQuery] how to change th