473,387 Members | 1,834 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,387 software developers and data experts.

Something Wrong? IE works but Firefox ...

Allways I think Firefox was strong, enough ... and so far THE BEST Web-
browser (That what I Think) but, now Im fighting with it, may be Im
doing something wrong (of course that is what happend to me)

....
<script LANGUAGE="JavaScript">
<!--
var msg1="";
var msg2="";
function Mostrar(valor)
{
var
msg1=window.document.formulario2.seccionA.options[formulario2.seccionA.selectedIndex].value;
var
msg2=window.document.formulario2.proveedorA.option s[formulario2.proveedorA.selectedIndex].value;
var seccion='&seccion=' + msg1;
var proveedor='&proveedor=' + msg2;
location.replace(valor + seccion + proveedor);
}
//-->
</script>
<tr>
<td bgcolor="#cedfea"><div style="position:relative;top:8px;left:
35px; float:left;z-index:2;" class="titulos1">Detalle</div>
<div style="position:relative;top:0px;left:-30px;z-index:
1;float:left"><img src="../global/img/fondo_titulo2.gif" alt=""
border="0"></div>
<div style="position:relative;top:3px;left:30px;z-index:
1;float:left">
<form action="nada" method="GET" name="formulario2"
id="formulario2">
<select name="seccionA" style="width:150px;padding:
2px;height:17px;">
<!-- BEGIN option1 -->
<option value={valopt1}>{opt1}</option>
<!-- END option1 -->
</select>
</div>
<div style="position:relative;top:3px;left:50px;z-index:
1;float:left">
<select name="proveedorA" style="width:150px;padding:2px;height:
17px;">
<!-- BEGIN option2 -->
<option value={valopt2}>{opt2}</option>
<!-- END option2 -->
</select>
</form>
</div>
<div style="float:right; margin-top:4px;"><A
href="javascript:Mostrar('{additem}');"><img src="../global/img/
agregar.jpg" alt="" width="26" height="20" border="0" style="margin-
right:4px;"></a><A href="{delitem}"><img src="../global/img/
eliminar.jpg" alt="" width="26" height="20" border="0" style="margin-
right:4px;"></A><A href="{refresh}"><img src="../global/img/ok.jpg"
alt="" width="26" height="20" border="0" style="margin-right:4px;"></
A></div></td>
</tr>

Ok, IŽll try to explain what does do that. (My english is very WEAK)
now Im using some TPL - Pear functions. My idea is take a pair of html
- select - options to send a selection of this to a PHP (for update
old info). (Nothing AJAX yet I hope soon implement something about
this if you know some easy and good manual tell me - I was googling
for everywhere but I just sink)
Between <BEGIN option1and <END option1(the same with option2) I
load a pair of value.
With var {refresh}I send my PHP file catcher. Is where data will sent.

So, I just use JScript to click in A Href to call a JScript function
for make a redirect to my PHP. with this two parameters.
This Kind of code work in IExplorer 6 and 7, but in my Dear Firefox
didnŽt, do you know why? Thanks for your support!
Alvaro J. Vera.-

May 6 '07 #1
1 2204
On May 6, 1:00 am, "alvarojavierv...@gmail.com"
<alvarojavierv...@gmail.comwrote:
Allways I think Firefox was strong, enough ... and so far THE BEST Web-
browser (That what I Think) but, now Im fighting with it, may be Im
doing something wrong (of course that is what happend to me)
<script LANGUAGE="JavaScript">
Unless you are working with HTML 3.2, which would be a very odd
choice, your HTML is invalid. Broken HTML is a shaky foundation to
build JavaScript on.
<!--
These comments are worthless today, they're there to hide the JS from
Netscape 2 era browsers.
var msg1="";
var msg2="";
function Mostrar(valor)
{
var msg1
You have a variable called msg1 in the global scope (an empty string)
and now you create another one scoped to this function. Are you sure
you want to do that?
=window.document.formulario2.seccionA.options[
Most people leave the "window" off that. I'd also suggest using:

document.forms['forumulario2'].elements['seccionA'].options for
clarity.
formulario2.seccionA.selectedIndex].value;
formulario2 is undefined here... but the JavaScript console (or
Firebug) on Firefox should have told you that.
</script>
<tr>
I take it back. You aren't writing HTML 3.2, that is just plain
invalid. Use a validator.
http://validator.w3.org/

May 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: uberderf | last post by:
I have the following web page setup: http://angels.uberderf.com/glossary.html I have a 2 column table layout which is a glossary of terms and their meanings. When you view this page in firefox...
2
by: Shapper | last post by:
Hello, I have an ASP:Image and an ASP:ImageButton where I set Width=100. Asp:ImageButton is resized in Internet Explorer but not in Firefox. Asp:Image is resized both in Internet Explorer...
7
by: Stefan Mueller | last post by:
I choose 'Entry 4' and click then on the button 'Set' to set the index to 'Entry 2'. If you press now the cursor down key 'Entry 5' instead of 'Entry 3' shows up with Mozilla Firefox. With Internet...
1
by: Stefan Mueller | last post by:
In my example the focus should only jump to textbox2 if you press the tab key and if '11' is in textbox1. That works fine. However if you enter e.g. '12' in textbox1 and click on 'Link', Mozilla...
6
by: rwsims | last post by:
This works in firefox, not at all in ie6. I'm not getting any errors, but only the doalert() function works, not the click() function. I'm sure there's something obvious, but I'm just not seeing...
3
by: JaRudzik | last post by:
Hello Try to add some blank text field and refresh window in IE it is ok but in firefox input hide_show works wrong , why ? Somebody can help me ? I'm not good in JS beacause I'm PHP coder ...
3
by: paulgor | last post by:
Hi, May be it's a know issue but my search brought nothing... We have static HTML files with Japanese text in UTF-8 encoding - it's on-line Help for our application, so there are no Web...
4
by: puja | last post by:
hi all, I have an asp.net website where am including .css file dynamically on page load event. For diff users, there is diff CSS file. So after user logs in, I am setting CSS href on page load....
7
by: Peter | last post by:
I have the following code in DonNetNuke application, I am trying to create a popup in every DataList Item, eveything is working with exception the popups do not line up with every DataItem. How do...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.