Hi everyone.
Using tinyMCE jquery version.
I have a content page where there could be many pieces of text which are clickable. So when a user clicks on one of these elements, we want to replace the DIV with the text with a tinyMCE instance containing the text.
So originally, I had it calling
$.getScript('/js/tiny_mce/jquery.tinymce.j...
i have a problem with jquery which works fine in IE. Firefox is saying that $ is undefined. My code below. Please help me tp sort out the problem.
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--<script type="text/jscript" src="js/jquery-1.3.2.js" > </script>
<script type="text/jscript" src="js/menu.js" > </script>--...
I have a collection of checkboxes
<input id="1" class="paid" type="checkbox" />
<input id="2" class="paid" type="checkbox" />
<input id="3" class="paid" type="checkbox" />
<input id="4" class="paid" type="checkbox" />
I would like to write some jQuery to check if all checkboxes are checked then perform an action but how?
...
I have a widget inside of my asp.net page from a third party. I can not use nested forms, so I am changing the method and action of the asp.net temporarily to work with the widget.
I have a js method the the elements in my widget method call
function changeActionAndMethodOnFormAndSubmit(newAction, newMethod, newName) {
var theForm ...
Hey all,
somehow still not able to do what I’m inted to do. It gives me the last value in loop on click not sure why. Here I want the value which is been clicked.
Here is my code:
$(document).ready(function() {
var link = $('a[id]').size();
//alert(link);
var i=1;
while (i<=link)
{
$('#payment_'+i).click(function(){
//...
I'm trying to write a Rails controller method that will respond to get requests made both "normally" (e.g. following a link) and via ajax.
Normal Case: The controller should respond with fully decorated HTML using the layout.
Ajax Case: The conroller should respond with the HTML snippet generated by the template (no layout)
Here's the...
Hi,
I am trying to open a dialog window onclick for each link with the class specified below. But it's not working. However, the code works if I replace .dialog('open'); with .hide();
I don't understand why it's not working if I can attach the click event with hide() but not dialog.
Any suggestions are welcome. :) ty
$('.btn_re...
$(document).ready(function(){
$("a").click(function() {
$("#content").load($(this).attr("href"));
window.location.hash = $(this).attr("href");
return false;
});
});
So I use this code to make all links load in the div (content). But I want all links that have a target of _blank (new page), to open up i...
I have a text box id="somedate" that has a date value "09/27/2009"
I'm looking for an easy way to subtract 7 days and replace the value to 09/20/2009.
then 09/13/2009, etc...at the click of a button
Obviously I need the process to be able to cross back over months and years.
Is there an easy way of doing this in jQuery?
...
I have a table of data on my page. The columns are "start", "end", "comment", and "options". Within the options column is a button to delete the row, and a button that makes a row of the table editable. This allows the values of "start", "end", and "comment" to be changed. Clicking it again finishes the editing process. Finally, there is...
Folks,
I'm trying to multiple the values of 2 select dropdowns whenever either of them are changed and then display that value.
This is what I have (which of course doesn't work) - Any ideas?
TIA!
EDIT EDIT EDIT EDIT EDIT EDIT
Thanks everyone for the help - I've updated the JQuery to reflect the attempts I've made based on all your ...
I've been racking my head for two days trying to find a solution for this. I'm using jQuery.ajax() to grab values from the database to update a box when another box is changed. The php script grabs the values from the database and then spits out json. IT works fine in FF but in all versions of IE the select box doesn't get updated. I'v...
This is an annoying ocurrance in IE when I use the jQuery slideToggle effect. Without the div being open, page looks normal. The minute I toggle the div open, it extends past the current content, overtop of the footer, and out of the viewable browser area (Even after scrolling all the way down).
This feature seems to work just fine in f...
hi,
how to deal with value attribute of any element (hidden input in my case)
i have tried with two styles
alert($("#projectManager").attr("value"));
and
alert($("#projectManager").val());
but it returns 'undefined'.
any help?
...
I got this php script that generates reports that take 20 to 30 seconds to complete. I would like to add a progress bar, and I have the progress updating in my DB correctly.
The problem is that I cant use jQuery to $.post or $.get while the main page is sitting there loading the report.
I can run javascript, like popup a window that sa...
Is it possible to have some sort of Id scoping when manipulating DOM with JS?
I use jQuery as my JS framework.
For example:
Is there any mechanism that would allow to select someDiv children of first or someDiv children of second, or do all ids on the page have to be unique?
I know this would be doable using classes...
I want to catch clicks that occur anywhere in an iframe. I can not directly access the iframe because it contains content from another domain. So how would I do that with jQuery? Somehow calculate if the click occurred in the area of the iframe? The iframe should stay totally accessible as it contains links etc.
...
I'd like to pass the ID of an element into a function which then calls jQuery. However, I'm stumped as to how to actually take the ID variable and concatenate it with other text inside the jQuery statement. For example, this returns an error:
myFunction("#myObject");
function myFunction(IDofObject){
$("'"+IDofObject+" img'").doSom...
Hi, I am having some trouble figuring out why I cant load an image with jQuery. It seems to me a browser cache problem, but I am not sure. I am doing an ajax call that returns me the path of some generated image. On the complete method I want to replace the existing image that I have for this new one. What happens is that the src of the ...
i have google this option many days but i did't find it.
what i want is:
I have two Select BOX
First Select box Have Country Names
Second Select Box is Empty
what i want is when i select any country (i.e United Kingdom) from first select box, a php query should run to get all cities name from table then add them to second select bo...