Hi,
I have the store locator working properly in both Firefox and Safari. Although in IE, after typing in the zip code and hitting "go" ....the results page loads but I get the following error message in a pop up error window:
"internet explorer cannot open the Internet site...."
And it lists the url to me in that error message.
I've come across sites that suggest the Google Maps API doesn't play well with IE:
http://www.ryangrant.net/archives/internet-explorer-cannot-open-the-inte...
...and have made sure the javascript is out side of the body tag as they suggested. Although that did not seem to remedy the problem. Any suggestions on how to resolve this problem would be great.
Thanks!
June
The problem isnt just the
The problem isnt just the body tag. Its ANY tag, be it a Table tag, div tag, or anything that starts with a <> for that matter. IE is simply retarded and it wasnt fixed in IE7 either. This is why I try to stress that the javascript include has to be the VERY LAST piece that is ever loaded on your site, or basically, all the way to the bottom of the document like that link suggests. Thats pretty much the plain simple way to say it I guess. It even goes AFTER any footer stuff because there is simply nothing in the phpGoogleStoreLocator-javascripts.php file that is displayable anyways.
The only place I can find
The only place I can find the javascript include is right where the DO NOT MODIFY stuff begins and its commented out anyway.
//if (stristr($_SERVER['REQUEST_URI'], 'phpGoogleStoreLocator.php'))//{
//require_once "phpGoogleStoreLocator-javascripts.php";
//}
The javascript code within the module file starting with
$phpGoogleStoreLocator_javascripts .= "<SCRIPT LANGUAGE=\"JavaScript\">is at the very end of the .module document and not in any sort of tags. Well actually its technically within the php < ?> tags. Should it just be taken out of there?
So the javascript in the
So the javascript in the module is at the very end but the module is loaded into the template page so the script ends up at the bottom but still in the
</div> </body> </html>tags at the very end. Like so.(script is here)
</script></div>
</body>
</html>
(page ends here)
If the solution is to keep the javascript outside those tags and still make it function I have no idea if that is possible.
Can the javascript load just
Can the javascript load just be added to a template file and taken out of the phpStoreLocator script? Then it will be loaded in every page even if its not being used but that could solve it. Maybe?
In the newer 3.x branch the
In the newer 3.x branch the JS has been put in the template files, you can do the same thing with 2.x also but you have to move the include yourself in 2.x. In 3.x its already in the default theme template that I plan to hand over to themers to give it some new default looks. The newer version is loosely based on an MVC type of model (http://en.wikipedia.org/wiki/Model-view-controller) which separates the 3 major parts of how an application works. This will require that I do up some "themer docs" so they know what variables are available to their themes at different stages, etc. I havent done that yet but its on the todo list. But for any seasoned themer, they could easily modify the default theme and create their own with no trouble at all.
Is that the same for the
Is that the same for the Drupal module? Is the admin included into Drupal this time? Also what's the best way to upgrade from 2.x? Just replace the old files and upload the new ones?
Thanks Ryan.
- Scott
3.x is not yet a drupal
3.x is not yet a drupal module but it's architecture will make for converting to drupal much easier than before. Its still in beta to test out the actual engine to make sure any major flaws are worked out before I make any modules. The administration panel will be integrated into Drupal this time around as well as the installation method (unzip, enable module, all done type of thing like other drupal modules). There will probably be 3 drupal modules, 5.x, 6.x, and 7.x or possibly 1 if I find a way to make it's info file usable in all 3. I havent actually tried to do something like that but it can probably be done.
Ryan will you reply to this
Ryan will you reply to this post when the Drupal version is ready or at least in beta so I can try it out? I'm pretty excited about the new features and fixes.
Thanks.
- Scott
thanks!
Scottd and Ryan,
A belated thanks for your replies. I obviously didn't catch the template tags being added on. I will correct this and give it a try.
Thanks for your help!
june
Drupal Module
Removing the javascript from the tags is fine if you're using the stand alone verison but if you're using the Drupal module version this is a bit tougher and I've never been able to figure out how to do it. If anyone is using the Drupal module and having the IE issue and knows a solution please let me know. Thanks.