Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mpartarrieu

    can't upload files using ajax

    Thanks for the suggestion, jpadie. I'm gonna do it that way. Don't need it now, but still wanna know: there's no way of submiting a file within a form using ajax? /michel Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the...
  2. mpartarrieu

    can't upload files using ajax

    In response to johnwm: 1. I'm developing an application and sometimes there are two forms on the page: one on the main area and another one on the right column. Sometimes a user is working on the main area form and decides to upload an image using the right column form, but when submiting the...
  3. mpartarrieu

    can't upload files using ajax

    What do you mean by "a way to do this using IE"? I need it to work on other browsers too, but if you have any idea on how to make it work on IE please let me know... /michel Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the...
  4. mpartarrieu

    can't upload files using ajax

    I have a form that contains a file type input. I'm trying to pass the form input data using ajax. Have no problem with text, radio, checkbox, select or hidden type elements, but so far I've been unable to pass file type input in order to upload an image to the server. Sure I'm not the first one...
  5. mpartarrieu

    Space between adjacent divs on IE

    Thanks for the url, Chris. Unfortunately the proposed solution didn't work for me. It's nice when you're having problems aligning text inside the div, but not to eliminate the 3-pixel problem I mention. As I'm dealing with a two-column layout, I solved the problem by unseting margin-left for...
  6. mpartarrieu

    Space between adjacent divs on IE

    I'm trying to place two divs next to each other, so one would be the nav area and the other the content area. They are both nested in another div that centers the page. Problem is that IE6 shows a 3px space between the two nested divs and I can't get rid of them. It renders nice on FF2, Safari...
  7. mpartarrieu

    User Input in forms

    I'n not really sure what you want to do, but the variables in your code have two different names: <? $width = $_POST['length']; ?> <form> <input name ="width" type="text" value="<? echo $length; ?>"> </form> If your retrieving the width value from the form, just change the name of the...
  8. mpartarrieu

    Javascript not running on AJAX

    I solve the problem following Jeff and Dan's suggestions: define the javascript function within the index file and then use eval on the AJAX response to change the value of certain variables that work with this function. Works perfect. Thanks for the advice.
  9. mpartarrieu

    Javascript not running on AJAX

    It is possible to have the function loaded on the initial page load as you suggest, BabyJeffy. I didn't want to do this because there are many variables used on the js function that are different for each page I call, so I hoped there was a way I could define the functions in the AJAX response...
  10. mpartarrieu

    Javascript not running on AJAX

    Hi. I'm releatively new to AJAX and was hoping someone could shed some light on this problem. I have this page with a link than changes the content of a div using AJAX. The new content includes is a PHP file with a javascript function and html, including a link to execute the javascript...
  11. mpartarrieu

    Menu positioning - images drop down despite display:inline

    I guess there is a better approach, but this might work also. Try changing your nav div to this: <div id="nav"> <img src="images/fbm_nav_right.gif" align="middle" style="float:right"> <img src="images/fmb_nav_left.gif" align="middle" style="float:left"> <ul> <li><a href="#">home</a> |...
  12. mpartarrieu

    Overflow problem on FF

    Tnanks, BabyJeffy. Works like a charm. Think I gotta get back to css basics.
  13. mpartarrieu

    Overflow problem on FF

    Hi all, I created a website with a menu div and a content div, both with predefined size and overflow property set to hidden. The latter div's content (text images, etc) overflows the div area horizontally, so I programmed a js function that slides the content (left-to-right and right-to-left...
  14. mpartarrieu

    problem swapping images using ajax on firefox

    I am creating a small shopping kart using ajax and have a problem swapping images after executing an ajax script when using firefox. This is how the page should work: 1. Visitors select an item to add to the shopping cart from a list by clicking on an image below the product. This triggers an...
  15. mpartarrieu

    problem swapping images using firefox

    I am creating a small shopping kart using ajax and have a problem swapping images after executing an ajax script when using firefox. This is how the page should work: 1. Visitors select an item to add to the shopping cart from a list by clicking on an image below the product. This triggers an...
  16. mpartarrieu

    cron-job creates unwanted files

    I'm unable to usu php with crontab, but it really doesn't matter because crontab is doing exactly what I want it to do. Moreover, I change the php script and now it saves information about sent emails on the output file. Thanks jpadie; your approach is working just fine.
  17. mpartarrieu

    cron-job creates unwanted files

    Thanks jpadie and thedaver for your insights. I already tried to stop this behaviour using the -o switch, but it didn't work and emails just stop being sent. I'm using wget because it's the only way crontab actually executes the php script correctly, so far. So right now I have the script...
  18. mpartarrieu

    cron-job creates unwanted files

    thedaver, Thanks for the quick response. I tested the script calling it directly and it does exactly what it's supposed to do: send the newsletter. I actually use /dev/null tag to stop it from sending emails to me after each cron-job is executed. My problem is that crontab writes blank files...
  19. mpartarrieu

    cron-job creates unwanted files

    Hi, I created a php script that send a newsletter on batches of 30 emails per hour. It uses a cron-job to send emails, and everything works fine except that the cron-job creates blank files in the root directory of the server everytime it runs the script. I tried to stop this by setting...
  20. mpartarrieu

    stripping string from variable

    The function will strip out the weird attribute and the stuff between speech marks, whatever that stuff is. It will only strip out the first instance of $weirdo it founds on the string. If you want to check for all instances you could insert a while loop searching for strstr($weirdo) at the...

Part and Inventory Search

Back
Top