frameready() jquery plugin help
I'm trying to use this jquery plugin: http://ideamill.synaptrixgroup.com/?p=6#comments to pass a javascript effect to an iframe. If you look at the following link you can understnad what I am trying to do. I'm trying to make it so that when I hit the LOAD button, the iframe smooth scrolls to an anchor within the iframe. http://ideamill.synaptrixgroup.com/demos/frameready/ajaxloaddemo.cfm Specifically, I trying to pass this function through the frameready window.addEvent('domready',function() { new
[jQuery] Using message in $.blockUI
Hi all, I have some problem with code: When I try code like this: $('#showDialog').click(function() { $('#question').load('wait.php?ID=1&NUMBER=1'); $.blockUI({message: $('#question'), css:{width:'275px'}}); }); I have some error in IE: Unexpected call to method or treatment to the property. How I can get content from wait.php and return it to message? Am trying this: $('#showDialog').click(function() { $.blockUI({ message: function() { $('#question').load('wait.php?ID=1&NUMBER=1'); return $('#question');
[jQuery] [validate] remote vs depends
I've been trying to use remote method coupled with depends, like this: remote: { depends: function(element) { element.value = $.trim(element.value); return element.defaultValue != element.value; }, url: 'my.php', type: 'post', data: { action: 'check_user_name' } } and this doesn't work, because the whole remote parameter array gets overwritten with the result of evaluating my 'depends' function (so instead of array it becomes a scalar, true or false). Therefore in case of false the
[jQuery] help with jqgrid
b.jgrid is undefined . i'm having this error when everything seems to be in place . I'm just starting to try this plugin . http://realferias.com/jqgrid_demo.htm thanks
[jQuery] Jquery content Scroller
Hi, NOTE : I am using Mozilla FireFox 3 for this. Once i get this working popper I will do testing and correcting on Other Browsers. ( im sure IE6 will be the daemon here ) I am a bit new to jquery and as a test project i decided to create a content scroll-er. it works quite nicely but has a few bugs I'm trying to sort out. may someone could help me. the functionality works good you, however if you play around with clicking on the seeker bar and arrows for a a bit you will notice a bug...any thoughts
[jQuery] Iframe auto height
I can't find any cross browser solution for setting iframe height depending on its content.
[jQuery] Jquery content Scrolling
Hi, NOTE : I am using Mozilla FireFox 3 for this. Once i get this working popper I will do testing and correcting on Other Browsers. ( im sure IE6 will be the daemon here ) I am a bit new to jquery and as a test project i decided to create a content scroll-er. it works quite nicely but has a few bugs I'm trying to sort out. may someone could help me. the functionality works good you, however if you play around with clicking on the seeker bar and arrows for a a bit you will notice a bug...any thoughts
[jQuery] jQuery script simplification question
I'm having trouble simplifying my jQuery script... I tried but I am at beginner level with this stuff. Here is the jQuery script: $(document).ready(function() { ("li.one").click(function() { $("div.a").toggle("highlight", {}, 1000); }); }); $(document).ready(function() { ("li.two").click(function() { $("div.b").toggle("highlight", {}, 1000); }); }); $(document).ready(function() { ("li.three").click(function() { $("div.c").toggle("highlight", {}, 1000); }); }); Here is the mark-up: <ul> <li class="one">text</li>
[SOLVED] get an attribute from a dynamically added element?
I've only recently started to learn jQuery. I'd like to use Ajax to get data from a server and populate the result with links that ultimately interact with a PHP updater to edit said data. I am stumbling over how to pass the ID# received from the server back through jQuery. I've broken everything down into baby steps and this is the one I can't get past: // Load the database results from content.php into div id="content" $(document).ready(function() { $("#content").load("content.php", addLinks);
How can I find the elementId from a mouseover event?
Hi I have an arbitrary number of divs of class 'product'. I can use jQuery to do something when mouseover occurs on the class type .product. e.g: $('.product').mouseover(function(){ }); I need to be able to get the elementId of the item that triggered the mouseover event... and I have been unsuccessful in figuring it out so far. I can't really test mouseover via elementId because the number of items can change, and is completely dynamic. I would greatly appreciate any suggestions on how to go about
[jQuery] jQuery AIR stripped
Someone might have already asked this, but I could not find anything. Has there been any thought given to providing a dist of jQuery which has all cross-browser functionality and checks stripped, specifically for AIR? While those checks are limited and as streamlined as possible, would it not allow the most speed to be squeezed out of jQ in AIR?
[jQuery] Adding properties to $.ajax(options)
$.ajax({ type: "GET", url: prefix+url, success: script_saved, custom_property : someVar }); Is there anything wrong with this?
[jQuery] [validate] invalidHandler is called before the errors are shown, maybe better vice versa?
Hi Jörn, incredibly awesome plugin you've made, thanks a million! Started to explore and using it, and stumbled onto situation. In my invalidHandler, I'm trying to access the first input which is marked as invalid (in order to ensure that it is visible - my form is split on tabs, and I need to select a proper tab if the currently selected one has no invalid fields). I'm doing this via $ ('#myform :input.error:first') query, but there is a problem: in your code, you mark fields as invalid AFTER the
[jQuery] Using jQuery On Widget Service For My Site
I would like to use jquery to add behaviors to a UI widget that people can grab from my site by copying a javascript snippet. I am wondering about best practices for this. Do I * Include a direct call to jquery bundled up with the snippet? * Do I use jQuery's "no conflict" and then namespace my widget (in case the snippet grabber already has jquery running on their page / site)? * Use document.write? * Or is it better to do inline javascript on the written html? Any advice is appreciated. Thanks.
[jQuery] Error messages is repeating !!
Hi , Frnds I had encountered a unusual problem in one of the forms I had validated through jQuery in my prjt. The error messages are getting repeated if I keep presing the submit button without entering any value. any the form gets as many error messages as many time I click the submit button . Any sugesstion will be a welcome Thanks Amit
[jQuery] .navButtonAdd Quick Question...
Hi there - I'm adding a custom button using the .navButtonAdd function. I see that there is an option for an image, but I'm wondering if I can create a button and apply a class instead. I have a "toggle" button that I'm adding and the image will change with the toggle state. Is this possible? Thanks!
[jQuery] [autocomplete] Submit form on click result
Hi there, My jquery is pretty sketchy so I was wondering if anybody knew how to submit the form that the search field appears in on click of a result (after having populated the textfield and any other fields)? Not sure how to do this... Thanks! Dan.
[jQuery] jQuery problem in php
hi all,i face some problem in php,when i using html2php (http:// www.quasarcr.com/html2php/ ) convert my html code to php the jquery scrollTop will not work. but if i using html is work ? how to solve this problem? Here is my normal code (html) url http://www.multiesdesign.com/test/ u can try the button it work on html but when i convert to php the scroll effect will never work again. thank you below is my code ---------------------------------------------------------- print "<!DOCTYPE html PUBLIC
[jQuery] can jquery capture these events all in one: user closes browser window/tab, or leaves my domain?
Hi all, I am brand new here. Except for quick installs of pre-written scripts over the years, I have very little experience of javascript (do we use the acronym "js" here?) I have written in visual basic (I was last semi-fluent with the 1998 version), and in WebDNA for 10 years (server- side web scripting language, like PHP, only much less known). I am writing to ask your opinions about accomplishing a solution to our need. I am not sure if we can do this with jQuery or js? Here is what I need your
Text Degrades when Animated in IE but NOT Firefox
Hi there, I love jQuery, I really do. But I'm a little puzzled as to why when I do something like hide(); or whatever on an element with text, the text looks all jaggered and degraded in IE. This doesn't happen in Firefox 3 but does SLIGHTLY in Firefox 2 (well, there's at least a notable difference). Initially, I assumed this would be a problem specific to what I was doing, but it seems it's a jQuery / browser wide problem. For example, test the following page in Firefox and IE and you'll see the
show/hide toggle function
Hi I have made this toggle function where I can show/hide a layer (.result-layer) by clicking #result_layer_btn. I can also close it with .close-btn. But if I close it with .close-btn and want to show it again by clicking #result_layer_btn it is not showing the result_over.gif but result.gif. What can I do? $p(document).ready(function() { $p('.result-layer').hide(); $p('#result_layer_btn').toggle ( function() { $p('#result_layer_btn').attr('src', '/graphics/result_over.gif'); $p('.result-layer').slideToggle('900');
$.ajax & data sent
<script type="text/javascript"> $(document).ready(function(){ $('#main_content').load('cityhall.php'); $('#loading').hide(); $('a').click(function() { $("#main_content").slideUp(); var replacement = $(this).attr("title"); var content_show = $(this).attr("id"); $.ajax({ method: "get", url: replacement, data: content_show, beforeSend: function(){$("#loading").show("fast");}, complete: function(){$("#loading").hide("fast");}, success: function(html){ //so, if data is retrieved, store it in html $("#main_content").slideDown("slow");
JQuery Tab Ajax
I'm having a weird issue where I'm using Ajax based tabs and when I try to set a tab to selected it's loading the tab but it shows up empty. I have to physically click on the tab to make it load again and then it shows the content. In Firebug I can see that the content has loaded but it won't show up for some reason. I have my tabs set up like: <script> $(function(){ $("#tabs").tabs({disabled: [1,2]}); }) </script> <div class="demo"> <div id="tabs"> <ul> <li><a href="step1.cfm"><span>Select Points
Inputfield with integrated clear button
I need an input field which should behave like this: [Enter Text.... (x)] Firstly: When nothing is entered in the text field it should display a grayish text, which disappears as soon as the user starts typing Secondly: When the user clicks the (x) Clear button, the text will be deleted and the default gray text is shown again. Example I guess I could create a jquery selector for all required input fields, which then adds a X Button after the input field. But I don't know how I get this button inside
jQuery part does not get executed sequentially
When I click a button the following code snipped is executet: $('#info').append("Loading.."); aMethodWithMightTakeSomeTime(); Now the first statement gets executed, when the second one is finished. Therefore the user gets informed when it's already over. I tried the following to "postpone" the execution of the second statement without success: setTimeout(aMethod...Time(), 50); I can't think of a possibility to fix this. ** Thanks very much in advance. ** Footnote: I was surprised how difficult it
[jQuery] Help choosing JavaScript library
Hi, I know.. probably a bit naive but still. Sorry if something... Guys, can you please help me to choose JS library and say your experienced opinion on each one: http://dnagir.blogspot.com/2009/04/javascript-library-survey.html Much appreciated and many thanks in advance! Dmitriy.
[jQuery] upload file
I seach a simple way to upload file using ajax and jquery
[jQuery] $.ajax get with ?var=123 not accepting data type
<script type="text/javascript"> $(document).ready(function(){ $('#main_content').load('cityhall.php'); $('#loading').hide(); $('a').click(function() { $("#main_content").slideUp(); var replacement = $(this).attr("title"); var content_show = $(this).attr("id"); $.ajax({ method: "get", url: replacement, data: content_show, beforeSend: function(){$("#loading").show("fast");}, complete:
[jQuery] how can I delete all elements: children and parent
I have: <span id='57'> bla bla bla <br/> <a href='#' > something1 </a><br/> <a href='#' onclick='clickk(57); return false;'> DELETE </a> <br/><br/> </span> How can I delete span element with id=57 and also everything inside ?
[jQuery] cluetip plugin - Need beforeSend() and error handling override
Hi there, Recently I've been using cluetip with asp.net in particular calling ajax pagemethods. I recently came across this problem: http://stackoverflow.com/questions/361467/is-there-any-way-to-suppress-the-browsers-login-prompt-on-401-response-when-usin Basically what is happening is my pagemethod needs to be autheniticated, as such when an ajax request is made to this method a 401 status is given and NTLM prompt is given. The workaround involves sending a custom header that will help suppress
[jQuery] cluetip ajax authentication
Hi there, I've been using cluetip calling an ajax page. The problem I am finding is that the ajax page is part of forms authentication so if this expires and a person hovers over an element to display the cluetip it will try and request the ajax page but come up with NTLM prompt. How can I detect that the ajax page tried to redirect to login page and suppress the NTLM username/password prompt? Regards DotnetShadow
[jQuery] $('body') problem in FireFox
Hi, I am trying to make a search-term highlight script extension work on the body element of a page. However, the following code causes a VERY weird problem in FF2 and FF3. The complete body seems to be removed after the script runs... [code] var hlst_query = new Array ("array","of","dynamically","inserted","terms"); jQuery.fn.extend({ highlight: function(search, insensitive, span_class){ var regex = new RegExp('(<[^>]*>)|(\\b'+ search.replace(/([-.*+?^ ${}()|[\]\/\\])/g,'\\$1') +')', insensitive
[jQuery] Custom Callback not using jQuery object
I have built a custom callback into my plugin, here is an example: $.fn.matrixStatus = function(options) { var defaults = { urlSuffix: '?action=live', onComplete: function() {} }; var options = $.extend(defaults, options); return this.each(function() { var obj = $(this); var itemDesc = obj.attr('rel'); var itemId = obj.attr('id'); var itemHref = obj.attr('href'); obj.click(function() { if (!itemDesc == '') { var question = confirm('Are you sure you want to change the status of
[jQuery] Can jquery do non stop effect?
hi non stop effect for example if i want to design a "non -stop" coloring text but not with all color i want it to change from blue to red repeatedly look here http://rainbow.arch.scriptmania.com/ do i have "non-stop" effects in jquery? the option to animate something repeatedly? like make the font bigger and smaller all the time? animate a text from red to yellow and orange all the time it is on show... tnx
jquery keyup problem
I would like to appear the sum of amount and charge on the form field of total. unfortunately it doesn't. Anyone can give me the solution. many thanks <script language="JavaScript" src="../include/jquery.js" type="text/JavaScript"></script> <script type="text/javascript" src="../include/jquery.alphanumeric.pack.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#amount").keyup(function(){ var amount = $("#amount").val(), var charge = $("#charge").val(), var totalamt =
[jQuery] Where am I going wrong?
I have this code: var closed = false; $(document).ready(function(){ $('#FirstName').click(function(){ if (closed == false) { $('#popUpMessage').fadeIn('fast'); } }); $('#FirstName').blur(function(){ $('#popUpMessage').fadeOut('slow'); }) $('#popUpMessageClose').click(function(){ closed = true; $('#popUpMessage').fadeOut('slow'); }) }); As is, nothing works.. I have this on a field input like so... <input type="text" name="FirstName"
[jQuery] Shorten the JQuery code
Could someone tell me how to shorten the following code? Thanks. if ($('.def').length == 0) { $('#no-defs').show(); } else { $('#no-defs').hide(); }
[jQuery] CTRL+S to Insert Record PHP+JQUERY
Hi All ,<div> </div><div>Can u please tell , </div><div> </div><div>How to implement in jquery, php,,</div><div> </div><div>Insert record after pressed the CTRL+S in keyboard ,</div><div> </div><div>Thanks<br clear="all"> -- உங்கள் நண்பன் பரணி குமார் Regards B.S.Bharanikumar POST YOUR OPINION <a href="http://bharanikumariyerphp.site88.net/bharanikumar/">http://bharanikumariyerphp.site88.net/bharanikumar/</a> </div>
[jQuery] Scope of the (AJAX) callback functions
I am trying to access a variable I've created before an $.post() within the AJAX callback function. Is it possible to bind the current scope to a callback function? Here's a simplified example of what I'm trying to do; $("form input.validate").blur(function() { // EVENT BINDING var formVar = $(this).parent(); // VARIABLE I'D LIKE TO ACCESS var query = { .... }; $.post("/validation", query, function(xml) { formVar.getAttribute("name"); // formVar NOT available.... }); }); formVar is undefinded. I'm
Choppy jQuery Animations
Hey guys, I've been having some trouble getting jQuery to display anyhting smoothly. I'm using the jquery.lightbox-0.5 at the moment and when it fades it and displays pictures it is extremely choppy. Part of this seems to be coming from the fact that I am pulling images out of Google Picasa via their API, but even if I use static images hosted on the server, the animation quality is still very poor. Any help would be appreciated. The problem is most noticeable in Firefox. Click any of the pictures
Next Page