ltrem
Members-
Posts
48 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
ltrem's Achievements
Member (2/5)
0
Reputation
-
Get an element with his class by calling his parent first... jQuery help!
ltrem replied to ltrem's topic in Javascript Help
$('#test .ulError'). This worked fine! Thanks... can't believe I didn't try it before asking here.. lol thanks mate! -
Hey guys, <td id=”test”> <div>blabla</div> <div class=”ulError” style=”margin: 0px 0px 0px 0px;”></div> </td> I want to access to the second div in jQuery... but I also want to access it from the TD #test. I tried different thing like : $(’#test:eq(1)’).......... didn’t worked. $(’#test > .ulError’)........ didn’t worked. I need to get to the .ulError by the #test because I have a #test2 that is exactly the same... so I can't just call the .ulError straight... Would this work? $('#test').children('div .ulError') Thanks for your time!
-
Hi try to do some alert inside an .js... the alert work fine... but the french accent character is wrong. I do something like alert('Salut à toi mon ami!'); But the "à" is displayed like an square with a ? inside. I need to replace the "à" with "\xE0" for it to work... which is hexa... now is there a function I could use? Thx
-
For fun I tried to copy past your textarea and javascript code and it worked... I then tried my code again.. didn't work... I then changed the id="commentaire" to id="whatever" and it worked..... WTF :wtf: It seems that the code just don't like the id "commentaire".... WTF !???? I searched all my code and I have NO other place with "commentaire"........
-
I have this when the page load <textarea name="commentaire" id="commentaire" rows="3" cols="54"></textarea> Then I type some text, click on a button that execute a alert and the alert doesn't display anything... if I put this otherwise <textarea name="commentaire" id="commentaire" rows="3" cols="54">TEST</textarea> and click my button, the alert display TEST... ...
-
Thanks for your answer kickstart... While trying to do it with the POST... I found this example -> http://www.captain.at/howto-ajax-form-post-request.php and there I say the encoreURI function! so I did http://www.xxx.com/commentFunction.php?comment=" + encoreURI(document.commentForm.comment.value); And in the PHP I did echo "<td><pre>" . urldecode($_GET["comment"]) . "</pre></td>"; Worked like a charm!!! Now I'll try to insert/retrieve from the Database to see how it run!
-
Not sure if its the right place... but here is the problems I have a Javascript function that get the value of a textarea and then send it to a php pages with AJAX... here is the URL.. http://www.xxx.com/commentFunction.php?comment=" + document.commentForm.comment.value ; Now, in the PHP... I retrieve the variable with $comment = $_GET["comment"]; And then insert the $comment in MySQL.. the problem is that when I retrieve the info from MySQL...there is no Linebreak...? How could I correct that? Thanks
-
I'll make this short before posting my code, I call my php pages which execute an Insert on my Database... the query is executed without problems... then I finish the .php with echo "test"; And the responseText is just empty...! I goes in the stateChanged function since I display an Alert but when I try to display the responseText (Which should be "test")... it is just Empty... Any ideas?
-
I'm trying to find something like the website I mentioned above without success. It is called "CrowdSourcing"... It give users the opportunity to leave suggestions that can later be commented and rated by other users. I need an script that does the exact same thing but that is 100% Free/Open Source and Hosted on our OWN server? Can't find any..... all those I found were not 100% Free, had one bad thing that didn't make me want to pay for the product and they're all hosted on the company server.. not mine. Anyone can help me on this? :S