|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
wysiwyg, image deletion
Hello to everybody!
I'm trying to find a way to detect somehow the name of the image that was deleted from the iframe. The iframe is editable. I need the name of the image file or a way to detect the last object that was deleted from the iframe. With that filename I can remove the image from the server with asp so that there won't be left behind any loose images. Maybe there's a way to detect if the selected object is an image. Does anyone know how this could be possible. Any ideas and help is preciated. Thanks. |
|
#2
|
||||
|
||||
|
Hmm - interesting idea... I'm been a lazy bugger and leave the images on the server!
Here's my 2 cents: Create a server-side function (i guess you could do it client side, but yuk!) that gets a listing of all images found in your IFRAME content. (Use a regular expression). Then, call that function BEFORE and AFTER editing/saving the data and compare the lists. Then it's simply a matter of removing the missing files. |
|
#3
|
|||
|
|||
|
That's what i thought of doing, but the problem actually is how to
store what images the page uses. I've created one function that deletes every image that I had in one page after it has been deleted. The problem with comparing is that the page has 1 + n images, so I can't really store the image names in an array eighter, because I don't know the count of the images. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > wysiwyg, image deletion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|