+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13

Thread: replace \

  1. #11
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    1,736
    Blog Entries
    10
    Rep Power
    11

    The problem is that the original string only has a single \ so I don't think the double \\ in the replace is found.

  2. #12
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    1,736
    Blog Entries
    10
    Rep Power
    11

    OK. I think I've found the problem.

    I was registering the clientscript inside a if not ispostback section, so when I uploaded a document it was posting back and the clientscript wasn't registering on postback.

    Even though when I view the source I see a reference to the .js file. I moved it outside the if not ispostback and the error has stopped.

    I had already altered the script to use a double slash (\\) in my code, but am going to change this back to see if it will work without the double slash.

  3. #13
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    1,736
    Blog Entries
    10
    Rep Power
    11

    Yep. That was the problem.

    It works fine with just single slashes. It was registering the clientscript that was the issue.

+ Reply to Thread
Page 2 of 2 FirstFirst 1 2

Tags for this Thread

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

SEO by vBSEO