Hi,
i have used an iframe which looks like this
<iframe style='width: 330px; height: 278px' scrolling='no' name="iframeId" class="advPlayer" id="iframeId" frameborder="0" src='../../player/iabpreview.php?adid=<?php echo $selectedAdIdx ?>&autoPlay=true'></iframe>
whenever i click a div,i have to change the source of the iframe..so ...
Scenario:
I have a partial view that is used in several places across my ASP.NET MVC application. The partial view contains a list of "objects" to select, i.e. something similar to:
<ul>
<%
foreach (var person in Model.Persons)
{
%>
<li><a href="#" class="person">
<%= person.Name %></a></li>
<%
...
I'm a guy used to mootools' way of chaining selectors, and I can't seem to find anywhere how to do the same in jQuery.
Suppose I have a select element in the selectObj variable. What I need is to get the last option in that select.
In mootools I would have done something like:
var option = $(selectObj).getElement('nth-child(last)')
Ca...
What are the differences between jQuery and ASP.NET Ajax?
...
I am using the MultiView server control in one web page using Update Panel. In its second view, I have a GridView; whose first column is checkboc controls including the header.
I want to toggle the data items checkbox based on the header checkbox.
For this, I wrote a Jquery function. But the main issue is, When I try to view the page s...
Hi all,
I was wondering if anyone knew of a way to access a hidden field (by client id) within a table row using jquery.
$("#tblOne").find("tr").click(function() {
var worker = $(this).find(":input").val();
});
I find that the above works for a row that has only one input, but i need some help figuring out a way t...
The output of the asp.net datagrid doesn't include the thead and tbody elements required for the jquery tablesorter to work.
E.g. it looks like this:
<table>
<tr>this is my header row</tr>
<tr>content row 1</tr>
<tr>content row 2</tr>
<tr>content row 3</tr>
...
<tr>content row n</tr>
</table>
and it needs to look like t...
Say i have 10 small images that i want to use as tooltips.
Im assinging them all the same class, '.helper'
Im selecting helper, then calling
mouseenter(function() { $(".helper").stop(false,true).fadeIn(); })
I then want a div to popup, containing some text. This works fine if there's only one tooltip on the page, but as soon as ther...
I want to use the defaultfocus property on a form in ASP.Net, and therefore I set this property to a textbox. This works as expected on IE, but in the Safari 4 beta, the content of the textbox is also selected. How can I make this work as expected on Safari?
i tried also some jquery call, and the problem is there also:
$("input:visib...
I'm using the jquery plugin wordFilter: http://people.apache.org/~gmonroe/wordFilter/index.html which gives the autoSearch function, which allows for automatically filtering a list of elements based on text typed into a text_field.
It works great, but I was hoping to also have a text_field watermark in there if there is no text entered...
Got an interesting dilemna here as I've tried to create an autocomplete widget for my Django app.
The basic structure of the model is that I have 1 .. * Orders that each belong to a single Vendor. Since we have many Vendors I decided to make it an autocomplete widget instead of a big selectbox dropdown.
With that in mind, I came up wit...
I'm experience strange behaviour with jQuery while trying to attach more than one event handler to a single event.
How would I bind two different event handlers, to the same event?
$(this).focus(function(){/*...*/});
$(this).focus(function(){/*...*/}); // replaces the previous one?
What am I missing?
Update
Do you know if it affect...
I am faking an autopostback using jquery since I am using asp.net mvc. It's being performed in a select list (dropdownlist) like this:
$(document).ready(function() {
// autopostback for character drop down list
$('#playerCharacters').change(function() {
var charId = $('#playerCharacters option:selected').val();
w...
How do I change the title bar background color of jQuery dialog?
I have looked at the themeroller but it does not seem to work for me.
Thanks
...
I have the following HTML
<table id="tbl1">
<!-- Table row trHeader should be here based on a flag //-->
</table>
<table id="tbl2">
<tr id="trHeader">
<td>test</td>
</tr>
</table>
I have a flag (essentially a button), that I use to be able to move the table row with id="tbl2". How would I switch it back to the same positi...
I have a regular html select field. When a user selects an item from the list, it is added to a multiple select field and marked as selected. If the user clicks on one of the items in the multiple select field it is removed. What I want to do is override the default colors of the multiple select field so that selected items have a bla...
I'd like to have the browser act as if the user had pressed the Tab key when they click on something. In the click handler I've tried the following approaches:
var event = document.createEvent('KeyboardEvent');
event.initKeyEvent("keypress", true, true, null, false, false, false, false, 9, 0);
this.input.focus()[0].dispatchEvent(event)...
I am looking for a jQuery plug in that will allow me to upload files and/or navigate to files on the file system.
It would be used to allow a visitor to add multiple images to a news article.
I am using ASP.NET MVC so it would have to be compatible with that.
Edit: Something like this would work great - KFM Demo
...
I have a project where I need to give the users several different sets of radio button options based on a given value they select in a drop down menu.
For instance..
<select id="aaa">
<option>red</option>
<option>blue</option>
<option>other</option>
</select>
<div id="abc">
Input<BR>
option 1 <input type="radio" name="colorinput" valu...
I suspect most web developers are familiar with the Flash-based page curling transition to turn pages? (Such as here)
Can this be implemented, in a good way, with just simple HTML+CSS+JS?
(or any other 'native' browser languages, like SVG?)
My preferred library is jQuery, but any working JavaScript solution would be acceptable.
...