I have a class:
var BrandDrug = Class.extend({
fun1: function() {
$.MyFunc(); //This does not work.
}
});
//Outside function
$.MyFunc = (function() {
//Code
});
How can i call the $.MyFunc from the BrandDrug Class?
...
I have a list of reviews, and when you add a review it posts to a PHP page and then loads a Smarty template into the beginning of the review list to show the review you just posted.
That works fine. However, I use a rounded corners plugin and timeago on the review post. I tried re-calling these functions after it loads the review, but t...
I have a nested accordion. Works great in Firefox, Safari, Opera, Ie8, and even IE6. But not in IE7. I get a JavaScript error after clicking one of the main 4 links and then clicking another one of the main 4 links. Ideas?
http://gator1105.hostgator.com/~carc/projects4.php
...
Hi,
I have a website with some AJAX on it, basically the users clicks on a link, and some AJAX goes and fires a method that returns some HTML as show below, as the title says the data that is returned does not seem to be going into the HTML, is this why my accordions are not being made? It is strange becuase results are being returned ...
Is there a way to get the style: display attribute which would have either none or block?
DIV :
<div id="ctl00_MainContentAreaPlaceHolder_cellPhone_input_msg_container" class="Error cellphone" style="display: block;">
<p class="cellphone" style="display: block;">Text</p>
</div>
I know that there is a way to find out if the DIV...
I have a radiobutton set called 'daypattern'. Clicking on it should enable the checked member's formfield siblings and disable the formfield siblings (if any) of other members. I am trying to compare the value of the checked field with the value of the current radio button but the checked field value is returning an integer rather than ...
Here's the situ: A page which contains html and using the jQuery libray and tabs jQuery UI plugin loads another page when some tab is clicked. The problem is that when the page/html is loaded/rendered (let's simplify this and say it's just doing something like $("#myDiv").load(url);), the ready event is not fired because of course the "...
Hi,
I'm currently using the below script to load content on click of a link. What I would like to know is it possible to visit the url services.html#serviceone which would then show the content and the active link for that ID?
$(document).ready(function () {
$('#content div.wrap').hide(); // Hide all divs
$('#content div.wrap:f...
I am developing a modal dialog as a part of a web application. There is one thing that's been of a puzzle to me. Please watch a movie clip that I just uploded at http://inter.freetzi.com/example/. I feel strongly that I have to accompany my question with a video because this is the case when it's better to see once, than to hear 100 time...
I have a dropdown selector generated from a list and want to filter the options to remove the duplicate entries. e.g. I want to filter ...
<select name="company">
<option "1">Microsoft</option>
<option "2">Microsoft</option>
<option "3">Microsoft</option>
<option "4">Microsoft</option>
<option "5">Apple</option>
...
I want to create some DIV from javascript. I don't know how many I will need to create, but I will need to change the back-color of it after a while.
I'm using jQuery in my project. So if it's easier the solution can use jQuery.
...
Hello,
How do I reorder my inputs when my function is called?
ie: When the a2 delete button is clicked now I have a1, a3, and a4 I want to reorder this so that it is a1, a2 (was a3), and a3(was a4). I know how to do this manually, but how do I write it dynamically?
Script:
$(function(){
$('.deleteMe').click(functio...
Hello -
I have a table that is using jQuery to generate a "new row" when a button is clicked. When this new row is generated, new inputs are generated. Here is where I got the script from:
chris-barr[dot]com/projects/table_jquery
I am using this code on an order form for a client and I need to specifically target each "name" for the ...
Here is my html:
<form>
<dl>
<dt> </dt>
<dd><input type="hidden"></dd>
<dt>Dont hide this one</dt>
<dd><input type="text"></dd>
</dl>
</form>
I'm using jQuery to hide the dt/dd elements where the input type is hidden with this code:
$("input[type=hidden]").each(function() {
$(this).pa...
I have the following HTML
<ul class="main-navigation">
<li class="left"> </li>
<li class="normal">Home</li>
<li class="normal">Internet</li>
<li class="normal">Movies</li>
<li class="normal">Music</li>
<li class="normal">Documents</li>
<li class="normal">Windows</li>
<li class="right"> </li>
</ul>
What I want...
Hi I was hoping that maybe someone can help me out:
I created a bash script that connects to my free webhost via FTP and uploads a file.txt
into the home directory. What I'm looking to do is to read this text and display it on my index.html site.
Looking around I seen the following script:
jQuery.get('path/to/file/on/server.txt', nul...
Ok here is what I am trying to do.
I have a few effects I want to apply to several different div containers. Lets say I have a slide effect and a fadeTo effect. Rather then specifying what the div class/id is in the JS code, I would prefer to just be able to apply the effect by just giving the div a custom tag or an additional id/class....
I have cascading jqGrids (State, then City, then Zipcode) on a View with multirow on. I can select one or more of the ID values for the zip code by grabbing data using the following:
var s;
s = jQuery("#zipList").jqGrid('getGridParam', 'selarrrow');
"s" ends up containing something that looks like "23,119,5932,44". I am trying to pass...
I am making a jquery sychronous call to ajax -- with the return type set to "json" -- however the return data is comming back as a string. Is there something I'm doing wrong, or is there away to convert the string to an object?
var ajax_response = $.ajax({url:"ajx_services", async:false, type:"post", data:{method: "getItem", item_no: ...
I have this function, which loads a select from a database.
function Competition() {
$(document).ready(function() {
$.ajax({
url: "load-comp.php",
cache: false,
success : function(html) {
// something here
}
});
EditRow();
});
}
I need to put that select ins...