Click to See Complete Forum and Search --> : [RESOLVED] Browser problems. IE !!!!!


chrislead
06-08-2007, 11:16 AM
Hey guys hopefully a quick fix here. take a look at the following code:

$this->pagelayout .= '<td nowrap class="calday" style="background-color: #'.$tempconf->calendar_today_background_color.'" onmouseover="tdmv(this)" onmouseout="tdtmo(this)" onclick="javascript: window.open(\'current_day.php?day='.$curday.'&month='.$this->activemonth.'&year='.$this->activeyear.'\',\'width=800\')">

This basically opens up a new window with a few parameters.

This works perfec tin Firefox but in IE I am told a runtime error has occured and "Error: Invalid Argument"

Any thoughts anyone???

Thanks in advance

sneakyimp
06-08-2007, 02:04 PM
a few things:
1) the code you posted is not a complete line of php code...the string is not terminated
2) you didn't specify what operation you were performing...mouseover? onclick? mouseout?
3) that error is really vague.
4) we have no idea what the functions tdmv, tdtmo, etc. do.

did IE offer any more information like a line number? a function name?

what about the html that gets output by php? maybe some parameters are empty?

cgraz
06-08-2007, 06:41 PM
If you're going to specify the features in your window.open() function, then that is the third parameter, not the second. You're missing a name for your window.window.open( 'urlgoeshere.html', 'nameofwindow', 'width=800,height=600' );Make sure there are no spaces in the window name (second parameter) or IE will throw you an error.

cgraz
06-08-2007, 06:43 PM
BTW, moved to ClientSide forum.

chrislead
06-21-2007, 06:17 AM
Thanks a bunch guys for all your help!

Turns out I was indeed specifying the 3rd parameter as the 2nd as cgraz suggested. - As a fix I simply added the 2nd parameter.

More than appreciated!!