(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
|
Alati teme | Način prikaza |
|
25. 04. 2012. | #1 |
Ivan Pavković
Qualified
Datum učlanjenja: 15.01.2007
Lokacija: Beograd
Poruke: 144
Hvala: 42
16 "Hvala" u 16 poruka
|
I da, to je to
Evo kompletnog resenja, mozda nekom zatreba. Kôd:
window.onload = function() { var url = 'form.html'; var iframe = document.createElement('iframe'); iframe.src = url; iframe.setAttribute('id', 'ifrm'); iframe.setAttribute('name', 'iframeee'); //iframe.style.display = 'none'; document.body.appendChild(iframe); frames["iframeee"].onload = function(){ var param1 = window.top.iframeee.document.getElementById("field1"); param1.value = "Well, I'm new one again"; alert(window.top.iframeee.document.getElementById("field1").value); window.top.iframeee.document.someCoolForm.submit(); }; }; PS ^Pretece me ti Da, to je to!!!!!!????? Poslednja izmena od centaur : 25. 04. 2012. u 13:29. |
|
|