Results 1 to 4 of 4

Thread: Possible Stack Overflow?

  1. #1
    Join Date
    Mar 2009
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Possible Stack Overflow?

    I can't figure out why this page is acting the way it is
    http://www.wildearthride.com/hexCode/hope.html

    It basically just keeps loading and loading and loading. It won't read my styles at all.

    Any feedback would be appreciated.

    Code:
    <script language="javascript">
    $.get("form_data4.txt", function(data){
      var queryString = data;
      var queryArray = queryString.split('&');
      
       if (!queryArray[queryArray.length - 1])
        	queryArray.pop();
     
      for (var index = 0; index < queryArray.length; ++index) {
        		var item = queryArray[index].split('=');
       			eval('var ' + item[0] + '="' + item[1] + '"');
    			}
    
      
    //  alert(queryArray[1]);
      
    document.write("<div id='test'>");
    document.write(numPhotos);
    document.write("</div>");
    
    
    
    
    
    });
    </script>

  2. #2
    Join Date
    Mar 2009
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Solved. It was an issue with document.write()

    I'm using .innerHTML instead.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,374
    Thanks
    77
    Thanked 3,421 Times in 3,382 Posts
    Blog Entries
    12

    Default

    Your page fails in Opera and IE because of this (highlighted):

    Code:
     . . . oCaptionOne.innerHTML = photoCaption0;
    
    var photoSpeciesOne = document.getElementById('photoSpecies1');
    if (photoSpeciesOne)
    photoSpeciesOne.innerHTML = photoSpecies0;
    
    -->
    
    
    });
    </script>
    <div class="test">
    <div id="photoFile1"></div>
    <div id="photoCaptionID1"></di . . .
    It should be removed.
    - John
    ________________________

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

  4. #4
    Join Date
    Mar 2009
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. This is all very rough and in development. I also don't have to worry about this going in multiple browsers because it's specifically going to run off a local drive running FF.

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
  •