Solved

dynamicdrive ajax script

Posted on 2007-11-25
4
391 Views
Last Modified: 2012-08-13
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/index.htm
i am using this script...it's very good-the tabs open iframes inside the div that replaced under them,
 but there is a big problem cause there is no option to
create a script that you can run from iframes and to made the main page move to another tab....
for example you in tab1 reading from some i frame and want to click inside the iframe some link to move the main page to tab2.

is there any body here that worked with ajax tabs and know how to create sucj a link?
0
Comment
Question by:sasha85
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
B_Dorsey earned 500 total points
ID: 20348490
using the same script as the main page jsut put parent infront of it perhaps?

so for that first example in their code, on the frame page you could do something like


<a href="javascript:parent.countries.expandit(2)">test</a>

Open in new window

0
 

Author Comment

by:sasha85
ID: 20350847
it's not working...gives me error. are you sure that this is the right way? cause if you do i will start scanning my other coding to find may be i got wrong in other place...
0
 
LVL 14

Expert Comment

by:B_Dorsey
ID: 20351293
it should work... if I call a page in an iframe from my parent window, I should be able to do something like "parent.testfunction()"

in the original page I would ahve a javascript function named testfunction()
0
 

Author Comment

by:sasha85
ID: 20353476
i can understand what you are saying but it somehow not working as i need...
but never mind i found alternative way to do this:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now