Forum Moderators: not2easy

Message Too Old, No Replies

illegal operation with swap image behaviors...

swap image problem

         

themuse

9:26 pm on Aug 27, 2004 (gmt 0)

10+ Year Member



Hello everyone...
I've created several sites in DreamWeaverMX using slices from Photoshop7 (then saving for Web)and ImageReady (saving optimized as html).

I'm running into difficulty on this latest site. When clicking on "Swap Image" in the behaviors, the window pops up, a very brief message appears which looks like this:
***no images found***

Then an illegal operation warning appears stating DreamWeaver has caused an invalid page fault in DreamWeaver.exe. When I close the warning, DreamWeaver closes.

This table has 210 images. Since ImageReady exports all the images with the table, it's been a real time saver. But since I've had this problem, I've tried other methods to get the Swap Image to work:
1) uninstalled and reinstalled DreamWeaver MX
2) created a new, blank table in DreamWeaver and inserted the image slices manually. This worked until I reached the midway point with the images. Then the Swap Image feature caused the same crash.
3) I imported the index page and images of another site I have which uses the Swap Image behavior extensively into the root directory of the problem site. The imported page worked perfectly when I experimented with the Swap Image command.

Any ideas what may be causing the problem? Maybe there's a limit to the number of slices?

Thanks,
Diana

whoisgregg

6:05 pm on Aug 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



***no images found***

The image swap behavior uses Javascript. Javascript image swapping depends on the particular image tag to be given an "id" parameter and value. If none of your images have an "id" then Dreamweaver returns the error ***no images found***.

To solve the problem, locate the particular slices which are going to be swapped and add code similar to what's in bold to the img tag:


<img src="../images/slice_c01_r01.gif" height="12" width="84" [b]id="swap001"[/b] />

Each image needs the "id" value to be unique (i.e. swap001, swap002, swap003). Now run the image swap and see what you get! It should be a list of the id's you just assigned.

You may be experiencing other problems (like crashing) because of the complexity of your table structure but I don't think that's related to the ***no images found*** error. :)

themuse

10:46 pm on Aug 30, 2004 (gmt 0)

10+ Year Member



Dear whoisgregg,
I've been working on this for a full week. In the early stages I went through the process of inserting each image manually into the table, rather than use the automated table with slices created in Photoshop?Image Ready. After inserting an image, I would name it, after which DreamWeaver automatically assigns the "id" number of which you recommended.

It didn't work.

I also closed every running program except explorer and systray to free up RAM. Still didn't work.

I uninstalled DreamWeaver, cleaned the registry of instances of DreamWeaver and reinstalled DreamWeaver. That didn't work.

My next step is to slice the image up in PaintShop Pro and save it as and .html file. If it works, then I'll deduce the problem is with the Photoshop .html and slices (although I've used it successfully several time, I've never created a single table with 210 images.

Thank you for taking the time to try to help me solve this issue.

Toodles,
Diana

whoisgregg

12:00 am on Aug 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



themuse,
I made a sliced up image with 270 cells in Photoshop, jumped to ImageReady and "Save Optimized" just as you described. While Dreamweaver certainly hesitated in the list, it did eventually list all the images. DW was also very slow on switching to Design mode to render the table.

I wish I could be more helpful! Perhaps someone else with the same version of Dreamweaver and a similar OS can replicate your problem and provide better assistance.

For reference, I tested with Photoshop 7, Imageready 7, and DW MX 2004 7.0.1 on a dual 2 ghz G5 running Mac OS X 10.3.5.
(btw, I was totally wrong, DW calls imgs without an id "unnamed <img>")