Hi
Here is the code
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");
On Monday, November 11, 2013 8:58:24 PM UTC-6, pame...@aol.com wrote:
-- Here is the code
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
aTag.setAttribute('href',"
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.
var holdId_A = "121000358/*****1111";
var storeA =document.createElement('a');
storeA.setAttribute('href', "url");
storeA.innerHTML = holdId_A ;
var morespace = document.createTextNode(" " + ">>" + " " + " ");
storeTag.appendChild(
storeTag.appendChild(storeA);
Corporation X [Consortium] >> 8513260005 >> 121000358/*****1111 >>
I have tried everything I can think of to get spaces, what am I missing? :(
Thank You In Advance
PH
On Monday, November 11, 2013 8:58:24 PM UTC-6, pame...@aol.com wrote:
Hello:
Does anyone know what would cause two separate links when appending to show up as
one link. I tried everything I can think of such as adding spaces before the element and after
with no luck. This is done dynamically.
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.