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
User Profile
Collapse
-
thanks
i did it using ajax.
i was wondering whether there was any other method.
thanks once again for replying
the matter is solvedLeave 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 solutionLeave a comment:
-
-
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
...Leave a comment:
-
file operations using javascript
hi
i was trying to delete a file in a javascript function but couldn't do it.
this code will work in IECode:myActiveXObject = new ActiveXObject("Scripting.FileSystemObject"); file = myActiveXObject.GetFile("c:\\file.txt"); file.Delete();
but not in firefox
is there any other way using javascript to delete a file
thanks in advan... -
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???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...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 submitLeave a comment:
-
thanks for the reply
if i remove the click function then how can i upload the file
?????/
please helpLeave a comment:
-
i have already asked this question in another thread
so please dont answer it.
the topic is closed
apologiesLeave 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...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:
... -
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>
...Leave a comment:
-
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;...Leave a comment:
-
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; ...Leave a comment:
-
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>...
No activity results to display
Show More
Leave a comment: