Just the other day, I received help from this forum on escape sequences with some PHP code which would echo a Javascript onclick.
After the reply helped me, I asked him to explain why it worked and he gave me a URL explaining escape sequences. I thought I understood the tutorial, but I guess I do not.
The closest that I have come to making this work, is the following code:
From the preview, it appears as though there is gap between "some" and "NumberComi ng", but there isn't.
When you place your mouse over the link generated the output at the bottom of the browser is this:
Once more, there appears to be a space between "cast" and "name" but there isn't -- apparently I cannot even post correctly :-(
I would like it to be this:
Any help would be appreciated and thanks in advance :-)
After the reply helped me, I asked him to explain why it worked and he gave me a URL explaining escape sequences. I thought I understood the tutorial, but I guess I do not.
The closest that I have come to making this work, is the following code:
Code:
myDiv.innerHTML += '<td><a href=\"javascript:myCastDetails(\''+(someNumberComing-1)+'\',\'document.getElementById(\'castname'+(someNumberComing-1)+'\').value\',\'document.getElementById(\'casttext'+(someNumberComing-1)+'\').value\',\'document.getElementById(\'castframecolor'+(someNumberComing-1)+'\').value\',\'document.getElementById(\'castpicture'+(someNumberComing-1)+'\').value\');\"><div>Previous</a></td><td align=right><a href="#">Next</a></div></td>';
When you place your mouse over the link generated the output at the bottom of the browser is this:
Code:
"myCastDetails('0','document.getElementById('castname0').value','getElementById('casttext0').value','getElementById('castframecolor0').value','getElementById('castpicture0').value');"
I would like it to be this:
Code:
"myCastDetails('0','document.getElementById("castname0").value','getElementById("casttext0").value','getElementById("castframecolor0").value','getElementById("castpicture0").value');"
Comment