Skip to main content

Bug Tracker

Side navigation

#13640 closed bug (notabug)

Opened March 21, 2013 10:03AM UTC

Closed March 21, 2013 12:48PM UTC

Last modified March 22, 2013 12:32AM UTC

can someone tell me why?

Reported by: wushengping2011 Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:
Description

'''<!DOCTYPE html>

<html>

<head>

<script src="jquery-1.8.0.min.js"></script>

</head>

<body>

<form>

</form>

<script>

$('form').append("<input type='button' id='Add2' class='mainbutton' value='button' style='width: 120px;' onclick=docUpload('doc',{a:'a',b:'b',c:' c'})>")

var test = $('#Add2').attr('onclick');

alert(test);

</script>

</body>

</html>'''

what i want:

docUpload('doc',{a:'a',b:'b',c:' c'})

but ....it gives me like this:

docUpload('doc',{a:'a',b:'b',c:'

what can i do?

Attachments (0)
Change History (3)

Changed March 21, 2013 10:08AM UTC by wushengping2011 comment:1

Replying to [ticket:13640 wushengping2011]:

'''<!DOCTYPE html> <html> <head> <script src="jquery.js"></script> </head> <body> <form> </form> <script> $('form').append("<input type='button' id='Add2' class='mainbutton' value='button' style='width: 120px;' onclick=docUpload('doc',{a:'a',b:'b',c:' c'})>") var test = $('#Add2').attr('onclick'); alert(test); </script> </body> </html>'''
> what i want:
> 
docUpload('doc',{a:'a',b:'b',c:' c'})
> but ....it gives me like this:
> 
docUpload('doc',{a:'a',b:'b',c:' what can i do?

Changed March 21, 2013 12:48PM UTC by scottgonzalez comment:2

resolution: → notabug
status: newclosed

You can ask on a forum or Stack Overflow.

Changed March 22, 2013 12:32AM UTC by wushengping2011 comment:3

Replying to [comment:2 scott.gonzalez]:

You can ask on a forum or Stack Overflow.

how can i solve it?