I'm using JIT to render graphs. I'm using the RGraph feature.
This JSON defines a graph:
var json = [
{
'id': '1',
'name': 'CS 2110',
'adjacencies': ['0', '2']
},
{
'id': '1.5',
'name': 'INFO 2300',
'adjacencies': ['1']
},
{
'id': '0',
'name': 'CS 1...
How do I display the value of a variable in javascript in an alert box?
For example I've got a variable x=100 and alert(x) isn't working.
the script used in grease monkey is here
var inputs = document.getElementsByTagName('input');
var new;
for (i=0; i<inputs.length; i++) {
if (inputs[i].getAttribute("name") == "ans") {
new=inpu...
Hello.
I would like to know if there's a combo like jCryption (jCryption) - PHP but for jQuery - ASPX.
I mean, I have been searching for a combo to send data both ways (Client-server, server-client) with jQuery to ASPX. The best I found was jCryption that sends data from JavaScrpit to PHP. I need a combo to send data from JavaScrpit to ...
Now I am developing a firefox extension, can I define a global array in a js with the main xul . and I found when I use it in another js with another xul , it could not worked , so I searched the document of Firefox development. I found a common array can not be transfered between two js files with different xul files. and then I difined...
We use Captcha control in a registration form that we make full client validation for all fields in JavaScript ( JQuery ) beside server validation ..
I tried a lot of ways but all will write the Captcha value in JavaScript that can be accessed by anyone :(
I search if is there any way that allow me validate Captcha value in client side...
Hi all, i'm new here. i've a question related to greasemonkey.
A page contain multiple radio buttoned values and one choice is to made, this correct choice option is hidden within the page
the radio buttons are present in the form whose structure is
<form name="bloogs" action="/myaddres.php" id="bloogs" method="post" >
then the ...
I have a remote form like this and a checkbox in it. When I select or deselect the checkbox I would like to
set the value of a hidden field
ajax submit this form to its designated url.
I tried $('search_form').onsubmit(), but I get an error saying onsubmit is not a function. Using prototype. Whats the best way to do this?
<form ons...
I ran into an annoying problem: the following code gives a warning in Visual Studio.
<script type="text/javascript">
var x = <%: ViewData["param"] %>;
</script>
The warning is "Expected expression". Visual Studio gets confused, and all the javascript code after that is giving tons of warnings. Granted, it's all warnings, and it works ...
Possible Duplicates:
Do you recommend using semicolons after every statement in JavaScript?
Why use semicolon?
What are the ups and downs of using semicolons to end commands in JavaSript? What are the arguments for and against doing so?
...
I enjoy using to Wikis to document all kind of stuff (recently I used MoinMoin, so I am used to that syntax).
Now I am looking for a more lightweight solution, for documents where setting up a MoinMoin server is too much hassle.
What is the "easiest" way to render a .txt file in Wiki syntax (for example by displaying it, or converting ...
Hi,
I would like to know the popular ways of naming files in JavaScript and PHP development. I am working on a JS+PHP system, and I do not know how to name my files.
Currently I do for JS:
framework/
framework/widget/
framework/widget/TextField.js (Framework.widget.TextField())
Framework.js (Framework())
So, my folders are lowercase...
hi all
I need to select each list item and change the background image of the parent div homepagecontainer but I can't even select the li element in my script. Here is the code:
<div class="transparent" id="programmesbox">
<ul id="frontpage">
<?php
query_posts('showposts=20&post_parent=7&post_type=page');
if (have_posts()) : while (...
I often need to pass methods from objects into other objects. However I usually want the method to be attached to the original object (by attached I mean 'this' should refer to the original object). I know a few ways to do this:
a) In the object constructor: ObjectA = function() { var that = this; var method = function(a,b,c) { that.abc...
Hello,
after a website mirrored using HTTrack, there is lots of ads. I just want to replace that ads by ID or class, or by text, using script (Perl, Python, Ruby, etc), or any other way
Does anyone know what script can do this job?
Thanks in advance.
--new added below--
I will use as example in presentation, and replace specific ID ...
how to pass any jsp url in dialogbox of dijit
...
I need a way to make sure my script won't block the viewed page,
if the server serving the script is down (port 80 is blocked for some reason).
Currently when I test it and take down the server (Apache), or close the firewall,
I see in the browser that it is trying to load the resource (script in that case), without success for long sec...
There are some demos here:
http://paulirish.com/work/gordon/demos/
I downloaded blue.html as well as blue.swf on my local pc. But opening it I can't make it work.
Why ?
...
How to stop browser load animation. I use hidden i frames and refresh them very often, and I don't want users to see annoying load animation and progress bar.
...
keeping a DIV at the top and center of the page with ability change size div like loading box in Gmail?
...
Hey,
I have an input text :
<input name="Email" type="text" id="Email" value="[email protected]" />
I want to put a default value like "What's your programming question ? be specific." in StackOverFlow, and when the user click on it the default value disapear.
...