|
#1
| ||||
| ||||
| javascript "eval" problem i have this piece of js code: Code: string = "document.getElementById(\"infouser1\").innerHTML = \"<a href=\"idcard.html\">idcard<\/a>\";"; eval(string); the problem is <a that has to be written inside infouser1 tag. i've already tried to escape the < usign \< but without luck. any help? thank u.
__________________ 3mors ------------------------------------------------------ iMac G5 20"/MacBook Pro 17"/PowerBook G4 ------------------------------------------------------ |
|
#2
| ||||
| ||||
| What's this at the end of the line? ";"; That seems out of place.
__________________ Power Macintosh G4/500MHz "Yikes!" 10.4.11 Server • 1024MB • 3 x 120GB + 320GB • DVR-111D • 2 x Radeon 7000 PCI • 2 x 17" CRT MacBook 2.0GHz Core 2 Duo - White 10.5.5 • 2048MB • 80GB • CD-RW/DVD-ROM iPod Photo 60GB • iPod nano 1GB • AT&T DSL 6Mb/768k http://www.jeffhoppe.com |
|
#3
| ||||
| ||||
| the ";"; is correct the ";" belongs to the string that has to be evaled the second ; is for string line
__________________ 3mors ------------------------------------------------------ iMac G5 20"/MacBook Pro 17"/PowerBook G4 ------------------------------------------------------ |
![]() |
| Thread Tools | |
|
|