Version: (using KDE KDE 3.5.5) Installed from: Gentoo Packages Compiler: gcc-4.1 OS: Linux Hi all, I need to use a mailer embedded into a website. I also need to upload files with it. It wouldn't make sense to give a link because you need a login for the site. But I got a testcase. I'm going to try to attach it in a minute.
Created attachment 18260 [details] testcase.tar.gz Unpack, go into the dir 'testcase' and open writeMail.html in konqueror with JS enabled. You can select a file to upload, but once you hit 'attach' ('anhängen') nothing happens. I tried firefox-2.0 and it works, allthough it doesn't work with the testcase (doh). Maybe it's because of the user agent info, but I already tested with konqueror and different infos (Safari, Firefox, IE). I know this is pretty thin, but it's the best I can think of right now. Regards Sebastian
Your testcase is broken --- it needs outside frames for it to work, and I don't see it doing anything we would have issue with.
Hi Maksim, that's what I feared, sorry. I don't really know what to do because the site needs a login (i.e. how can I get a working testcase without giving up my login). I think I'll have to use firefox for now and hope that future bugfixes in konqueror close the gap for the problem I'm having as well. Btw the site I'm having issues with is http://oc-privatfh-da.de/ Should I close this because I can't produce a working testcase? Regards Sebastian
Well, you could try telling us a bit more about the problem: first of all, please elaborate on what exactly happens when you try to add an attachment, e.g. what steps you take, and what exactly happens/doesn't happen. Also, please try it with JavaScript errors enabled --- Settings -> Configure Konqueror -> Java & JavaScript -> JavaScript -> Report errors and tell us whether any show up. That may be enough combined with the fragment you provided to figure out what's going wrong... (And you'll probably want to turn it off again, since it's not uncommon for websites to have errors, so it gets annoying)
I ran konqueror with JS debug mode and I got some warnings/errors: There were different lines with the same error (lines 56,150 and 245) in writeMail.jsp (it really is writeMail.html I think). This is the error message: "ReferenceError: Can't find variable: FCKeditorAPI" The corresponding code: function set HtmlText() { var_fck = FCKeditorAPI.GetInstance('message'); } It seems I get the error everytime the function is executed. Then there's another error regarding this line: <a class="button" href="#" onClick="cancle()" title="abbrechen">abbrechen</a></TD> Is this helpful at all?
I'm gonna install imagemagick and make some pictures :)
That's on the real page, right? Well, that's interesting... If you do it in mozilla and open the JavaScript console, is there the same error?
OK, I can't really put pics up without revealing personal infos. So I'll try to put things into words. I enabled the JS debugger and the error reporting. The first weirdness is that I have to activate JS globally, otherwise I'll only get a blank page when the email applet starts up, allthough oc-privatfh-da.de is in my JS allow list. Then I got to http://oc-privatfh-da.de/ and click "Login". A new window without toolbards comes up. I write my credentials into the boxes and hit "OK". Then I navigate the menus to get to an item that allows sending mails with attachments. I click the item and there pops up the dialog (but only when JS is activated globally like I mentioned above). Now I see one input box for the subject, one for the message and a file chooser dialog. Also there's a box that usually gets filled with the files to upload, it's empty right now. There are 4 buttons, one to send, one to cancel, one to attach a file and one to remove a file. Now I select a file and hit the attach button. I get the above mentioned error message "Can't find variable: FCKeditorAPI" for like 3 times and that's it. No files get added to the list. It's a little bad that I can't copy'n'paste the error messages or make a pic of them.
I attached a file in Firefox and watched the "error console". There were warnings like "Unknown properties 'filter' . Deklaration ignored. http://oc-privatfh-da.de/fckeditor/editor/skins/default/fck_editor.css" or "Error processing value of property 'filter'. Deklaration ignored. http://oc-privatfh-da.de/fckeditor/editor/skins/default/fck_contextmenu.css" but no errors like in konqueror.
OK, I actually figured it out, and it kind of sucks :-(. Basically, they use something called FCKeditor, which supports fancy editting with richtext functionality using some hard-to-implement APIs which we don't have, and which are sort of a long-term-goal type thing. Now, that thing falls back to having a plaintext text area just fine when it doesn't support the browser, but when that happens, it does not setup the FCKeditorAPI object, and your webmail page uses that unconditionally. So basically, we are screwed until we get that functionality, and then until the editor version gets updated, etc --- though it'd be a trivial 2-line type change to the website to make it work.. (Basically changing the setHtmlText method to something like this: if (FCKeditorAPI) document.sendmail.message.value = FCKeditorAPI.GetInstance('message').GetHTML(); else document.sendmail.message.value = document.mail.message.value; ) So thanks for your help, and sorry that it's not something that can be fixed short-term.. *** This bug has been marked as a duplicate of 95923 ***
Hi Maksim, thanks for your help! Just to clear things up; the file upload doesn't work because the website uses FCKeditorAPI unconditionally? And do you by chance know why the mail interface pops up blank when JS is disable globally (but oc-privatfh-da.de is still allowed to use JS)? Thanks so much Sebastian
Yes... As for the second one: not sure, perhaps some JS files are on different hostnames or such...
Thanks Maksim, seems I have to bug the hoster a bit :-) Regards Sebastian