DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: How to execute Ajax that was loaded from Ajax?

  1. #1
    Join Date
    Jul 2007
    Posts
    3

    How to execute Ajax that was loaded from Ajax?

    Rookie here, trying to figure this out:

    Ultimately what I need to know is how to include AjaxB's script.

    I call the news from AjaxA. Within the called news is AjaxB. However, AjaxB won't operate because it isn't reading the head script due to being loaded (from AjaxA). They're both on the same page, and both individually work, but after AjaxA calls AjaxB I can't get it to work.

    Even if you could point me in the right direction on how to find the answer, it would be extremely helpful as I'm unsure what to even search Google for.

    Thank you for your time.

  2. #2
    Join Date
    Jul 2007
    Posts
    3
    Here are the examples:

    AjaxA = Site Navigation

    AjaxB = WordPress News

    Each work on their own, but I can't get B to work after its called, how do I work around the <head> script tags?

  3. #3
    Join Date
    Jul 2007
    Posts
    3
    This is essentially the script, AjaxA calls AjaxB, but AjaxB isn't working without it's pageload.js script. What can I do?

    AjaxA:
    <html>
    <head>
    <script type="text/javascript" src="pageload.js"></script>
    </head>
    <body>
    <a href="javascript:ajaxpage('updates/', 'content');"><img src="images/titlenews.jpg" alt="News" name="news" width="45" height="8" border="0" id="news" /></a>
    <div id="#content"></div>
    </body>
    </html>
    AjaxB:
    <head>
    <script type="text/javascript" src="pageload.js"></script>
    </head>
    <body>
    <a href="javascript:ajaxpage('updates/newspost.html', 'newscontent');">News Post</a>
    <div id="#newscontent"></div>
    </body>
    </html>

Similar Threads

  1. Replies: 0
    Last Post: 11-13-2006, 06:57 PM
  2. New forum + some AJAX links
    By Lori in forum AJAX
    Replies: 0
    Last Post: 02-09-2006, 02:26 PM
  3. How to execute a method of the class loaded
    By naveenkumarg1 in forum Java
    Replies: 1
    Last Post: 11-18-2005, 08:13 PM
  4. .NET and DLL ****
    By Willy Van den Driessche in forum .NET
    Replies: 2
    Last Post: 10-28-2001, 06:25 PM

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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center