Author |
Topic |
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 00:19:12
|
Here is the ASP source:
" <td><a href=""Javascript:editor.insertHTML('" & getCurrentIcon(strIconSmileQuestion,"Question [?]","") & "')"" tabindex=""-1"">" & getCurrentIcon(strIconSmileQuestion,"Question [?]","") & "</a></td>" & vbNewLine & _
Here is the output:
<td><a href="Javascript:editor.insertHTML('<img src="images/icon_smile_question.gif" width="15" height="15" border="0" alt="Question [?]" title="Question [?]" />')" tabindex="-1"><img src="images/icon_smile_question.gif" width="15" height="15" border="0" alt="Question [?]" title="Question [?]" /></a></td>
Why the hell does it look like this??:
')" tabindex="-1">
TIA |
Edited by - Dave. on 27 June 2003 00:19:59 |
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 01:12:37
|
I don't know Javascript... I would assume so though. I'm just not sure how. |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 27 June 2003 : 01:16:29
|
Ummm... okay .. try this (I'm not so great at javascript either):
" <td><a href=""Javascript:editor.insertHTML('" & Replace(getCurrentIcon(strIconSmileQuestion,"Question [?]",""),"""","\""") & "')"" tabindex=""-1"">" & getCurrentIcon(strIconSmileQuestion,"Question [?]","") & "</a></td>" & vbNewLine & _ |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
Edited by - Nikkol on 27 June 2003 01:17:44 |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 01:31:34
|
Nope :(
Same error. :( |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 01:54:23
|
Same exact thing, that was what I tried before as well... |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 01:59:59
|
Don't worry about the forum code messing with it
I need to have the smiles insert as HTML images into the textarea, and editor.InsertHTML is how it mus be done, as it isn't a 'normal' textarea. |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
Posted - 27 June 2003 : 02:21:33
|
Try something like this then:<script language="javascript">
function doCode(gifURL) {
return ('<img src=\"' + gifURL + '\" />');
}
</script>
<a href="#" onClick="editor.insertHTML(doCode('images/mypic.gif'));" tabindex="-1"><img src="images/mypic.gif" /></a> |
Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~ |
|
|
Nikkol
Forum Moderator
USA
6907 Posts |
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 27 June 2003 : 09:48:55
|
Thank you Nikkol!!! Works perfectly.
Yeah, this is for my RTE MOD ... |
|
|
|
Topic |
|