Hi there,
I have an index.php that includes config.php. Now I'm using $.get() when I click a button to load a form:
$.get('form.php', function (form) {
$(form).insertAfter();
});
This form requires config.php for some input values; however, when the form has loaded, I receive the php error:
Notice: Undefined variable: config in ...
I have an empty unordered list in my design. Now I want to add the following to the ul element:
<li>
<div class="item left">
<div class="wrap">
<h2>Test Header1</h2>
<p>Test Copy</p>
<p><a class="button" href="#">Click here</a></p>
</div>
<img src="images/bubble.jpg" width="248" height="211" class="rig...
I'm working on a script right now for a simple shout box. I was using $.get() before without any issues. I then switched over to $.post() so I can pass Cyrillic characters to php.
I switched over everything to post already in both the javascript and php files. Firebug shows that the variables are not empty and being sent and their is ...
I'm trying to make an AJAX call in Rails to swap images on a page. The page has a big div that is initially blank, along with a table with several entries. One of the columns in this table contains the path for an image, and what I am trying to do is on user click, swap this image into the div.
I was hoping to have a controller variab...
Problem: Need onclick event to pause/unpause a Youtube video, but impossible to add the evenlistener. Looks to me that the object is 'unclickable'.
Situation: Got a Youtube player initialized by swfobject, onYouTubePlayerReady is build as suggested in the docs (Google API docs)
For HTML & JS see: http://ListAndPlay.com
What I tried: al...
Is it possible to customize the "Browse UI window" which always open when we upload photos / files? I want to acheive two things:
In the bottom it always says "All Files". I want to lock that to only .jpg, .jpeg, .png so only those files types can be selected for upload. Secondly extent that box so when the upload is complete the previe...
IE7 and IE8 are not letting me splice my array (Safari, Chrome, Firefox work):
lzaCreateAd1.weatherArray = new Array();
var jWeatherIcon = $('.weatherIcon');
jWeatherIcon.bind('click', function (){
var targetID = $(this).attr('id') + 'Box',
idVal = targetID.substr(5,1);
var j...
Hi there,
I need to check if a select has an option whose TEXT is a specific value.
Eg <option value="123">abc</option> i would be looking for abc.
Is there a selector to do this?
Im looking for something similar to $('#select option[value="123"]'); but for text
...
Hello,
I am developing a web app using the Joomla Framework. The jQuery UI accordion function is not working for me. The error reported by Firebug is that .accordion is not a function. I have read a lot of pages addressing various similar errors but have not found a solution.
Here is what I have in the template for my component's v...
What I want to do is to filter a table to only show the tbody that contains a given value against a value entered into a textbox, and to show the filtered rows in a zebra stripe pattern.
The zebra striping is fast, the filtering is generally fast, except on the first filter on a table with a lot of tbodys (say 2000 tbody? ... I haven't ...
Wordpress is not loading jquery - I think it may have something to do with the fact that it is loading the files absolutely, not relatively, and it won't go to the url (firebug is saying access denied to restricted uri). I have tested vanilla javascript and that works, however as soon as i try to do even the most basic function in $(docu...
I have an issue similar to the question raised here, but a somewhat different case.
The functionality I'm looking for is almost identical to the National Geographic website (www.nationalgeographic.com), where the "sneak peek" appears when hovering over one of the main links, and stays visible while interacting with it, or hovering ove...
I've inherited support for a rails site with jQuery and I'm still learning jQuery. Looks like they're using tab navigation, and trying to trigger a click on the next tab with a 'Next' link below. Here's the relevant snippet:
<script type="text/javascript">
jQ().ready(function(){
jQ("#tabs").tabs();
});
</script>
...
...
I use Jquery , and change many compress tool but still cause error "it dont know function I created in this file"
http://gist.github.com/586338
help me !!!
This file run fine , dont have a error if it dont compress
...
I have a div that contains the value of the textarea on keyup, so as i type in the textarea, it's shown in the div, the div is a comment preview for the textarea. is it possible to emulate a click in the textarea when i click in the div? so if in the div i click on the word 'world' in the sentence 'hello world i am on you', then it would...
Hi,
I have used Prototype.js in my past and was able to write classes uing:
var XEventDesc = Class.create();
XEventDesc.prototype = {
initialize: function(element, eventName, handler, useCapture) {
....................
}
};
How do I write classes in Javascript using jQuery
...
I'm using jsonp to do cross-domain comet requests, and the "loading" status is really annoying.
Is there any way to suppress this with javascript?
For those who are unfamiliar with jsonp, it basically injects a script tag, except in my case, I'm hanging the request on my server without returning the request until a later time.
During ...
Is there a cross browser method of returning the window object of an element whether it be in an iframe.
This does the job for me but I don't know how well supported it is or if jQuery has a solution.
var edoc = elem.ownerDocument.defaultView || elem.document.parentWindow;
...
Right now I'm getting this strange error from IE which is basically
'null' is null or not an object
The line number it gives is completely off so I don't put much credit into that however I think I narrowed it down to where it's coming from.
function openSong(songlink){
$('#smallbox').slideDown();
requestCompleteSong('<tr>...
Just a quick question if someone has already that kind of setup or if there is some source code on the web.
I want to add some javascript validation to some Zend Forms. The straight forward approach would be to write the javascript myself but let's say it's time consuming(and that's not the kind of code your really want to write all da...