Ugabuga Posted October 6, 2005 Report Share Posted October 6, 2005 (edited) Lai ar protu HTML, CSS un arii savaam vajadziibaam peitiekami php, JavaScript man ir tumsha bilde - varu tikai atrast gavavu skritu un ievietot, kur vajag. Taatad jautaajums: Ir parasta HTML forma, kuraa savada veertiibas un nospiezh "send". Vai ar Javascript ir iespeejams panaakt, ka savadiitaas veertiibas tiek izvadiitas freimaa uz ekraana? Ja ir, tad mok kaads var iemest kaadu linku, kur par sho teemu ir kas rakstiits.. Edited October 6, 2005 by Ugabuga Link to comment Share on other sites More sharing options...
Venom Posted October 6, 2005 Report Share Posted October 6, 2005 kas ir freims uz ekrāna? Link to comment Share on other sites More sharing options...
Ugabuga Posted October 6, 2005 Author Report Share Posted October 6, 2005 Ok.. nepiesieties vaardiem plzz :) vnk laikam haotiski uzrakstiiju.. Vnk, lai peec submit nospieshanas, freimaa paraada, ko cilveeks tai formaa ir izveeleejies. Link to comment Share on other sites More sharing options...
v3rb0 Posted October 6, 2005 Report Share Posted October 6, 2005 obligati peec submita vajag? a nevar formas submitesanu taisit ar js, document.getElementById('formid').send(), bet pirms tam izslasi no formas aizpildiitaas veertiibas un raadi tajaa freimaa vai kur gribi? Link to comment Share on other sites More sharing options...
Venom Posted October 6, 2005 Report Share Posted October 6, 2005 <script type="text/javascript"> function show(sutitajforma) { inputs=sutitajforma.getElementsByTagName('INPUT'); tmp=''; for(inp in inputs) if (inputs[inp].name) tmp+=inputs[inp].name+' = '+inputs[inp].value+"\n"; alert(tmp); } </script> <form onsubmit="show(this)"> <input name="input_nosaukums" value="vertiba" /> <input type="submit" name="sub" value="spiezh" /> </form> ? Link to comment Share on other sites More sharing options...
Ugabuga Posted October 6, 2005 Author Report Share Posted October 6, 2005 Galvenaa saape ir dabuut, formas veertiibas freimaa.. alert neder.. :/ Link to comment Share on other sites More sharing options...
Venom Posted October 6, 2005 Report Share Posted October 6, 2005 <script type="text/javascript"> function show(sutitajforma) { inputs=sutitajforma.getElementsByTagName('INPUT'); tmp=''; for(inp in inputs) if (inputs[inp].name) tmp+=inputs[inp].name+' = '+inputs[inp].value+'<br />'; wo=window.open('about:blank','title'); wo.document.close(); wo.document.write('<html><body>'+tmp+'</body></html>'); } </script> <form onsubmit="show(this)"> <input name="input_nosaukums" value="vertiba" /> <input type="submit" name="sub" value="spiezh" /> </form> jaunā logā? ja freimi - tad kaut kā ar document.frames[] vai pēc tā id varēja piekļūt freima document objektam un tad līdzīgi darboties, vai nu vienk. pārrakstot tā innerHTML, vai ar id. bet vieglāk jau tiešām submitot uzreiz uz to freimu, bet tajā būs kāds php ar saturu līdzīgu: <?php echo '<pre>'.print_r($_POST).'</pre>'; ?> Link to comment Share on other sites More sharing options...
Ugabuga Posted October 6, 2005 Author Report Share Posted October 6, 2005 (edited) OK. paldies.. meegjinaashu kko izziist no sanjemtaas infas.. laikam buus arii javascript beidzot jaaiemaacaas. :) Oi.. bljin pavisam zashuvos.. Diivaini straadaa tie aarzemnieki.. :blink: Lapas struktuura ir taada: Index.htm, kuraa 2 freimi - menu, kuraa ir taa forma, un frameset, kuraa savukaart ir veel 2 freimi - framebild un mainframe.. sviests karoch.. un tam formas saturam jaaparaadaas tur kur mainframe.. index / \ menu frameset / \ framebild mainframe Damn, nu kur tik sarezgjiiti var izdmoaat.. Edited October 6, 2005 by Ugabuga Link to comment Share on other sites More sharing options...
Ugabuga Posted October 6, 2005 Author Report Share Posted October 6, 2005 Atradu netaa shaadu variantu, kas ir visai vienkaarshs <form> <select name="selectName"> <option>January <option>February <option>March <option>April </select> <input type="button" value="Go" onClick="window.location.href = 'nextpage.html?' + this.form.selectName.options[this.form.selectName.selectedIndex].text"> </form> nextpage.html <script language="JavaScript"><!-- document.write("<form><input type='text' "); document.write("value='"+location.search.substring(1)+"'><\/form>"); //--></script> bet kaa sanaak, ja formaa ir vairaaki selecti? Link to comment Share on other sites More sharing options...
Ugabuga Posted October 7, 2005 Author Report Share Posted October 7, 2005 Me again ^_^ Tipa paarlasiijos visaadus manuaaljus un FAQ kameer acis kubiskas. Briesmiiga valoda. :angry: Uzrakstiiju tik taalu, ka savaacu visu selektu veertiibas vienaa mainiigajaa textstring. Tagad megajautaajums: kaa sho te mainiigo textstring, lai paarsuuta uz rezultaatu failu. Kaa shamo atveert freimaa, kaut kaads priekshstats man radaas.. Link to comment Share on other sites More sharing options...
Recommended Posts