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

ajax problem

K.
Hi!

I have problem with Firefox. I have such code:
<?
$xml = "<?xml version='1.0' encoding='utf-8' ?>";
$xml.="<table>";

$xml.="<tr><td colspan=\"5\">
<input type=\"hidden\" value=\"".$licznikk."\" name=\"il_poz_juz_wygener\"
id=\"il_poz_juz_wygener\">
<input type=\"text\" value=\"".$licznikk."\"
name=\"il_poz_juz_wygener_post\" id=\"il_poz_juz_wygener_post\">
<textarea name=\"utwory_wypadniete\" id=\"utwory_wypadniete\" cols=\"60\"
rows=\"4\"></textarea>
</td></tr>";
$xml.="</table>";

echo $xml;

?>
<form name="form_nowe_notowanie" action="" method="post"
id="form_nowe_notowanie">
<table style="text-align:left;" cellpadding="0" cellspacing="0"
class="tabelka">
<tr>
<td colspan="4">
<div id="div_lp_lista">
<input type="text" value="<?=$licz; ?>" name="il_poz_juz_wygener"
id="il_poz_juz_wygener">
</div>
</td>
</tr>
</table>
</form>

Div with id="div_lp_lista" is the div which is replaced by ajax event.

After posting the form

echo $_POST["il_poz_juz_wygener_post"]

gives me 30 in Internet explorer 7.0., but on Firefox

gives me null

I don`t know why. I spent 3 hours on it and I cannot find any error.

Could you help me solve this problem?

Thank you in advance
Apr 24 '07 #1
2 1431
On Apr 24, 9:55 am, "K." <halinaciern...@poczta.onet.plwrote:
Hi!

I have problem with Firefox. I have such code:
<?
$xml = "<?xml version='1.0' encoding='utf-8' ?>";
$xml.="<table>";

$xml.="<tr><td colspan=\"5\">
<input type=\"hidden\" value=\"".$licznikk."\" name=\"il_poz_juz_wygener\"
id=\"il_poz_juz_wygener\">
<input type=\"text\" value=\"".$licznikk."\"
name=\"il_poz_juz_wygener_post\" id=\"il_poz_juz_wygener_post\">
<textarea name=\"utwory_wypadniete\" id=\"utwory_wypadniete\" cols=\"60\"
rows=\"4\"></textarea>
</td></tr>";
$xml.="</table>";

echo $xml;

?>
<form name="form_nowe_notowanie" action="" method="post"
id="form_nowe_notowanie">
<table style="text-align:left;" cellpadding="0" cellspacing="0"
class="tabelka">
<tr>
<td colspan="4">
<div id="div_lp_lista">
<input type="text" value="<?=$licz; ?>" name="il_poz_juz_wygener"
id="il_poz_juz_wygener">
</div>
</td>
</tr>
</table>
</form>

Div with id="div_lp_lista" is the div which is replaced by ajax event.

After posting the form

echo $_POST["il_poz_juz_wygener_post"]

gives me 30 in Internet explorer 7.0., but on Firefox

gives me null

I don`t know why. I spent 3 hours on it and I cannot find any error.

Could you help me solve this problem?

Thank you in advance
post the faulty javascript on the comp.lang.javascript, use a cross
browser ajax library and when you write code make sure its cross
browser js by not using M$ methods that only work with IE.

Apr 24 '07 #2
MZ
I know what it was.

Firstly, I have the error in the code. I have validated it by w3 validator
and I had to change div not to have blank lines before pasting xml code by
ajax because it also generated a problem.

After this all my page is html valid and forms is work well.

I think the main problem was in the <formtag, because I have had it on the
not good place and firefox html interpreter didn`t see the <formtag after
submitting form and all of the form <input>s were empty

Firebug helped me a lot to fix the problem.

Kindest regards
Macin
Apr 29 '07 #3

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

Similar topics

4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
5
by: Martin | last post by:
Hello NG, I've been doing some AJAX for a few weeks now. The basics worked fine so far, but now I've got the following problem which I can't solve: With AJAX you typically update/replace only...
3
by: Alok yadav | last post by:
I have an open IP and on that IP our main application is hosted. it uses ajax. in web.config file i have register ajax handlers. there are also other sites or project on that IP. now my problem is...
3
by: equazcion | last post by:
Hi, I have an image reference (IMG) in my page that changes depending on the value of a database field. Clicking the image triggers an Ajax call to change the database field (toggles the field...
7
by: tommurray | last post by:
Hi all Hope someone can help with the problem I am having as it is driving me nuts! I have the below script on my site the problem lies with passing through a url parameter in the below line...
6
by: =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post by:
Greetings! I was researching AJAX to provide a solution to displaying status messages while a long process executed. I found several examples online and was able to use their code to get a quick...
2
by: shivendravikramsingh | last post by:
hi friends, i m using a ajax function for retrieving some values from a database table,and display the values in required field,my prob is that the ajax function i m using is working f9 once,but if...
3
by: willl69 | last post by:
Hi All, Ive been having a problem of late with one of my sites that uses PHP5 / Ajax. The problem is that periodically the ajax functions lock up and it gets stuck in the loading phase of the...
2
by: majidtou | last post by:
Hi , We have an HTML page which is using AJAX. We make an AJAX call which retrieves a table with mutiple rows. We need to extend this functionality. In the table, we want to put a button on each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.