Application that I'm working on has multiple modules. Two are of a concern - main module and module that I write. And I have to call a function on window that contains main module and the problem is that I have to call that function not from page that is opened by parent webmodule, but from page to which user navigates from this page.
...
I have a lot of <span> tags like this <span id='val_Title'></span> <span id='val_Name'></span>
I would like to return all the elements that begin with 'val_' and hide them.
How can I do this? Thanks
...
I have a problem with a Windows Forms control wrapped up in a DLL and deployed to IE within an Object tag. The object should return a string which Javascript puts into a hidden field ready for posting back to the server. This is an approach I have used several times, but I am now getting the dreaded "Object does not support this method o...
Hello!
I need to know the selected node's depth from a ASP.NET Treeview on client side.
Is there anyway to know this?
Thank you!
...
I recently saw the presentation about the changes in ECMAScript 5. And there was a slide with this statement:
Function vs Callable
typeof f === 'function' // → f is Callable
({}).toString.call(f) === '[object Function]' // → f is a Function
Can anyone explain to me what the difference between Function and Ca...
I am looking to improve the accessibility of a site for very young children. As their keyboard skills are quite poor, we get alot of complaints that entering passwords without being able to see the characters is too hard for them.
I wouldn't like to have a password completely unmasked but I was thinking of maybe using the cell phone sty...
I need to open a new window from code-behind on post-back if a specific radio button is selected.
Is there any way to do this?
Thank you.
...
Tried this:
$('.link').click(function(e) {
$.getScript('http://www.google.com/uds/api?file=uds.js&amp;v=1.0', function() {
$('body').append('<p>GOOGLE API (UDS) is loaded</p>');
});
return false;
});
Yes, it loads a primary "uds.js" file and then locks page by loading a locale JS file ("default+en.I.js", see line #48 ...
I am new to jQuery and cannot get a selector to work using the id of the element. The code below works:
$(function() {
/* $("#ShowBox").onclick = ShowAccessible; */
document.getElementById("ShowBox").onclick = ShowAccessible;
/* $(".searchcheck").click = ShowAccessible; */
});
function ShowAccessible() {
$("tr.hide")...
I'm working on a bookmarklet that gives the full path to an image when you click on any image on a web page. The image is then downloaded on our servers, and we do business stuff to it.
Currently, the script parses out the src attribute using jQuery, then has some dumb logic that usually works, but quite often it does not.
Now, I could...
I have some elements with (.) periods in them and I need to select them but I need some escape characters to do so I believe. How can I sure that my string that may have a period in it will be escaped properly. Something like this I guess?
var title = "User1.Title";
var string = //replace any periods with escape sequence?
$('#'+string)...
Hi All:
I have a html tag , in that initially I want tooltip name as mentioned in the "title" attribute. After I click on the link, I want different tooltip name. I have used the below code but it is not working. Can anyone please help me?
<html>
<head>
<script>
function tool(){
document.getElementsByName(link).title = "after click";
...
I got the Wrox.Beginning.JavaScript.3rd.Edition and wanted to start learning it from scratch, then my boss came along and said that why bother, learn jQuery.
Can I understand jQuery and work with it although I am a newbie and have limited knowledge in ASP.net, vb.net, some C#, and basic HTML?!
...
I'm trying to add details to a database by using ajax and table dynamic rows.
e.g.
----
{Customer: dropdown menu} | {Description: textarea} | delete
Add New Customer
---
When the user clicks it shows the drop down menu of all available customers. when you click away it just shows the select customer name (not the dropdown menu)
...
I have content on a webpage which is both sent from the server at page load, and updated frequently via AJAX. When it is loaded initally, I use $( function () {} ) to do binding and updating based on the news from the server. I want to be able to also run the code when it is repopulated, in particular to rebind click events and update ...
I want to test if a word ["sublanguageid-all" to be specific] is present in the current address of the page using an 'if' condition.
I've tried /sublanguageid-all/g, but I'm not able to put it in an if-statement
...
I've seen many sites based on YUI, but all are very slow-responding. Is there any good solution for this, to make those javascript files lighter and faster?
I've now already used a yuicompressor and another javascript compressor, but it is still too slow.
It seems YUI considers too many corner cases so that each file is very big. If th...
I seem to remember there is a problem with WITH. I don’t miss it; I prefer each line of my code to stand on its own.
I started wondering about this when I learned (at SO) that people consider chaining one of their favorite features of jQuery. JavaScript’s WITH and jQuery’s chaining is, basically, the same feature, right?
...
Hi All,
I am writing a small webspider for a website which uses a lot of javascript for links:
<htmlTag onclick="someFunction();">Click here</htmlTag>
where the function looks like:
function someFunction() {
var _url;
...
// _url constructed, maybe with reference to a value in the HTML doc
// and/or a value passed as argume...
I'm trying to write a simple Ubiquity command that will run a query on Wolfram Alpha, and display the results in the Ubiquity preview object.
I need to set the innerHTML of the preview object. I am currently doing this to get the HTML, which is only a start:
//...
jQuery.get( 'http://www.wolframalpha.com/input/?i=' + input.text,
...