dotnetnuke default.aspx has all the .js file references but don't seem to function after click "Home"

working under the dotnetnuke framework...
there is a few javascript files that one of my modules uses. i have all the references to the javascript file in the header of default.aspx. the module that contains the link to call the javascripts appears as expected in the module all the time. but click on this link only seems to run the scripts when you first visit the site, but once you click "Home" link, and then I click the same link in the module, they don't run or do anything.

is this an interesting problem for anyone ? or is there just something fundamental that i am overlooking. thanks for any help... have a great one...
dariuscssiiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

HainKurtSr. System AnalystCommented:
do you have a URL for us to look at it?
0
dariuscssiiAuthor Commented:

URL is : http://www.dariusmunshi.com 

a visitor is able to enjoy a fireworks display via calls to javascript when clicking "CELEBRATE" in the "Coming Next...." section for my wedding . but "Home" link seems to disable the fireworks display. thank you so much for the help. basically what i will do is take two aspirin and check back in the morning... LOL ... is almost midnight here... best regards, Darius .
0
dariuscssiiAuthor Commented:
looking at the snippets below, it is amazing it does not work...lol... i haven't checked to see if the scripts are even still there after clicking "Home" but why would they not be ? thank you so much
Code snippet A: 
"	the header tags in default.aspx
 
 
<link rel="stylesheet" type="text/css" href="style/fireworks.css" media="screen" />
 
<script type="text/javascript" src="demo-only/demo.js"></script>
<script type="text/javascript" src="script/soundmanager.js"></script>
<script type="text/javascript" src="script/fireworks.js"></script>
 
</head>
.
.
.
 
 
Code snippet B: 
"	The javascript calls from the link
 
 
<p>Weren't at our wedding ? No worries... soon you can sign a guest book congratulating the newlyweds, but why not enjoy some fireworks to celebrate ?&#160; <a href="#" onclick="createFirework(66,139,4,5,1,1,97,96,true,true);return false;createFirework(66,139,4,5,1,1,97,96,true,true);return false;createFirework(66,139,4,5,1,1,97,96,true,true);return false;">CLICK TO CELEBRATE</a></p>
 
.
.
.

Open in new window

0
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

dariuscssiiAuthor Commented:

my experience so far with my post here is absolutely amazing.. and I mean that. Its like sitting in a psychiatrist office and you talk about your problem(s) and the doctor just listens patiently and does not say anything. You leave the office with a clear path of action and a plan.... LOL.. !

I used BeyondCompare tool to compare the source of the page when the fireworks display is on with the source of the page when the fireworks is not on... there are a few key path reference differences between the page when you first visit the site and the page after you click home.

if anyone would like to offer any input / insight into the path differences feel free, so i can share points with myself !!

i will definitely post what i find to be the solution... tc, Darius.

THIS IS WHAT IT IS WHEN THE FIREWORKS CAN BE ENJOYED : 
 
<Head id="Head">
...
..
 
<meta id="MetaKeywords" name="KEYWORDS" content=",DotNetNuke,DNN" /><meta id="MetaCopyright" name="COPYRIGHT" content="Co....
 
<link rel="stylesheet" type="text/css" href="style/fireworks.css" media="screen" />
 
 
<form name="Form" method="post" action="/Default.aspx" id="Form" enctype="multipart/form-data" style="height: 100%;" autocomplete="off">
 
 
THIS IS WHAT IT IS WHEN THERE ARE NO FIREWORKS : 
 
 
<Head id="Head">
...
..
 
<meta id="MetaKeywords" name="KEYWORDS" content=",DotNetNuke,DNN" /><meta id="MetaCopyright" name="COPYRIGHT" content="Co....
 
link rel="stylesheet" type="text/css" href="../../../style/fireworks.css" media="screen" />
 
..
...
 
 
<form name="Form" method="post" action="/Home/tabid/38/Default.aspx" id="Form" enctype="multipart/form-data" style="height: 100%;" autocomplete="off">

Open in new window

