Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > window.open with php header

Reply
Thread Tools

window.open with php header

 
 
Josh Burkard
Guest
Posts: n/a
 
      10-19-2006
Hello

i want to create a link to a php script witch contains special headers.

if i create the link like below, all is ok.
<A HREF="script.php?id=1">

If i create the link with JavaScript like this:
window.open("script.php?id=1");
i receive an error-message like script.php can't be downloaded.

What can i do?

Best regards
Josh
 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      10-19-2006
Josh Burkard a écrit :
> If i create the link with JavaScript like this:
> window.open("script.php?id=1");
> i receive an error-message like script.php can't be downloaded.


Really :

<a href="#" onclick="window.open('script.php?id=1');return false;">
my php
</a>

doesn't work ?

your browser accepts popups ?
 
Reply With Quote
 
 
 
 
uoL
Guest
Posts: n/a
 
      10-19-2006
hello,

i think u r missing some parameters I would do

window.open ("location","name","parameters");

parameters for example: "width=100,height=100" etc

hope that help,
bye

 
Reply With Quote
 
Josh Burkard
Guest
Posts: n/a
 
      10-19-2006
This wasn't the solution. i tried this before.

i've found now the solution:

window.location.href = 'script.php?id=1';

Thanks and Best regards
Josh


"uoL" <> schrieb im Newsbeitrag
news: oups.com...
> hello,
>
> i think u r missing some parameters I would do
>
> window.open ("location","name","parameters");
>
> parameters for example: "width=100,height=100" etc
>
> hope that help,
> bye
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Training Institute In Delhi, Live Projects on PHP. Short TermPHP Courses, PHP Scripts, PHP Training with Live Projects. Rajive Narain Java 0 09-18-2009 10:47 AM
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Learn how to edit php pages with free php editor torque63 HTML 0 01-01-2009 03:45 AM
RE: php and python: how to unpickle using PHP? Ted Zeng Python 0 10-13-2006 12:11 AM
php and python: how to unpickle using PHP? Ted Zeng Python 4 10-03-2006 03:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57