Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Dynamic Ajax Content Chars being replaced

  1. #21
    Join Date
    Feb 2007
    Location
    Cyprus
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    So thanks for help. I have make all the changes , but this will replace only one letter. And I become big problem, after the change my Ajax Tab didn't work in IE.

  2. #22
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, I was going on the assumption that:

    Quote Originally Posted by petros
    Code:
    document.getElementById(containerid).innerHTML=page_request.responseText.replace(/á/g, 'á');
    At least worked for you for the a acute character. That is what you indicated in your first post, right?

    Quote Originally Posted by petros View Post
    I have problem with two characters:
    ó,á
    I have fixed one , but I cannot use the replace tag for two characters. Anybody can me help?

    I have try this:
    function loadpage(page_request, containerid){
    if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
    document.getElementById(containerid).innerHTML=page_request.responseText.replace(/á/g, 'á');
    }

    but I need insert this too: (/ó/g, 'ó');

    However, here in local testing just now, not even that worked. Also, if you are using IE 7 locally to test, there are separate issues with that not working. I would suggest just using the entities to begin with instead of trying to replace them during the loading of the external content.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #23
    Join Date
    Feb 2007
    Location
    Cyprus
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I never use IE7 , all testings I make for IE 6. Before I have tested your tip, only in Firefox. After beginning the testing with IE, the Ajax didn't work. Thanks for help , but this is not a way.

  4. #24
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Did you try the information in and linked to this post?

    http://www.dynamicdrive.com/forums/s...8&postcount=14
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •