Autosave plugin

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Autosave plugin

Post by garvinhicking »

# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
doomsayer
Regular
Posts: 14
Joined: Thu May 12, 2005 9:05 pm
Location: Wisconsin
Contact:

Autosave

Post by doomsayer »

I have to say that this is the coolest plugin ever. I couldn't be more excited about it. However I have a problem.
When I tried it in Mozilla Firefox 1.5.0.1 I get this error:
The ajax call failed ! [TypeError: form has no properties]

I tried it in Internet Explorer 6.0 and it works just fine. (I am ashamed to admit I used IE). So I know that there is a good chance that it is a problem with something I did to Firefox, but I am looking for ideas.

I am hopeful that the use of this plugin will get my wife to start blogging again. She got mad because she kept losing entries.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Autosave

Post by garvinhicking »

Great to hear that! Maybe you could give Jay some feedback on his blog so that he gets notified? I don't know if he's reading this forum!

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
doomsayer
Regular
Posts: 14
Joined: Thu May 12, 2005 9:05 pm
Location: Wisconsin
Contact:

Comments Blocked

Post by doomsayer »

I would love to comment on Jay's blog, but he's got the comments on his blog blocked.
That is why I posted here. I just hate having to use I.E. to use this really awesome plugin.
jay.bertrand
Posts: 2
Joined: Tue Mar 21, 2006 10:04 pm
Location: France
Contact:

Re: Comments Blocked

Post by jay.bertrand »

Hi doomsayer,
I already had some feedback and modified the plugin. I updated the archive on my blog (http://jay.bertrand.free.fr/blog/upload ... plugin.tgz) but this new version also needs a new htmlarea.js (also in the .tgz). Could you please test it and give me some feedback ? TIA.

Firefox has a really weird behaviour : i run exactly the same version (1.5.0.1) and have no problems with s9y 0.9.1 and 1.0-b2 ?!? stupid javascript :x

Regards,
Jay
doomsayer wrote:he's got the comments on his blog blocked
Really, that's pretty weird. I only activated the anti-spam plugin ?!?
doomsayer
Regular
Posts: 14
Joined: Thu May 12, 2005 9:05 pm
Location: Wisconsin
Contact:

New Version

Post by doomsayer »

The new version still works just fine in I.E. but I still get the same error:
The ajax call failed ! [TypeError: form has no properties]
when I try from Firefox. I think your work is fantastic anyway.

Somehow I am hitting the spam filter on your blog each time I try to respond there.
jay.bertrand
Posts: 2
Joined: Tue Mar 21, 2006 10:04 pm
Location: France
Contact:

Re: New Version

Post by jay.bertrand »

doomsayer wrote:The new version still works just fine in I.E. but I still get the same error ...
Damned ! I will work on it, I won't let IE work fine and FF not :wink: . That's pretty amazing how FF's behaviour vary depending on the OS :shock: I run FF 1.5.0.1 on xp with s9y 0.9.1 and 1.0-b2 and no problem until now.
doomsayer wrote:Somehow I am hitting the spam filter on your blog each time I try to respond there.
Ok, I misconfigured the spam plugin. Comments are now re-opened ;-)

Regards,
Jay
wagwag
Regular
Posts: 29
Joined: Fri Jun 16, 2006 7:56 am

Post by wagwag »

I just installed the autosave plugin and encountered the same error doomsayer reported. I am using Firefox 1.5.0.4 on Linux.

I think I've tracked the issue to whether the form serendipityEntry is labeled using the 'name' or 'id' property; and that appears to depend on how you set "Force XHTML 1.1 compliance" in the serendipity configuration menu.

As long as Force XHTML... is off (and the form is labeled using 'name'), the plugin fails. Since I turned on Force XHTML 1.1, the form is labeled using 'id' and the autosave plugin works fine.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Thanks for that report! Actually, in Serendipity 1.1 this XHTML compliance is turned on and the option was removed, so it should go away automatically in the future :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
doomsayer
Regular
Posts: 14
Joined: Thu May 12, 2005 9:05 pm
Location: Wisconsin
Contact:

works for me

Post by doomsayer »

wagwag your solution fixed my problem. thanks VERY much you are my hero (along with garvin and jay). this fixes the one thing I really had a problem with. I submitted a comment to Jay's blog asking him to add this to the instructions.
kinoli
Posts: 4
Joined: Tue Jul 18, 2006 3:13 am
Contact:

JS errors

Post by kinoli »

Hi, I am getting some JS errors in the html editor. I read that their is a new htmlarea.js file in the tgz file. It must have been removed at some point because I'm not seeing it. Can you let me know where I might find it? thanks.
Jesse Knowles
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: JS errors

Post by garvinhicking »

Hi!

Which serendipity version are you using? Which JS errors do you get? You actually don't need any updated htmlarea.js file, the one shipped with serendipity works fine.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
kinoli
Posts: 4
Joined: Tue Jul 18, 2006 3:13 am
Contact:

autosave js erros

Post by kinoli »

The version of Serindipity I installed was from this file... serendipity-1.0-beta2.tar.gz

when i activate autosave plugin and then navigate to "new entry" upon loading I get these error...

line 863 - 'undefined' is null or not an object

upon clicking in the wysiwyg editor i get ...

line 1300 - 'Object doesn't support this property or method

I am using the htmlarea wysiwyg editor. It makes it useless to use because of these erros, so I have to turn autosave off until i can get this resolved. Any help would be appreciated.

thanks in advance.
Jesse Knowles
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: autosave js erros

Post by garvinhicking »

Hi!

I would suggest you to upgrade to serendipity 1.0 - I think the serendipity_editor.js file has been updated there to accomodate problems.

Also, are you using the most recent version of the autosave plugin?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
jumanjisama
Regular
Posts: 16
Joined: Tue Sep 19, 2006 2:02 pm

Post by jumanjisama »

I have a small problem with this plugin. If i have saved the entry, then i wanna edit it back later, the autosave won't work, it says 'autosave failed'. But if i am editing a new entry, it will work just fine.

Please advice. thanks in advance :)
Post Reply