Hi,
I have a tabbed nav and I am creating/removing elements based on tab clicks. I am using the live() (since elements are dynamically created) with remove(). tab1 adds elements and tab2 deletes few of them. adding works well but delete does not delete those dynamically created elements. Any thoughts around this? If I need to post t...
I am using a JQGrid witha json service to list all the database users membership information, so the url of the grid points to my json service and method. Everything is working fine so far, I can add and edit the users and amend data and it saves fine. However the delete of a DB user is another story as the Membership.DeleteUser takes...
Hi,
when i copied this code from page error found that there is syntax error in this line in dreamweawer.
<a href="javascript:ajaxpagefetcher.load
('bob','sub/content2.htm',false,'',['page.css'])">Load Content 2</a>
Please suggest answer..
thanks
...
I have a very interesting situation and I'm just looking for ideas at the moment. I have a webpage for insurance agents that the agent will login and then enter some insured information.
There is a field named "agentnumber" that is on the form, but is hidden by a display:none. The field is set from the username of the person who logs i...
Hi, i have the following CSS for a mouse hover event. Im not sure how to refer to the #tabs ul li a:hover from within the Javascript?
#tabs ul li a:hover
{
color: #000;
font-weight:bold;
background-color: #0ff;
}
and i wish to swap the background color line for this Javascript code:
<script type="text/javascript">
he...
Given a node in an HTML document, N1, I need a concise way of finding the closest node to N1, say N2, with some tagName (e.g. to get the nearest link). I will be injecting the js code to do this into a remote browser (using Selenium) and so need it to be as concise as possible. I would otherwise write a recursive function that takes N1 a...
I have these 4 HTML snippets:
Siblings:
<div class="a">...</div>
<div class="b">...</div> <!--selected-->
<div class="b">...</div> <!--not selected-->
Wrapped 1:
<div class="a">...</div>
<div>
<div class="b">...</div> <!--selected-->
</div>
<div class="b">...</div> <!--not selected-->
Wrapped 2:
<div>
...
I'm working on an ajax web appliation which contains many running timeouts and intervals. And now I need to clear all running timeouts and intervals sometimes. Is there a simple way to stop everything without need to store every timeout and interval ID and iterate through them and clear them?
...
I've been banging my head against the wall all day with this one. Here is the link
http://www.olliemccarthy.com/test/blur-experiment/
I just want to click on the image and then see it blur out. That's it.
Here is the code I've been using so far.
$(document).ready(function() {
$('.test').click(function() {
$(this).("blurfast", {a...
I take a fat JSON array from the server via an AJAX call, then process it and render HTML with Javascript. What I want is to make it as fast as humanly possible.
Chrome leads over FF in my tests but it can still take 5-8 seconds for the browser to render ~300 records.
I considered lazy-loading such as that implemented in Google Reader ...
I have this function:
function countLitreKgSums(cProductIds){
var cLitreKgSums = new Array();
var cWeek = 0;
for(i=0;i<cProductIds.length;i++){
var cLitreKgSum = 0;
$("#plan_table td[class='week']").each(function(){
cWeek = $(this).html();
var cLitreKgValue = $("input[name*='plan_table_week" + cWeek...
I have the following function in a much larger script that loads translations from a php file:
function loadLanguages(language){
var data = new Object();
data.language = language;
var dataString = $.toJSON(data);
var langSt = $.ajax({
url: "/VID/ajax/loadtranslations.php",
data: ({data: dataString}),
async: false
}).responseT...
I have a site that has a big form page and about half of the form will be used elsewhere, and it will be exactly the same. I want the same access to all of its elements wherever I place it, but I don't want to copy and paste the code around because that will make for too much room for error. I'd prefer to not use a WebUserControl, as I'l...
I have a component that is draggable, and would enable the option to select when you show a little div on one corner, with some options (delete, new). Well, I'm trying to see some components some programming to do that, and unfortunately found nothing practical. There are some library but has a size gigange (versions with 112KB min.)
so...
Hello there guys! I am having a spot of bother with a code I am developing to show 10 Magazines at a time that is being fed from an xml file. I have it working to some extent, FF and IE7+8 do not like it, maybe as it says there is an error on line 62 - being the core function calling the data to be fed in.
Here is my code:
<!DOCTYPE h...
I'm creating a somewhat complex clientside UI control, and the idea is that this control in itself contains other controls based on properties applied to it.
I want to create these child controls from inside the initialize() overridden member, since I have to produce the child DOM elements to which these child controls will be attached...
Hi
Is there cross-browser javascript plugin (jquery/any js library) for handling ranges, especially Firefox's range object(https://developer.mozilla.org/en/DOM/range) and Internet Explorer's TextRange (http://www.webreference.com/js/column12/trmethods.html)?
Thanks
Srikanth
...
is it possible to in javascript like in php header location, if the visitor comes from index html alert something? and how ? thank you
...
The following code is supposed to gently vary the color of a tab, which i pass into the function. However, the gradient only increases every new time that i enter the tab, instead of increasing the one time i put the mouse over...
<script type = "text/javascript">
hex=255;
function fadetext(element){
if(hex>0) {
...
I'm looking for a way to execute a caml query over the whole site collection using a the javascript client side object model. Right now I can only get values from single lists..
Is this possible at all?
...