I'm telling the view to display a field with the NID contents. I'm telling it that I wish to "Rewrite the output of this field" and I enter:
<a href=”javascript:void(0);” onclick="javascript: approve([nid])" >Approve</a>
When viewing the page, all the javascript has been stripped. How do I get views to accept javascript in the link, ...
Generating inline JavaScript in HTML has always made me feel dirty and after having used YUI a bit I get the sense that it's best to leverage HTML elements as an alternative. Would it be insane to use a hidden <ul> to store keys and values to be used by static JavaScript which would only act when it found the <ul> rather than using inlin...
This flows from the error I ran into here jQuery $(’form’).serialize() returns only one element of a form serialized where having a form tag named "elements", like so:
<form>
<input name="elements"/>
<input name="e2"/>
</form>
prevents you from accessing all the named elements of the form with jQuery's $('form').serialize() (i.e. you ...
LiveConnect is a Mozilla technology that bridges Java and JavaScript. Amazingly, they've started maintaining it again for recent versions of Firefox. In Firefox I can write e.g.
var d = new java.util.Date();
or use the Packages. namespace if it's not a java.something
var d = new Packages.java.util.Date();
or I could go crazy and ca...
I have a form with a select box that allows multiple options. After a user saves these options, it stores them in a database table.
I can then read this database table to get the options they chose one again. I need to be able to grab this data from the database, put it into an array, then have the options in that select box to be pre-...
I have the following HTML and Javascript in a page that should display "TEXT" in the body and alert me with "alert!" However, it only displays "TEXT"; my Javascript console says "msg is undefined."
<html>
<head>
<script type="test/javascript">
function msg() {
alert("alert!");
}
</script>
</head>
<body>
<p>
<script type="tex...
Hello,
Somebody made a compare script for me, but it is working like it should be, because I a was little unclear, the code doesn't totally do how I like to have it.
Please take a look at this website, this will explain more then thousand words
The function of this website is checking the lotto/bingo numbers, Each draw day (1 and 2) s...
Hi, I'm trying to make an firefox extension. Why when I want to use document.body.innerHTML = data; in new opened tab, it doesn't work. Here is my code:
function change() {
//Open google in new Tab and select it
tab=gBrowser.addTab("http://www.google.com");
gBrowser.selectedTab=tab;
//Create nslFile object
var path="/home/foo/notify...
<script type="text/javascript">
$(document).ready(function() {
$("#uploadify").uploadify({
'uploader' : 'scripts/uploadify.swf',
'script' : 'scripts/uploadify.php',
'buttonImg' : 'css/btn_browseFiles.png',
'rollover' : 'true',
'wmode' : 'transparent',
'height' : ...
Hi I'm looking for a little help trying to manipulate a url created by flash, I'm using SSP and would like to generate some meta and title information in my php / html based on the value after the #id= (hash) in the following url;
http://dev.website.com/gallery#id=Guests&num=19
Any ideas?
...
Hi,
does anybody know of an easy way or taking a date (e.g. today) and going back X days?
So, for example, if I want to calculate the date 5 days before today?
Any help would really be appreciated.
...
Hello,
I would like to run some tests on v8 with and without JIT to compare
performances.
I know JIT will improve my average speed performance, but it would be
nice for me to have some actual more detailed tests results as I want to work with mobile platforms.
I haven't found how to enable or disable JIT like it exists on Squirrelfish ...
I have the following code which works perfect in IE for a textarea element.
(ed: wrapped for readability)
<textarea name="mem_message" cols="25" rows="5"
onkeypress="return taLimit(this)"
onkeyup="return taCount(this,'myCounter')">
<? echo $_SESSION['mem_message']; ?>
</textarea>
It calls a validation function:
<script lang...
Hi all,
For a current project we are using SwfObject 2.2 to embed flash files, and the CRD gurus are using SwfAddress 2.3 to create SEO flash goodness.
Turns out that if you have both libraries included on a page, then any attempts at using SwfObject callback in the API (http://code.google.com/p/swfobject/wiki/api) prevents the SwfObje...
I am trying to alternate background colors of table rows, each section starting with the same color. I have achieved this with the following code:
$(document).ready(function(){ $("tbody tr.row:nth-child(even)").css("background", "#efefef"); });
I also need to be able to limit the number of rows (5 for example) that are visible inside ...
I have GridView with CheckBox in it's header and another one in each row:
<asp:GridView runat="server">
<Columns>
<asp:TemplateField>
<HeaderTemplate>
<input type="checkbox" onclick="checkAll(this.checked)" />
</HeaderTemplate>
<ItemTemplate>
<input name="checkSelect" type="checkbox" value='<%# Eval("ID") %>' />
...
I've recently started getting a little creative with how I handle my js source files. I'm using a build processing for javascript developement, and I really like it.
I've also started playing with a few javascript template engines.
I want to include my templates in my js files. Multi-line strings are, of course, very hard to deal wit...
I have a set of links dynamically generated in a table. Each of the rows has a unique "id" property on it's tag. The goal is to get XMLHTTPRequest to tell the page 'deletepost.php' which record to remove from an outside database.
It changes a hidden input value to the value of the row (a number), and then submits that form
<script...
I'm new to Rails.
Javascript errors to an alert box injure my soul. Is there a way to send it to console.log() instead of alert()?
...
Does anyone know what the core drupal javascript functions are to force an error message? More importantly, it must work with Message Effects (http://drupal.org/project/messagefx).
With JS Theming you can call these: (this is javascript code)
Drupal.messages.set("The Message!", 'error');
But, it doesn't hook into Message Effects, an...