Downloading progress bar
Hi to all, My requirement is "when i click on download button the one popup should appear for showing progress values". for this i need to implement progress bar for showing correct progress of Downloading file(e.g. 10%, 20%, 30%.... 100%) not any static image. As i know about the progress bar UI but in this i need to send value to progress bar, but how i will get that value. Hope u got my point. If any one have solutions or suggestions, please reply me. Thanks and Regards, Amit
ajax callback function
why function aSuccess don't work <?php if($_REQUEST['iusername'] != ''){ echo 'เริ่มต้นเวลา '.date('h:i:s')."\n"; exit(); }else{ ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ส่งข้อมุลแบบ post ด้วย jQuery</title> <script src="plus/jQuery/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> /*<!---=-=-=-=-=-=-=-[ jquery api ajax ]-=-=-=-=-=-=-=--->*/ function aComplete(){ alert('com') /* ทำงานทั้งสำเร็จ
not animating problem
Hi, I got ajax embedded in this div <div id="regaddcar" style="display:none;"></div> When it's added it does something like this $("#regaddcar").html(data).addClass('ui-widget ui-widget-content'); $("#regaddcar").fadeIn();which works, but on fading out, it does not animate, it only disappears $('#cancel').live('click',function() { $('#regaddcar').fadeOut().removeAttr("class").html(''); }); Did I missed something? Thanks
how to get js working in successively .load() pages
new to jQuery/Forum... from reading here and there understood that js does not work in successively .load() pages, yet I tried the proposed workarounds but could not get to work, perhaps lacking a bit of understanding about the eventhandlers, of whether there are just being not read inside the html or being ignored or... this html is being injected via .load() into a div which was injected the same way before already <div id="enmenu"> <li><a href="#/menu.html" class="german button">de</a></li> <li><a
Validation problem
Hi, I'm trying to validate a form with on submit if statement, unfortunately this code only pops up platenum label or motornum label depending on which is filled, but if both are not filled, it only shows one. What's wrong with this code? // plate number validation on submit var formclicked=0; $('#reg_addcar').submit(function() { formclicked=1; //validates platenum if ($('#motornum').val()==='') { $('#vmotornum').show().text('This
How to give absolute url
Here jquery code below, 1) how can i give absolute url to call GetDate method of default.aspx page? the problem is that, if my page is in a folder and accessing the Default.aspx page method.then it give error object not found, because my Default.aspx page is out side of the folder in which folder page it accessing the Default page method. 2) Is it possible to call a method which is in a class(not a .aspx page) or in a master page of .NET (method declared as Web Method)? $.ajax({
How do I Capture and Event Only Once, and then Stop From Re-Occurring
Hey Everyone, I'm trying to figure out how to do the following: capture a mousemove event over a div once (which triggers a function), and then once it has occurred prevent that event from occurring again. is it possible to do this? the code so far is simple: $().ready(function() { $('#theDiv').mouseover(function() { myFunction(); }); }) much Thanks in Advance!
Using jquery to return xml file.
Hi, I am using an webservice (.net) to do some database related operations. I would like to call a method from this webservice to return an xml file. At the client side i want to use jquery to call this webservice by passing json object. How will I do this? In success method is it possible to get the xml file as returned value from the webservice? Thanks, Aradhya
Three State Rollover with jQuery
I've been researching a good effective way to do 3 state image rollovers with jQuery, but haven't found anything that's workable with an AJAX style page. The page consists of a ul based menu that shows and hides new content depending on the selection. What I'm attempting to achieve is once the image has been clicked on, for the "over" state to remain until a new choice is made from that menu, aka another image has been clicked on. Once another image was clicked on, it would then display the active
Denounce GPL infringement
Hi everybody, i work at a VERY LARGE BANK project in which they are systematically removing every license reference and credits from source code, and not just JQuery but every 3rd party sources. Does anybody here knows where and how to denounce this? Thanks in advance...
how to use javascript function on jquery object
$('button').onselectstart = function () { return false; };This won't work.
Touch Event: jQuery Event normalization does not preserve the event.touches (at least on iOS/iPad)
$(document).bind("touchstart touchmove touchend",function(event){ debug("touch event " + event.type + " touches: " + event.touches); }); // doing this will pretty will print ".... touches: undefined" Workaround: Luckily, jQuery keep the originalEvent handy (thank you!) debug("touch event " + event.type + " touches: " + event.originalEvent.touches);
use next() for a slider problems with last div
Hey guys, I'm new to jQuery. I want to write a small script for my slider for my website. My HTML part looks like: <img src="images/leftarrow.png" id="leftarrow" alt="leftarrow"/> <div class="slider"> <div class="active"> <img src="images/1.jpg" /> </div> <div> <img src="images/2.jpg" /> </div> <div> <img src="images/3.jpg" /> </div> <div> <img src="images/4.jpg" /> </div> <div> <img src="images/5.jpg" /> </div> </div> <img src="images/rightarrow.png" id="rightarrow" alt="rightarrow"/> I'm testing
ajax pages back/forward navigation with browser/mouse buttons
hi, I am new to jQuery and this forum, please bear with me... been looking for recent posts regarding this, but did not get lucky. hence the question how achieve a.m. navigation when html content injected via .load()? the browser does not seem to recognise it, the navigation buttons just stay greyed out. appreciate any sound input/help. tkx!
cant get my selector right !
I have a simple alternative right click script that is activated using this jQuery $('.status') .rightClick( function(e) { $('#right_click').css('top', e.pageY) .css('left', e.pageX) .show(); }); In the current version above, it works fine when right clicking in any element with the class set to 'status'. How ever I have another piece of script which applies an additional class (selected) to selected
text undo redo machanicsm like googledocs/MS word
I find most rich internet text editors, developers put in the product many many features but fail to make a decent undo redo mechanism, I pressed crtl+z they deleted my whole paragraph. Unlike googledocs's one, it knows exactly what to undo. If anyone can let me know what the logic of google docs/Ms word machanism is, maybe I can give it shot building one.
Using load or get multiple times.
Well basically, I want to use load, get or post to get a whole page then use something like $('#id2').html('content'); but I need your support!
Ajax success function
Hi, I have created the following AJAX code to retrieve some content via a Kohana PHP callback. The callback function retrieves the content correctly. However, the return statement (highlighted in red) inside the success function does not return the result to the calling point. I am not sure why the following code is not working: function loadContentLink(href) { var mainURL = "http://" + location.host + "/myhome/"; $.ajax({ type: "post", url: mainURL + "content/load",
file downloading using progress bar.
how can i show the progress bar using jquery, which show the progress of file downloading(size of file). like 0%,10%,20%,30%..... 100% just same as in FireFox downloading popup. If any one have any suggestion or answer, please reply me. Amit
JQuery slow on Windows Server
Hello! I am using a JQuery script I found here to implement a sliding menu for a web page.. the thing is that while locally and on a Linux Server it works fine, when I upload my page on a Windows Server it is really slow to load... actually it loads normally until some time, then it freezes for several seconds and then it loads again... What could be the reason to this behaviour and is there a way to prevent it? Thanx!
Using jQuery with Drop Down Menus
Hi Only my 2nd post very basic knowledge. I have currently using this selector with a radio button to apply my animation which works great. $("#classic").click(function() { //Do Something }); How would I write my selector for a drop down menu, say if the menu had two options of Apples and Oranges and had an ID of fruit. I would want my animation to start when Oranges were selected for instance. Any help will be much appreciated. Thanks Richard
jquery ui tabs ie6 and ie7
Hi, I've tried using jquery ui tabs only to have it not display the tabs in ie6 and ie7, however, on the demo of the jquery ui page, I saw that they where working on ie6 and ie7. Is there a css hack that they added to make it work?
Drag/drop panels when toggled lose their internal droppable ability
First of all, huge kudos to 'Web Developer Plus' for writing most of the initial code! I have a list of 'items' which I can drag into any one of the blue boxes inside the widgets, and then sort them. This works fine. It's only when I start toggling these widgets (showing/hiding), or moving their positions, that things start going weird. Example 1 An item (or items) can be dragged into (and sorted) ok. If I then move Widget 2 above Widget 1 I can't drag anything into Widget 2. I don't get any errors
Keeping Dropdown Sub Menus Open
Hello, I'm pretty new to this. Got a navigation menu which has a few sub menus in it which animate nicely based on the following script: <!--//---------------------------------+ // Developed by Roshan Bhattarai // Visit http://roshanbh.com.np for this script and more. // This notice MUST stay intact for legal use // ---------------------------------> $(document).ready(function () { //slides the element with class "menu_body" when paragraph with class "menu_head" is clicked $("#firstpane
"dot" syntax on elments id's
Hello, I have client on which I serve a third party service (javascript file). In this service I want to use Jquery to reference specific html elements identified by a unique id. What I have noticed is that this client identifies these elements Using a “dot” syntax, something like : “<div id=froum.tol2 …..” now the next doesn’t work in jquery : “$(‘#froum.tol2’)……” The “dot” in the literal id makes jquery go the wrong path… Is there a syntax I can tackle this issue? Thanks, Yoni.
jQuery DomHepler
Hello. I trying to find jQuery DomHepler plugin on native method whitch helps me create simple dom constructions like this in ExtJs myDiv = Ext.DomHelper({ tag : 'div', cls : ''myDivClass' children : [{ tag : "span" },{ tag : "span" }] }) this returns me a div with 2 childs. is it exist? Thanks.
JQuery google map issue
Hi All, I am not sure what I am doing wrong here. I have a hidden field in my page and trying to pull the value from that field and utilize it to populate markers. The hidden field contains this value - {latitude: -33.352222, longitude: 116.226675, html: "STOCKTON WEST" },{latitude: -32.5878758, longitude: 118.6554654, html: "DOWN ROAD" },{latitude: -32.42342342, longitude: 121.842342, html: "CAMEL LAKE" },{latitude: -32.4545643, longitude: 118.535344, html: "BLUE GUM CREEK" },{latitude: -32.2343223,
Access to an inserted element
Hi Folks, I'm new with jquery. I find, it's amazing but I run into a problem. I insert an element into a website (between <div id=here></div>. It works. This is an input field and a picture (a trashcan)). Click on this picture shall delete the new content between the <div>s This doesn't work. Only on the content on bottom of the site (original content) works. <html> <head> <title>Test</title> <script type="text/javascript" src="/static/global/js/jquery.js"></script> </head> <body> <div
Autocomplete ( not the plugin ) in firefox triggers which event?
Hi jQuery developers/designers, I have the following question: What event could be or is triggered when someone fills in a inputfield using the autosuggest that is build in in browsers? Like for example my email that always comes back on email input fields. I have tried the change and keyup event but they don't work. So I repeat my question: What event could be or is triggered when someone fills in a inputfield using the autosuggest that is build in by browsers? Greetings
jquery dynamic code
i have following in a string. javascript: __doPostBack('GridWidget', 'Edit$0') how can i dynamically execute this?
Binding an event after ajax call
Hi All, I'm quite new to jquery...and i find it quite fascinating but at the same time...confusing..so bear with me! :) I'm using ASP.net mvc (which is irrelevant to this case), and the Telerik MVC Grid, jquery and jquery ui! The page consists of the grid, which has a number of rows with data which is loaded after the page has been loaded. One of the columns on the grid is a 'delete' button and when the user press it, a jquery ui confirmation dialog should show.....unfortunetly it doesn't. I noticed
What would be the best option to get the same functionality as ".toggle" for a ".keydown" event?
What I'm trying to do is display a menu on keydown, having it go away when the key is pressed again. Specifically I'm using the "M" key. Here's my code so far: $(document).ready(function() { $('#menu').hide(); $(document).keydown(function(e) { if (e.which == 77) { $('#menu').toggle(function() { $('#menu').fadeIn('fast'); },function(){ $('#menu').fadeOut('fast'); } } }); $('#navNotification').click(function() { $('#navNotification').fadeOut('slow', function() { }); }); });The highlighted section
IE error when using live with google map marker markup
I'm having trouble getting live to bind a click handler to an anchor tag with a specified class when that anchor tag is in the bubble of a google map marker. This is only happening in IE. It looks like IE doesn't add the map marker markup to the DOM. Is this true? Has anyone here done this before? Jerry
Replace letters in string
Hi Im new to Jquery, and i was wondering how i could rename a string like "hat" to "het" by replacing "a" with "e" in my labels..
How to make dynamic data draggable after loading from server
Hello, I'm rather a beginner using jQuery. It's fun but I need some help ... I'm not sure how to make something draggable which is dynamically loaded. The click event works fine on the new content though. Like for example: $('.file').live('click', function() { alert('clicked'); }); // Load new content after click $('.icon').live('click', function() { var fileId = $(this).attr('id'); $.post("/get_content/", {'file_id' : fileId}, function(data) { $.each(data,
Javascript Object Literals and Storing jQuery Objects
What I really want is to store $("header") in a variable. When I try to do this with $header2 (below) it fails. #header is red not blue. For $header I've got an anonymous function returning $("#header"). Although this works I'm sure its not efficient as it calls $header every time it's used(?) - so its the same as just using $("#header") throughout the code. When I use firebug to output lib.page.$header2.selector is correctly displays #header. As you can see the script which calls lib.page.init is
jquery class value
Hi, I've this script jQuery(document).ready(function() { jQuery('.toggle').hide(); jQuery('a.slidetoggle').click(function() { jQuery('.toggle').slideToggle(400); return false; }); }) I'm trying to pass a new dinamic value (5 or 11 or 3 or n) that change the classes ('.toggle') and ('a.slidetoggle') in ('.toggle5') and ('a.slidetoggle5') ('.toggle11') and ('a.slidetoggle11') ('.togglevalue') and ('a.slidetogglevalue') I can insert my variable into the "class": <a
jquery problem on indexhibit
Hello, I have site installed using indexhibit but I have problem using jQuery I wont to use both slideViewer and slideViewerPro on my site. The problem is that when I use jQuery v1.4.2 the slideViewerPro is working fine and slideViewer is not working. But when I use jQuery v1.1.2 slideViewer works grate but then slideViewerPro isn't working properly. my site: http://www.hribaleksandar.com/ exibits with slideViewerPro: http://www.hribaleksandar.com/index.php?/news/under/ / working fine exibits
Quick synthax question
I use this to fade things outside the category I select... jQuery(document).ready(function($){ $("#categories a").click(function() { var cat = $(this).attr('class'); $("#wrapper div").fadeTo(50, 0.2); $("#wrapper div").filter('.'+cat).fadeTo(50, 1); return false; }); $("#categories a.all").click(function() { $("#grid-wrapper div").fadeTo(50, 1); }); });But I would like to replace line 4 to fade only things
animate Issue in Webkit Browser When View is Zoomed Out
I am new to jQuery and am using the animateTo plugin to animate an element on hover from one size/location to another. When viewed in a Webkit browser at actual size (Safari -> View -> Actual Size) the animation works as expected. However, zoom out (Safari -> VIew -> Zoom Out) and the animation behaves strangely. Is this a known issue, or am I doing something wrong? You can see an example here: http://bit.ly/aSR0rn I did try the animation using animate directly (without using animateTo), but that
Next Page