PDA

View Full Version : Animated Collapsible DIV collapse2 has no properties



gregtampa
01-06-2008, 07:28 AM
1) Script Title:
Animated Collapsible DIV
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
3) Describe problem: Error: collapse2 has no properties
Source File: javascript:collapse2.slideit()
Line: 1


okay i know this is bull, i ran it on a clean page.. and it worked.. i then inserted on top of my other page where i would be using this..
http://yournight.com/dev/insindex.php
and no go.. if only i can get a menu to collapse id be happy :(

jscheuer1
01-06-2008, 03:12 PM
Your page is in violation of Dynamic Drive's usage terms (http://www.dynamicdrive.com/notice.htm), which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.

It looks like you skipped Step 2 though.

Ah, the problem appears to be that the Step 2 is in an iframe and the main script's external script tag is on the top page. Both must be on one page, I vote for the page in the iframe.

gregtampa
01-06-2008, 07:42 PM
say again? I have no clue what you mean.. im not using iframe, the pages are being injected using ajax, and php.
as for the usages terms, its there just in php so it didnt show it, but i put it where you can see it.. and tell you what if you or someone can get these scripts to work in the way that im using them.. i'll drop a nice logo to your site linking you.
pretty much i want the blue bars in the content part of the page tobe collapsable..

also wanted to know why the page gets redirected in IE.. i was reading another post about it, but it didnt help. the site breaks with the tab content script inside it.

jscheuer1
01-06-2008, 08:12 PM
IDK, there was an iframe or frame on the page when I checked it the first time. It looks different now. If that was an aberration, then you need to initialize the links on the imported content after they are on the page, not before.

Please restore the script credit first.

This is how it looked before (click for larger view):
1512

gregtampa
01-07-2008, 12:25 AM
i did restore the credits

gregtampa
01-08-2008, 01:44 AM
IDK, there was an iframe or frame on the page when I checked it the first time. It looks different now. If that was an aberration, then you need to initialize the links on the imported content after they are on the page, not before.

Please restore the script credit first.

This is how it looked before (click for larger view):
1512

okay well i looked and the credits are there, how many time you want me to list the same credits? its on the main page that is doing the loading where the js file is called in..

anywho, yeah i only put the iframe there for testing purposes.. its been removed.. all the links are being called in with ajax now.. to an internal file to display..

still crashes in IE though.. anyone know the reason the site is trying to reload in IE? then comes back with a page not found? I guess i can review the httpd logs on the server, to see what page its trying to call back.

jscheuer1
01-08-2008, 02:53 AM
If you were to read the link to the Usage Policy (http://www.dynamicdrive.com/notice.htm) that I already posted, or even what I first posted about it, you would know that the credit must be used on all pages that use the script.

Frankly, if you cannot follow even such simple instructions, why should I waste my time trying to instruct you as regards a more complex situation like resolving your script problem(s)?

gregtampa
01-08-2008, 05:54 AM
okay no problem, i'll drop them in on the top of all my pages so there is no conflict.