[TYPO3-ect] AJAX and thickbox
Steffen Kamper
steffen at sk-typo3.de
Wed Sep 19 23:43:44 CEST 2007
Hi Philip,
"Philip Almeida" <philip.almeida at gmail.com> schrieb im Newsbeitrag
news:mailman.158.1190205016.15140.typo3-team-extension-coordination at lists.netfielders.de...
> Well I make a work around.
>
> Put the link in the first calling page(not in a ajax request).
> Then in all ajax request I alter the href attribute via javascript with
> element id and call the link via javascript DOM link() when needed.
>
> The click() DOM attribute does not work in Firefox because W3C says it
> should not apply to A tags, I found this work around for firefox (
> http://www.faqts.com/knowledge_base/view.phtml/aid/9368/fid/128)
>
> Well now I have thickbox and xajax working.
>
> regards,
>
> philip
>
this sounds to complicate for me.
If you still use jquery you can make a calll from js, make a dom-query to
the link and add a onclick-handler,
then you need nothing more, also no collision with W3C-issues.
vg Steffen
> On 9/19/07, Philip Almeida <philip.almeida at gmail.com> wrote:
>>
>> Hello ECT,
>>
>> yesterday I come into a "thing" I want to share to see if you now
>> something
>> more:
>> I am using MVC with xajax.
>> I wanted to use "thickbox" (http://jquery.com/demo/thickbox/) from jquery
>> to
>> lunch a iframe.
>>
>> If I insert the launch code beneath in the original html page it works:
>> <a href="'http://www.mypage.com?&TB_iframe=true&height=400&width=750'"
>> class="thickbox">
>> Launch
>> </a>
>>
>> If the same code is call by ajax (this is, a ajax call returns the above
>> code to the browser) it falls.
>>
>> Any ideias?
>>
>> thanks,
>>
>> philip
>> _______________________________________________
>> TYPO3-team-extension-coordination mailing list
>> TYPO3-team-extension-coordination at lists.netfielders.de
>>
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-coordination
>>
>
>
>
> --
> -- -- -- -- -- -- -- -- -- -- -- -- --
> Philip de Oliveira de Almeida
> Tel. 966 356 008
More information about the TYPO3-team-extension-coordination
mailing list