You are not logged in.

1

Sunday, March 11th 2007, 9:57pm

Konqueror Javascript Implementation

I am becoming increasingly frustrated with Konqueror's hypersensitive behavior with regards to Javascript. Consider the following snippet of code which works in Firefox, Mozilla, IE and Opera and NOT in Konqueror.

Observe a snipping of the relevant parts. The contents of replier are not relevant. The error is in the fact that document.forms.REPLIER.previewbox seems to be not found.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<FORM ACTION=action.php NAME=REPLIER METHOD=POST enctype=\"multipart/form-data\">
<INPUT TYPE=BUTTON CLASS=SUBMIT NAME=preview VALUE='Preview Post' onclick='previewMode();'>
<object name='previewbox' data='previewpost.php' type='text/html' style='height:300px; width:100%'></object>
</form>

<SCRIPT type='text/javascript'>
<!--
function previewMode()
{
document.forms.REPLIER.previewbox.contentDocument.forms.PREVIEW.lid.value = document.forms.REPLIER.layout.value
document.forms.REPLIER.previewbox.contentDocument.forms.PREVIEW.text.value = document.forms.REPLIER.message.value
document.forms.REPLIER.previewbox.contentDocument.forms.PREVIEW.submit()
return true
}
//-->
</script>


Now. To be honest, I am loathe to blame a browser for code not running, it almost never happens that it's the browser's fault. HOWEVER, when something executes fine in Firefox, IE, and Opera, I begin to question if it might be a browser issue. What is going on?

2

Sunday, March 11th 2007, 10:58pm

The best thing to do is to file a bug report about this at bugs.kde.org
Help mee om KDE 3.5.5 in het Nederlands te vertalen

3

Sunday, March 11th 2007, 11:05pm

I'm not entirely convinced that it's a bug. Though I notice something.

alert(document.forms.length) returns one number lower in Konqeror than every other browser I have tested with.

4

Monday, March 12th 2007, 10:47am

I would consider that a bug ;)
Help mee om KDE 3.5.5 in het Nederlands te vertalen

5

Monday, March 12th 2007, 3:24pm

Another interesting issue. Even if I put a submit button in the subpage (the one inside the object) it can't submit. It seems konqui might really have a bug with the interaction of forms and object tags.

craiglarry

Beginner

Posts: 2

Location: US Citizen

Occupation: retired with private projects

  • Send private message

6

Monday, March 26th 2007, 2:52pm

RE: Konqueror Javascript Implementation

Just fyi, why is there such an obstacle course put in the way of new members. Gosh it's really difficult to get on here! Went round in circles for two days before I could post.

But to the thread at hand. In Kubuntu Forum there was heavy evidence among other posters that the instability problems with both firefox and kongueror was java related. One poster said he got an update Java 1.5 and then the trouble began. His solution was to rollback to 1.4 and all the problems went away like magic. Unfortunately I'm newbie to Kubuntu and not much better in ubuntu, so I have no idea how to perform his good suggestion and he didn't say HOW he did it. Actually instability in browser began with Kubuntu upgrade for me. Running breezy badger. I looked around and found that KDE had not been fully installed with Kubuntu so remedied that. The problem with firefox and konqueror goes on. It's really frustrating to be deep in to surfing and suddenly the browser disappears and the bug report gives no useable information.

Found several variations on this theme. Seems like some update is in order for kde or kubuntu or both. Of course if someone can give me some help and tell me how to get the right java version on my system, and can tell HOW to do this, I'd be both happy and grateful.

Thanks



Quoted

Originally posted by mmxbass
I am becoming increasingly frustrated with Konqueror's hypersensitive behavior with regards to Javascript. Consider the following snippet of code which works in Firefox, Mozilla, IE and Opera and NOT in Konqueror.

Observe a snipping of the relevant parts. The contents of replier are not relevant. The error is in the fact that document.forms.REPLIER.previewbox seems to be not found.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<FORM ACTION=action.php NAME=REPLIER METHOD=POST enctype=\"multipart/form-data\">
<INPUT TYPE=BUTTON CLASS=SUBMIT NAME=preview VALUE='Preview Post' onclick='previewMode();'>
<object name='previewbox' data='previewpost.php' type='text/html' style='height:300px; width:100%'></object>
</form>

<SCRIPT type='text/javascript'>
<!--
function previewMode()
{
document.forms.REPLIER.previewbox.contentDocument.forms.PREVIEW.lid.value = document.forms.REPLIER.layout.value
document.forms.REPLIER.previewbox.contentDocument.forms.PREVIEW.text.value = document.forms.REPLIER.message.value
document.forms.REPLIER.previewbox.contentDocument.forms.PREVIEW.submit()
return true
}
//-->
</script>


Now. To be honest, I am loathe to blame a browser for code not running, it almost never happens that it's the browser's fault. HOWEVER, when something executes fine in Firefox, IE, and Opera, I begin to question if it might be a browser issue. What is going on?
craiglarry

7

Monday, March 26th 2007, 5:10pm

RE: Konqueror Javascript Implementation

One: Ubuntu/Kubuntu 7.4 is coming out in about 3 weeks anyway.
Two: The problem in this case was Konqueror being unable to submit ANY forms located within a page that was being displayed within an object tag. It ended up not being a Javascript issue.
Three: You realize Breezy isn't even supported anymore, right?

craiglarry

Beginner

Posts: 2

Location: US Citizen

Occupation: retired with private projects

  • Send private message

8

Monday, March 26th 2007, 9:31pm

RE: Konqueror Javascript Implementation

Thanks for your reply. I appreciate your will to help.
Yes, I am aware breezy is not supported. Then why am I using it? is the question, isn't it? Good reason. I've tried two other distros mainly two sources of ubuntu dapper 6.06 LTS, 64 bit on AMD athlon 64 and dapper 6.06 LTS i386, and they are so buggy as to be useless. You spend more time searching and repairing than using. For one thing the take snapshot will from time to time take off and run over and over until RAM is full. For another the internet connection progresses over time with no intervention from me from unstable to unavailable. I believe this may be due to an inability to accept a firewall. Tried four different ones and Firestarter just prompted a reinstall. Constantly jumping off line and then jumping off for good. Though breezy is not supported it is by far the most stable version I've used. I'm using it now with fairly good success. If it is not supported they should take it off the download mirrors, don't you think? Or at least notify of this fact before you spend the long hours downloading and burning the iso.
Well, this just shows that there is work still to be done in Linux. Generally I'm having a fun.interesting time. Thanks again.
craiglarry