Desperately Need Help in Reconciling HTML and JQuery Pages

Posted on 2011-05-11
Last Modified: 2012-05-11
I feel like a six-year-old kid locked in a nuclear power plant, thinking: "Hmmm, I wonder what will happen if I push that button?"

This terribly depressing tale begins with my mini sales site that was built by a contractor ( For reasons not germane to this conversation, I need to go in to most of the sales page and change a number of quantities for accuracy.

While doing that, I discovered that on many of the pages, the very bottom link on the sales page is not displaying correctly. The link should look like attachment #2, but several of them resemble attachment #1 which is a link.

Deciding to make another entry in the "when will I ever learn?" Column, I thought I could make the corrections myself in spite of the fact that some JQuery scripts were used which I do not understand. I thought I could change everything to simple HTML and accomplish up that way.

Obviously, that didn't work out too well since after 3 hours, I have finally thrown in the towel and and throwing myself on the altar of Expert Exchange.

I'm including source code as well as the above-mentioned attachments with the hope that I am doing something that is very simple to correct, although the knowledge to do so is way beyond my grasp.

As always, your help is hugely appreciated.
Question by:photoman11
    LVL 38

    Accepted Solution

    You have to drill down through the markup, but there's a small piece of javascript running that prints that red text to the page. On a working page like "Couples" the script looks like this:

    <script>document.write('<a href="'+window.location.hostname+window.location.pathname+'" class="buttonSD">Click Here to Get the Limited<br />Promotional Pricing of Only $20</a>');</script>

    On a broken page like "Babies" it looks like this:

    <script>document.write('&lt;a href=";ppc=add&amp;dlgreturn='+window.location.hostname+window.location.pathname+'" _wpro_href=";ppc=add&amp;dlgreturn='+window.location.hostname+window.location.pathname+'" class="buttonSD"&gt;Click Here to Get the Limited&lt;br /&gt;Promotional Pricing of Only </script>0');

    Note the characters that I put in bold that are outside the <script> tag.

    Just swap in the working script in that spot in the markup on the broken pages.

    Author Comment


    I really appreciate your help because this is all pretty much foreign to me. I'm attaching a copy of the HTML page I used where I thought I correctly substituted what you suggested, because it is still not displaying correctly.

    All of the pages except Babies and Children are displaying as they should. Please tell me what I am missing because the pages are live. Again, thank you very much for all your help.

    Author Comment


    Thanks for your help. I finally figured it out.
    LVL 38

    Expert Comment

    by:Tom Beck
    So sorry I did not respond to your 5/12 post. I somehow missed it, deleted it, or never received it. Thanks for the points.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now