Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: missing ) after argument list ajax.updater

  1. #11
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Well I hope you found an alternative solution. If not, you could approach this very differently: create a function in the head section of your page and refer to it from these instances, rather than including so much content directly.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  2. The Following User Says Thank You to djr33 For This Useful Post:

    ksquared3 (02-04-2011)

  3. #12
    Join Date
    Dec 2010
    Location
    California
    Posts
    20
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    That is exactly what I did. Now I'm finding that the functions (2) will not execute onclick. I just tried to attach the main files but php is not accepted. Here is the code for the functions which are declared in the <head>. Does anything strike you as odd? Thanks for your attention here!

    [code]<script type="text/javascript">
    var count;
    var imageURL;
    </script>
    <script type="text/javascript">
    function directionBack()
    {
    if (count > 1)
    count = count - 1;
    return count;
    }
    </script>
    <script type="text/javascript">
    function imageToDiv(count)
    {
    imageURL = "<img src=\'images/painting_\' + count + \'.jpg' />";
    document.getElementById("imagediv").innerHTML = imageURL
    return false;
    }
    </script>[code]

  4. #13
    Join Date
    Dec 2010
    Location
    California
    Posts
    20
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Error message: functions "not defined"

  5. #14
    Join Date
    Dec 2010
    Location
    California
    Posts
    20
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    Functions are executing, no errors. I corrected the onBlur code, too. It looks like either count is not being decremented in directionBack() or imageToDiv is not replacing the html. These are the functions as they stand now.
    Code:
    <script type="text/javascript">
    function directionBack()
    {if (count > 1){
    count = count - 1;
    return count;
    }}
    </script>
    <script type="text/javascript">
    function imageToDiv(count) {
        var imageURL = '<img src="images/painting_' + count + '.jpg" />';
        document.getElementById("imagediv").innerHTML = imageURL;
        return true;
    }
    </script>

  6. #15
    Join Date
    Dec 2010
    Location
    California
    Posts
    20
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    This problem has been solved. If anyone wants the code, just ask.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •