Article View: pl.comp.lang.javascript
Article #39729Re: zmienna
From: talthen.z-serwera.o2
Date: Sun, 30 Apr 2006 11:44
Date: Sun, 30 Apr 2006 11:44
25 lines
2010 bytes
2010 bytes
Użytkownik " qazzi" <qazzi.WYTNIJ@gazeta.pl> napisał w wiadomości
news:e322jg$rfi$1@inews.gazeta.pl...
> Probuję przekazac zmienną z js do php, doszedlem do tego punktu i nie wiem
> dlaczego to nie dziala , problem jak mi się wydaje lezy w zmiennej tt ale
> nie
> mam pojęcia jak go poprawic. Moze tutaj ktos mi pomoze.
var tt=document.getElementById('ramka').contentWindow.document.body;
alert(tt.title);
document.write('<form action="edytorek.php" method="POST">');
document.write('<input type="hidden" name="tresc" value="'+ tt.innerHTML
+'">');
document.write('<input name="wysylam" type="submit" value="wyslij">');
document.write('</form>');
Powyzsze nie rozwiazuje problemu, ale
1. kod ladniej wyglada :)
2. jak odpalisz to sprawdz czy w alert pokazuje sie tutul Twojej ramki-
jesli nie- to zle wchodzisz do ramki "ramka".
3. Nie wiem, czy to dobry sposob, aby przesylac cale body pliku w polu
tresc... Moze dorob odpowiednie pola formularz i wstaw do nich, to co chcesz
odebrac w php?
Pozdrawiam,
Talthen
Technical Details
Message-ID:
<e3282u$3m0$1@nemesis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<e322jg$rfi$1@inews.gazeta.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.internetia.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: <talthen.z-serwera.o2@nospam.pl> Newsgroups: pl.comp.lang.javascript Subject: Re: zmienna Date: Sun, 30 Apr 2006 13:44:44 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 27 Message-ID: <e3282u$3m0$1@nemesis.news.tpi.pl> References: <e322jg$rfi$1@inews.gazeta.pl> NNTP-Posting-Host: pa49.klewki.sdi.tpnet.pl X-Trace: nemesis.news.tpi.pl 1146397599 3776 217.96.218.49 (30 Apr 2006 11:46:39 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sun, 30 Apr 2006 11:46:39 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit