Results 1 to 3 of 3

Thread: Anylink Dropdown menu on Dynamic Ajax Content

  1. #1
    Join Date
    Oct 2008
    Location
    Iloilo, Philippines
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anylink Dropdown menu on Dynamic Ajax Content

    1) Script Title:
    AnyLink Dropdown menu
    Dynamic Ajax Content

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...pmenuindex.htm
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:

    Is it possible to run AnyLink Dropdown Menu on Dynamic Ajax Content? I have tried encoding

    var menu1=new Array()
    menu1[0]='<a href="javascript:ajaxpage('test.htm', 'contentarea');">LOAD CONTENT</a>'
    menu1[1]='<a href="javascript:ajaxpage('test.htm', 'contentarea');">LOAD CONTENT</a>'
    menu1[2]='<a href="javascript:ajaxpage('test.htm', 'contentarea');">LOAD CONTENT</a>'
    menu1[3]='<a href="javascript:ajaxpage('test.htm', 'contentarea');">LOAD CONTENT</a>'

    Is there any other way to call the content?

    Thank you in advance.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    There's no easy way unfortunately. This isn't an issue with Ajax Content script, but rather, just a pesky limitation of Ajax. Pages fetched via Ajax should they contain run time JavaScripts within it won't run correctly when brought over this way. Ajax basically copies the contents of the external file similar to copying plain text and just dumps it onto the main page. Run Time JavaScript can't just be copied over dynamically and expected to run properly.

    There are a few workarounds to this limitation in general, but frankly it's beyond the scope of the type of issues I'd like to support, as it's messy and needs to be custom tailored based on the script in question and your page as well.
    Last edited by ddadmin; 10-21-2008 at 08:40 AM.
    DD Admin

  3. #3
    Join Date
    Oct 2008
    Location
    Iloilo, Philippines
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ddadmin View Post
    There's no easy way unfortunately. This isn't an issue with Ajax Congtent script, but rather, just a pesky limitation of Ajax. Pages fetched via Ajax should they contain run time JavaScripts within it won't run correctly when brought over this way. Ajax basically copies the contents of the external file similar to copying plain text and just dumps it onto the main page. Run Time JavaScript can't just be copied over dynamically and expected to run properly.

    There are a few workarounds to this limitation in general, but frankly it's beyond the scope of the type of issues I'd like to support, as it's messy and needs to be custom tailored based on the script in question and your page as well.
    It's quite heartbreaking to know that. Thank you, anyway. May I know if there is any alternative drop down menu that I can actually run on Ajax (fingers crossed)? Thank you again in advance.

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
  •