Hi
I hope this is not a duplicate, I started another topic but never saw it posted.
I'm creating some links the problem is the third link is not adding spaces, it showing as one link for
link two and three.
var mytag = document.getElementById("setanch");
var aTag = document.createElement('a');
aTag.setAttribute('href',"ValueLinkView.html");
aTag.innerHTML = "Corporation X [Consortium]" + " ";
mytag.appendChild(aTag);
var storeText = document.createTextNode(">>" + " ");
mytag.appendChild(storeText);
var store = " " + "8513260005";
var storeTag =document.createElement('a');
storeTag.setAttribute('href', "ValueLinkBaseView.html");
storeTag.innerHTML = store;
mytag.appendChild(storeTag);
var sometext = document.createTextNode(" " + ">>" + " " + clientId);
mytag.appendChild(sometext);
element.appendChild(mytag);
if(clientId == ("Store 60A[85132600005.45640302410.1111]")){
var holdId_A = "121000358/*****1111";
var storeA =document.createElement('a');
storeA.setAttribute('href', "url");
storeA.innerHTML = holdId_A ;
var morespace = document.createTextNode(" " + ">>" + " " + " ");
storeTag.appendChild(morespace);
storeTag.appendChild(storeA);
Corporation X [Consortium] >> 8513260005 >> 121000358/*****1111 >>
This should be two separate links
I have tried everything I can think of to get spaces, what am I missing? :(
Thank You In Advance
PH
-- I hope this is not a duplicate, I started another topic but never saw it posted.
I'm creating some links the problem is the third link is not adding spaces, it showing as one link for
link two and three.
var mytag = document.getElementById("setanch");
var aTag = document.createElement('a');
aTag.setAttribute('href',"ValueLinkView.html");
aTag.innerHTML = "Corporation X [Consortium]" + " ";
mytag.appendChild(aTag);
var storeText = document.createTextNode(">>" + " ");
mytag.appendChild(storeText);
var store = " " + "8513260005";
var storeTag =document.createElement('a');
storeTag.setAttribute('href', "ValueLinkBaseView.html");
storeTag.innerHTML = store;
mytag.appendChild(storeTag);
var sometext = document.createTextNode(" " + ">>" + " " + clientId);
mytag.appendChild(sometext);
element.appendChild(mytag);
if(clientId == ("Store 60A[85132600005.45640302410.1111]")){
var holdId_A = "121000358/*****1111";
var storeA =document.createElement('a');
storeA.setAttribute('href', "url");
storeA.innerHTML = holdId_A ;
var morespace = document.createTextNode(" " + ">>" + " " + " ");
storeTag.appendChild(morespace);
storeTag.appendChild(storeA);
Corporation X [Consortium] >> 8513260005 >> 121000358/*****1111 >>
This should be two separate links
I have tried everything I can think of to get spaces, what am I missing? :(
Thank You In Advance
PH
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.