944s Posted November 22, 2009 Report Share Posted November 22, 2009 (edited) Kā iespējams automātiski saglabāt ifreimu failā? <script language="JavaScript"> var src = 'www.kautkada_lapa.lv/lapa.html'; function saglabat() { document.getElementById("hiddenContent").src = src; // šeit ifreims automatiski saglabātos tekošā direktorijā, failā mana_lapa.html } ... </script> ... <a href="#" OnClick="javascript:saglabat();">Saglabāt</a> <iframe id="hiddenContent" width="100%" height="300"></iframe> Edited November 22, 2009 by 944s Quote Link to comment Share on other sites More sharing options...
0 indoom Posted November 22, 2009 Report Share Posted November 22, 2009 Ar JS neko nevar uz lietotāja diska saglabāt (ja neskaita cookijus) Quote Link to comment Share on other sites More sharing options...
0 944s Posted November 22, 2009 Author Report Share Posted November 22, 2009 Ar JS neko nevar uz lietotāja diska saglabāt (ja neskaita cookijus) Bet teiksim ar JS dabūt ārā lapas sourci ir iespējams? Pēc tam ar PHP saglabātu uz diska. Quote Link to comment Share on other sites More sharing options...
0 EdgarsK Posted November 22, 2009 Report Share Posted November 22, 2009 :D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D mnjam :D :D:D:D:D Atvaino :) Php ir koda kabals kas izpildās servera pusē pie klienta tas nemaz neatnāk.. Attiecīi. 1) Tu ieraksti adresi php.lv 2) tev rada loading... bet php.lv serveris tikmer parsee php un veido tev html 3) tev rada loading... php suuta tev savu sagatavoto html kas satur arii javascript 4) tev sak neradit loading.. tavs parluks sagremo html un parada tev vizualo rezultatu Cik noprotu vienigais jedzigais variants kurs der lietotaja diska korigesanai (papildinasanai dzesanai) ir Java . Quote Link to comment Share on other sites More sharing options...
0 EdgarsK Posted November 22, 2009 Report Share Posted November 22, 2009 un runajot par lapas source kodu. Atbilde ir Jā . var dabūt. Quote Link to comment Share on other sites More sharing options...
0 944s Posted November 22, 2009 Author Report Share Posted November 22, 2009 Atvaino EdgarsA, bet tik stulbs es neesmu ... es gribēju dabūt lapas html lapas sourci, ne php :) Quote Link to comment Share on other sites More sharing options...
Question
944s
Kā iespējams automātiski saglabāt ifreimu failā?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.