By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,695 Members | 1,638 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,695 IT Pros & Developers. It's quick & easy.

Problème with OnClick in Konqueror embedded

P: 7
Hi All
I have a strange problème with the OnClick methode: it does not work whene i use Konqueror embedded!
I developpe a very simple test script:


<HTML>
<HEAD>
<script language="javascript" src="~/app_javascript/jvs_function.js">
function camarche() ;
</script>
</HEAD>
<BODY>
<FORM>
<INPUT type="button" VALUE="Afficher" onClick=camarche()><BR>
</FORM>
</BODY>
</HTML>
///////////////////
My function:

function camarche()
{
alert ("oui, ça marche!");
}
/////////////////
this test work fine with mozilla firefox konqueror (desktop) but whene i click button there is nothing with konqueror-embedded.
Please anyone can help me???????????????
Nov 16 '06 #1
Share this Question
Share on Google+
7 Replies


100+
P: 143
Perhaps Konqueror embedded doesn't contain the same level of DOM support that the desktop version does. In fact, I think that's likely the case.

Also, you should always code your pages so that they degrade nicely when Javascript has been disabled or isn't supported, meaning code your website to work without Javascript and then once it works nicely, create your Javascript to work on browsers that have it enabled or supported. This way, you cater to everybody.
Nov 16 '06 #2

P: 7
Thank you for your assistance steven .
The Onclick method does not work in a simple HTML page.So I think that the problem does not come from the Javascript.
About the version of the DOM, how can I solve the problem if it is the case? Tt's not clear for me ??
Nov 16 '06 #3

ronverdonk
Expert 2.5K+
P: 4,258
Is there any truth in the statement that you must spell it as onclick because some browsers (such as NS 3) do not quite support onClick?

Ronald :cool:
Nov 16 '06 #4

P: 7
I didn't understand you Ronald.
In fact I developed a program for an embedded system in "C" my application uses Konqueror embedded. I need to develop a page in Javascript which return some data coming from my program when a user clicks on button. I believe that the only possibility is to use the OnClick method. But it does not work and I cannot debug To be sure that the error does not come from my application I tested this method in a very simple page but it does not seem to work. I need any help I am desperate.
Think you.
Nov 17 '06 #5

10K+
P: 13,264
I didn't understand you Ronald.
In fact I developed a program for an embedded system in "C" my application uses Konqueror embedded. I need to develop a page in Javascript which return some data coming from my program when a user clicks on button. I believe that the only possibility is to use the OnClick method. But it does not work and I cannot debug To be sure that the error does not come from my application I tested this method in a very simple page but it does not seem to work. I need any help I am desperate.
Think you.
What [size=3]ronverdonk[/size] vbmenu_register("postmenu_2206493", true); is trying to say is test it with
onclick, all lowercase instead of onClick because he thinks that some browsers do not recognise onClick with capital c
Nov 17 '06 #6

P: 7
What [size=3]ronverdonk[/size] vbmenu_register("postmenu_2206493", true); is trying to say is test it with
onclick, all lowercase instead of onClick because he thinks that some browsers do not recognise onClick with capital c
Ah! OK;
I try with "onclick" but It doesn't work.
I remenber that i have tested the onclick méthode few days ago and it worked. It's really strange i didn't change any thing .????
Nov 17 '06 #7

P: 7
Hi all,
Is there somebody who knows why the OnClick methode does not work in konqueror embedded? And how to solve this problem?
Any idea will be appreciated . think you a lot.
Nov 20 '06 #8

Post your reply

Sign in to post your reply or Sign up for a free account.