/    Sign up×
Community /Pin to ProfileBookmark

onclick(), onsubmit() and firefox not responding

Hey

Im sorry if this problem have been posted before, but I cant find any thread that really matches my problem.

The thing is that this link works in IE but not in FF.

this is the link in my php file:

[CODE]<a href=”#” onclick=”submitform(‘” . ($atnr+1) . “‘)” class=”right”>
<img src=”../button1.jpg” alt=”Done” border=0 /></a>[/CODE]

and this is the javascript:

[CODE]function submitform(nextSide) {
formTrinn.side.value = nextSide;
}[/CODE]

thx

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@DokAug 20.2007 — The submitform function is merely setting the value property of a form element. I take it from the post headline that you want it to submit.

Can you clarify what it is you want to acheive?
Copy linkTweet thisAlerts:
@TrailOfDeadauthorAug 20.2007 — Im sorry.

The thing is, that it is a multipage webform. First page inputs phone number, second page inputs subscribtion, third page inputs name, and so on.

The links job is to send a page variable. Witch page to be shown in other words. Every "page" is located in the same php file and the data is sendt to this file by POST method. So its not really a submit form untill the last page is done, and the form is actually sendt to the final page.

On the first page, the link is onclick="submitform(2)".

Well my problem is that it seems FireFox isnt sending the right variable or getting the variable...

Thx
×

Success!

Help @TrailOfDead spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...