Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-27-2008, 03:15 PM
Junior Member
 
Join Date: Jun 2008
Location: Wales
Posts: 9
Default Zend Framework and OpenLayers?

I'm new to PHP and Zend Framework. I'm trying to build a small web-app based on ZF and also using OpenLayers (a Javascript Ajax library for displaying maps).

I have some Javascript that runs fine in a stand-alone HTML page when called from <body onLoad="myscript();"> ...</body>, and it displays a map correctly using OpenLayers.

The same Javascript appears to run fine when called in the same way from a body tag inside my .phtml view-page in ZF, but it doesn't display any map. I can see stuff happening in the browser status bar, so I'm fairly sure OL is running and getting the map data etc. But the map is never displayed.

Has anybody got ZF and OL to work together, and if so, could you offer some tips or perhaps post a simple example of how to get it working?

I'm not entirely sure how the page is rendered using ZF, so maybe it's something to do with the page being rendered before the OL script runs?

But I'm just guessing, so any more informed comments would be greatly appreciated!

Thanks!

Chris
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT. The time now is 11:12 PM.