[Cartoweb-users] Cartoweb 3.4 and Safari

Oliver Christen oliver.christen at camptocamp.com
Fri Nov 21 02:43:10 EST 2008

replace the submit button by a common button and some javacript

the reset session is simply a "reset_session" parameter passed to the server via the posted form.

in the default template, you have a hidden input named "fake_reset".
on clic on the button, have the javascript set the name and value of that input to "reset_session" and "1" and call for doSubmit();

  ----- Original Message ----- 
  From: Kurt Menke 
  To: cartoweb-users at lists.maptools.org 
  Sent: Thursday, November 06, 2008 1:50 AM
  Subject: [Cartoweb-users] Cartoweb 3.4 and Safari


  This summer I received some help from the listserv with some Safari work a rounds.  I'm running Cartoweb 3.4 and I've fixed it so that the Zoom to Full Extent and Refresh buttons work in Safari however, I can't get the Reset Session button to work in Safari.


  In my cartoclient.tpl I changed"


  <input type="submit" name="reset_session" value="{t}Reset Session{/t}" class="form_button" onclick="javascript:document.carto_form.posted.value=0;FormItemSelected();"/>




  <input type="submit" name="reset_session" value="{t}Reset Session{/t}" class="form_button" onclick="javascript:document.carto_form.posted.value=0;FormItemSelected();reset_session_trigger();"/>


  And add the following javascript to the dhtmlInit.js


  function reset_session_trigger() {

    $('fake_reset').value = 1;

    $('fake_reset').name = 'reset_session';


  This is essentially how I fixed the Zoom to Full Extent and Refresh buttons but it doesn't work for Reset Session.  

  Any thoughts?






  Kurt Menke, GISP

  Bird's Eye View 


  Cell: 505-362-1776

  Work: 505-265-0243




  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20081121/0a86d68c/attachment.html

More information about the Cartoweb-users mailing list