User Profile

Collapse

Profile Sidebar

Collapse
mitchell
mitchell
Last Activity: Dec 24 '07, 04:11 PM
Joined: Oct 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mitchell
    replied to convert integer to decimal
    what really you want to do with converting the integer into float??

    because

    if you just divide the integer with a non-factor then it will be automatically converted into float
    See more | Go to post

    Leave a comment:


  • mitchell
    replied to file operations using javascript
    thanks

    i did it using ajax.
    i was wondering whether there was any other method.
    thanks once again for replying
    the matter is solved
    See more | Go to post

    Leave a comment:


  • hi

    this is happening because the input element has not yet been created when it reads the getelementbyid statement.

    alternetive

    put the getelementbyid in a function and call that function using window.onload

    then this function will be called when the whole page has been loaded

    try this

    this must be the solution
    See more | Go to post

    Leave a comment:


  • mitchell
    replied to file operations using javascript
    i m still stuck up\please help
    See more | Go to post

    Leave a comment:


  • mitchell
    replied to file operations using javascript
    apologies

    i forgot to mention
    i will be deleting the files which the user has uploaded on the server
    and not those that are on the clients computer.

    and after i read your post
    i realised i need to change the path in the getfile function

    file = myActiveXObject .GetFile("local host/upload/images.jpg");

    but now it is giving an error
    file not found
    ...
    See more | Go to post

    Leave a comment:


  • mitchell
    started a topic file operations using javascript

    file operations using javascript

    hi

    i was trying to delete a file in a javascript function but couldn't do it.


    Code:
    myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
      file = myActiveXObject.GetFile("c:\\file.txt");
      file.Delete();
    this code will work in IE
    but not in firefox
    is there any other way using javascript to delete a file

    thanks in advan...
    See more | Go to post

  • hi

    i didnt understand much in the link you had given.
    but i implemented your idea of iframe

    i used a hidden iframe and the target attribute of the form to
    make my multiple file uploader.

    thanks once again

    now my last questiont

    do you consider interaction with server using iframes as ajax???
    See more | Go to post

    Leave a comment:


  • hi

    this was great help.
    thanks.

    i have another issue now.

    i have done as directed in the link you had given.
    then i used an onchange event on the file type to trigger the upload function
    now if i want to attach the file without page reload i need to submit
    the file name to a hidden frame (or through ajax).

    but i cant submit the form right now as the user has...
    See more | Go to post

    Leave a comment:


  • i am still stuck up with the problem.
    please help
    See more | Go to post

    Leave a comment:


  • apologies

    i forgot to tell this.
    i will be using this for mail attachments

    i want that the browse button and the input field remain hidden
    and everything else happens in the background
    thus the user just has to click on load link,select the file and click on submit
    See more | Go to post

    Leave a comment:


  • thanks for the reply

    if i remove the click function then how can i upload the file

    ?????/

    please help
    See more | Go to post

    Leave a comment:


  • i have already asked this question in another thread
    so please dont answer it.
    the topic is closed

    apologies
    See more | Go to post

    Leave a comment:


  • probem in submitting dynamically created form fields

    hi,

    i m using windows xp and ie6.
    i am having problems while uploading a file.
    i created an input element of file type and appended it to a form.
    after selecting the file when i click on submit the form becomes blank and i again need to select the file.
    and it works in the second attempt

    i cant figure out why its happening...
    See more | Go to post

    Leave a comment:


  • problem submitting dynamically created input field

    hi,

    i am having problems while uploading a file.
    i created an input element of file type and appended it to a form.
    after selecting the file when i click on submit the form becomes blank and i again need to select the file.
    and it works in the second attempt

    i cant figure out why its happening
    please help
    here is the code

    //main.php


    Code:
    ...
    See more | Go to post

  • mitchell
    replied to cant refresh captcha image
    there r no error messages
    but in the status bar of Internet Explorer it shows error on page.

    i m sending the whole file now.

    if u can spare time to look at it.
    i will be really grateful
    i have made the relevant section bold.
    //register.php
    [HTML]<html>
    <head>

    <script type="text/javascript" src="ajax.js"></script>
    ...
    See more | Go to post
    Last edited by acoder; Oct 23 '07, 10:05 AM. Reason: Added code tags

    Leave a comment:


  • mitchell
    replied to cant refresh captcha image
    i have changedn the contents of captcha.php
    i have not done the whole thing
    but i m just generating random nos. right now
    this file when executed displays the random nos.
    but it is still not showing up inside the div tag

    contents of captcha.php


    [PHP]<?php

    srand(time());

    for($i=0;$i<5;$ i++)
    {
    $string=(rand() %6);
    echo $string;...
    See more | Go to post
    Last edited by acoder; Oct 23 '07, 08:37 AM. Reason: Added code tags

    Leave a comment:


  • mitchell
    replied to cant refresh captcha image
    does the captcha.php have to return something
    can you please elaborate on that.
    i thought it can be just a simple file

    contents of captcha.php::
    [code=javascript]<script type="text/javascript">

    var string='';
    var i;
    var chars =

    "0123456789ABCD EFGHIJKLMNOPQRS TUVWXTZabcdefgh iklmnopqrstuvwx yz";
    var ran_unrounded;
    var ran_number; ...
    See more | Go to post
    Last edited by acoder; Oct 22 '07, 05:58 PM. Reason: Added code tags

    Leave a comment:


  • mitchell
    started a topic cant refresh captcha image

    cant refresh captcha image

    hi

    i m using IE 6.0.
    i want to refresh just the captcha part when the user clicks on an image.

    i searched for articles on it and got a fairly good understanding of it.
    but i m still unable to get any results.

    i have used Simple AJAX Code-Kit (SACK) (http://www.twilightuniverse.com/)

    my code:

    head part:::



    [code=html]
    <head>...
    See more | Go to post
    Last edited by gits; Oct 21 '07, 08:23 PM. Reason: added code tags
No activity results to display
Show More
Working...