393 reputation
1525
bio website
location
age
visits member for 3 years, 4 months
seen Jan 29 '12 at 6:17

I like lacrosse, hence my handle.


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!
Oct
10
comment Fatal error: Call to undefined function wp_create_nonce()
Hi, @Christopher Davis, Thank you very much for your message. You're right, I didn't have wp_localize_script inside a function. I never would have thought of your solution. I plopped it in a function and now I don't get the fatal error anymore. Unfortunately, I must have a second bug. I don't think that the nonce is being posted. Does this bit look correct: jQuery.post(the_ajax_script.ajaxurl, {my_nonce : the_ajax_script.my_nonce}, jQuery("#theForm").serialize()... Also, I tried putting an echo in php and alert on the js. It looks like the 2 numbers are different. Is this normal? Thank you.
Oct
8
asked Fatal error: Call to undefined function wp_create_nonce()
Oct
6
comment Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
Thank you for the help. I changed the file permissions and switched it to an absolute path.
Oct
5
asked Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin