Re: Passing params to PHP served paged in iFrame...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, April 11, 2006 1:58 pm, Richard Dyce wrote:
> The alert is working (so the parameter is being passed), but the
> reload isn't. What am I doing wrong?

Here is what I do when JavaScript doesn't do what I expect:

> function reloadCalendar(yearMonth) {
>    alert(yearMonth);
>    var URL = 'server.php?yearmonth=' + yearMonth;

alett('URL: ' + URL);
alert(document);
alert(document.getElementById('calendarFrame'));
alert('before: ' + document.getElementById('calendarFrame').location);

>    document.getElementById('calendarFrame').location.replace(URL);

alert('after: ' +  document.getElementById('calendarFrame').location);

>    return false;
> }

-- 
Like Music?
http://l-i-e.com/artists.htm

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux