SnippetMaster Support Forums
Return to main website
 
January 20, 2018, 08:59:10 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 20, 2018, 08:59:10 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Javascript error in linking images « previous next »
Pages: [1] Print
Author Topic: Javascript error in linking images  (Read 5436 times)
gigi

Posts: 2


[-] Javascript error in linking images
« on: August 29, 2002, 07:23:45 AM »

Dear all,

testing the sw I got an error when trying to link an image (i.e. insert an image, then select it and try to click the "insert link" button).

The error I get is:

********************************

Line: 1060
Char: 2
Error: Object doesn't support this property or method
Code: 0
URL: http://www.snippetmaster.com/snippetmaster/ieeditor/ieeditor.php?BASEURL=/

********************************


Line 1060 (shown in context) is:

********************************

function DECMD_HYPERLINK_onclick() {
   var arr, args, oSel, oParent, sType;
   oSel = tbContentElement.DOM.selection;
   sType=oSel.type;
   var oRange = oSel.createRange();
------->   var oElement = oRange.parentElement();   <-----------

   // Check if selected text only has an incomplete set of <a> tags. (If only part of a link was selected)

********************************

Any idea?

Thanks for your help
Report to moderator   Logged
gigi

Posts: 2


[-] In addition...
« Reply #1 on: August 29, 2002, 08:02:43 AM »

I forgot to specify that this happens when you click an image before inserting a link.

If you simply select it, i.e. SHIFT+ARROWS (even when selecting some text before and after the img) and try to link it, you get no error but the img simply disappears.

Sorry again for the double post.
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] Re: Javascript error in linking images
« Reply #2 on: August 29, 2002, 09:57:58 AM »

Quote from: gigi
testing the sw I got an error when trying to link an image (i.e. insert an image, then select it and try to click the "insert link" button).


Unfortunately, one of the big to do (see TODO.TXT file) tasks I haven't had a chance to do yet is the ability to add links to images.

If anyone is willing to figure out how to do this, I would be eternally grateful!  I just haven't had time to look into the issue.

Sorry.   Sad
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Javascript error in linking images « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!