HTML5 - Multiple input field: file limit? - html

Im using the HTML 5 input element with the multiple option set to true:
<input type="file" id="input" multiple="true" onchange="handleFiles(this.files)">
This works, but when I use it to select more then 388 images, the file name box stays empty and the code doesn't work. If I select less then 388 images, I can run my code. Is there some kind of limit on the number of files you can select? I tried to run the mozilla drag and drob application:
http://demos.hacks.mozilla.org/openweb/DnD/
with 456 files, and this works perfect. But I would also like to have a simple browse button which allows me to select all the files I want. Any idea is highly appreciated!
Thanks,

set server's upload_max_filesize, post_max_size, memory_limit, ...

Related

R - How to change the value of an input tag using RSelenium?

I want to change the page size on a web site as shown in the image using RSelenium. Page Size image.
Its actually a combobox with the following html written for it:
<input autocomplete="off" name="ctl00$ContentBody$rgridPDPList$ctl00$ctl03$ctl01$PageSizeComboBox" class="rcbInput" id="ctl00_ContentBody_rgridPDPList_ctl00_ctl03_ctl01_PageSizeComboBox_Input" value="10" readonly="readonly" type="text">
Here the value is 10 and the other options for the drop box are 20, 50.
I tried using the below lines of code:
opt <- remDr$findElement(using = 'xpath', "//*/input[#value = '20']")
opt$clickElement()
But i am getting error as:
Error: Summary: NoSuchElement
Detail: An element could not be located on the page using the given search parameters.
class: org.openqa.selenium.NoSuchElementException
Also i used this:
xpathSApply(elemxml,"//input[#value]",xmlGetAttr,"value")
This is giving me the value as 10, but I am not able to set some other value using this.
I tried using findElements also, but no luck.
Can you please let me know how to change this value to 20 or 50 using RSelenium (or any other method if possible).
Also is it possible to mention a value that is not from the combo box for eg: 1500.
I am sorry I cannot share the link as it is protected.
Kindly let me know if any other inputs are required from my side.
got the solution. findElement and clickElement did the job.

How to change "DestinationName" property of UNION ALL Transformation in SSIS

I want to make friendly names of Union All inputs; however, the Destination Name is dimmed.
I have 10+ inputs and it is really annoying finding the destination "Union All Input 10"
The best solution I could find so far is add Path Annotation as displayed in the picture below:
I want to rename Union All Input 1 to somthing meaningful.
Looks like Microsoft has stated that they Won't Fix This. Bummer. Everyone please upvote the Microsoft Connect link and maybe they will assign a developer.
Edit it in the XML Code, like so:
<input refId="{}" hasSideEffects="true" name="YOUR NEW NAME HERE">

How can I modify DOM value batch?

I visit a web page that contains so many text area, and I must replace the text to something else.
One text are like this:
<input type="text" name="field" value="round(avg(value0),2)">
I need replace round(avg(value0),2) to value0, so I think I can replace round(avg( to empty, and then replace ),2) to empty. But I don't know how to replace this batch (it may have 100 this text).
If you open your HTML document in Visual Studio and then press Ctrl+Shift+H, it will open the follow dialog box:
Select Current Document in the Look in: dropdown.
Enter what you want to find in the Find what: box and then keep the Replace with: box blank, then click Replace All. This will replace all of those instances with blank text, effectively removing the instances.

How can we limit # of visible items in drop-down select tag in a form?

I have the following code which works fine, but i want to limit the number of stores to say 10. So i added a 'size="10" ' attribute to the select tag, but the drop down stops functioning.. Please help!!!
<form:select size="10" path="storeid" style="width:200px;" >
<form:options items="${StoreList}" itemValue="storeId"
itemLabel="storeName" />
</form:select>
thanks in advance!!
You can't control how many items are visible in the dropdown list.
In fact you can't even know that the select element is shown as a dropdown list at all. If you browse to the page on a mobile phone for example, you will get a completely different way of selecting items, usually a list that covers most or all of the screen.
The HTML standard doesn't dictate how the select element is to be shown, so it's entirely up to the browser vendors to choose what they think is the best way to show it.

Something like a Date picker for numbers

I have two fields in my form : one is the limit and other is value. So if I enter 30 in the limit field, then in my value field I need to open up something similar to a date picker, which shows all numbers from 1-30 and user should be allowed to pick one or multiple values.
Is there a js library that I can use to achieve this?
Ive built it for you
http://jsbin.com/ehuke4/37/edit
How about using a slider? In HTML 5 you can use the below code. For browsers that do not support it you'll want to use some sort of alternative.
<input type="range" min="1" max="30">
jQuery UI has a nice slider too.