thedudem4n

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: IE8 shows no POI list in mashup #11660
    thedudem4n
    Participant

      There was literally an extra DIV tag closing and it broke everything in IE8. all is good!!

      in reply to: IE8 shows no POI list in mashup #11658
      thedudem4n
      Participant

        ahh. Totally forgot about appending functions.php, So I set up something simple but it’s getting an Ajax error any idea why?

        add_action(‘mappress_map_display’, ‘hide_some_maps’);

        function hide_some_maps() {
        ?>

         <script type=”text/javascript”>

            ( function( $ ){

                alert(‘test’);

            } )( jQuery )

            </script>

            <?php

        in reply to: IE8 shows no POI list in mashup #11650
        thedudem4n
        Participant

          There’s also an action that gets called when a map is displayed: mappress_map_display($map).  It gets passed the entire map in ($map).  You might be able to output your script tags there as well.

          How do I access that exactly? (not entirely understanding that bit would love to try it)

          in reply to: IE8 shows no POI list in mashup #11642
          thedudem4n
          Participant

            The reason I put it in map_poi_list was because I was unable to get the script to fire anywhere else, inline in the footer, in external js files, anywhere. once the map list is built I can’t manipulate any of it externally…

             

            <script type=”text/javascript”>

            $( “.mapLinks li” ).each(function(index) {

            $(‘.lazyLoad’).hide();

            if (index >= 20) {

            $(this).hide();

            $(‘.lazyLoad’).show();

            }

            });

            </script>

            I just want to hide the rest of the list since we have like 200 items and then put a button on the bottom to show the rest.

            in reply to: IE8 shows no POI list in mashup #11640
            thedudem4n
            Participant

              Bleh, it’s private. However I found the cause. I have javascript in map_poi_list.php (sorry forgot I appended it). It works on all browsers but IE8.

              however removing the code and leaving the <script> tag still breaks it. Just having <script type=”text/javascript”></script> in there is breaking the IE8 list… any possible solution to this? I can just do feature jquery detection to hide the script from IE, but if the script is removed and it still doesn’t work not sure what to do.

              in reply to: Creating new Marker, Visual Editor doesn't save #11501
              thedudem4n
              Participant

                😀 awesome thanks again for the swift support.

                in reply to: Creating new Marker, Visual Editor doesn't save #11481
                thedudem4n
                Participant

                  Thanks for the update. I have been using the editor and will check back for the updated code!

                  -Kevin

                Viewing 7 posts - 1 through 7 (of 7 total)