SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Ribbit... Eric.Coleman's Avatar
    Join Date
    Jun 2001
    Location
    In your basement
    Posts
    1,268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Errors Errors Errors? Where'd they come from..

    I don't use JS much at all, but I had a sweet idea for Editize and my CMS, so I had it working for a few days, and now it's broken..

    YOu can see a screen shot of the error below:

    http://68.69.79.210:8888/whatthehell.jpg
    Eric Coleman
    We're consentratin' on fallin' apart
    We were contenders, now throwin' the fight
    I just wanna believe, I just wanna believe in us

  2. #2
    Ribbit... Eric.Coleman's Avatar
    Join Date
    Jun 2001
    Location
    In your basement
    Posts
    1,268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I know what's happening..

    JS isn't seeing a closing " on the end of the end, and there's a carriage return, so it's spitting out an error..

    How can I avoid this?
    Eric Coleman
    We're consentratin' on fallin' apart
    We were contenders, now throwin' the fight
    I just wanna believe, I just wanna believe in us

  3. #3
    Ribbit... Eric.Coleman's Avatar
    Join Date
    Jun 2001
    Location
    In your basement
    Posts
    1,268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I figured it out using this:

    Code:
    <html>
    <head>
    
    </head>
    
    <body>
    
    <form name="tmp">
    <input type="hidden" name="thisBio" value="{BIO}" />
    </form>
    
    <script language="Javascript">
    
    opener.document.{FIELD}.bio.value = document.tmp.thisBio.value;
    opener.document.{FIELD}.picture.value = "{PICTURE}";
    opener.document.focus();
    window.close();
    
    </script>
    
    </body>
    </html>
    I found out that if I grab the actual value from a form, it should work fine, and it did
    Eric Coleman
    We're consentratin' on fallin' apart
    We were contenders, now throwin' the fight
    I just wanna believe, I just wanna believe in us

  4. #4
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great job Zaire. thanks for helping Zaire with his problem.

    Are you using patTemplate?
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  5. #5
    Ribbit... Eric.Coleman's Avatar
    Join Date
    Jun 2001
    Location
    In your basement
    Posts
    1,268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope..

    I was using my own template system, but I ditched it for Smarty..
    Eric Coleman
    We're consentratin' on fallin' apart
    We were contenders, now throwin' the fight
    I just wanna believe, I just wanna believe in us


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
  •