Hi,
Can you please describe your problem properly ?
It will help every one to understand your problem.

in the ajax project ajaxtabscontent by site http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

is not working any javasripts inside ajaxtabscontent container DIV
the javascripts are working by ajaxtabscontent IFRAME option, so the JS work's in IFRAME,
but I need to work it in ajaxtabscontent DIV.
for example by testing lightbox inside ajaxtabscontent DIV is not working!
why? please,do someone nows to fix it?

lightbox is not working inside to ajaxtabscontent! why? how to fix it?

-------- ---------------

I need to use content directly added inside container DIV,
not to inside in IFRAME!

This sounds like a similar problem as this thread: http://www.daniweb.com/forums/thread113959.html

To me it appears that you are loading javascipt functions within your Ajax content - this will not work as expected. You should load your javascript functions into the main page that is loading the Ajax content, then you can call those javascript functions from within your Ajax content.

For example, you are using Lightbox - the Lightbox javascript files must be loaded into your main page (demo.htm if using your example) not into your Ajax pages. From within the Ajax pages you can then call the Lightbox functions.


Matti Ressler
Suomedia

Your Lightbox functions use, for example, document.getElementByTagName

Such will not work from Ajax loaded content. Instead, you must rewrite your function to work via the element id sent to it from the Ajax page (see my other posts on this same topic).

I am about to create a Lightbox effect for I site I am working on here: http://www.suomedia.com/ghm/ PM me your email and I'll get in touch once its done.


Matti Ressler
Suomedia

works inside container DIV by "countries.expandit
($i)" (see it on link Tab 1)but!!! does not work by <ul id="mtabs"><li><a
href="external1.htm" rel="mcontainer">Sample</a> etc.(see it on link Tab 2)

Why are you expecting the links in external2.htm to do anything special? They are just regular links and will open the pages they are pointing to (not Ajax).


Matti Ressler
Suomedia

I did look.....

This is just a plain link (which will open a new page as I would expect):

<a href="external1.htm" rel="moderncontainer" class="selected">Tab 1</a>

Whereas this calls a javascript function (Ajax, which also works as expected):

<a href="javascript: countries.expandit(0)">Tab 1</a>

Matti Ressler
Suomedia

This article has been dead for over six months. Start a new discussion instead.