I've faced a problem recently, in my web app, I have a number of hidden inputs on the page to store (when generated on server) values for latter usage (on client size), one of them is: - <input name="my_id" type="hidden" value="part_one\\part_two">
In Opera and IE (wow), it works great and I successfelly recieve "part_one\\part_two" when calling: - window.alert(document.getElementById('my_id').value);
but in FF I get only "part_two"? any suggestions? (Except for pre-replaceing \\ to smth else before setting it as a value :) )
Is that my bug or their?
4 1280
Hi PsychodelEKS welcome to TSDN,
i created a test page with that code and tested it on firefox 2.0.0.6 and ie7, and it is working fine.
when in your code are u calling getElementById? cuz if u do it too early it doesn't work...
I've faced a problem recently, in my web app, I have a number of hidden inputs on the page to store (when generated on server) values for latter usage (on client size), one of them is: - <input name="my_id" type="hidden" value="part_one\\part_two">
In Opera and IE (wow), it works great and I successfelly recieve "part_one\\part_two" when calling: - window.alert(document.getElementById('my_id').value);
but in FF I get only "part_two"? any suggestions? (Except for pre-replaceing \\ to smth else before setting it as a value :) )
Is that my bug or their?
after looking closer i see an error, your input has no id attribute, should be
[html]
]<input id="my_id" name="my_id" type="hidden" value="part_one\\part_two">
[/html]
in order to get it to work with the javascript
good luck
after looking closer i see an error, your input has no id attribute, should be
[html]
]<input id="my_id" name="my_id" type="hidden" value="part_one\\part_two">
[/html]
in order to get it to work with the javascript
good luck
OMG, much thanks, epots9, I should work less and sleep more =) I was confused by the fact it worked in Opera and IE as expected.
OMG, much thanks, epots9, I should work less and sleep more =) I was confused by the fact it worked in Opera and IE as expected.
yes ie makes it own rules where FF wants the correct ones.
come back anytime u need help.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: lawrence |
last post by:
A user writes this sentence: "It was the New Urbanist's nightmare of
sprawl run amok."
They input that and my PHP script hits it with addslashes() and then
the sentence gets put in the database....
|
by: bdwise |
last post by:
I have a textbox in a form, and I need to allow users to enter dates
in US Format (MM/DD/YYYY). But they do not want to type any slashes,
just 8 numbers, and have the slashes added for them.
...
|
by: StevePBurgess |
last post by:
Ok. I have checked the magic quotes is on. I have a form on my web
page. The input from this is sent (by POST) to the server. A PHP script
processes it. If there any errors the input is urlencoded...
|
by: Csaba Gabor |
last post by:
Short version: if the user types an alt+ctrl+char combination which
leads to a defined character, but s/he's not in a input(text)/textarea,
then I'd like that keystroke combination to do the same...
|
by: kirubagari |
last post by:
04 FF 79 04 3B 04 04 FF -7A 04 3B 04 04 FF 7B 04
3B 04 04 FF 7C 04 3B 04 -04 FF 7D 04 3B 04 04 FF
7E 04 3B 04 7F 04 3B 04 -04 FF 80 04 3B 04 04 FF
81 04 3B 04 04 FF 82 04 -3B 04 04 FF 83 04 3B 04...
|
by: kirubagari |
last post by:
is it possible to do deletion in visual basic.
1.04 FF F2 03 37 04 04 FF - FF 03 37 04 04 FF F0 03.....line 1
2.37 04 04 FF EF 03 37 04 - 04 FF 04 FF EE 03 37 04.....line 2
3.04 FF ED 03 37 04...
|
by: Jim Langston |
last post by:
The output of the following program is:
1.#INF
1
But:
1.#INF
1.#INF
was expected and desired. How can I read a value of infinity from a stream?
|
by: ll |
last post by:
I'm working with the script below which works with FF but not with IE
7. To clarify, the part of the code which isn't working in IE 7 is
putting the value of variable y in the "totalString" input...
|
by: montybytes |
last post by:
Hi there,
Although, I have already placed this question in the HTML/CSS section, perhaps it might be worthwhile asking the question here as well.
I have a JavaScript function which retrieves...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
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$) {
}
...
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |