jquery

How to code one jquery function for all AJAX links.

I am using zend framework on windows. I want to implement ajax in my project first time. I searched for help and created a very simple ajax functionality. IndexController.php public function indexAction() { } public function oneAction() { } public function twoAction() { } index.phtml <script type="text/javascript" src="js/jquery-1...

anyway to get image file size using javascript(or jquery like)

like: <img src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png"&gt; i want get logo1w.png file size 7.3kb how to implement it? ...

Need advice and/or developer for small open source MRTG add-on

Revised: Would jQuery be a good way to do the following? I'd like to display MRTG traffic graphs for a dozen WAN links on a wide screen for our help desk, highlighting a graph when utilization exceeds a % threshold. A yellow frame might appear and pulse slowly, turning red and pulsing faster at a higher threshold. Not sure whether to ...

needed Jquery Equivalent of Javascript

function expandAll(table,val){ if (document.getElementById) { var row; var rown; var tblname; if ((tblname = document.getElementById(table + 'Tab')) != null) { var totRows = tblname.rows.length; if (val == 'show') { for(i=0;i < totRows;i++){ rowid = table+ i; if ((row = document.getElem...

JQuery UI object button bar that works like radio buttons

I'd like to make a control or use a control in jQuery that acts like a series of radio buttons but that looks like solid buttons instead of the radio circle. They'd look like a horizontal menu but only one could be selected at one time. ...

Select ONLY the very next select box (jQuery)

I am trying to change the value of only the very next select box after the current field. The form is a long list of rows with fields that have the same classes. On focus of the "quantity" field in "row 1" I want to change the "type" select box to "boxes" in that same row. All the code I try makes ALL of the "type" select boxes on the e...

jquery-in-place-editor pre post hooks?

I'm using jquery edit in place lib and I'm having a problem when trying to use a class selector to select multiple editable items. I'm calling editInPlace on an array of elements so I don't have to repeat that call for each editable item. What I can't figure out is how to append the item id to the url. I'm using rails so I need a url ...

problem with onClick() and middle button on mouse

hello. i made this : <a href="<?=$rowz[0]?>" onClick="countLinks('<?=$row[6]?>','<?=$indexl?>')">[Link <?=$j++?>]</a> the problem is that it doesn't work with middle button on IE or firefox. in fact, the countLinks using middle button is called only with chrome. i think i need a Jquery function like mouseup event, just i don't know h...

jQuery add a link to remove a control dynamically

Hi, I can generate the controls but can't remove them. I'm trying to add a 'Link' which will call a function to remove dynamically created control. The control and link are next to each other. Here's the Java script and mark-up to create the control: <script type="text/javascript"> $(function() { // when document has loaded ...

Looking for html string jquery parser ( parse <a> links and <img>images)

Hi, I am Looking for html string jquery parser ( parse <a> links and <img> images) or for code that will parse all links and images from html string (Html string can be very big). Example: input: sdsds<div>sdd<a href='http://google.com/image1.gif'image1&lt;/a&gt; sd</div> sdsdsdssssssssssssssssssssssssssssssssssss <p> sdsdsdsds <...

Jquery WYSIWYG with image uploader

Hi guys. I'm driving nuts around here. I'm building a CodeIgniter CMS and I need to use rich text areas. Image uploading is a must. I've been trying NicEdit all weekend, and it has great and simple image uploading but it shows some really strange issues on IE8 that I can't fix. So...I'm ready to try something else. I've seen FCKeditor, C...

How do i get jquery accordion working?

hey guys Need a quick solution to this . Basically I have My HTML like so : <div id="accordion"> <h3><a href="#">First header</a></h3> <div>First content</div> <h3><a href="#">Second header</a></h3> <div>Second content</div> </div> and javascript like this <script type="text/javascript"> $(fu...

jQuery doesn't work fully on a Firefox addon

I've included jQuery by doing this: <?xml version="1.0"?> <!DOCTYPE window SYSTEM "chrome://orkutmanager/locale/browser.dtd"> <overlay id="omcore" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt; <script type="application/x-javascript" src="../../jquery-1.4.2.js"/> <script type="text/javas...

jQuery cycle slideshow resize problem

Sample Link On this page I have a splash screen in the middle which is 100% width and it rotates graphical images every 8 sec. I have 3 div inside this slideshow. Main div contains the slideshow , internal div has repeater background image and internal div inside that has gradient image. Problem 1. When you try to make the browser sm...

Limit inserting the element to the page

I'm trying to limit inserting elements to the page: <script type="text/javascript"> $(function() { var i = 1; //allow only 3 elements if (i < 4) { $('#add').click(function() { var add_input = '<input type="file" />' var add_link = '<a href="#" class="remove">Remove</a>' ...

Why in ajax jquery function - should be writen function success:function (){myfun();} and not directly success:myfun() ?

Hi, I beginer in javascript and jquery soo my question about understanding of javascript syntax. Why in ajax jquery function - should be writen function success:function (){myfun();} and not directly success:myfun() ? Working: $.ajax({ type: 'POST', url: 'http://www.myurl.com', data: data, success: fu...

jquery .click pass parameters to user function

I am trying to call a function with parameters using jquery .click, but I can't get it to work. This is how I want it to work: $('.leadtoscore').click(add_event('shot')); which calls function add_event(event) { blah blah blah } It works if I don't use parameters, like this $('.leadtoscore').click(add_event); function add_event...

[jQuery] Selector

How do I select only <a> elements which doesn't have the word gallery inside its id or class attribute? ...

jquery dialog content issues

Being pretty new to jquery, I've spent several hours trying to open video url links into a dialog. I just cant seem to get it right... either dialog wont show, it will show the same vid regardless which clicked, or it will append to bottom of page. Someone please help? Ultimately, I'd like to have something more flexible/efficient. I wa...

NO_MODIFICATION_ALLOWED_ERR DOM error while using the Tweet jQuery plugin

I'm using a completely unmodified version of the jQuery Tweet plugin -- I haven't even changed the username yet. You can view the code at tweet.seaofclouds.com. In dreamweaver, the plugin works perfectly, yet in Safari, Firefox and Chrome, it does not. Using the Safari developer console, I see "NO_MODIFICATION_ALLOWED_ERR: DOM Except...