Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: AjaxTabContent Help!

  1. #1
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question AjaxTabContent Help!

    1) Script Title: AjaxTabs Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...axtabscontent/

    3) Describe problem: I downloaded the demo and tried to run it but always get this error:

    Line: 41
    Char: 1
    Error: Access is denied.
    Code: 0
    URL: http://localhost:8080/ajaxTabs/demo.htm

    What does that mean? i'm runninng IE 7.0.5730.11

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's odd, I don't get that error but, the script doesn't work for me locally in IE 7. It just switches to the external page. However, what you are experiencing may be due to the same cause described below. Did you change anything?

    Unless you are trying to import content from somewhere else than the same local machine where you are using the script or your imported content is invalid, that is due to improvements in IE 7 and, will happen locally. If you have FF or Opera, they will not do that. Once the page is live, IE 7 will be just fine.

    If you do not have either of those two browsers to use in testing locally, you should but, that is another story. You can temporarily disable the error by editing ajaxtabs.js like so (near the top):

    Code:
    function ajaxpage(url, containerid, targetobj){
    var page_request = false
    /*if (window.XMLHttpRequest) // if Mozilla, Safari etc
    page_request = new XMLHttpRequest()
    else*/ if (window.ActiveXObject){ // if IE
    try {
    page_request = new ActiveXObject("Msxml2.XMLHTTP")
    } 
    catch (e){
    try{
    page_request = new Act
    Don't forget to return it to its original state for live use.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi there, thanks for your response.

    It has the same behavior when off-line and online. No, i didn't change anything... just unzip the demo package and run it as is.

    I really like the script but this is so strange that i cannot use it.

    I tried your suggestion and still got the same error... it kept saying "Access is denied" on line 41. Which line 41 is that? from the ajaxtabs.js ??

    Any other help would be awesome!

    Thanks in advance.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'd need a link to your live copy. I think it might be your browser's or computer's configuration or something that was done to the files somehow on your end. Does the demo page on DD work OK for you?
    Last edited by jscheuer1; 02-11-2007 at 05:05 AM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Strange!

    Okay, I put the demo up to a hosting site that i have and it works perfectly fine viewing with the exact browser so I don't think the browser is the problem.

    What i have run on my local machine was Tomcat 5 on 'localhost:8080' port... what is the problem with Tomcat and this demo?

    I'm pulling my hair out.

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I don't know this Tomcat 5 on 'localhost:8080' port . . . but, it sounds like a server simulation. I have one of those and it really messes with Ajax scripts. When testing locally, why not simply test it locally? Do you really need to use Tomcat 5 on 'localhost:8080' port . . . ?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I kinda do. I'm working on a Java Web Application and Tomcat was chosen as an application/web server and I wanted to use this script for the page's tab menu... and so far, i couldn't.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, the error that you are getting is the error I get if I put http://www.google.com in the href attributes for one of the links. That means that Ajax thinks Tomcat 5 is external to itself unless you are truly testing the page locally while at the same time trying to access content on Tomcat 5 from it. If this is not the case, I'd check in a Tomcat 5 forum.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I found the issue.

    It's the 8080 port. This script think it's external. If i configure my Tomcat to port 80... and run the demo without the port... it works PERFECT!

    Thanks for all your help!

  10. #10
    Join Date
    Feb 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default One more question?

    Hi, since you're an expert... can i ask you another question?

    Now that I have the tab panels working... to load an external HTML page... is it possible for me on that HTML page to make a call to the script (and not from the tabbed menu) and reload another page on the same panel?

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
  •