| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> Agamemnus|af, what StaZ[work] put may not be pretty, but it work. know what your are reading <1> ht311 twas just a wild guess, that would be my approach, though i think i'd ever need such a structure <2> No... <2> that's still a function... <0> I am fine with that, just funny to see Agamemnus|af comment on "javascript doesn't really work like that" <3> I was talking to tybalt, not staz. <3> nvm.... <0> ic <4> hi <3> hi <4> so i have a problem with an ajax form validation a made <4> actualy it work <3> but... <4> but it return some error <3> what browsers? all? <4> FF
<3> not IE? <4> all <3> what is the error? <4> but i see the error message on FF js console <4> i do something like this : <4> var re; <4> re = http_request.responseText; <4> and the message is syntaxe error <4> on this line re = http_request.responseText; <0> paste your code to a pastebin <3> try re = "" first <4> http://rafb.net/paste/results/Hz9e2567.html <3> instead of var re; <4> this is the complete code <5> Agamemnus that won't make any difference. <4> its short <3> what line is it? <4> 15 <3> 'POST' <4> non sorry <4> i mean 30 <3> hmm <3> can you do alert(responseText) ? <4> yes <5> wyst what is the error FF gives? <4> it's some thing like "fooooo_1" <3> perhaps it isn't on line 15 at all <3> it can't be a syntax error <4> dave-e : syntaxe error <5> No, the full error. Hmm, better yet, is this online so I can see for myself? <4> Agamemnus : on line 15 i have "no such parameter" <4> but i will try POST <4> here is the full error <4> Erreur: erreur de syntaxe <4> Fichier source: http://mondialwatch.com/site/ajax/ifexistefile.php <4> Ligne: 1, Colonne: 2 <4> Code source: <4> Champ obligatoire._1 -^ <4> sorry it's in french <4> my var re contain "Champ obligatoire._1" <0> i see nothing from that link <5> Yeah, blank file... <5> Um. If line 1 of your JS is Champ obligatoire._1 then of course that's a syntax error. <5> It's not JavaScript... <4> no <5> That's what the error is saying. <4> in facte my var re contain this string <5> That's not what the error message says though... <5> What's the address of the page? http://mondialwatch.com/site/ajax/ifexistefile.php is a blank file here <0> don't think you can use _ in the begining <3> you need authorization, dave <3> :-( <4> but i call my php script hear http_request.open('POST', 'http://mondialwatch.com/site/ajax/ifexistefile.php', true); <3> we can't access it, perhaps your script can't either <4> and the php return a tring which is Champ obligatoire._1 <3> the file is p***worded <4> i get it in re re = http_request.responseText; <0> we see nothing <3> the file is p***worded! <4> Agamemnus : yes but the file don't return anything <3> how would we know that?
<5> Um... the error message FF is giving says that you're trying to actually run that file as JS. <4> the important is the code i had post <5> So it's giving a syntax error on Champ obl... <4> dave-e : nop i just add a p***word <4> it wasn't <5> [21:14] <4> here is the full error <5> [21:14] <4> Erreur: erreur de syntaxe <5> [21:14] <4> Fichier source: http://mondialwatch.com/site/ajax/ifexistefile.php <5> [21:14] <4> Ligne: 1, Colonne: 2 <5> [21:14] <4> Code source: <5> [21:14] <4> Champ obligatoire._1 -^ <5> That error says you're trying to evaluate the file as JS. <4> yes <3> wyst, make another piece of code, and just have the open code in there <4> but this is not what i done <4> this page is the php script i call in my ajax <5> wyst any chance we can have a working URL to the page? <3> and an alert(http.responseText) <4> yes juste a moment please <4> now its ok <0> Nothing <4> of course <5> It's blank or we have the wrong address. <4> this is a php script <4> its blank <5> PHP outputs things... <4> the php script ouput things if you input things :) <5> How can the browser give an error on a blank page? <5> So where's the page that inputs stuff then? <0> blank as in blank source code, nothing , no js, no html . blank blank blank <4> actualy it performe a validation of post data <5> Ok, which page does the posting? <5> So I can load it and see the error... <4> any xhtml form <0> ........... <4> then the data is sent with ajax <5> You have a page with JS on, yeah? That posts to that .php file. <4> and validate by my script which return a message only if their is and error <5> So what's the address of the page that contains the broken JS? <0> and my we see the very special error on that very special xhtml form? <4> the ajax is hear : <4> http://rafb.net/paste/results/Hz9e2567.html <4> but i think i undertood <4> FF js console try to evaluate all the links he find in the page <4> even the css <5> That JS must be on an HTML page somewhere... <5> Dude... <5> How are you running that JS? <4> so he try to evaluate php validation script <4> dave-e : i call it with <script> in the header <4> and onblur event <5> Yeah, but on what page? <5> All you've shown us is a pastebin of the JS and a blank PHP file... where is the HTML file that actually includes this JS? <4> onblur="sendRequest(...)" <4> dave-e : it can be any html page <4> this is not the probleme <5> Yes, but I'm not about to write up a test page... <5> You must have a test page to be testing this and getting an error <4> oh ok <5> If you can show me the test page, then I can point out where the problem is. <4> juste an instant please <4> ok <4> http://mondialwatch.com/site/test/test.html <4> type anything else a number <4> and focus out <4> you'll get the error message <4> dave-e ? <5> I'm looking... <4> ok thank you <0> there is no restab[0] <5> The PHP file isn't returning XML <4> non
Return to
#javascript or Go to some related
logs:
#teens #AllNiteCafe variflex ramp rat #squid #linuxhelp jinglebobs #AllNiteCafe #linux radio stsion fedora 6 linux screen 1600 change
|
|