Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old October 24th, 2002, 04:16 AM
tim tim is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 62 tim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 9 sec
Reputation Power: 7
Send a message via ICQ to tim
execCommand Help!!

I have the following piece of code. I created a TextRange object called myRange and i wanted to make this selection a link, linking to a destination defined by linkpath (assumed it is already defined).

Then I use the execCommand method to do the rest. However, I am getting an error that says something about, 'object doesnt support property or method..' I have seen some code which manage to do this (causing a range object to use the execCommand method)but mine is not working.

After much research, i found out that a range object can actually use either one of three methods, namely, clear, createRange and empty......is this true. If yes, how should the below, structured?

myRange = window.opener.foo.document.selection.createRange()
myRange.execCommand("createlink", false, linkpath);
__________________
Beginner

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > execCommand Help!!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway