I know this is a really long shot, but I figure I'd ask: Is there a way to to find the names of the variables passed as parameters in a function call?
Assuming I have:
function test(tmp1, tmp2) {
// ...
}
var a;
var b;
test(a, b);
I'd like to get an array like so: [a, b]. Strings would also be acceptable: ["a", "b"].
I do not w...
Any suggestions on a way i can paginate a client side block of text? I'm using a CMS so limited on the backend but essentially i would like a system where a user would create a big block of text and if that text was bigger than a certain size then it would paginate? Any examples of javascript or Jquery that does this? I've done some sear...
Hello
I'm having a problem while trying to dynamically change a table cell's styling class using JavaScript.
The following issue happens on FF, I opened the page on other browsers too and it worked fine.
I have a html page that contains a 4x4 table. I would like when I click on a cell, to zoom it in and when I click on it again to zo...
I have this asp.NET web site that for some odd reason doesn't want to load css and script from the plugin I just wrote. This occurs if I use View in browser option in Visual studio.
If I preview a sample file in browser directly from file system, it works OK.
I have checked source code of ASP site and it contains both files. In Firefox ...
i dont have a clue how i should rewrite this jquery so i can pass parameters into it. i want to pass an id into the function so i place it like, $(".dialog" + id).
i am goin to trigger it with a <a>
$(document).ready(function() {
$(".btnCheck").live("click", function(evt) {
evt.preventDefault(); ...
What is the way to trap a right-click event on a document element? I could not find any event handlers anywhere.
...
Hi I want to write a java script function which will execute the system shell commands (eg-> ls) and return the value.
How to create shell script file to achieve this.
Thanks
Sunil Kumar Sahoo.
...
Have next script:
function clicker(){
var linkId = "[id*=" + "link]";
var butnId='initial';
$j(linkId).click(function(){
var postfix = $j(this).attr('id').substr(4);
butnId = '#' + 'butn' + postfix;
});
return butnId;
}
Function output is 'initial' value.
How to return actual value of variable butnId,after it...
Hello,
I've a form validation problem with FBJS to use on Facebook application. I checked out validation examples on documentation and I can check textbox values with form.serialize(); but unfortunetely I couldn't figure out how to check dropdown and checkbox values.
Thanks in advance..
...
I have a series of checkboxes that are loaded 100 at a time via ajax.
I need this jquery to allow me to have a button when pushed check all on screen. If more are loaded, and the button is pressed, to perhaps toggle all off, then pressed again toggle all back on.
This is what i have, obviously its not working for me.
$(function () {
...
I want to split a string that can look like this: word1;word2;word3,word4,word5,word6.word7. etc.
The string is from an output that I get from a php page that collects data from a database so the string may look different but the first words are always separated with ; and then , and the last words with .(dot)
I want to be able to fet...
NOTE: My original question was whether I should use <div>s or <table>s for this task. I have found an answer myself: <div>s are more than twice as slower on Firefox and Chrome if you have ~2000 rows. So you must use <table>s for this. I decided to reedit my question to show how to do it (table with resizable columns and selectable rows u...
Are there any .Net components for obfuscating JavaScript? I'm generating JavaScript dynamically & emitting via ClientScript.RegisterClientScriptBlock. I'd like to make it more difficult for others to view and modify that script.
Caveats:
Yes, I know that JavaScript obfuscation will merely inconvenience a serious developer.
I do intend...
I am looking for something similar to this http://maaki.com/thomas/SmoothDivScroll/clickableLogoParade.htm
The current one is left to right. But I need to scroll vertically ie bottom to top. Can any one help me plz
...
<script language="javascript" type="text/javascript">
banner2.add("FLASH", "../Banners/1.swf", 10, 60, 468,"http://www.techpint.com","_blank");
banner2.add("FLASH", "../Banners/2.swf", 10, 60, 468,"http://www.tapasya.co.in","_blank");
</scrip...
i have area list in alphabet wise, i want to display it when i enter first letter in my textbox. Autocomplete code in C#
...
Could you propose open source, but commercial-friendly licensed (non-GPL) Javascript trees?
Please take into account that I need it for an existing Web application, so I am not sure whether other tools such as GWT or Echo would be appropriate.
I have already checked:
Dojo Tree
jQuery.Dynatree.js (JQuery)
JSTree (JQuery)
Mif.Tree (Moo...
What is the actual time of session timeout here is it 19 minutes ?
<%= Session.Timeout * 19 * 1000 %>
<script language="javascript" type="text/javascript">
setTimeout('SessionTimeout()', <%= Session.Timeout * 19 * 1000 %>);
function SessionTimeout() {
alert(<%= "'Session time out!!'" %>);
window.location = "D...
I need to scroll the div which contains images, vertically. Any help or references will be highly appreciated.
...
I want to attach a "mouseup" event on all nodes of a container, including text nodes using jQuery. How do I do that?
Update:
If I had some HTML fragment like this:
<p>Some text node <strong>strong text</strong> another text node.</p>
Currently, $("p *") will apply the event to the <p> and <strong> but not to the 2 textnodes within <...