external .js file werkt niet

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Anthony de meulemeester

anthony de meulemeester

21/05/2013 17:26:55
Quote Anchor link
hey,

ik had vroeger mijn jquery code in de header staan en alles werkte prima.

nu dacht ik dat het beter was deze external te maken in een .js file

heb ik gedaan en werkt nu niet meer

in header
<script type="text/JavaScript" src="java_fft.js"></script>

in java_fft.js

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
$(document).ready(function(){
                                $(".addme").hide();
                                 $(this).find('.main_header_optionswrap').click(function(){
                                $(".addme").slideToggle("fast");
                            });
                        });


$(document).ready(function(){
                                 $(".retweet").hide();
                                 $('.timeline_shout_wrap').click(function(){
                                jQuery(this).next().slideToggle("fast");
                
                                
                            });
                        });

                        
jQuery(document).ready(function(){
                                    jQuery('.timeline_shout_wrap').hover(function() {
                                    jQuery(this).find('.timeline_shout_buttons').show(); },
                                        function(){

                                                    jQuery('.timeline_shout_buttons').hide();
                                });
                            });


jQuery(document).ready(function(){
                                    jQuery('.timeline_shout_buttons').hide();
                                });


$(document).ready(function() {
                                   $('.timeline_shout_buttons').click(function(e) {
                                    e.preventDefault();
                                        var
id = $(this).attr('data-id');
                                    var
clone = $(this).closest('#wrappy').clone();
                                    clone.appendTo('#nodig');
        
            $('#nodig').dialog({
                width: 'auto',
                title: 'Deze shout reshouten?',
                height: 'auto',
                buttons: {
                Cancel:    function() {$(this).dialog('close');clone.remove(); },
                Reshout: function() {
                clone.remove();
                $(this).dialog('close');
                    
                    $.ajax({
                                type: "GET",
                                 url: "reshout.php?id="+id,
                                  success: function(data)
                           {

                                  location.reload();
                           }
         });

              return false; // avoid to execute the actual submit of the form.

                        }
                        }
    });                  
           });
             });

            
$(document).ready(function() {
                $('#shoutboxwrap').dialog({
                       autoOpen: false,
                       width: 'auto',
                    title: 'Shout een vacature of een interessante opmerking',
                    hide: 'fold',
                       show: 'blind',
                      modal: true
                                        });
                              
            $('.shoutloud').click(function() {
             $('#shoutboxwrap').dialog('open');
    });

            $('#cancelshout').click(function() {
            $('#shoutboxwrap').dialog('close');
            
             });
        });

?>


Toevoeging op 21/05/2013 17:27:38:

die php staat er NIET in e dat was om dat hier in script ding te krijgen
 
Er zijn nog geen reacties op dit bericht.



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.