View Full Version : Javascript Variables
jerryr
Feb-25-2008, 02:24 AM
Hi !
I know I have seen it somewhere posted here, I am looking for a list of
Javascript variables, such as AlbumKey, AlbumID, etc.....
Specifically, I am looking to see if there is a Javascript variable for the
Album Title.
Any assistance would be greatly appreciated - jerryr
jerryr
Mar-01-2008, 12:31 PM
bump :) thanks - jerryr
denisegoldberg
Mar-01-2008, 12:38 PM
I don't have an answer to your more general question about a list of variables, but I do have some javascript on my site to build the text for the browser title bar. It includes this:
var albumTitle = GetText( document.getElementById("albumTitle") );Maybe that's the field you are looking for?
--- Denise
jerryr
Mar-01-2008, 01:49 PM
Hi Denise - thanks - appreciate - I am sure it will work - I will try it later.
Need it for some new paypal logic I am authoring - jerryr
jerryr
Mar-04-2008, 07:29 PM
Hi -
var albumTitle = GetText( document.getElementById("albumTitle") );
sorry, that unfortunately did not work.
I am looking to grab the album title when I am on the singleImage view...
Still looking for an answer - bump - jr
Hi -
var albumTitle = GetText( document.getElementById("albumTitle") );
sorry, that unfortunately did not work.
I am looking to grab the album title when I am on the singleImage view...
Still looking for an answer - bump - jr
try this:
YD.get('albumTitle').childNodes[0].innerHTML;
jerryr
Mar-05-2008, 08:02 PM
var albumtitle = YD.get('albumTitle').childNodes[0].innerHTML;
does not work......
does not recognize the YD.get
any other thoughts ? :scratch jerryr
var albumtitle = YD.get('albumTitle').childNodes[0].innerHTML;
does not work......
does not recognize the YD.get
any other thoughts ? :scratch jerryrwhere are you putting this code?
YD.get is available in every page
jerryr
Mar-06-2008, 04:44 PM
Hi - thank you for the help...
I added the code to the footer - works like a charm ! :)
- jerryr
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.