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

I like lacrosse, hence my handle.


Sep
15
comment How Can I Pass the Shortcode's $atts Variable to the Plugin's Javascript Function
@Toby, Thank you for the suggestion Toby. I added some more info to my question. How do I pass the $atts[latitude] in lax_google_map_maker() to lax_google_map_init() in order to use it as a param for the javascript? Your suggestion works if I hard code the lat and long in php. I just need to figure out how to let the other function use the $atts values instead. Thank you.
Sep
15
revised How Can I Pass the Shortcode's $atts Variable to the Plugin's Javascript Function
additional info
Sep
15
comment How Can I Pass the Shortcode's $atts Variable to the Plugin's Javascript Function
Hi Maciej Kus, Thnak you very much for your solution. I didn't know about the -data prefix in HTML5. I learned something new. I made my example simple, but eventually, I would like to put lots of markers on the map, so I don't think that that marking up the div will work in my case. If you have other idea, I'd love to hear them. Thank you.
Sep
15
asked How Can I Pass the Shortcode's $atts Variable to the Plugin's Javascript Function
Sep
15
comment Problem Building a Simple Google Maps Plugin
@Brian Fegter, Thank you for your help.
Sep
15
accepted Problem Building a Simple Google Maps Plugin
Sep
15
comment Problem Building a Simple Google Maps Plugin
Hi @patnz, Thanks so much for your kind help. It works! I was able to move the add_shortcode line outside of the lax_google_init function. The problem might have been the css as you suggested or the jquery dependency. In any event, I'm stoked. Thank you!
Sep
15
comment Problem Building a Simple Google Maps Plugin
Hi @Brian Fegter, Thnak you for your comment. I'll combine the wp_enqueue_script calls as patnz suggested. I see the scripts in the browser view source and when I click on the script src they open. If you have other ideas, that I can try, I'd love to hear them. Thank you.
Sep
15
comment Problem Building a Simple Google Maps Plugin
Hi @patnz, thank you very much for your message. When I view the source code in the browser, I see the scripts and my map_canvas div. I'm using the Superb theme, which has a google maps shortcode. I thought that there might be a conflict, so I switched to the default theme, but no luck. I checked for JS errors in Firebug. There was one warning, but no errors. In Firebug, I see 200 as the result, except for one 204 for csi.gstatic/csi?v=2... I'm not sure what that is. Both themes have wp_head(). If you have other ideas, I'd love to hear them. Thank you!
Sep
14
asked Problem Building a Simple Google Maps Plugin
Sep
7
comment Do I Need to Prefix Variables Inside Functions?
Thank you for the detailed answer One Trick Pony. Awesome!
Sep
7
accepted Do I Need to Prefix Variables Inside Functions?
Sep
7
asked Do I Need to Prefix Variables Inside Functions?
Sep
3
asked wp_enqueue_style in Plugin
Sep
2
accepted Enqueuing jQuery in plug-ins
Sep
2
revised Enqueuing jQuery in plug-ins
added 583 characters in body
Sep
2
comment Enqueuing jQuery in plug-ins
Hi EAMann, Thank you very much for your detailed message. Sorry, I'm still struggling a bit. I'll add some more info to my question in a sec.
Sep
2
asked Enqueuing jQuery in plug-ins
Sep
1
asked MySQL Rank & $wpdb
Aug
30
comment Default Attributes in Shortcode Not Working
Hi mfields, Thanks so much for the help. That worked great.