Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript] pobranie danych z function()
Randallmaster
post
Post #1





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


Jak z funkci: function(e) mogę wyciągnąć link na zewnątrz aby alert mi wyświetlił to co jest w środku?

http://jsfiddle.net/d3H9f/147/

albo do funkcji dodać jakąś zmienną?

Ten post edytował Randallmaster 14.08.2014, 11:28:47
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
aniolekx
post
Post #2





Grupa: Zarejestrowani
Postów: 340
Pomógł: 46
Dołączył: 31.07.2009
Skąd: A

Ostrzeżenie: (0%)
-----


z tej stronki znalazlem takie cos, moze podpowie:

Kod
  reader.onload = function(e) {
    fileDisplayArea.innerHTML = "";

    // Create a new image.
    var img = new Image();
    // Set the img src property using the data URL.
    img.src = reader.result;

    // Add the image to the page.
    fileDisplayArea.appendChild(img);
  }
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 9.10.2025 - 20:52