[PHP] Doh!

2004-06-07 Thread GodFoca
Well, I found out why it wasn't working The frameset had the frame named "pritableFrame" instead of "printableFrame" so the reference was erroneous. The following works ok: function printFrame(f) { parent.f.focus(); parent.f.print(); } ... Print the Other Frame

[PHP] Re: I'm Completely Confused

2004-06-07 Thread GodFoca
Sorry for the new post, this should have been a reply to "Javascript Question" ([EMAIL PROTECTED]) Greeting, Nicolas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I'm Completely Confused

2004-06-07 Thread GodFoca
Ok, googling I found: http://www.codelifter.com/main/javascript/printframe.shtml The example in there works ok, so I copied the code into my docs and it didn't work. I'm confused (BTW, "parent" is all is needed apparently) Could this be happening because I'm using the extension .php instead o

[PHP] Javascript Question

2004-06-07 Thread GodFoca
Hey! Sorry for the OT, but since there seems to be no js newsgroup in gmane, I thought maybe someone in here could answer this simple question. I am trying to use javascript's "print()" to print a frame FROM ANOTHER frame. This is the layout: In printButton I have a simple anchor:

[PHP] Re: Submitting a form from tags

2004-05-30 Thread GodFoca
Thank you very much! N. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: including an html file!!

2004-05-30 Thread GodFoca
echo returns 1 on success, so the interpreter first evaluates the expression inside the echo() call, and thus includes the html file, and then, as the evaluation returned 1, it echoes 1 to the final file. You should only do "include(...)", without the echo. Good luck, Nicolas -- PHP General Mai

[PHP] Submitting a form from tags

2004-05-30 Thread GodFoca
Heyp! I wanted to know if there is some way to do the submitting of a form from a normal href link, instead of the big-dumb-gray button. If it can't be done with PHP, how can it be done? Thanks in advance, Nicolas Sanguinetti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Re: Multiple substring replacement

2004-05-25 Thread GodFoca
Because it doesn't replace the newlines, just inserts "" before them... I liked the implode solution ... (shoulda figured, since I come from a python background ... but I keep saying to myself that py is better and that php can't be treated the same way ... ;) Greetings, and thanks for all the ans

[PHP] Multiple substring replacement

2004-05-24 Thread GodFoca
What's the best way of replacing every ocurrence of a substring in a LARGE string by another (longer) substring? Specifically, I have read the contents of a file into a tring with fread, and now I want to replace all "\n" with "" Thanks in advance Nicolas Sanguinetti -- PHP General Mailing List

[PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread GodFoca
I'm getting this error: Warning: Cannot add header information - headers already sent by (output started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php on line 11 With this code in "main.php": . Does anybody knows what's going on? I don't un