[Seaside] JQuery Dialog -Extensions with GMDraggableMarkers problem

dtrussardi at tiscali.it dtrussardi at tiscali.it
Wed Jun 6 08:31:08 UTC 2012


Ciao Folks,

	i'm interested to understanding  how to set some things relative to the questions in my last mail.

	
	Maybe my questions out of context of this list ( i apologize for this ) but i wonder if others have encountered and solved- set these problems.	

> Ciao,
> 
> after one day of frustration for understand what generate the issue i test the web page with Firefox browser.
> 
> And as magic all work fine.
> 
> My test did with Safari 5.1.3 and i don't  know because some GEvent aren't are not right  managed.

Today i test with last Safari		Versione 5.1.7 (7534.57.2) .

	The problem remains.

	What can I do at this point to solve the problem with Safari?

> 
> 	The dragend event aren't manage when move the marker into the maps canvas.
> 	
> 	After doble click on the marker the map canvas lose the control on the marker itself.
> 
> 	If anyone have idea about the Safari ... ? 
> 
> Some consideration about the browser to test the code ????   Safari - Firefox or  .......

Can anyone advise me on how to set the test for functional testing on different browsers ?

A few thoughts about it?

> 
> Now  with  Firefox the ajax request relative to the marker moving are right generating.
> 
> Sometime i close the Dialog relative to the google maps  before al the ajax request are managed.
> 
> In this case the browser open a dialog with the error:			readyState == 4 but xhr.status == 0
> 
> How i can manage this error? 
> 
> 	1) lose all the ajax request because i click the cancel button.
> 
> 	2) attend the the ajax request termination before close the dialog when click the save button.

Any idea about how manage it is welcome.


> Thank Paul for your  indication.
> 

	Thank,  

		Dario

> 	
> 
> 
>> Ciao,
>> 
>>> Ahh. With that information I might try this:
>>> https://forum.jquery.com/topic/modal-dialog-and-google-maps
>>> 
>>> My prior suggestion should be reverted.
>> I found this:
>> 
>> 	" i solved this by setting a high zIndex on the google maps div.. works perfectly now "
>> 
>> I setup the rendering of the map with:
>> 
>> 	 renderContentOn: aCanvas
>> 
>> 		aCanvas div
>> 			id: mapID;
>> 			style:	'z-index: 2000';
>> 			with: [].
>> 	
>> 		aCanvas document addLoadScript: 'if (GBrowserIsCompatible()) { ' , self loadScript , '}'.
>> 
>> 
>> but i don't solve the problem.
>> 
>> 
>> 
>> 
>> The  	loadScript 	method   is:
>> 
>> 	^'
>> 	var map = new GMap2(document.getElementById("' , self mapID , '"));
>> 	var center = new GLatLng' , self gemstoneLatLong , ';
>> 	map.setCenter(center, 13);
>> 	var marker = new GMarker(center, {draggable: true});
>> 	GEvent.addListener(marker, "dragstart", function() { map.closeInfoWindow(); });
>> 	GEvent.addListener(marker, "dragend", function() { marker.openInfoWindowHtml("Just bouncing along..."); });
>> 	map.addOverlay(marker);
>> 	'.
>> 
>> 
>> 
>> A) 	Now the anomalous behavior is relative to the GEvent  dragend   when i move the marker into the map div.
>> 	
>> 	*** GEvent.addListener(marker, "dragend", function() { marker.openInfoWindowHtml("Just bouncing along..."); }); ***
>> 
>> 	In this case the event is not  "manage" and the marker.openInfoWindowHtml("Just bouncing along..."); is not open
>> 
>> 	A1) 	On contrary  when i move the marker outside the map canvas and release the mouse   the infoWindow is open.
>> 
>> 
>> B) The strange is that the GEvent  dragstart is always right manage
>> 
>> 		*** GEvent.addListener(marker, "dragstart", function() { map.closeInfoWindow(); }); ***
>> 
>> 	When begin the drag of the marker if InfoWindow is open it is close.
>> 
>> 
>> I don't understand because some GEvent  is right manage and other not 	when open maps in modals dialog with JQDialog.
>> 
>> Thanks for any considerations,
>> 
>> 	Dario
>> 
>> 
>> 
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120606/a1266a73/attachment.htm


More information about the seaside mailing list