3 Replies - 444 Views - Last Post: 19 July 2011 - 01:07 PM

#1 E_Geek  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 45
  • View blog
  • Posts: 236
  • Joined: 20-February 11

Coords Issue

Posted 19 July 2011 - 11:18 AM

Hey,

I am very limited with Javascript, and have been implementing a JS marquee crop into an application, unfortunately the place I got it hasn't been supported since 2007, so I'm stuck. Everything's working great except one function, and it's the one I need working.
I understand that it's to update the html entities sample_x etc with the values, only it isn't doing this. I do have the HTML entities set with the correct ID's. The function in question is: function onMarqueeUpdate().

The problem is, the value's aren't changing when I make my selection on an image (crop). I've posted all the relevant code, and if anyone can help me that would be fantastic :)

Spoiler


And then rectmarquee.js:

Spoiler


Is This A Good Question/Topic? 0
  • +

Replies To: Coords Issue

#2 codeprada  Icon User is offline

  • Changed Man With Different Priorities
  • member icon

Reputation: 934
  • View blog
  • Posts: 2,331
  • Joined: 15-February 11

Re: Coords Issue

Posted 19 July 2011 - 11:36 AM

Class is not defined Line 14 rectmarquee.js
Was This Post Helpful? 1
  • +
  • -

#3 E_Geek  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 45
  • View blog
  • Posts: 236
  • Joined: 20-February 11

Re: Coords Issue

Posted 19 July 2011 - 11:48 AM

I forgot to mention this uses the prototype library. Its in the following spoiler:

prototype_reduced.js
Spoiler

Was This Post Helpful? 0
  • +
  • -

#4 E_Geek  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 45
  • View blog
  • Posts: 236
  • Joined: 20-February 11

Re: Coords Issue

Posted 19 July 2011 - 01:07 PM

Ah nevermind i've fixed this now.

The error was in the load function, fixed function for reference:

	function onWindowLoad() {
		MarqueeTool = new Marquee('sampleid', { 
			color: '#333', 
			opacity: 0.75
		});
		
		MarqueeTool.setOnUpdateCallback(onMarqueeUpdate);
	}


Was This Post Helpful? 1
  • +
  • -

Page 1 of 1