0
dariuscssiiAuthor Commented:
actually i take that back.... experts-exchange is way better than any doctor's office ... the forum is awesome ... i'm looking to compile a summary of the path differences i've found and will post it in 48 hours from now along with anyone else's input... thanks !
0
HainKurtSr. System AnalystCommented:
looks like it is working now... I can see the fireworks...
0
HainKurtSr. System AnalystCommented:
I could not understand the problem, but if you use this, it may solve your problem (/ in front of the path)
<link rel="stylesheet" type="text/css" href="/style/fireworks.css" media="screen" />

Open in new window

0
dariuscssiiAuthor Commented:
adding the " / " in front of paths makes a lot of sense. i did not solve my problem but seems like a really good practice to do.. steps to re-produce my problem:

1) visit the URL
2) click the link "Click to celebrate"
3) fireworks will be seen
4) click the link "Home" located in the site navigation bar at the top
5) click the link "Click to celebrate" again
6) fireworks does not display

best regards, darius
0
dariuscssiiAuthor Commented:
just an update... i focused on these path differences...

FIREWORKS NOT WORKING AFTER YOU CLICK HOME:

<form name="Form" method="post" action="/Home/tabid/38/Default.aspx" id

FIREWORKS WORKING WHEN YOU FIRST VISIT:

<form name="Form" method="post" action="/Default.aspx" id="Form"

these paths differences inspired to blast my java scripts all into my dotnetnuke project, kind of like at a new years eve party where u uncork a shaken bottle of Champagne and you blindly spray everyone in all directions..LOL..

the path differences meant to me that maybe default.aspx is not where i think it is after you click "HOME" which is located where dotnetnuke places it when you first create a project ... for me that is always ... /website/default.aspx...

i tried places the scripts in

/ website /portals / 0 /

/ website /portals /_default /

\ Website\ DesktopModules \ CoolEffects            

the last path here is the module that has the "Coming next .... " message with d "CELEBRATE" link, which fires the javascripts...

at this point, i just wanted to say to the members who help solve my problem that i will take you to lunch or a drink sometime if you're ever in the neighborhood, in addition to the points...i didn't want to mention that until the problem was solved to avoid giving the impression i am dejected....lol...

tc, darius.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HainKurtSr. System AnalystCommented:
try to change the link for home page to

/Default.aspx (use this)

from

/Home/tabid/38/Default.aspx
0
dariuscssiiAuthor Commented:
i'll focus on copying these files :

http://www.dariusmunshi.com/soundcontroller.swf
http://www.dariusmunshi.com/skin.css

i'm not sure what UltraPhotoGallery did with the .gif files ... so maybe i can just reconfigure the module settings..

i don't even know what the path /Home/tabid/38/ is.... isn't anywhere in the project... this is probably where the problem is .. so hopefully the other tasks to do here will fix what i think is a path problem.  

~ in aspx files, and "/" in front of source files makes a lot sense and change the home link for /default aspx ...

the url isn't masked or forwarded so good there...

hopefully my next comment is to accept the solution, award points, give my email for d lunch or drink but no worries or pressure there... and a complimentary programmers joke i made up, that can be used as thanks for everything....
0
dariuscssiiAuthor Commented:
i turned off the friendlyurl setting in dotnetnuke..not that i even know what that means in the context of a dotnetnuke project..but just found it on one of the pages for administrators. friendlyurls don't show anymore and all the javascripts are being found...including the ones for the fireworks which now are being displayed consistently. i updated my profile wid my contact info...and posted the programmer's joke that i made up. it will be there until either someone tells me to remove it or someone tells that is a really bad joke...

thank you so much for d help,
darius
0
dariuscssiiAuthor Commented:
thank you for your time and understanding of my problem and how to help. my contact info is posted on my profile.. thanks again.
0
dariuscssiiAuthor Commented:
Just want to make sure to mention that turning off friendlyurl was the particular part of the accepted solution that solved the problem i was having
0
HainKurtSr. System AnalystCommented:
I am glad I could help...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.