Jump to content
Raddu

Intrebare PHP/HTML

Recommended Posts

Posted
Deci :

Am facut pe serverul de pe net un html separat

in care am scris numai asta :

<script type="text/javascript">

setInterval(function() {

$.get('refresh.php');

alert("Executed");

}, 6000);

</script>

Cand intru in html , nu se intampla nimic oricat ai astepta , nici macar alerta.

Dar daca intru in refresh.php din browser "last" se updateaza.

refresh.php e in acelasi folder cu html-ul .

Ai jQuery inclus in pagina respectiva?

Posted
Nu. Cum includ si de ce ?

Pai jQuery este un framework JS, metoda get care tu o folosesti ii apartine lui, nu o poti folosii fara jQuery. Pune asta in <head> inainte de codul tau javascript:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>

  • Active Members
Posted (edited)

<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>

apoi vine scriptul tau js

//Scuze pt ca m-am bagat scriam si ai postat inaintea mea scuze

//Cu asta ar trebui sa mearga 100%

Edited by danyweb09
Posted (edited)

Da ,merge asa :) . Multumesc mult . :( A picat serverul inainte sa termin si eu toata treaba.

Off : Pfff.... La ce s-au mai chinuit astia de la 000webhost sa faca hosting daca le pica serverul atat de des ? =))

Edited by Raddu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...