jquery

jQuery give NS_ERROR_DOM_SECURITY_ERR errors in Firefox

Hi, so, guys, I know I am way over my head, so have pity. I'm trying to learn. This is in file called ifx.js I had programmers work on my project, and it's been fine, until recently on Firefox, where it just.... isnt. The Error received when I try to perform the action (opening a horizontal menu) is: Error: [Exception... "Security ...

jQuery's implicit loop goes "both ways"?

Turns out jQuery's "implicit looping" goes both way: <div class="classOne"> some content </div> <div class="classOne"> some content 2 </div> [...] $(function() { $('hello world').prependTo($('.classOne')); }) in this case, the loop will happen at the $('.classOne') section -- hello world will be ad...

Run Code After Function is Finished OR DIV Appears

I have written a Userscript for Facebook and it groups similar notifications together. Now, using just a static HTML page with old notifications I had, the script works 100%. Here's the problem: the DIV that holds notifications by default, has no notifications in it until the user clicks on the Notification button. Facebook has an inlin...

Why doesn't this jQuery animation loop infinitely?

I have a jQuery animation that positively refuses to loop. It will play through the animation once and then quit. Here it is: http://stackoverflow.quickmediasolutions.com/stackad/fancy.html Here is the relevant section of code: function DoAgain() { $('#block').stop().css('marginLeft','0px'); var width = ($('#block').width()) /...

Links not clickable after changing text with jQuery

In Joomla, I am switching between languages not using the country flags as the indicator which language I am on but switch the text from English to Afrikaans using jQuery's replaceWith() method. Problem I am having is that on first click of the word English, to change it to Afrikaans, the link does not work. It does however work on the ...

jquery click on link?

After an event is triggered, how do I make jQuery click on a link with an id of mylink? ...

Good way to hide some info per <li> which can be extracted during a click?

Hi, I'm generating a page using jsp, it has a list element which shows a few report names. When generating the list, I'd like to hide the id of each report in the list item element so that when the user clicks that item, I can use ajax to fetch it from the server, since I know the id. What's a good way to do this such that it's easy for...

Allow User to Upload Images and Add Title/Short Description

Hi, Unsure how to do this but I want to create a DIV on my page that represents a section called Promotions. 1) Within this DIV, I want to create three rounded boxes by where the user can upload/change the images when they want, to display the top 3 promotional items How can I approach this? 2) Alongside/below these images, I want th...

jQuery $("*").fadeTo() moves content before fading.

Why does all content get jerked downwards before fading in the following, and how can i fix it? Using FireFox 3.6.3, thanks in advance. <html> <head> <script type="text/javascript" language="javascript" src="http://localhost/javascript/jquery-1.4.2.js"&gt;&lt;/script&gt; <script type="text/javascript" language="javas...

Make div appears if any of the checkbox is checked!

Hello, I am working on dynamic site where multiple checkboxes are there with unique ID, What I want is new <div> to appear if any of the checkbox is checked & disappears if all the checkboxes are unchecked. New to javascripts, need your help. Thanks ...

jquery and php relations

how can i store jquery ajax result in a php variable? i mean i want to get result of ajax jquery and store it in php variable and ECHO it later ...

Select punctuation marks directly adjacent to links, wrap them in spans

Would like to use jQuery to: select any punctuation marks (meaning . , ; : ' " &ldquo; &rdquo; &lsquo; &rsquo; etc.) that occur directly before and after any links and then wrap the punctuation marks in spans. Hence this: <div id="mydiv"> Lorem ipsum <a href="#">dolor sit amet</a>, consectetur &ldquo;<a href="#">adipisicing ...

how to select a div among sets of divs with thesame class name and contained in a main container div

hi to every one i am new in jquery. i want to make an app using the drag and drop events in jquery.but i am NOT able to select a div among a set of divs with thesame name contained in a main div.please can anybody help me ? note these set of divs are generated dynamically ,getting the data from the database ...

Select tag inside hyperlink problem

Hello, I have simplified my page and here what I have: <html> <head> <meta http-equiv="content-type" content="text/plain; charset=utf-8" /> <title>Title</title> <style> a { text-decoration: none; } div select { margin-top: 20px; display: block; } </style> <script type="text/javascript" src="http:...

Change bg color when radio btn is selected.

I need to change the bg color of a div containing a radio button when the user slects the button. I am using jquery - so its seems like there should be some simple way to accomplish this. I have my html setup something like this: <div class="sales_box"> <table> <tr> <td class="radio_cell"><input type="radio"></td> </tr> </table> </div>...

How to call a javascript post render in Rails ?

This is the facebox popup content <div class="form_container"> <% form_remote_tag :url => { :action => 'custom', :d=>params[:day], :h=>params[:hour] }, :class => 'general-form', :update => 'grid['+params[:day]+']['+params[:hour]+']', :success => 'handle_success('+params[:day]+','+params[:hour]+')' do -%> <...

Change bg on radio deselect

This is just an add on to my last question. Once I deselect the radio button I need to return the background color to its original state. So the solution we came up with is: $(document).ready(function(){ $('input:radio').change(function(){ $(this).closest('div').toggleClass('highlight'); }); }); Now I need to remove th...

Cross-domain PHP calls using jQuery and AJAX

Hi there I have a problem where the server I'm using is not configured to allow PHP or CGI and I need to send a mail using variables received from a form on this server to the owner, like a general enquiry/feedback form. Does anyone know how I can call a simple PHP file on another domain configured to use PHP and then execute the mail(...

Javascript Div rollovers

I am using Jquery - is there a simple way to change the background color on a div when a user rolls over it? ...

attaching jquery function to a span from asp.net code

I am trying to add some jquery to span with a class added to it. I am using asp.net and trying to use RegisterClientScriptBlock to attach the below code to my element. "cphMain_ed1" is hardcoded in this example however I would normally been passing a parameter here just for the ease of this. <script language="javascript" type="text/j...