Prototype + Javascript nach AJAX.Request

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Prototype + Javascript nach AJAX.Request

    Hallo,

    ich habe da ein "mit Sicherheit nur kleines" Problem.

    Ich habe jquery und thickbox im Einsatz.

    Beim ersten laden der Seite funktioniert alles einwandfrei,
    bei laden der Seite über innerHTML im AJAX.Request wird scheinbar kein Javascript mitgeladen.

    ich komme irgendwie nicht weiter.

    Es soll wie folgt ablaufen:

    Seite laden -> link (mit class="thickbox") anklicken -> wird ausgeführt ->
    laden der Seite via ajax.request (innerHTML) -> erneuter klick auf link (mit class="thickbox") -> "
    Thickbox" wird ausgeführt ...

    Codeschnipsel:
    PHP Code:
                echo '            
            <div id="big_pic'
    .$i.'" style="position:absolute; top:'.$top.'px; left:'.$left.'px; z-index:30; width:114px; height:35px; border:none;">
                    <img src="img/'
    .$pg.'/'.$_REQUEST['lang'].'/'.$produktGeschmack['bild'].'" border="0" height="35" width="78" />
                <div class="product_container">
                    <div id="slidingProductdrink-'
    .$produktGeschmack['produkt_id'].'" class="sliding_product" style="position:absolute; top:0px; left:0px; border:none">
                        <div class="big_pic_bg" style="position:absolute; top:-100px; left:23px; width:113px; height:53px; z-index:6; border:none;">
                            <a href="phpelements/wingsdip.php?height=100&amp;width=300&amp;modal=true&amp;lang='
    .$_REQUEST['lang'].'
                          &amp;produkt_id='
    .$produktGeschmack['produkt_id'].'&amp;pg='.$_REQUEST['pg'].'&amp;sid='.date("dmYHis",strtotime("now")).'" class="thickbox">
                                <img src="img/'
    .$pg.'/'.$_REQUEST['lang'].'/'.ereg_replace(".png","_mouseover.png",$produktGeschmack['bild']).'" 
                           border="0" height="40" width="89" />
                            </a>
                        </div>    
                    </div>
                             </div>
                     </div>
    '

    dies wird beim 1. laden geladen und auch per ajax.request.

    Besten Dank im Vorraus.

    speeedy018

    edit:

    ich habe jquery und nicht prototype im einsatz
    Last edited by speeedy018; 19-12-2008, 17:21.

  • #2
    Hallo hat sich erledigt,

    ich habe jetzt anstatt

    PHP Code:
    <a href="phpelements/wingsdip.php?height=100&width=300&modal=true&lang='.$_REQUEST['lang'].'        
    &produkt_id='.
    $produktGeschmack['produkt_id'].'&pg='.$_REQUEST['pg'].'&sid='.date("dmYHis",strtotime("now")).'" class="thickbox"
    das hier genommen und es funktioniert:

    PHP Code:
    <a href="javascript:tb_show(\'Dip auswaehlen\',\'phpelements/wingsdip.php?height=100&amp;width=300&amp;modal=true&amp;lang='.$_REQUEST['lang'].'
    &amp;produkt_id='.
    $produktGeschmack['produkt_id'].'&amp;pg='.$_REQUEST['pg'].'&amp;sid='.date("dmYHis",strtotime("now")).'\\',\'img/loadingAnimation.gif\');" 
    hoffe das jemand die lösung gebrauchen kann.

    gruß

    speeedy018
    Last edited by speeedy018; 19-12-2008, 18:38.

    Comment

    Working...
    X