Page submits when searching or locating

libeco - August 19, 2008 - 08:26
Project:Node Map
Version:6.x-1.3
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

When I tried searching for "city, country" the map disappeared from the node (Image) creation page. The page was reloaded and everything was visible except for the map itself, which left a blank area.

Also, is there a possibility for a choice between Yahoo maps and Google maps, I like the last one better.

Thanks!

#1

libeco - August 19, 2008 - 08:28

The same happens when manually inputting the geocode coordinates.

#2

pasada - August 21, 2008 - 02:59

I tested this side by side with IE7, FF2 and Opera 9.51, all running on WinXP. The test involved entering a known-valid address in the location search and clicking the "Search location" button. FF worked as expected. IE7 refreshed the page and the map completely disappeared. Opera also refreshed the page but loaded a grey block where the map should have been and displayed the Map, Sat and Hyb buttons, but no map. At least the geocoding happened because Opera offered a list of locations, unlike IE, which offered nothing. Tested on Drupal 6.3 with both Yahoo and Google API keys active.

#3

spinicrus - September 3, 2008 - 22:10

hi.

did you hit enter, or clicked with the mouse on "search" ?
unfortunately, for now, if you hit enter the page submits, i'll solve this "bug" in the next versions.

10x,

cheers!

#4

Butte - October 1, 2008 - 09:01

Hi, first i would like to say thanks for this great module.

I have exact same problem.

In IE on vista, map shows when creating a page/blog, but as soon i type something in search box, and hit enter or the button, the page reloads and the map is gone.

I installed firefox, and everything is fine.

BUT, even if entered ok with firefox, you can not see the output result/block when you browse the page afterwards with IE.

Do you have any estimate on when a new version is out ?

Again thanks and sorry the poor English. Looking forward to see much more of this module.

#5

Butte - October 3, 2008 - 08:43

"BUT, even if entered ok with firefox, you can not see the output result/block when you browse the page afterwards with IE."

Correction.
Sometimes you can see it with IE and sometimes you cant.
If the map does not show, there is an yellow triangle error in down left corner of IE, with "unknown error", and if you reload the page one or two times, it dissapers and the map shows.

#6

spinicrus - January 23, 2009 - 14:08
Status:active» postponed

hi.
i changed the way maps are loaded, so some bugs mentioned here were fixed. about the hit enter issue, still workin on it.
10x for the support& stay tuned.

#7

xmark99 - February 4, 2009 - 21:57
Title:Map disappears when searching» Page submits when searching or locating
Version:6.x-1.0» 6.x-1.3

Hi and thank you for a great job :)

I'm having the same problem in IE7 but it works fine in Firefox. What seems to happen is that the page immediately submits when either Search location or Locate on map buttons are clicked. An error, Javascript error, pops-up with the following message - Error: Could not get the type property. This command is not supported.

Please let us know where to look or how to fix this issue. You kind support is very much appreciated.

Thank you!

#8

xmark99 - February 4, 2009 - 22:06
Status:postponed» active

I wanted to also mention that this happens in version 1.0 and 1.3

#9

spinicrus - February 6, 2009 - 13:07

hi.
10x for the feedback, it is much appreciated ;)
i'll test it myself, and in the following days, hopefully apply a patch, although it never happened to me.

cheers.

#10

xmark99 - February 8, 2009 - 21:59

Thank you for your kind support again :)

#11

larowlan - February 9, 2009 - 03:43

possible fix?
In the code there are some onclick attributes for the locate buttons
'#attributes' => array('onclick'=>'this.type="button"; nodemap_manual_marker(1);')
IE doesn't like the 'this.type=' line.
Change it to
'#attributes' => array('onclick'=>'nodemap_manual_marker(1);return false;')
and this stops the page being submitted.
You need to do this for the geocode button as well
'#attributes' => array('onclick'=>'nodemap_get_address_geocodes(); return false;')
seems to stop it submitting the page and prevent the js errors.

#12

big67 - February 9, 2009 - 21:03

I confirm this patch is working for me on IE7.0.9...
NodeMap rocks!

#13

spinicrus - February 11, 2009 - 15:37
Status:active» postponed (maintainer needs more info)

@larowlan:

thank you so much for pointing that.
i'll review it, and if it's not possible to change this from form api(maybe there is a switch to not make the button a submit type), i'll apply your patch shortly.
cheers!

#14

larowlan - February 12, 2009 - 03:58

happy to help!
keep up the great work.
i'm still keen to help with the issue regarding the ie7 vml/namespace issue (see http://drupal.org/node/323696)
you can get in touch using my personal contact form http://drupal.org/user/395439/contact or my website www.rowlands-bcs.com/contact

#15

xmark99 - February 14, 2009 - 03:20

Thank you @larowlan for the fix and thank you @spinicrus for an awesome module.
I confirm that with the fix now it works in IE7. No luck though in Google Chrome, but I'm not so worried about that one for now :)
Thanks again.

 
 

Drupal is a registered trademark of Dries Buytaert.