Click here to Skip to main content
15,897,147 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: trouble using each in json array Pin
jkirkerx24-Aug-12 6:32
professionaljkirkerx24-Aug-12 6:32 
QuestionHow to calculate difference between two date Pin
Robymon21-Aug-12 23:11
Robymon21-Aug-12 23:11 
AnswerRe: How to calculate difference between two date Pin
BobJanova22-Aug-12 0:33
BobJanova22-Aug-12 0:33 
QuestionHow to add Days in variable Date Pin
Robymon21-Aug-12 21:40
Robymon21-Aug-12 21:40 
AnswerRe: How to add Days in variable Date Pin
Pete O'Hanlon21-Aug-12 22:26
mvePete O'Hanlon21-Aug-12 22:26 
Questionget all image file names from a folder in Jquery Pin
ashjassi19-Aug-12 19:33
ashjassi19-Aug-12 19:33 
Questionintegrate bidichecker to awebsite Pin
nada200615-Aug-12 17:42
nada200615-Aug-12 17:42 
Questioneither my css or Javscript is in error, another set of eyes Pin
jkirkerx15-Aug-12 13:19
professionaljkirkerx15-Aug-12 13:19 
I'm stumped.

I'm trying to load some thumbnails across in a row.

Each thumbnail has a div container that is white, 60x60, and a 3px margin.

This version loads the thumbnails across, but the 60x60 container is missing, and is not white. Just the image.

Maybe another set of eyes can see my mistake in the div element

var tr_tContainer_Row1 = table_tContainer.insertRow(-1);
var td_tContainer_Row1 = document.createElement("td");
td_tContainer_Row1.style.height = "119px";
td_tContainer_Row1.style.width = "auto";
td_tContainer_Row1.style.textAlign = "left";
td_tContainer_Row1.style.paddingLeft = "5px";
td_tContainer_Row1.style.overflow = "hidden";
td_tContainer_Row1.style.verticalAlign = "top";
td_tContainer_Row1.style.paddingTop = "5px";
tr_tContainer_Row1.appendChild(td_tContainer_Row1);

for (i = 0; i <= objT.length - 1; i++) {

    var image_Name = objT[i].image_Name;
    var image_Url = objT[i].image_Thumbnail;
    var image_Date = objT[i].image_PostDate;

    var div_ImagePreview = document.createElement("div");
    div_ImagePreview.style.position = "relative";
    div_ImagePreview.style.display = "inline";
    div_ImagePreview.style.cssFloat = "left";
    div_ImagePreview.style.clear = "left";
    div_ImagePreview.style.height = "60px";
    div_ImagePreview.style.width = "60px";
    div_ImagePreview.style.backgroundColor = "rgb(255,255,255)";
    div_ImagePreview.style.verticalAlign = "middle";
    div_ImagePreview.style.textAlign = "center";
    div_ImagePreview.style.margin = "6px";

    td_tContainer_Row1.appendChild(div_ImagePreview);

    var img_ImagePreview = document.createElement("img");
    img_ImagePreview.style.cssFloat = "left";
    img_ImagePreview.verticalAlign = "middle";
    img_ImagePreview.src = objT[i].image_Thumbnail;
    div_ImagePreview.appendChild(img_ImagePreview);
}

// Consider loading the first image
$('[id*="_panel_Gallery_Thumbnails"]').append(table_tContainer);

AnswerRe: either my css or Javscript is in error, another set of eyes Pin
jkirkerx15-Aug-12 16:32
professionaljkirkerx15-Aug-12 16:32 
AnswerRe: either my css or Javscript is in error, another set of eyes Pin
BobJanova15-Aug-12 23:36
BobJanova15-Aug-12 23:36 
QuestionDisplay Values Pin
lakshmiblp15-Aug-12 10:29
lakshmiblp15-Aug-12 10:29 
Questionhow to get default signature in outlook using Javascript Pin
Anurag Sinha V9-Aug-12 2:20
Anurag Sinha V9-Aug-12 2:20 
AnswerRe: how to get default signature in outlook using Javascript Pin
Pete O'Hanlon9-Aug-12 3:52
mvePete O'Hanlon9-Aug-12 3:52 
AnswerRe: how to get default signature in outlook using Javascript Pin
BobJanova9-Aug-12 3:56
BobJanova9-Aug-12 3:56 
Newsurdu Pin
sania habib8-Aug-12 15:47
sania habib8-Aug-12 15:47 
GeneralRe: urdu Pin
Richard MacCutchan8-Aug-12 21:28
mveRichard MacCutchan8-Aug-12 21:28 
AnswerRe: urdu Pin
Rahul Rajat Singh22-Aug-12 1:24
professionalRahul Rajat Singh22-Aug-12 1:24 
GeneralRe: urdu Pin
Sandip.Nascar22-Aug-12 11:03
Sandip.Nascar22-Aug-12 11:03 
QuestionLooping through elements, to find textbox, and get values Pin
jkirkerx8-Aug-12 13:12
professionaljkirkerx8-Aug-12 13:12 
AnswerRe: Looping through elements, to find textbox, and get values Pin
jkirkerx8-Aug-12 18:13
professionaljkirkerx8-Aug-12 18:13 
GeneralRe: Looping through elements, to find textbox, and get values Pin
Andrei Straut9-Aug-12 4:41
Andrei Straut9-Aug-12 4:41 
GeneralRe: Looping through elements, to find textbox, and get values Pin
jkirkerx9-Aug-12 6:27
professionaljkirkerx9-Aug-12 6:27 
AnswerRe: Looping through elements, to find textbox, and get values Pin
Andrei Straut9-Aug-12 9:37
Andrei Straut9-Aug-12 9:37 
GeneralRe: Looping through elements, to find textbox, and get values Pin
jkirkerx9-Aug-12 10:18
professionaljkirkerx9-Aug-12 10:18 
GeneralRe: Looping through elements, to find textbox, and get values Pin
Andrei Straut9-Aug-12 10:35
Andrei Straut9-Aug-12 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.