www.webdeveloper.com
Results 1 to 3 of 3

Thread: problem with run javascript in ajax page

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Question problem with run javascript in ajax page

    hi all
    my problem is this :
    i have a button in my project that the users can click on it and edit thair post and i make it with ajax and i have div in my project look like this :
    Code:
    <div id="ajax"> </div>
    when user click edit button with ajax i put the my element and my data in this div such as some text filed and one textarea that the user post details (such as title question the question and etc ...) fill this filed and i use editor (that write and made by js) for my textarea but when ajax div appeare in my page the editor doesnt load and not appear why ???
    i think that we cant use javascript in ajax page ? yes? if it's true what should i do?

    more information :
    in page 1 i have this div :
    Code:
    <div id="ajax"> </div>
    when user click edit bottun wih ajax i get data from DB and put them in ajax page that include some html tag look like textarea and i put the text in textarea and i put editor for this textarea that is in ajax page but it doesnt appear when ajax div appear !!!!!!

    sorry if i cant write well.

  2. #2
    Join Date
    Feb 2011
    Posts
    2
    no body cant help me ?? plz

  3. #3
    Join Date
    Jan 2008
    Location
    Florida
    Posts
    1,227
    If you are using a WYSIWYG text editor on your textarea like fckeditor or others, then the field is most like being created dynamically so technically, it does not exist in the DOM. You will need to check the manual for your editor or search it specifically for adding dynamic content to it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles