WordPress.org

Ready to get started?Download WordPress

Forums

[closed] JQuery Maphighlight + Javascript Toggle & Dynamic Content? (8 posts)

  1. imtrevormrose
    Member
    Posted 1 year ago #

    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?

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

  3. imtrevormrose
    Member
    Posted 1 year ago #

    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?

  4. 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.

  5. imtrevormrose
    Member
    Posted 1 year ago #

    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.

  6. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  7. imtrevormrose
    Member
    Posted 1 year ago #

    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.

  8. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic