[jQuery] Access denied | uncaught exception in FF 2.0 | servlet call from another domain
Hi, Seems like got stuck in the cross domain issue. Just trying to get the XML response from the servlet call through POST method: $.ajax({ type: "POST", url: "http://10.210.221.43:9081/shopsfinder/servlet/ ShopsFinderStoreServlet" //THIS DOESN'T //url: "../ShopsFinderStoreServlet" //IT WORKS .................. It works fine when we place the servlet at the same location where our application server is, with the relative path. BUT we have to put the servlet somewhere else
[jQuery] Copy content from one field to another
Hi every: I need when a user pick a checkbox the content in one field is copied to another field in the same form. For example suppose this: __ checkbox --- User 1 ---- Name: __________ Pass: __________ --- User 2 ---- Name: __________ Pass: __________ I want when user marks or picks the checkbox the content from User1_Name is copied to User2_Name and so on. Can any help me do this? Cheers and thanks in advance -- ReynierPM
[jQuery] Why doesn't this work (comet)?
I found this in a thread here called 'jquery doing comet'. It didn't work for me unmodified. I also modified it a little and it still doesn't work. Can someone tell me what's wrong? Bob here is the html file: ------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Collecting Data...</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/
[jQuery] superfish navbar - how do I center the whole bar?
I'm using a navbar with superfish. I simply put my menu list inside a wrapper so the markup looks like this: <div class="navbar-wrapper> <ul class="sf-menu sf-navbar"> <li>...</li> <li>...</li> <li>...</li> </ul> </div> now I want to make the navbar-wrapper 100% of width and the navbar to be centered in it, I thought it should be simple just do the following css trick div.navbar-wrapper{ width:100%; text-align:center; } However this didn't work, the supersish menu just didn't get centered. How can
autocomplete textarea, suport multiple words, freeflo typing
I searched high and low before I started on this, and I just couldn't find a decent jquery plugin, that would let me type into a text area, and as I was typing a word, check for matches against a list and return any matches as suggestions I could select. There are a few autocomplete plugins out there but they are all tailored basically at search boxes. So I thought I'd go ahead and start making one for textareas and to help people type letters, or whatever they're typing faster. It's far from finished,
help running functino with html fetched with ajax
i am building a messgae center, and when you first come to the inbox the messages are shown loaded through the page(not with ajax) and clicking on the message has alert of message id, which works fine, unitll i clikc page 2, and it loads in the next messages dynamically with ajax, same html, but with new messgae id and subject. but it doesnt work pulling my hair out over this haha help
Setting a date in datepicker?
Hi, I am rather new to jQuery and I have been trying to use the Datepicker. I have two dates from my php script that I want to set as defaults in two fields, but I am rather confused on how to do this. I know I must be missing something obvious, but it just escapes me. Any help is appreciated.
[jQuery] Difference with two ways to select elements?
Hi All I am having a question and seeking some help from the group. What I want to do? - to set the SELECTS that match the citerias to be defaul option. 1: $("select[name^='start_me_']").val(0); 2: $("select[name^='start_me_']").each(function() { this.value = 0; }); I found 1 doesn't work in IE but FF. Could someone let me konw why? And what's the difference between them? Many thanks Morris Li
[jQuery] .html(data) in Select Box Not working
I have this function: <script language="javascript"> $(document).ready(function() { $("#place").change(function() { $.post("types.php",{ local:$('#place').val() } ,function(data) { $('#types').html(data); $('#types').focus(); }); }); }); </script> I does work fine on firefox.. but as normal on IE does not load the result form types.php... .html(data) is not showing up. May anybody help me with?
[jQuery] Sortable: get the element that received the sortable?
Hi everyone, I'm implementing a drag and drop newsletter, where my users can drag content to different areas of a template. Depending on where they drop the content, I need to add different HTML attributes to some of the code (essentially need to make the images float:left if they're dropped into a certain box). I've achieved a basic version of this using this code: $('.review_list').sortable({ receive: function(event, ui) { // somehow need to make this only apply to competition/
[jQuery] Jquery Simple Accordion Script (No Plugins)
Good Day, I've been working around Jquery for a little while now and I'm creating a "News Accordion" menu to go on my site. The accordion works fine in all browsers, however there is a bouncing effect if Click on the same news article. Here is the snippet of the first code I was working on: Code: $(".newsArticle:not(:first)").hide(); $(".newsHeader h3").click(function() { $(".newsArticle:visible").slideUp("slow"); $(this).parent().next().slideDown("slow"); return false; }); I played around with it
[jQuery] Weird z-index problem JQuery dialog + Text field
Hi, I have a weird problem with JQuery and IE8. When I open my JQuery Dialog, I have some input text fields in this dialog. They all look fine. Under the JQuery Dialog, the main screen contains some links. When I hover over the text fields in the dialog, the hovering(and clicking) of the links of the main page is activated. This is only the case, when the input fields are hovered. I already tried to set the z-index of the text field to a high level, but no success. Can somebody help me please? thx,
[jQuery] [Validate] How to raze error manually?
Hi all, I have a Validate of a form that is inside a UIDialog. On submit I am sending AJAX request for the server (LINE SAVE), the Client side validation is passed but now I have a server side, plus save errors codes... How can I raize validation error on codes returned from AJAX? Any examples would be welcomed...
[jQuery] Where to access datepicker?
I'm using jquery, and have treeview working using src="http:// dev.jquery.com/view/trunk/plugins/treeview/jquery.treeview.js" Now I want to use datepicker, where can I access the .js file? I tried http://view.jquery.com/trunk/plugins/datepicker/jquery.datepicker.js, but that is not correct. My hosting service does doesn't have gzip compression enabled, so I need to access it via a server that does. I'me very new to jquery, so please provide the full URL I should use for the script src. Thanks
[jQuery] Calling a user-defined function
How do i use a function like this? $.clientCoords = function() { var dimensions = {width: 0, height: 0}; if (document.documentElement) { dimensions.width = document.documentElement.offsetWidth; dimensions.height = document.documentElement.offsetHeight; } else if (window.innerWidth && window.innerHeight) { dimensions.width = window.innerWidth; dimensions.height = window.innerHeight; } return dimensions; }
pass array into inline function
Hello i am taking all the input element's Id at document.ready() and keeping it as an array var allIds = new Array(); $("input").each(function(){ allIds.push(this.id); }); var allPrevVals = new Array(); for(i=0;i<allIds.length-1;i++) { allPrevVals.push($("#"+allIds[i]).val()); } and when i tried to get the same array in an Inline function it get fails $("#update_btn").click(function(){ alert(allPrevVals.length); }); how i can pass that array into that inline function Please help Regards Anees
[jQuery] Get url from iframe
Hi all, I have an ifram in a page. iframe contains google.com (google search). from there if the user search for a "key word", i and click on a link.Is there a way to get the "url" of newly open page inside the iframe. Plz help me...... thanks Rupak
[jQuery] safari flashes hidden text from hide()
Hello. I'm relatively new to jQuery and wrote a simple script that hides a block of text and displays a read more link that when clicked shows the hidden text. Everything works fine except in Safari where the hidden text is initially displayed for a second or so before being hidden. I did some research and I did run into a few posts about similar Safari bugs but no resolution has worked for me yet. Here is the page: https://216.25.8.35/ And here is the js code: https://216.25.8.35/gsuniverse/templates/javascripts/readmore.js
[jQuery] JSpec and jQuery fadeOut
In doing BDD / TDD testing using JSpec, how can one sense/capture that jQuery's fadeOut has been called? Thanks. Mike Finney
[jQuery] Can't insert JavaScript using html function
Hi all. I stumbled upon something which may be by design in jQuery for security reasons, it may be the browsers doing it, but... I found that any JavaScript I try to put into the html of an object is ignored. For example, say username is a variable that was already defined with the user's name: $("#test").html(" Hi there <script type='text/ javascript'>document.write(username);</script>."); All the script is just stripped out, in both IE and Firefox. Any ideas what is going on?
[jQuery] Safari ignoring CSS width value when animating width
Hey, I have a series of elements that are all set in the CSS to 120px in width - here's the CSS: li{ height: 20px; margin: 2px 0; -moz-border-radius: 3px; position: relative; -webkit-border-radius: 3px; width: 120px; } My jQuery animates these elements' widths to different sizes. The following is within a loop that goes through each element and uses corresponding values in an array to determine their widths (that's elementSize). 'time' is set by another function. $('#graph #item-' + i).animate({width:elementSize+"px"},time,function()
[jQuery] Json works in firefox but not in ie
Hi, I have this code and it works well in firefox but in IE it dosn't. How do I make it work in IE? If I put alert(options) inside the loop I get all the values I want so this far it's working but outside the loop if i call alert(options) nothing happens. why? $("select#kod").change(function(){ $.getJSON("artnr-ajax.php",{value: $(this).val(), where: 'kod'}, function(j){ var options = ''; for (var i = 0; i < j.length; i++) { options += '<option value="' + j[i].optionValue + '">' + j [i].optionDisplay
[jQuery] Create a custom rule
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi, I'm trying to create a new validation rule to check if a button has a class. I try to explain the scenario. I have a button that makes an ajax call to check the availability of a product. When the app loads the button as class "to_check", when the button is clicked an ajax call is fired, a server script return the availability of the product and basing on this answer I
Slider smoothness jplayer
Hello everyone, This is my first post as I'm quite new to jQuery, but have managed to get jplayer customized and running. The problem I'm having is that the volume and progress bar sliders do no move smoothly when dragging the handle. The handle graphic appears to jump around and look awful. Any help that can be offered would be much appreciated, as I need to get this player working up to snuff ASAP. The page can be viewed at http://sturly.com/aui8 And here is the js used for the player. $(function(){
[jQuery] Another quick update to CFJS
Hey folks, I've made another quick update to the DateFormat function in CFJS. You can read about it on my blog if you like (<a href="http://cjordan.us/index.cfm/CFJS">http://cjordan.us/index.cfm/CFJS</a>). It's at version 1.1.12, and as always is available from <a href="http://cfjs.riaforge.org">http://cfjs.riaforge.org</a>. <br clear="all">Cheers! Chris
jQuery Auto-Growing Textarea
I implemented facebook's auto-growing textarea using jQuery. Check it out here: http://www.aclevercookie.com/demos/auto ... tarea.html
Can jquery do THIS?
Hey everybody - awesome forums (n00b here). So - I have a client that LOVES the look of the scrollbar on this site: http://www.paulmatthaeus.com/, but doesn't want to use flash. Question: Can I recreate that scrollbar with jQuery (little dot with a line that moves the div up and down)? Any tips or direction would be helpful. Thanks! Steve
Nice fade menu never seen before!
Hi all. I'm new here and also to jQuery. I want to show you guys my first idea with jquery. I made a menu what appear/disappear when you pers a key on keybord. You can check it here: http://www.iduri.ws/fade_menu.html I you like it, please fell free to use it. Just please add the link somewhere in the code for those who like it, find it. Excuse my english.
[jQuery] this.remove
I was wondering why in a link's click event... $('a.').click( function() { this won't work... this.remove() but this does work... $('#'+this.id).remove(); as will this... $('a[name='+this.name+']').remove(); It's not a problem since I have these work-arounds, I'm just trying to understand why this.remove() doesn't work. Tia.
[jQuery] Call back function for Selectbox not working on IE..
<script language="javascript"> $(document).ready(function() { $("#place").change(function() { $.post("types.php",{ local:$('#place').val() } ,function(data) { $('#types').html(data); $('#types').focus(); }); }); }); </script> .html(data) It does work fine on Firefox, on IE as usual and normal not working.. The selectbox get empty and does not show the result from types.php that writes the new options May anybody help me with?
[jQuery] jquery HTML file reading
i have used jquery to maek an ajax call to the servlet . the servlet is returning an HTML file , how can display the contents of the HTML file . please reply fast .....
[jQuery] jQuery UI datepicker
Hi everybody, Is there any way to have the jQuery UI datepicker appearing as an image at first and then whenever we click on that image, the calendar will appear in a floating div (i.e. everything on the page isn't moved)? Thank you.
[jQuery] Why does slideUp set also set display: block?
Essentially, whenever I run the slideUp() function the css 'display' property of that element is set to block. However this is not always what I want; infact it is not what I want alot of the time and I have taken to handling it via a callback function to clear the display property but surely there is a nicer way to do this? Anyway, my question is, why does the slide up function behave in this manner? Thanks, Shhnap
[jQuery] Capture Mouse X&Y
I am hoping someone can guide me in the right direction. I need a script or function that will capture the X & Y position of the mouse click and set it in a variabvle that I will store in DB. Caveat - I need it to be X&Y position relative to the top left position of a image *(floor plan map)...so If I have the image centered on the page , the X&Y position is not top left of screen, but top left of the image. Thanks in advance
Forum styling not working
Hi, I'm trying to style a form using jquery, but it's not working, specifically the replacement of the (required) text with * or **. Can anybody see what is wrong with my code: http://actualplus.arredemo.org/ch8/chapter8.html // JavaScript Document $(document).ready(function(){ $('legend').wrapInner('<span></span>'); }); $(document).ready(function(){ var requiredFlag='*'; var conditionalFlag='**'; $('form
[jQuery] Need minimal comet example
I don't know much about javascript or jquery, but I was wondering if I can get something like this to work with jquery. It uses the prototype library: http://www.zeitoun.net/articles/comet_and_php/start I have their simple example working, but now need to modify it and am running into weird problems. Is there an easier way with jQuery? thanks, William
[jQuery] jQuery/JSON forms issue: tries to download response
I have a file upload form (see end of email) that I am am processing with jQuery so that it can be submitted via AJAX. When I click the submit button, the form sends as it should (I can see the submit went properly in the server logs). However, the response doesn't get handled properly. In the response, I get a file download dialog (firefox), although the page itself isn't replaced: "You have chosen to download idcplg which is a text/json from: test-server.mydomain.edu [...]" The code I have to setup
A simple Jquery Accordion with no plugins
Good Day, I've been working around Jquery for a little while now and I'm creating a "News Accordion" menu to go on my site. The accordion works fine in all browsers, however there is a bouncing effect if Click on the same news article. Here is the snippet of the first code I was working on: $(".newsArticle:not(:first)").hide(); $(".newsHeader h3").click(function() { $(".newsArticle:visible").slideUp("slow"); $(this).parent().next().slideDown("slow"); return false;
[jQuery] jquery validation using thickbox
Hi, Sorry to bother you but I am not able to solve this problem so posting in forum I am using two jquery plugin 1 Thickbox 2 Jquery validation Without thickbox validation is working fine but validation is not working in thickbox. There is two files ajaxLogin.htm and second is index.html ajaxLogin.htm : <script src="/thickbox/js/jquery.js" type="text/javascript"></script> <script src="/thickbox/js/jquery.validate.js" type="text/ javascript"></ script> <script> $(document).ready(function() { // validate
blockUI with datapicker()
hi i have this code <div id="question" style="display:none; cursor: default"> <form id=loginForm> ITEM NO<input type="text" id="ITNO" /><br/> ITEM NAME <input type="text" id="ITNM" /><br/> Description<input type="text" id="Des" /><br/>Category<input type="text" id="Cat" /><br/>Quantity<input type="text" id="Quant" /><br/> Remark <input type="text" id="Remark" /> <br/> <input type="button" id="yes" value="Save" /> <input type="button" id="no" value="Cancel" /> </form>
Next Page