/    Sign up×
Community /Pin to ProfileBookmark

Trouble with 2 javacript items in one page.

I recently bought a software to do a slide show (since I dont do javascript)
the software that I bought was scriptocean slide show. I have created two seperate slide shows and inserted both of them on the same html file. I have already emailed scriptocean with no response.

Basically the problem is: both slide shows WILL show up and funtion properly in Firefox, Safari, Opera but not Internet Explorer. In IE it will only show the first or top slide show, but not the second one down the code. If I remove the first one the second one will show with out a problem. Is there a way to properly insert 2 scripts into a html page.

Basically you call the script by:

FIRST SLIDE SHOW OR SCRIPT
<script>var mediatensionfoldername=’../slideshow1/’;</script><script charset=”utf-8″ src=”slideshow1/mediatension.js” type=”text/javascript”></script>

SECOND SLIDE SHOW OR SCRIPT

<script>var proyectosfoldername=’../slideshow2/’;</script><script charset=”utf-8″ src=”slideshow2/proyectos.js” type=”text/javascript”></script>

you can access the html file at: [url]http://www.mediatension.com.mx/index.htm[/url]

You view the .js file for both at:
[url]http://mediatension.com.mx/slideshow1/mediatension.txt[/url]

[url]http://mediatension.com.mx/slideshow2/proyectos.txt[/url]

So if anybody has some input it would be greatly appreciated.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@KorAug 18.2010 — It is almost impossible to analyze, as long as your javascript code in proyector.js is written in a huge single line. Anyway, IE 8 says there is an error on line 1 (?) char 14527. I was not able to count the chars so far...
Copy linkTweet thisAlerts:
@jbanuelosauthorAug 25.2010 — I was actually was able to know what character 14527 is:

(last part of the .js file where character 14527 is 'proyec')

this.Bas=Bas;this.DoJustSwitch=DoJustSwitch;this.ContinueSlideshow=ContinueSlideshow;}document.write("<div id="proyectossodis"></div>");proye


Where is this last "e" is that is character 14527.

(used the character counter located @: http://www.javascriptkit.com/script/script2/charcount.shtml

Hope this helps.

By the way, the people from Scriptocean.com never answered any emails, so there support sucks !!! Because it does not exist.
Copy linkTweet thisAlerts:
@jbanuelosauthorAug 25.2010 — It is almost impossible to analyze, as long as your javascript code in proyector.js is written in a huge single line. Anyway, IE 8 says there is an error on line 1 (?) char 14527. I was not able to count the chars so far...[/QUOTE]

I turned on MSIE script debugging and found out the error in this part of the sintax, towards the end of the .js file in the slideshow2:


proyectos=new proyectosScSlideShow()


Hope this helps somebody helping me.
Copy linkTweet thisAlerts:
@jbanuelosauthorAug 26.2010 — Finally just went ahead and did a Flash animation. Forget JS.
×

Success!

Help @jbanuelos spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...