ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

inserting Ajax php into ee page

September 01, 2008 1:55pm

Subscribe [2]
  • #1 / Sep 01, 2008 1:55pm

    mountain monkey

    23 posts

    I can get an Ajax php script to work on this page. However, when I paste the code into an ee page, a blank page is displayed.

    I’m not familar with using php, but would love to be able to use this script on an ee page, as well as adding some other ee features such as who’s online. If someone could let me know if this is possible, and perhaps point me in the right direction, that would be great!

    Thanks,
    Linda

  • #2 / Sep 01, 2008 2:10pm

    Sue Crocker

    26054 posts

    Linda, it may very well be a pathing issue for your .js files.

    [removed][removed]
    [removed][removed]
    [removed]var numWords = 259;[removed]
    [removed][removed]

    See how the paths to the .js files doesn’t have a path?

    What I do is create a jscss folder in the root directory and place all my .js and .css files there.

    So the code would look like this instead:

    [removed][removed]
    [removed][removed]
    [removed]var numWords = 259;[removed]
    [removed][removed]

    That may not be the issue, but it’s the first place I’d look.

  • #3 / Sep 01, 2008 9:56pm

    mountain monkey

    23 posts

    Sue, sorry but I don’t see the difference between the two examples above. Am I missing something??? Could you direct me to the line of code you’re referring to?

    Thanks,
    Linda

  • #4 / Sep 01, 2008 10:14pm

    Sue Crocker

    26054 posts

    Oops..

    <5script src="dom-drag.js" language="java5script"></5script>
    <5script src="cpaint.inc.js" language="java5script"></5script>
    <5script>var numWords = 259;</5script>
    <5script src="magnetic-ajax-compressed.js" language="java5script"></5script>
    <5script src="/jscss/om-drag.js" language="java5script"></5script>
    <5script src="/jscss/cpaint.inc.js" language="java5script"></5script>
    <5script>var numWords = 259;</5script>
    <5script src="/jscss/magnetic-ajax-compressed.js" language="java5script"></5script>

    replace the <5s with <s

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases