• imtrevormrose

    (@imtrevormrose)


    Hey guys. I’ve posted this in stackoverflow and didn’t get much help.
    I’m currently working on a political social networking site for one of my companies clients. What my current task tells me to do is to get a map of north carolina, and make each county outline when you hover / click it. I’ve got that part finished out. My next step is to show a box below the map when a county has been selected that will display election results which will be a custom post type to be populated in the back end. I was thinking that I would just use the javascript toggle function for this?

    How am I going to relate each click to the county name / id for the dynamic content?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Mark Ratledge

    (@songdogtech)

    This has nothing to do with WordPress; stick with Stack Overflow.

    Thread Starter imtrevormrose

    (@imtrevormrose)

    But it does.
    It’s not just isolated to the topics of jquery, php, and javascript. It also will require some help on custom post types. As I’ve read, you can’t use php in javascript, is that true? How am I supposed to pull out the information from the custom post type – election results – into my javascript toggled box? Or should I use ajax for the toggle box? Ajax is server side, right?

    Mark Ratledge

    (@songdogtech)

    It’s not just isolated to the topics of jquery, php, and javascript…

    What you need to do is isolate the errors and problems between all three languages you’re trying to use and understand what’s happening so you can ask better questions. And that’s probably the kind of answer you got at SO.

    you can’t use php in javascript, is that true?

    Once again, not WordPress.

    Ajax is server side, right?

    Once again, not WordPress.

    How am I supposed to pull out the information from the custom post type – election results – into my javascript toggled box?

    Yes, WordPress. But how you implement that depends what you do with ajax.

    Thread Starter imtrevormrose

    (@imtrevormrose)

    It’s a question on “how to achieve this best while working with in wordpress” – no the questions aren’t directly related to wordpress, but they are still wordpress related. I’m trying to achieve the functionality while working within the wordpress platform. If you can’t answer my questions – kindly back of from my topic? If you can’t answer – why reply? I’m not spamming the wordpress support forums. I’m asking a question in the support forums.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    songdogtech did offer help. If you’re unsatisfied with the level of support provided by these forums, consider hiring someone at https://jobs.wordpress.net .

    Thread Starter imtrevormrose

    (@imtrevormrose)

    Ajax is server side, right? So, I could add a mix of php within the ajax response, correct? I were to do this, then I could pull information our of a custom post type without reloading the page?

    No, he didn’t.

    you can’t use php in javascript, is that true?

    Once again, not WordPress.

    Ajax is server side, right?

    Once again, not WordPress.

    Tell me that a question isn’t wordpress doesn’t help me at all. My questions all have to do with wordpress development.

    Mark Ratledge

    (@songdogtech)

    If you can’t answer my questions – kindly back of from my topic? If you can’t answer – why reply?

    For now, your questions are far too vague to answer, and that’s the answer you need.

    Try Stack Overflow, or if you can’t do the work yourself, consider looking for a reputable person to work for you on jobs.wordpress.net or freelancing sites such as Elance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘JQuery Maphighlight Javascript Toggle & Dynamic Content?’ is closed to new replies.