by default valums ajax uploader uploaded creates a button for you. clicking the button opens "file explorer". once a file is selected it automatically uploads it for you. However I would like to have "<input id="fileUpload" type="file" />" and then a button underneath that would say "upload". Then clicking on the button would upload the file. I know it's doable but i can't figure it out. please help. thanks
The jQuery form plugin might work better for you. http://jquery.malsup.com/form/#file-upload
Related
I have an excel file that has macro enabled VBA. It has a button that will trigger the VBA for my excel. I was just wondering if it is available to trigger a VBA in Laravel app. I have like an upload button in laravel but when i click it, it will first trigger the button in excel that triggers the VBA then it will read the upload excel function. Do you think it is possible? And how?
Well as long as using Internet Explorer you can use JavaScript on your button to call a macro:
<input type="button" value="Run My Macro" onclick="RunMacro("C:\MyFile.xlsm", "ThisIsMyMacro");">
And using this function:
<script type="text/javascript" language="javascript">
function RunMacro(FileName, MacroName)
{
var ExApp;
ExApp = new ActiveXObject("Excel.Application");
ExApp.Workbooks.Open(FileName);
ExApp.Run(MacroName);
}
</script>
Then you need to wait until the macro is finished and trigger the upload event with JavaScript. Not sure about how we can detect that the macro has finished. Probably the easiest way would be to have one button to trigger the macro and then let the user click another button for uploading when the macro finished.
Another solution could be having a link that opens the file and it runs a macro on the Workbook_Open() event: Open excel file through normal html link.
So the user needs to click that link before he can use the upload button.
Bootstrap Modal Ajax not working on click without the alert on second line.
please help
http://pastebin.com/cyXdWSPq
Try wrapping your code in a $(document).ready(function(){}) or equivalent. When I see stuff like this it's usually because the document is not fully loaded yet. Give it a shot.
i want to show a folder. After that clicking on this folder might open some subfolder those are containing the images and at last when one will click on each folder then he/she should see some images which will sliding.
How can do that? any link or suggestion...
It seems that you are looking for a tree control. If you can use jQuery have a look at TreeView plug-in.
I'm using four JQuery Uploadify browse buttons on a page that's calling the Uploadify code/buttons through Ajax. We have a javascript function called from onComplete which refreshes the Ajax page. The problem we're encountering is that when you start uploading one file, if you click browse to upload another file, Firefox will crash when selecting the second file.
Any help is appreciated.
Thanks!
The solution I ended up with was to just hide the other buttons while an upload is in progress.
Is there a reason you wouldn't use the built-in multiple-file upload functionality that Uploadify allows? In most cases it's as simple as setting:
'multi' : true
I'm using the Uploadify plugin to handle file uploads but the default button image is ugly. Where can I find free button images (particularly upload buttons).
Try Buttonator or IconFinder.