User Profile

Collapse

Profile Sidebar

Collapse
rayliu
rayliu
Last Activity: Aug 1 '09, 05:22 AM
Joined: Jul 29 '09
Location: Singapore
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rayliu
    replied to InnerHTML vs Ajax
    Thanks for your help!
    I did read something about putting this into the address bar

    javascript:'<xm p>' + window.document .body.outerHTML + '</xmp>'

    that will show the javascript generated source as well..

    I have solved the bug, so far I realised that javascript that references to the <div> does work, even though it can't see it.. but only after I've used prototype's element update...
    See more | Go to post

    Leave a comment:


  • rayliu
    replied to InnerHTML vs Ajax
    Hi there, thanks for your prompt reply!
    hmm actually at the moment I'm using prototype instead of jquery.. would that be a problem in resolving this issue?
    See more | Go to post

    Leave a comment:


  • rayliu
    started a topic InnerHTML vs Ajax

    InnerHTML vs Ajax

    Recently, I have been attempting to pick up AJAX and discovered a slight problem with innerHTML..

    I have

    Code:
    <div id='container'></div>
    then ..

    Code:
    $('container').innerHTML=req.responseText;
    The content shows up but when I view source, the <div id='container'> </div> tag shows up as EMPTY, does not input the new content, although the browser...
    See more | Go to post
    Last edited by gits; Jul 29 '09, 08:55 AM. Reason: added code tags
No activity results to display
Show More
Working...