Hey everybody !
I have read all thread and see that code :
var text = $('textarea[name=text]').val();
I know I have to replace text by the name of the textareo who contains words.
But when I open the source code, I can see the name of the textarea “ answer ” but not for Words !
I’ve tried to copy/paste, but still not work.
If one there can help me ! :)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
For this level you’re supposed to write your own program to alphabetize the words, and copy the alphabetized version into the answer box before the timer ends
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
yes, the console process javascript code, so you can use that to write a nice program to do the level
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Write your code first in the console but don’t compile it just yet, go copy words in the textbox and then execute your code, then you can paste the words into your program
I’ve do a script, but still no work, what the problem with ? :
<html> <head> <title> Coding 1 </title> <?php $par = $_POST [ 'parole' ]; // getting the words from textarea $p = explode( "\r\n" , $par ); // put the word from string to an array deleting "\r\n" sort( $p ); // function that sort alphabeticaly an array $par = implode( $par , "," ); // put the word from string to an array deleting "\r\n" ?> </head> <body> <form action= "#" method= "post"> <textarea name= "parole" rows= "10"> <?php echo $par; ?> </textarea> <!-- Put the result in the textarea --> <br /> <input type= "submit"/> </form/> </body> </html>
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Okay, so I’m not that good with php, but I want to ask how are you incorporating this with the level? because nothing in there specified the level page or anything and php does not seem to be possible in the console.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
as far as I know, php is a server side scripting language, but you’re trying to use it to access the level (if you are accessing the level at all) from the client side.
I may be completely off here with my facts but this is just what I think
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Now, I have a script, i think if I have just one information, i’ll be in capacity to finish this level !
[code]
var my_textarea = $(‘textarea[name=“words”]’).first();
var my_value = $(my_textarea).val();
var my_array = my_value.split(“\n”);
my_array.sort();
my_result = my_array.toString();
prompt(“”, my_result);
[code]
I have to find the syntax so that find the words.
If anyone can helpme !:)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Aldebar4n : Ok, I’ll keep change in the script thank’s !
freewind1012 : Yes, the script do that I think :
- Find the textarea element with all the values.
- Save the text from the textarea into the variable my_value
- We have to break this sting into words. Telling split the string at each new line ( there : “\n” ). This is saved in a variable called my_array
- We have to make a Javascript sort the words, we use “ sort ”
- Need to convert the array back into a string that we can understand
- Display this value so we can copy it to my clipboard
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1
Thank’s for help everyone, I’ve find other way.
Just Copy/paste :p
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘\’‘ at line 1