On Mar 2, 2010, at 12:31 AM, Rene Veerman wrote:

i doubt you passed us the entire .js.php script..

The rest of the JS is as follows:

....a href='javascript:loadOSS()'><img src='/images/myimage.jpg' width='161' height='57' align='right' />Open Window...

As far as other PHP goes, the whole page is PHP so I wouldn't know where to even start. My guess was that the problem was originating from the previous code I sent over, but I don't know enough PHP to be sure.



does the script itself ever fail, asides from showing this msg?

No it works fine. The most annoying thing in making it difficult to to troubleshoot is this message does not always appear.


--Rick






On Tue, Mar 2, 2010 at 5:46 AM, Rick Dwyer <rpdw...@earthlink.net> wrote:
Hello List.

I have some JS code that open a new window with a contact form in it. When the link is clicked to open the new window, I will get the following error
SOMETIMES:

"Warning: Unknown: Your script possibly relies on a session side- effect which existed until PHP 4.2.3. Please be advised that the session extension
does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
respectively. in Unknown on line 0"

My JS code with a bit of PHP in it looks like this:

function loadOSS()
var oss_itemid = "<?php echo $item_id; ?>";
var loadOSS = window.open("my_url/my_file.php?iid=" + oss_itemid, "",
"scrollbars = no ,menubar = no ,height =600,width=600,resizable=yes,toolbar=no,location=no,status=no");
}

As I said above, the error message does not always appear.

Is the error due to the fact I am JS & PHP together?

Any help in understanding what I am doing wrong is appreciated.

 --Rick



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to