413 reputation
1727
bio website
location
age
visits member for 3 years, 8 months
seen Jan 29 '12 at 6:17

I like lacrosse, hence my handle.


Nov
17
accepted Does wp_localize_script Call a Javascript Function or Simply Pass PHP Parameters to It
Nov
17
accepted How do I escape a ']' in a short code?
Nov
17
comment How do I escape a ']' in a short code?
Thank you for you answer. In my question, I forgot to put ']' in a code block so it came out as a ']'. I've edited my question. The HTML entity works for WP, but not for Google Maps. I'll have to use Regex to replace the HTML entities. Thank you very much for the help.
Nov
17
revised How do I escape a ']' in a short code?
added 2 characters in body
Nov
17
asked Does wp_localize_script Call a Javascript Function or Simply Pass PHP Parameters to It
Nov
17
comment Mixing Regular Javascript With jQuery in a Plugin
Thank you very much for the detailed answer.
Nov
17
accepted Mixing Regular Javascript With jQuery in a Plugin
Nov
17
asked How do I escape a ']' in a short code?
Nov
16
asked Javascript Function Called Too Early in PHP Script
Nov
14
asked Mixing Regular Javascript With jQuery in a Plugin
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
Thank you for your help.
Nov
13
accepted How to Debug: My Plugin Interferes With My Theme
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
I took the Google Maps event listener out. Now, I call the function that calculates the map bounds when the button is clicked. I then chained the functions together so that one function calls the others. It's not as efficient as when the event listener called the functions after the map tiles loaded, but it works.
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
Also, I tried commenting out all of the code in csf_map_viewport_bounds(), and uncommenting the event listener: google.maps.event.addListener(csf_dcscore_crime_map, 'tilesloaded', csf_dcscore_crime_map_viewport_bounds); So, I know that the problem is with the eventListener, not with the function.
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
The line reading: google.maps.event.addListener(csf_dcscore_crime_map, 'tilesloaded', csf_dcscore_crime_map_viewport_bounds); isn't ina function. It's simply in the jQuery(document).ready(function() { }); -- not sure if that would make any difference.
Nov
13
comment How to Debug: My Plugin Interferes With My Theme
Hi @Wyck, Thank you for your message. My pal, Miro, suggested that I comment out all of the js, and then uncomment it bit by bit to figure out which line caused the problem. I've traced it to this line in the js: google.maps.event.addListener(csf_map, 'tilesloaded', csf_map_viewport_bounds); . This event listener calls the csf_map_viewport_bounds function after the Google Map tiles have loaded. The function checks the lat long coordinates of the map. I'm not sure why this line is causing problem. It could be the function it calls, but I don't see anything weird. Any suggestions?
Nov
12
asked How to Debug: My Plugin Interferes With My Theme
Nov
12
accepted Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
Oct
10
accepted Fatal error: Call to undefined function wp_create_nonce()
Oct
10
comment Fatal error: Call to undefined function wp_create_nonce()
I was thinking about doing that. I'll go ahead and post a new one. Thank you very much for the help!