• erusch

    (@erusch)


    I’m an affiliate for a company that provides data feeds for your site. I’d like to be able to use them on WP pages. Is this even possible? I’ve copied a sample of the code below.

    <!–Begin Dynamic PSC Code–>
    <SCRIPT LANGUAGE=”Javascript” SRC=”https://homevisions.pscsrv.net/serve.pl?mh=8&uid=18&usedesc=&imagesize=1&useprice=&Keywords=&Name=&Catone=Bath: Bath Decor&Cattwo=&colnum=2&bordercolor=e0e0e0&tablewidth=300&fontface=Arial&fontsize=2&vr=1&nh=”></SCRIPT>
    <!–End Dynamic PSC Code–>
    <!–Begin Product Name HTML
    Dolphins at Play Bath Ensemble, Ocean Floor Wall Collection, Outhouse Scenic Wall Collection, Mini Lighthouse Wall Collection, Tissue Butler, ?Bathing Beauties? Vintage Prints, French Maid Tissue Holder, Antique Brown Powder Room Plaque,
    End Product Name HTML–>

Viewing 5 replies - 1 through 5 (of 5 total)
  • red-star

    (@red-star)

    Yes they do

    Thread Starter erusch

    (@erusch)

    That’s encouraging. Any idea’s why, when I post the above code into the HTML window, the code actually disappears when I save it.

    shanepike

    (@shanepike)

    To use JavaScript in your pages, you have to move the JavaScript into a separate file and link it from the page like this:

    <script src="/yourfile.js" type="text/javascript"> </script>

    red-star

    (@red-star)

    vkaryl

    (@vkaryl)

    You don’t actually have to have external files. But if you’re going to use inline js, you’re going to have to NOT use the blinkin’ wysiwyg thingie. And in fact, you really should just use a plain vanilla text editor (like notepad2 from https://flos-freeware.ch/) to edit the file you want it in.

    AND if you want your blog to validate, you’ll have to enclose the actual js inside CDATA tags.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Do dynamic java script feeds work in WP?’ is closed to new replies.