Select Elements On Webpage In Same Way As With The Explorer
Jan 6, 2006
I was wondering if anyone know if (and how) it is possible to make an
html/css/js area on a webpage where you can select items by clicking in the
upper left, draggin the cursor to the lower right, leaving element in
between selected in a way a form can post? Exactly the same way as you
select a number of icons in the explorer or on your desktop.
Imagine an imagegallery with a list of thumbnails, I would like to let the
user mark a number of images and only view these selected ones. Preferably
it should work with the ctrl- and shift-button as well, but thats a minor
detail. As I can se, drag and drop of elements is possible (ex.
netvibes.com), but I have never seen any select-solution that works as in
your explorer. I'm sure it could be done in flash or java, but i'd rather
keep it in pure html/css/js.
View 3 Replies
ADVERTISEMENT
Oct 15, 2011
is there a way where I can have the mouse when it right clicks anything in a webpage that it would have a drop down menu appear or fade in the drop down menu. In the menu I want to have buttons that once clicked it will run a function but it will send some values to the function as an argument. Now one value it will send to the function will be either the name or id of the element selected for example lets say for example a user image 1 got selected and only has a name. How can I select the name? like if the person right clicked this element how can I select the elements name or id ? I know how to pass it to the function but don't know how I can select the element without doing this manually in the code.
View 3 Replies
View Related
Mar 5, 2011
I am trying to display a webpage from another domain and tried to access its elements and I am facing issues with this.
I tried using "iframes" and am facing cross domain issues.
All that I want to do is, set and get the attributes of the elements of the webpage from the other domain (eg: set text field value, get dropdown box values, click button etc)
Is there a way to get this job done?
I thought of browser addons however it will be a browser specific solution.
View 14 Replies
View Related
Apr 13, 2011
I have a problem and don�t know how to fix it, I have this code
Code JavaScript:
var apply=document.getElementById("regulartextfields");
var counterrors=0;
[code]....
View 3 Replies
View Related
Apr 14, 2011
I tried this code in [URL]... jquery reports as 4 elements in firefox/chrome browsers correctly where as 0 in internet explorer 6.0 How do i fix this? Should I report this as bug?
View 1 Replies
View Related
May 10, 2010
Internet Explorer can't bind events to absolute positioned elements ? can't bind a "click" to an element that is overlapping another.Have tried loads of different ways, here are 5 of them:
version 1:
$(".classHolder").click(function(){ alert( $(this).html() ); });
version 2:
[code]....
View 3 Replies
View Related
Aug 24, 2007
Is it possible with JavaScript to create new form elements on a
webpage that has already loaded in the browser? For example, what I am
hoping to do is have a text field for a name and a link that lets them
add another text field for another name etc. I believe I can do this
on a DIV but haven't looked at coding it yet. Any thoughts, pointers
etc?
View 1 Replies
View Related
Oct 11, 2005
IE doesn't expand the select box when you go past the fixed width. Is there any way to make it work. It seems to work fine in Firefox
<select width="60" STYLE="width: 60px" name="Category1"><option value="null">code<?php for($i=0; $i<count($categories); $i++) { echo "<option value=$categories[$i]>$categories[$i] --> $descriptions[$i]"; } ?></select>
View 14 Replies
View Related
Jun 19, 2006
I'm working on a JavaScript that is enabling / disabling a select
element according to whether a checkbox is selected or not.
This works fine in Firefox, but in Internet Explorer (v 6.0.2900) it
appears wierd:
When I disable the selevt element in IE, it continues to appear as
enabled (falsely) until I try changing it.
When I click on it, updates itself as grey as to indicate that it is
disabled.This is wrong. I want it to appear as grey and disabled the moment it
is disabled via JS.Is this a bug in IE, or should I do this different way (code below).
Is there perhaps some way to "update" the select element so that it
appears as disabled once I disable it with JS? (without having to click
on it to probe if it is disabled or not) Code:
View 1 Replies
View Related
Apr 24, 2010
I have a javascript function which adds a label and value to a select widget in its parent window. The function is working fine in firefox and chrome without any errors or warnings. But it is not working in internet explorer.
[Code]...
View 3 Replies
View Related
Jul 10, 2010
How can I do that? How do I use the selector to select from other web pages other than the current page?
I know that you can select all p elements on the current page by doing this: $("p").doSomething But what if I want to select from another web page?
View 3 Replies
View Related
Sep 2, 2011
I'm trying to select all hyperlinks in a webpage, and making the text all CAPS as an exercise. However, simply selecting $('a[href]') selects ALL hyperlinks, including hidden ones, pushing the text to the front. My css-fu is not very good, this is what I have so far.
$('a[href]').each(function(index,element){ if (!element.parents().css('display:none'){ element.text(element.text().toUpperCase());
} };
View 4 Replies
View Related
Dec 1, 2010
I am a beginner with JavaScript. I have modified a script or two, but have no real JavaScript knowledge. Others with more knowledge than I have suggested that I check here.
I am building a website for my daughter. She wants to put up a list of items (groceries). The visitors would select the items they want to buy, and then print a shopping list. If there is an available online coupon, that may also be printed. There would be no need to remember the information after the visitor prints. I will be getting a JavaScript book(s) to teach myself something about the language, but for this project, I don't know where to start?
Do I need to have the items in a database, or just program a button in front of each item?
Do I need two different (or more) scripts? One to select items, one to display the items, and one to print (or use the browser print)?
View 8 Replies
View Related
Jan 1, 2011
I am looking for a way to select a file from a list and load it into a webpage. The page and the files are stored on a sd-card for off-line usage, I know that listing files remote dynamicly needs a scripting engine but since the sd-card is on the client side that is not possible, but I can make a list of those files when creating them.
It is intended for a datalogger on a tractor-puller, I create csv files with a bash script on the logger and for off-line viewing I use a javascript charting engine which loads the csv file, the files have the creation date as filename and I can make (and maintain) a list of files when creating them. The plan is that the we can select another data set (run) from within the browser and show that one. I have setup an example at [URL]
View 4 Replies
View Related
Aug 10, 2010
It launches in IE and give the user instructions, then at the click of a button, launches my setup.exe. I want my webpage to launch setup.exe then go to another webpage on my CD, congratulations.html, which says "installation is complete etc". Here's what I am trying to do through JAvascript. It doesn't work. Should the first instruction be flushed in order for the 2nd one to work?
[Code]...
View 7 Replies
View Related
Oct 2, 2011
I want to know how can I make it where if you right click on an element on a webpage it will select that elements id or whole html code?
View 1 Replies
View Related
Oct 25, 2009
I'm building a nested menu where I want to add background colors only to top menu items. I can't change the generated code, so I have to live with the id's and classes as is.Relatively new to jQuery so still not used to filtering my selections carefully—is seems to grab everything. Anyway, I have tried: .is, .content, .filter, and some parent, child stuff, but can't seem to only apply the effect to the "top" class—it just selects everything.
View 2 Replies
View Related
Mar 19, 2011
I have a jQuery script that changes the background color of odd rows in a table. If a row has class "new", though, it won't change it:
Code:
$(document).ready(function() {
$('tr[class!=new]:odd').css({'background-color':'#ddd'});
});
Is it possible to specify another class (together with "new") to which the script should not change the color? If yes, what's the syntax?
View 2 Replies
View Related
Nov 23, 2011
I want to use the values of text boxes on my HTML webpage to create a webpage URL (like below):
<script type="text/javascript">
My text boxes are as follows:
Now this all works and the result webpage URL prints to id='ID1', but the big question is how do I use this resulting URL in another Javascript section as the src="?
For example:
View 14 Replies
View Related
Feb 22, 2010
There is simple html like this:
<ul id="icons">
<li class="icon1 hoverNow"><img src="some/pic1.jpg"/></li>
<li class="icon2"><img src="some/pic2.jpg"/></li>
<li class="icon3"><img src="some/pic3.jpg"/></li>
<li class="icon4"><img src="some/pic4.jpg"/></li>
</ul>
where class 'hoverNow' means, that opacity of the image is 1.0, while others 0.5. This done with css.
i want to do, that when mouse hover the 'li' element, image, IF it's not in the li element, who's having class 'hoverNow', become with opacity 1.0, and on mouseover, again will have 0.5 opacity. For this, i write this simple code:
[Code]...
View 1 Replies
View Related
Oct 30, 2011
I want to select all input hidden fileds but want to their names and then select those elements.
View 1 Replies
View Related
Aug 16, 2009
The "checkbox select select select" part is included so it is identical in the 2 places (ie it is not possible to have different id's).What I want is that checking the checkbox only the selects next to the checkbox get visible.The only difference between the 2 checkbox/selects combinations is that the first one is in form A and the 2nd one is in form B.Is it possible to select only the selects in the same td as the clicked checkbox to make them visible?I tried JQuery's parent and sibling selectors but I am not sure if they fit my need here.
View 2 Replies
View Related
Jan 9, 2012
I have a question about a selector of jQuery.
How can I select all empty elements?
View 1 Replies
View Related
May 20, 2011
I want to insert something after #close, but only if the following div content contains the references-container4.Nothing will be inserted here. Only in the references-container4 case.
View 1 Replies
View Related
Mar 8, 2010
I'm trying to craft a selector that returns all textboxes that are immediately followed by a label.
View 2 Replies
View Related
Jan 30, 2010
Let's say you have two elements, and you know their IDs; is there a way to select them both at the same time; something like $('#test #test2')?I realize I could just select them both on two different lines and apply the same function, or use class or something to track them down; but sometimes I just want to grab two elements by ID and do the same thing to them. I assume I'm just missing the syntax.
View 1 Replies
View Related