This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
idekkers  
#1 Posted : Thursday, January 20, 2011 3:13:56 AM(UTC)
idekkers

Rank: Advanced Member

Groups: Guest
Joined: 2/27/2010(UTC)
Posts: 74

i have a strange issue when trying to drag icons to the work area.
you can see here:
https://happycake.co.il/
click on the pink button on the right to go to the editor,
click on the second from bottom bar on the right to open the icon selector.
when trying to drag an icon from here, it looks like everything works fine and the icons can be dragged.

but if you choose a different icon category from the drop-down, no icons can be dragged.

the strangest thing is that when i click "view source" on the browser each page shows the correct list of icons.
but when i try to save the page, it does not matter which category is selected, it always saves the same ASPX page with the same list of icons?

even stranger is the fact that some of the time, a few of the selections do work - though most of the time not.

any ideas?
Dmitry.Obukhov  
#2 Posted : Friday, January 21, 2011 5:18:35 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ido,

I checked your link in the three browsers: Firefox, Internet Explorer, and Chrome. I found that the problem with drug-and-drop functionality after changing the image category happened in Chrome only. It worked in FF, and IE perfectly. I got this error in Google Chrome:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Here is the code snippet of CreateImageVobject() method (it is located in the editor.aspx file of your project), where the error occurs:
Code:

public static ImageVObjectData CreateImageVObject(string imageId)
 {
  string fileName = Array.Find(Directory.GetFiles(_imageFolder, "*.jpg"),
   delegate(string s) { return s.GetHashCode().ToString() == imageId; });
  if (fileName == null)
   fileName = Array.Find(Directory.GetFiles(_imageFolder, "*.png"),
   delegate(string s) { return s.GetHashCode().ToString() == imageId; });
  ImageVObject vo = new ImageVObject(new FileInfo(fileName)); ---> ERROR HERE: Cannot find fileName

filename cannot be found by some reasons. We have no ideas yet why it works in FF, and IE, but it does not in Chrome. Probably, it cannot find the folder where the file is located. Please check your server-side script where you implemented the adding icons from different categories, or send it to us. We will take a look at it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
idekkers  
#3 Posted : Monday, January 24, 2011 12:49:18 AM(UTC)
idekkers

Rank: Advanced Member

Groups: Guest
Joined: 2/27/2010(UTC)
Posts: 74

this is strange,

i know why i got the error in FF - i was using ver 4.0b8/9,
so it's working like chrome.

where do i send the file?
Dmitry.Obukhov  
#4 Posted : Monday, January 24, 2011 6:13:08 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ido,

You can attach file to your post clicking Attach button. Or you can submit new support ticket and attach the file to it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
idekkers  
#5 Posted : Thursday, January 27, 2011 12:24:29 AM(UTC)
idekkers

Rank: Advanced Member

Groups: Guest
Joined: 2/27/2010(UTC)
Posts: 74

ok, here is the file,
probably very messy, if you need a cleaner version let me know
File Attachment(s):
store.zip (10kb) downloaded 2 time(s).
Dmitry.Obukhov  
#6 Posted : Thursday, January 27, 2011 2:54:04 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Ido,

Our developer looked at your script. The _imageFolder variable is not kept. He added this line:
Code:

Session["_imageFolder"] = _imageFolder;

in your code to keep this variable, and it should work okay. I attached corrected editor.aspx.cs file to this post. Please look at it, try, and let me know about your results.

Edited by user Thursday, January 27, 2011 2:56:00 AM(UTC)  | Reason: Not specified

File Attachment(s):
editor.aspx.zip (6kb) downloaded 1 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.