Re: Passing params to PHP served paged in iFrame...
| From: | Richard Lynch | Date: | Tue, 11 Apr 2006 22:06:28 +0000 |
| Subject: | Re: Passing params to PHP served paged in iFrame... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233800@lists.php.net to get a copy of this message | ||
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