Dooling Posted May 27, 2005 Report Share Posted May 27, 2005 Lieta tāda es vēlos upload'ot bildi. Kad izvēlos to bildi, gribu lai izvēleto bildi parāda defaultās bildes vietā tajā pašā lapa nerefrešojot lapu... cik es noproto ir jāizmanto JAVASCRIPT? Vai arī es maldos? Varbūt kādam ir kāds jau gatavs skripts un var padalīties ar to? Link to comment Share on other sites More sharing options...
bubu Posted May 27, 2005 Report Share Posted May 27, 2005 <html><body><form> <input type="file" onchange="document.getElementById('preview').src='file://'+this.value"/> <img id="preview" src="" /> </form></body></html> Tikai jāuzliek pārbaude, ja nu lietotājs nenorāda bildes (tb paplašinājums nav bmp/jpeg/jpg/gif/png), tad lai nerāda kautkādu sviestu. Link to comment Share on other sites More sharing options...
Dooling Posted May 27, 2005 Author Report Share Posted May 27, 2005 Ok, liels paldies :) Link to comment Share on other sites More sharing options...
bubu Posted May 27, 2005 Report Share Posted May 27, 2005 P.S. Tas bij uz Windows tikai. Tagad iedomājos, ka nezinu kā piemērs uzvedīsies uz Linux, to ar vajadzētu tev notestēt. Link to comment Share on other sites More sharing options...
Dooling Posted May 27, 2005 Author Report Share Posted May 27, 2005 (edited) To es taisu tikai savām vajadzībām...to neviens cits neizmantos...Un es parasti sēžu tikai uz Windows...Linux mani nesaista :P Edited May 27, 2005 by Dooling Link to comment Share on other sites More sharing options...
Venom Posted May 27, 2005 Report Share Posted May 27, 2005 /me domā kā bez file:// ies arī tā Link to comment Share on other sites More sharing options...
bubu Posted May 27, 2005 Report Share Posted May 27, 2005 /me domā kā bez file:// ies arī tā 18126[/snapback] Uz IE jā, bet uz FF nē. Link to comment Share on other sites More sharing options...
Recommended Posts