Jump to content

vinnieza

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by vinnieza

  1. won't that get the button's value instead of the textarea's though?
  2. Hi, sorry i'm a major newbie at javascript. Anyway, my question: I have a form called frmProfile, a textarea called article and a button with an onclick event set to addtext(this.form) I have this function: [code]addtext(form){ }[/code] With this piece of javascript in it: [code]var Article = form.article.value;[/code] to get what is in the text area into a variable The problem is this, i want to use this code for multiple forms on different pages, however all my text areas have different names. Now i was wondering is there anyway to add a variable to the js code so that it's easy to change all the times i refer to form.article.value? I tried using var textareaName = "article"; and then i could change it on each of my pages and change the js code to something like: [code]var Article = form.textareaName.value;[/code] But you can't do that, well it doesn't work, guessing it's because the code does not realize it's suppose to be a variable and thinks that's the name of the textarea. Is there a sort of operator that tells it that it's a variable and not the name. Thanks :) sorry about the title wasn't sure of how to describe my problem
  3. Thanks :) Used [a href=\"http://pear.php.net/package/Archive_Tar\" target=\"_blank\"]http://pear.php.net/package/Archive_Tar[/a] in the end. Was annoying though; when creating tars on my apache server on windows i was using files with no extensions and their location as "filename/", which worked in windows (added file and hid it (made it into a folder i think)), but on linux if i try and do that it just says it can't find the file and without the "/" it doesn't hide them. Shame as i wanted to do this. But for normal use it's perfect :)
  4. I get "There was an error executing this query. Please try later." when trying to use the search :( Anyway, what i want to do is extract an xml file from a tar file. Then read the xml file to get the names of the pictures (done that bit), then use that info in using imagecopyresized to concatenate some of the pictures in the tar into 1 (done this to). The problem i'm having is finding a way to extract the files within the tar so i can use them. Is there any inbuilt php functions to help me do this? I know there is zlib with its gz functions but isn't that just for gz tar files? and if you don't understand i have a tar file with these files in it: a.jpg b.jpg c.jpg d.jpg e.jpg info.xml Using the xml file i can get the names of the images i want to use, so my xml file tells me that the images i want to use are b.jpg, c.jpg and d.jpg. I have used imagecopyresized() to add these pictures into 1. I just need to find a way of getting the files out of the tar file. Maybe extract them to a temporary directory, then delete them after use. I'm still quite a new person with php and no nothing really about tar files [img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /] Thanks and hope you understand :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.