SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Location
    Chennai
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Last week I faced one issue in ajax related

    Hi,

    Our team developing one new web application. Inside fully ajax implemented.

    i click one link , it makes ajax call ,then response is received. this response contain javascript script functions. then response is eval and after insert to the display div. its working in chrome firefox safari browsers. but iE not working properly.

    IE - only remove the script tags and not html code from the response. (some links working properly the same structure of code).

    example response structure

    <html>
    <head>
    <script>
    10 javascript functions i wrote
    <script>
    </head>
    <body onload="initmethod()">
    ----------html code here-----
    <script>
    5 javascript functions i wrote
    <script>
    </body>
    </html>

    give the solution

    MuthuRaja

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by muthuraja View Post
    give the solution
    How can we help you to work out what the trouble is?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Location
    Chennai
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    How can we help you to work out what the trouble is?
    Ajax response contains script tags. IE browsers remove the script tags from Ajax response

    Our Ajax response structure

    <html>
    <head>
    <script>
    10 javascript functions i wrote
    <script>
    </head>
    <body onload="initmethod()">
    ----------html code here-----
    <script>
    5 javascript functions i wrote
    <script>
    </body>
    </html>

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by muthuraja View Post
    Ajax response contains script tags. IE browsers remove the script tags from Ajax response
    What is the javascript code that causes IE to remove the script tags from the Ajax response?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by muthuraja View Post
    Ajax response contains script tags. IE browsers remove the script tags from Ajax response
    Have you taken a look at Internet Explorer's documentation for innerHTML?
    http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  6. #6
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Location
    Chennai
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    Have you taken a look at Internet Explorer's documentation for innerHTML?
    innerHTML Property (A, ABBR, ACRONYM, ...)

    Yes I'ts working well . thanks a lot paul_wilkins


    MuthuRaja S


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
  •