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
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
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
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:
Thank you very much!
N.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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
10 matches
Mail list logo