Log in

View Full Version : [JS] I can't get this too work...



Remotive
16-04-2008, 10:08 PM
Well, I have this code and I have tried to make this work about 5 maybe 6 times now and still nothing, here is my code..



objInfo.innerHTML =
'<a href="#" onclick="ddrivetip(\''<b>Edit</b><br/><br/><input type="submit" name="remove" value="Remove" onclick="deleteObject(\'' + obj[0] + '\');">'\')";><img src="images/icon_edit.gif" align="right" valign="top" border="0"></a>';


It just stops the whole file from working.

Anyone know how to do this? :(

Protege
17-04-2008, 12:08 AM
Well, I have this code and I have tried to make this work about 5 maybe 6 times now and still nothing, here is my code..



objInfo.innerHTML =
'<a href="#" onclick="ddrivetip(\''<b>Edit</b><br/><br/><input type="submit" name="remove" value="Remove" onclick="deleteObject(\'' + obj[0] + '\');">'\')";><img src="images/icon_edit.gif" align="right" valign="top" border="0"></a>';
It just stops the whole file from working.

Anyone know how to do this? :(

You haven't really told us what you want to do; but maybe this will help.

javascript:
document.getElementById("objInfo").innerHTML = 'lala';


Maybe a page to your JS source / Page - Good luck with it.

Remotive
17-04-2008, 06:46 AM
Well, really all I want it to do is be the same as normal HTML but be in an innerHTML field.

Seeing as it startes with ' and ends with '; there is not much I can do for my javascript onclicks.

If you know what I mean.

Want to hide these adverts? Register an account for free!