jquery

Greasemonkey Userscript: pasting in jQuery?

Hi, I'm developing a Greasemonkey script to be used only with Firefox, and I need some help. I'm planning to use jQuery, and possibly some other scripts later on. Since the @require for GM only downloads the script at the initial install, later updates to the code won't download updates to external scripts. Therefore, i was wondering: ...

sorting definition list with jquery

Hi peeps, Having spot of bother sorting a definition list with jquery sortable. I have a handle on the dt but need it to select the following dd as well so the draggable object is actually both dt and dd tags. Obviously these have no unique parent element with the dl so just wondering if there is something I'm missing in the docs or do...

How can I establish a long-lived connection with jQuery for push notification?

I am trying to establish a long lived connection using jQuery. I have a URL in the form of: http://www.sample.com/Notify?sessionId=xxxxxx Now if I call this URL with the sessionId, it is equivalent to registering for Asynchronous notifications. I am aware of ajax calls using jQuery but as I understand it, after getting some data, jQue...

How to query XML elements from a local XML file in Internet Explorer using jQuery?

I am building a single HTML page for use in a touch-screen kiosk. I have an external XML file named data.xml which resides in the same directory as my HTML page. I was able to use jQuery to load the external XML file, parse it and build some HTML dynamically on page load without any problems in Firefox and Chrome. But then I tried it in ...

jquery checkbox attribute value

I have this span that is in a loop and produce multiple results. what I want is the attribute recordID value when its checked <span id="row" index="<?php print $i; ?>" recordID="<?php print $row->ID; ?>" Color="<?php print $row->Color; ?>"> <input type="checkbox" style="left:10;" /> </span> I am using this in my js file to che...

Jquery form text

Is it possible to type some text in form text field and at the same time see that text in DIV beside, without submitting the form first? Something like: <input type="text" name="text" id="text"/> <div class="show_text_here"></div> ...

Toggling css style change with Jquery

I am creating am able to change the color of a link once it has been clicked. I would like to take it one step further and toggle it back to the previous color once another link in the set is clicked. How address the link with 'this' to do the initial change how do I address it when switching it back? This is what I am doing currently. ...

jquery: Windows Google Chrome does not trigger event in iframe

So, I'm working on a WYSIWYG editor with an already setup Grammar, etc. I've been tasked to add copy and paste functionality for cross program. The code I have works in Google Chrome on Ubuntu, Firefox in Ubuntu and Windows, but not in Chrome on windows. I've tracked down the problem to something basic. When the paste command is sent (t...

jQuery form processing: require vs. not required

I'm building a form system with jquery and using basic validation (if a form has the required values and is of the required type) as a front line system (I validate at the backend too) for validating as the user submits, this is to prevent useless requests when possible (eg: submitted a completely empty form) What is the "proper" way to...

Looking for jQuery Plugin - Mix of jCarousel and FishEye / Dock

I'm looking for a jQuery plugin that is a carousel mixed with a fisheye effect, where the center images would be larger and the outer images slightly smaller. I've searched to no avail, and really don't want to have to create this, so I'm hoping I'm missing a good one. Basically, need a mix of something like these two: jCarousel - h...

jQuery Clone Performance

I've read that javascript gets significant performance benefits from modifying off-dom. Earlier today, I was reading the clone documentation: "Note that when using the .clone() method, we can modify the cloned elements or their contents before (re-)inserting them into the document." Is the implication then that if I have 1,...

Clearing toggle state

I have a form select replacement that uses jQuery to show options in a UL list when a user clicks a link. Clicking on an option changes a hidden form value and hides the list. Everything works fine, but if the user clicks somewhere outside the list or image I would like for the list to hide. It looks like I need to clear the toggle state...

How to use jquery remote dialog in struts 2?

I don't know how to specify the content of remote dialog. What is the difference between local and remote dialog? ...

JQuery plugin combo woes: Fancybox and ContextMenu

Hello, I'm using two popular plugins with success for the most part: http://www.trendskitchens.co.nz/jquery/contextmenu/ http://fancybox.net/ They both work fantastically. However, I cannot seem to get context menus working inside a fancybox. The normal right click menu is suppressed, so I'm led to believe there is a z-index clash som...

Using .ajaxError AND setting an error function in $.ajax()

Hello, I'm currently rewriting all my ajax calls to use the jquery method (much cleaner code! ) and have declared a default ajaxError function, shown below: $(document).ajaxError(function(event, request, settings){ alert("there was some error.. boo"); }); My ajax call with its own defined error function that I don't want the defaul...

Auto Load and Refresh Div every 10 Seconds with jQuery

Hello , I'm working with a nice little Jquery that auto loads and refreshes a div every bla bla Seconds. Works perfectly on all browsers then I load up IE and bang what a surprise no luck! :( Index.html <script type="text/javascript" src="http://ajax.googleapis.com/ajax/ libs/jquery/1.3.0/jquery.min.js"></script> <script type="text/j...

How can I replace any word within a string that starts with an '@' symbol like Twitter does, in Javascript/JQuery?

I'm trying to make any '@sometext' an HTML link where 'sometext' is also appended to a url. i.e. '@sometext' becomes a link to 'http://someurl.com/sometext'. But so it can change because the link will be different everytime depending on what 'sometext' is. I'm writing this in javascript and jquery. I'm trying to recreate links similar to...

Retrieve results from one form and use results for another?

While a user is filling out one form, I want them to be able to open up a new form, probably in Lightbox, and be able to save the contents that the separate form produces into a hidden field on the original form. I'm using the separate form to manipulate an image and I need to be able to return the path to that image to the original for...

jQuery Ajax Callback Failing after WordPress 3.0 Update

I have a bunch of jQuery Ajax calls on my WordPress website. After making the update to WP 3.0, I've noticed they aren't working properly anymore. The PHP server script is getting called, because the action takes place (Ex: deleting a record in a database, which happens successfully). The issue is that the success callback isn't firin...

How to edit the product images in zen cart?

I hate how it just shows each image and have to click each image to show the enlarged display. Anyway I can re-organize them and/or use a jquery gallery type plugin to go through the different product images? Something like the effect here would be perfect for the product images http://www.sohtanaka.com/web-design/fancy-thumbnail-hover...