Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

dynamicdrive ajax script

Posted on 2007-11-25
4
Medium Priority
?
399 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 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

885 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