Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-13-2012, 10:44 PM   PM User | #1
exploit
New Coder

 
Join Date: Jun 2012
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
exploit is an unknown quantity at this point
Array Issue

Is anyone able to tell me why i am getting the following from the below script and how to fix it. Its all jumbled up :S

I RUN
Code:
var newHTML2 = '<td><button onclick="changefield(\"'+obj[x]['unique_id']+'\")">Edit</button></td>';
RENDERS
Code:
<button 3")"="" onclick="changefield(">Edit</button>
exploit is offline   Reply With Quote
Old 07-14-2012, 12:31 PM   PM User | #2
exploit
New Coder

 
Join Date: Jun 2012
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
exploit is an unknown quantity at this point
anyone ?
exploit is offline   Reply With Quote
Old 07-14-2012, 12:42 PM   PM User | #3
exploit
New Coder

 
Join Date: Jun 2012
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
exploit is an unknown quantity at this point
solved by doing the following:

Code:
var txt = obj[x]['unique_id']; 
          var newHTML2 = '<td align=\"center\"><img onclick=\"changefield('+txt+')\" src=\"http://localhost/ci/application/styles/system_users/images/engine.png\"></td>';
exploit is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:52 AM.


Advertisement
Log in to turn off these ads.