473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Javascript, FireFox, Form inside a function, problem.

67
Well, I'm having a select drop down like this -

[HTML]<select name='xnum' onchange="callme(value,0,1,3)">
<option value='0'>0</option>
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
</select>[/HTML]

The function callme is like this -

Expand|Select|Wrap|Line Numbers
  1. function callme(x,y,s,f)
  2. {
  3.   var z=0;
  4.   var msg="",z=0;
  5.   z=eval(x)+eval(y);
  6.  
  7.   msg = '<table border="0" width="100%" align="center">';
  8.   for(k=y+1;k<=z;k++){
  9.       msg += "<tr><td align=\"center\" class=\"item\" style=\"font-weight:bold;\">Choix "+k+"&nbsp;&nbsp;<input type='text' name='choice[]' size='60'>&nbsp;</td></tr>";
  10.       }
  11.  
  12.         if ((s==1)&&(f!=5)) {
  13.             msg += "<tr><td align=\"center\" class=\"item\" style=\"font-weight:bold;\">Choix N&nbsp;&nbsp;<input type='text' name='texteextra' size='60'>&nbsp;</td></tr>";
  14.         }
  15.  
  16.  
  17.   msg += "</table>";
  18.   document.getElementById("showhere").innerHTML = msg;
  19. }
When a user select a any number from the drop down, that number of fields open up, what user can fill up and submit.

On form submit, I'm collecting the data by $_REQUEST['choice'] which is then getting stored to the database. Problem - it's working perfectly in IE7 where I've tested it. However, on checking the same on FF, I'm getting nothing inside $_REQUEST['choice'].

Any hints friends ?
Thanks. :)
Feb 3 '08 #1
1 1298
kigoobe
67
solved :)

I was starting the <form> between <table> and <tr> ... he he ... very stupid mistake ...
Feb 3 '08 #2

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

Similar topics

4
by: Dave Blair | last post by:
Hi, I have a problem with our intranet, we are planning to install Firefox instead of Internet Explorer onto some new PCs. However, we can't get the following JavaScript to work in Firefox and...
14
by: tshad | last post by:
I posted this on the asp.net group, also. I wasn't sure whether this was an asp.net problem or a javascript problem. I have a page that was originally created from a program I found on the net...
6
by: bonehead | last post by:
Greetings, I'm working on an e-mail form (btw many thanks to Philip Ronan for the very cool email address format tester function, best I've seen so far). I've been trying, with limited...
9
by: tshad | last post by:
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
18
by: Chris Ianson | last post by:
Hi geniuses (or is that genii, or genies) The challenge is as above really. I have a page with an iframe in it, and need to call a JS function in the *parent* page, *from* inside the iframe. ...
7
by: John | last post by:
Hi Everyone, I'm having this extremely annoying problem with Internet Explorer 6, giving me an error message saying "unknown runtime error" whenever I try to alter the contents of a <divelement...
2
by: joelkeepup | last post by:
Hi, I made a change this morning and now im getting an error that says either "a is undefined or null" or "e is undefined or null" the microsoft ajax line is below, I have no idea how to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.