Solved

dynamicdrive ajax script

Posted on 2007-11-25
4
389 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Scripting vs. Programming languages 25 115
HTML page and JavaScript 2 54
C3-->D3 Line Chart 4 18
Phone Dialer 5 36
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

22 Experts available now in Live!

Get 1:1 Help Now