Problem with firefox

  • Thread starter Thread starter gouri.misra
  • Start date Start date
G

gouri.misra

Hi,
Seems i have an error and i cant find a way around it.

Using firefox whenever i try to assign the value from a grid to a
textbox using:

contrTxtName.value =
eval("contrDgProductGroups.rows[1].cells[1]."+textValue);
where textValue = textContent when the browser type is firefox.

what happens is the value comes something like--

/n myText /n
...

I am not able to understand why this happens even though the date saved
in the Database is sane.

Please help
 
hi
i presume this is a client-side javascript question. also, you don't say
what the date in the database is about.
anyway... firefox has a different javascript implementation to IE, so you
can't be sure that it will all be compatible. from your example, it looks
like the whitespace is reported differently in firefox, although it's a
little hard to tell because we don't know what the expected value is :)
perhaps you can employ a 'trim' function to remove any whitespace from the
string?

hope this helps. and if not, please give more detail on what is happening,
and what you want/expect to happen.
tim
 
Back
Top