Results 1 to 10 of 10

Thread: Switch Content Script --crashes Safari

  1. #1
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Switch Content Script --crashes Safari

    I am using the switch content script here:
    http://www.umass.edu/oapa/topics/students.shtml.

    It is working fine until I tested it in Safari 1.3, when it crashed (it may crash in other versions also, I don't know). The page loads fine, I can expand one level fine, then when I try to contract Safari crashes.

    Any ideas would be much appreciated. I would very much like to use this script.

  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

    First thing I've got to know is - Does the demo page here at Dynamic Drive exhibit the same behavior in Safari? I don't have a Mac, at least knowing that will give me an idea of what to look for.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    First thing I've got to know is - Does the demo page here at Dynamic Drive exhibit the same behavior in Safari? I don't have a Mac, at least knowing that will give me an idea of what to look for.
    Thanks for the reminder, John, I totally forgot to check that. The demo does work in Safari. No problems there.

    So, any ideas of what I am looking at? I am using the script untouched. I am using it externally.

  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'm surfing right now in Konqueror which I fired up being the closest thing to Safari I have. In Konqueror your page doesn't work at all but, that doesn't mean much. I just checked the demo here, same thing. I noticed the script is not rated for Safari, few here are. When I get some time, I'll see what I can make of things though. Very interesting that the demo here did not crash.
    - John
    ________________________

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

  5. #5
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    I noticed the script is not rated for Safari, few here are. When I get some time, I'll see what I can make of things though. Very interesting that the demo here did not crash.
    Yeah, while not "rated" for Safari, my experience is that when things work in FF, everything is okay, and the script works in FF for Mac (and windoz).

    I am going to go through the html and look for crazy line breaks or other such things that might be causing the choke. Who knows?

  6. #6
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    I'm surfing right now in Konqueror which I fired up being the closest thing to Safari I have.
    Presumably your version of Konqueror is more up-to date than mine. So, does the Switch Content-like script I wrote in May work for you as it did for me?

    In Konqueror your page doesn't work at all but, that doesn't mean much.
    If mine does work, it'll be interesting to see what the differences are. It could be an alternative for the OP to look at.

    Mike

  7. #7
    Join Date
    Jul 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Fixed!

    An interesting lesson: be very careful about nested lists to display your hidden content. It can get very tricky, and things I would do otherwise, I can not do with this script (like making a sub-sub nested list -- one sub seems to work fine). Again, this problem only appeared in Safari, and it was not an issue with the script.

    Thanks all.

  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

    Yes Mike, it does work in my version which is 3.1.4 under KDE 3.1.4 - apparently though the OP has solved his problem. What version of Konqueror do you have?
    - John
    ________________________

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

  9. #9
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by jscheuer1
    [...] 3.1.4 under KDE 3.1.4 [...] What version of Konqueror do you have?
    The same. I'm surprised. My distribution is old (September 2003) so I know why I have KDE 3.1.4. However, the latest version is 3.4.1 (released just after I wrote that script). I wonder: is Cygwin that far behind?

    I'll warn you (just in case you're not aware) that that particular version really should be out-of-date, and shouldn't reflect the current level of neither Konqueror nor Safari.

    If I could get Glibc to compile at all (without modifying the source code, which I really don't want to do), and compile other tools with some confidence of success, I'd have built my own distribution, but its stubborness is quite unbelievable. My current software shouldn't be too obsolete to start the process, but perhaps it is?

    Mike

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

    Default

    Hmmm this is just another reason why I think I need to get a Mac soon, even if it's just to test out web pages and scripts.

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
  •