Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use for questions about JavaScript code that is very specific to Drupal.
0
votes
Parsing json with jquery
I do this un drupal 6 (i'm not sure if this work in D7)
//Server side:
//Al your code for generate your json string
drupal_set_header('Content-Type: application/json');
drupal_to_js(array("status","d …
1
vote
How to auto resize the height of an iframe with Jquery?
But in the past i use this plugin http://www.lost-in-code.com/programming/jquery-auto-iframe-height/
6
votes
Accepted
Best approach to inject variable data into JavaScript files?
Drupal have a javascript array for save settings and variables, take a look here:
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/6
Check the "settings" option in that page … vars without need print javascript code, only using a php array. …
3
votes
Ajax InvokeCommand with custom Callback Primary tabs View(active tab)
In the JS side try with this:
(function($) {
$.fn.uploadToS3 = function() {
// Your code here.
};
})(jQuery);
the PHP part looks ok to me.
3
votes
Accepted
How to show single pop-up for whole guest session
You can use one cookie, if is the first time to the user enter into your page then create a cookie, when the user change of page you will check if the cookie exists and if exists don't show up the ad. …
1
vote
Accepted
Wrapping javascript code conditionally using a cookie
you can add javascripts files using javascript you need to do something like this:
<script type="text/javascript">
if(! … ;
var zflag_sid="823";
var zflag_width="1";
var zflag_height="1";
var zflag_sz="15";
//building the script:
var js = document.createElement("script");
js.type = "text/javascript …
3
votes
Accepted
How to make form buttons call only javascript?
The most easy way to accomplish this is just return false in your javascript code:
function add_to_list(list, text) {
try {
list.add(new Option(text, list.length), null);
return false;
} catch …