I am trying to show the content of techcrunch in IFrame. I am using height:100% for IFrame, even then it shows the scrollbar. So ultimately there are two scrollbars one for the page and one for the IFrame.
http://jsbin.com/iboma4
I just want to have one scrollbar and that is for the page. I would like to grow my Iframe automatically ...
Hello all,
I have a javascript that has custom indexes, I created them like so:
var rand = event.timeStamp; //jquery on click event object
freeze_array[rand] = month + ',' + model_name + ',' + activity;
To remove the above element I have this:
freeze_array.splice(rand, 1);
But this does not remove the element as I can see it in ...
Hi all!
I have a some trouble with iFrame.
Basically, I have drop down basic CSS menu and right underneath it I have iFrame with flash from external website.
Unfortunately whenever the menu drops down it goes underneath the iFrame.
Is there a way using jQuery , JavaScript or CSS to prevent the menu from disparaging behind the iframe...
This is my script:
$.ajaxSetup({async: false});
$.getScript('http://www.mydomain.com/dev/js/tinymce/tiny_mce.js', function(){
tinyMCE.init({
document_base_url : "http://www.mydomain.com/dev/js/tinymce/",
[...],
});
});
$.ajaxSetup({async: true});
It load tiny_mce.js success. But when init tinymce in callback, ...
I'm trying to use jQuery's append() method to append common content to set of div's as follows:
$("#horizontal_menu").append(menu);
$("#vertical_menu").append(menu);
What I'm finding is that the content (in this case, menu) is getting appended to vertical_menu but not horizontal_menu. Does appending to one <div> preclude you from app...
In jquery, what does the following notation mean
$.function
Is it to show a function is globally available?
...
please tell me what is the problem in this script
$("#mydiv").click(function()
{
console.log("something");
}, function()
{
console.log("something");
});
it doesn't make second console.
Thanks
...
I'm trying to bind to the click event of the currently selected tab with jQuery tabs. I'm dynamically creating tabs so I need to do live binding. The idea is that I want to reload the current tab if it's clicked on again.
I tried binding in the select event, but it seems this event doesn't fire for click on the already selected tab.
I ...
Hello.
I am trying to replicate the behaviour of the nested tree list of checkboxes in the following link using the JStree Jquery module -
http://www.blueshoes.org/_bsJavascript/components/tree/examples/example3.html
JStree - www dot jstree dot com
I've swiped the callback behaviour below from another post on the subject, but haven't...
I have an event listener:
$('button.publish').live('click', function() {
//enter code here
});
This button element is inside a form. I know that I can't use $(this).submit(); 'cause it will cause refresh. I also can't target the form by its ID because I'm trying to make it for general use (add news, add contact, add ...).
Knowin...
<div id="default">
<h2> heading </h2>
<div id="big-on-hover">
<h2> heading </h2>
I want to render the text of h2 of <div id="default"> in <div id="big-on-hover"> because both will be same always so I will change at one place it will show all other places also.
...
I have an autocomplete input field, and right now, in order to store multiple values, you need to separate each one with a comma. I'm trying to add an "Add" button so that after each selected value, the user clicks on it and that value is removed from the input box and stored in another input field.
So, for example, here are some poten...
I have the following:
$(document).ready(function() {
window.location.href='http://target.SchoolID/set?text=';
});
So if someone comes to a page with the above mentioned code using a url like:
Somepage.php?id=abc123
I want the text variable in the ready function to read: abc123
Any ideas?
...
Can I place a jQuery modal box in a specific location on the page? For example, showing it in the top right or bottom left.
Can I specify pixels or screen location for where this modal box should show?
...
I have some jquery that looks like this,
$('.career_select .selectitems').click(function(){
var selectedCareer = $(this).attr('title');
$.ajax({
type: 'POST',
url: '/roadmap/step_two',
data: 'career_choice='+selectedCareer+"&ajax=true&submit_career=Next",
success: function(html){
...
Hey, I'm just wondering how to cycle through a bunch of images, and set them as the background for a div.
What I'm looking to do is: set the first image as the background to a div. Wait X seconds. Set the next image as the background. Wait X seconds … etc. and continue
I've got the following code which works for 1 image.
$(document)....
How do I convert this small script to Prototype:
Basically I need to check if an element is visible or not, I do with jquery this way: $('id_element').is(':visible'); but I dont know how to do it similar with Prototype.
<div id="myDiv" style="display:none">A Div</div>
<script>
if(document.getElementById('myDiv').style.display == 'none'...
I'm currently taking over any links on the page that begin with "users":
$('a[href^="/users/"]').live('click', function(event) {
...however, this is a little greedy. I want to exclude any links to "stuff" that are NOT with the "versions" class. I tried:
$('a[href^="/users/"]').not('div.versions a').live('click', function(event) {
...
I have a php page that I am calling via ajax and the returned value i want to place in the page as a new element. For example I have
<div id="main">
<div class="element">
Old stuff
....
</div>
<div class="element">
....
</div>
<div class="element">
....
</div>
</div>
This is my page
I have a php page I am calling view Jquery ...
On my page most p-sections under a h3-heading are hidden. If you click on them, the content beneath is shown. Only the first section is shown when the page is opened. I use jQuery to hide these section like:
jQuery("#area h3:first").addClass("active");
jQuery("#area p:not(:first)").hide();
But what, if there is an anchor in one of the...