Block writing symbols in a text input
I would like a script that prevents the writing of symbols for exmpl ($·&#%) on the following link you can see the example. http://algoasi.webs.com/Twitter_example.htm
Write on input box
Hi, I´m try to adapt this script: Creating a Keyboard with CSS and jQuery to input information on a input box. The tutorial works on: <textarea id="write" rows="6" cols="60"></textarea> But i need to change to a input box: <input name="password" id="password" class="inputtext" maxlength="40" type="password"> On: $(function(){ var $write = $('#write'), shift = false, capslock = false; // The rest of the code goes here. }); I try to change de line 2 for
problem with multipart/form-data
I'm trying to send a form via jquery/ajax into a php file, where i could export each data separably. My js code: $.ajax({ type: "POST", url: "upload/uploadimage", data: $("#uploadform").serialize(), success: function(data){ $('#uploadStatus'+position).hide(); $('#uploadStatus'+position).html(data).fadeIn(1500, function(){ $('#uploadStatus'+position).append(""); }); } });and this is my form <form action="" method="post" enctype="multipart/form-data" name="uploadform" id="uploadform">
Toggle disables links?
Hi there! I have a little menu like this: <div id="menu"> <ul id="nav"> <li class="arrow"><a href="#">Ajuda</a> <ul class="submenu"> <li><a href="mylink1">Link1</a></li> <li><a href="mylink2">Link2</a></li> <li><a href="mylink3">Link3</a></li> </ul> </li> </ul> </div> I'm using jquery and toggle & hover functions to show & hide the menu, the problem comes
Is there a way to cache the Sizzle parsed strings?
The scenario would be something like checking if an element fulfills some complex conditions, something like if(myElement.is('div.someClass[someAttribute], td.someOtherClass[someAttribute]')) ... . Is there a way to parse that string only once, maybe create some sort of "compiled" version of the check, cache it, then give it to is ? Or does jQuery cache the string after parsing it once so I don't have to do anything?
Converting onmouseover/onmouseout to jQuery
I'm working on a couple of pages that look like this: http://www.racquetsportsindustry.com/issues/rsi_index2009.html As the visitor mouses over the month name, the image to the right is supposed to change to show the cover of that month's magazine issue. The onmouseover/onmouseout code has been working fine for months, but I recently added a couple new JS elements to the page, and now when the visit stops hovering over Sep/Oct, the image doesn't change. I'm thinking that the way to fix this is by
Use Jquery in Spring MVC 2.5
Hi, I posted an initial topic, but it says it is being moderated. I cannot find that post in myaccount so I posted again. I am new to jquery and I was advice to add ajax support to an existing web app that I have inherited. It was built using spring web mvc 2.5. After some reading, I was convinced that jquery would be the best framework to use. Now, my problem is.. I sits possible to add jquery support in spring? Does anybody have links or tutorials where I could read about this. Thanks
Use Jquery with Spring MVC 2.5
Hi All, I am new to using Jquery and have been able to create some simple tweaks to my webapps and I think I like what I am seeing. Now, I have this problem. I inherited an existing web app, that was written in Spring MVC 2.5. Now they want me to add Ajax support to this so that the site would be a little user friendly. My problem is, I dont know where to start on how I could integrate Jquery to spring. Could somebody point me to a link or tutorial where I could read so that I could get started
filter hyperlink from the rest of the string
hi i came across this plugin http://custom-drupal.com/jquery-demo/jtwitter/ (fantastic) and i thought that it be nice if i could manipulate the content recieved by making the hyperlinks linkable: it be something like select all that start with "http://" and wrap it with an anchor linking to this hyperlink but i have no idea how to do this through jquery thanks in advance
Need some help with JSON parsing
I'm pretty much new to JQuery and know only some basics. Now the problem is that I tried to parse the following JSON output - http://to.uri.st/search.js?c=51.5,-0.1 , but I have no idea how to even start (the only thing I got right is using $.getJSON()). I want to be able to go through the JSON with $.each() and get the appropriate fields of every location (saving every such field in some variable). Help with this one will be much appreciated.
Selecting specific children
Hi! I have the following scenario(well the structure is the same): <fieldset id="fs"><p><select id="sl" runat="server" /></p></fieldset> The name of the fieldset is constant but the name of the select is generated via asp.net thus i do not know the final id on that element. I can call on the select by using $("[id$='sl']").change() wich works. But its a bad solution because i need to be sure that i only trigger the element under the fieldset "fs" $("#fs").children().change() works as well but i obviously
Problem with fadeIn/fadeOut in Jquery >= 1.4
Hello, With Jquery >= 1.4 I have a problem with the effect fadeIn/fadeOut,the firefox console shows it: Error: d is undefined Archivo de origen: includes/jquery-1.4.2.min.js Línea: 41 Line of error: w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return
JQuery Google Chart Question
Please forgive if this is the wrong forum. Has anyone used the JQuery Google Chart plugin. I am going through the documentation of the plugin and I cannot find if it supports the line fills in the line chart. (basically color the area under a line). Here is the google documentation http://code.google.com/apis/chart/docs/gallery/line_charts.html#gcharts_line_fills Here is the plugin documentation http://keith-wood.name/gChartRef.html Can you please tell me how can I get Grid Lines and Line Fills.
Moderated Posts
If I post a post and it is being moderated is it in my posts under my account? I posted something and it said it was being submitted for moderation but I don't see it as "pending" or anything like that under my account.
Delaying a link untill an animation has finished!
I have lead out animation when a link on my navigation is clicked that needs to have time to finish before the link has redirected the browser to the new page! Any ideas? jQuery('#menu > li > ul').click(function() { jQuery('.stepcarousel').hide(); jQuery(this).fadeOut(2000); }); The problem is the browser refreshes to the new page before .stepcarosel has had time to fadeOut making the transition jerky Thanks in advance.
replace html elements
Hello I want to build a website, which looks similar like a chessboard. Some of the fields of the chessboard are buttons and when such a button gets clicked different images should get shown. The shown images have a size of 1*1, 1*2 or 2*2 chessboard fields. The html looks like this. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta
Enable/disable submit depending on filled out form
Hi there, What I want to do is: disable the submit button while not all form fields are filled out and eneble it when the form fields are filled out. Disabling works, the enabling doesn't, at least not 'automaticly'. All of the code is in the $(document).ready(function(){} I have this code: checkAll(); function checkAll() { $('#zeteltoto_form input[type=text]').each(function(n,element) { if (!$(element).val()=='') { $("#verzend").css('visibility', "visible"); $("#verzend").removeAttr('disabled');
Single Hover Function applied to mutiple elements?
I have a grid that uses Row\AltRow as the classes for the rows...is there a way to have the hover applied to both instead of having to define it twice (or more)? //Set the hover-over so they show when the mouse moves into the row $('.rgRow').hover(function () { $('.pointer', this).removeAttr('style'); }, function () { $('.pointer', this).attr('style', 'display:none');
Basic Superfish Display question
I really want to start using Superfish for my menus but I’m perplexed by one thing. I'm looking at the sample menu that comes with the Superfish download...why does it look like this in design view? (see attached Superfish1.gif) I don’t know how to work with it like this in relation to the rest of the page elements (divs) in design view and I’ve never seen any other menus display this way. Why doesn't it display basically the same as in browser view (attached Superfish2.gif)?
Grouping images to make thumbnail pages.
Hello I looked all over the forum, but can't figure it out. I would like to place every n-th element in a div. change this html <div id="container"> <img /> <img /> <img /> <img /> <img /> <img /> </div>into this: <div id="container"> <div> <img /> <img /> <img /> </div> <div> <img /> <img /> <img /> </div> </div> Can anyone help me with the jquery code? Thanks.
dropdownlist
Hello On the home page as I on work, I have a dropdown list which act as a menu. But in Internet Explorer can not figure out how to display all text in my dropdown list How it looks in Internet Explorer How it looks in firefox, chrome and opera Do you know how to do so that Internet Explorer also displays all the text in my dropdown list like in firefox and the others Regards Entvex =)
Question about thickBox / Modal onload
Hello, im looking for direction (to article or solution point) to add thickBox or Modal pop-up to display at homepage after page is loaded and that the code will use cookeis to display only once. i was found servel codes for thick/modal but non of them includes my needs: 1. onload 2.using cookies 3.display url not image any idea? thanks
Populate Dropdown Listbox based on another Listbox
I have the following select dropdowns: <select name="a" id="a"> <option value="">Select Something</option> <option value="1">a1</option> <option value="2">a2</option> <option value="3">a3</option> </select> <select name="b" id="b"></select>I use the following associative array (object?) to designate which values I would like displayed depending on whether a1, a2 or a3 is selected from the first dropdown: var somearray = [ { "a1" : ['a1.1'] }, { "a2" : ['a2.1','a2.2'] },
Few noob question
Hi guys, I am new to jquery and got few question. I am reading this book. The author seems to be using 2 different ways to define a variable. Sometimes he uses var $variableName = (some expression); and sometimes they use and sometimes he uses var variableName = (expression);. So, whats the difference between both? $(this).someMethod & this.someMethod ===>Are they different?If so,when should I use one or the other?Thanks for your help, leet_2k
selecting the href attribute
Hi guys, I am new to jquery so I am a bit lost at this. I am trying to make a poll using jquery and php and am bit lost. I have a link <a href="poll.php?vote_id=1&post_id=25">I agree</a> Now how do i use jquery to select the vote_id and post_id. I need to store them in variables so that I can pass it on to a php file using get statement. I am totally lost and in desperate need for help. Thanks leet_2k
Custom URL Validation
I have a form where visitors input a URL. I am using the validate plugin to check that the url is formed properly, but I want to take this (at least) one step further. I want to require that the URL *not* be a web site home page. I thought this could be accomplished by checking if the URL provided ends in .com, .net, .org etc. And I think I'd have to check whether it has a trailing slash or not - some submitted URLs will, some wont. At first I thought this might be accomplished with regex. Then I
problem with hover.
Ive worked a lot of hours on this script. But it doesnt want to run. Here my script. $(document).ready(function($){ $("#networklist-dropdown, #networkbutton").hover(hoverOver,hoverOut).bind('click', click);; function hoverOver() { if (this.$timer) { clearTimeout(this.$timer); } if (!$("#networklist-dropdown").is(':visible')) { $("#networklist-dropdown").fadeIn('fast').hover(hoverOver,hoverOut);
stop "animate left" on div bounds
Hi all sorry if this is in the wrong section, let me know and i'll move it. I am new to javascript and indeed jquery but I have muddled a page together here but want to stop the left and right links at the bottom animating over my "contents" div's bounds so it doesn't slide past the edges of my div either way. Can i do this or am i barking up the wrong tree? Hopefully you will understand, I don't know if i am explaining myself correctly, but if you have a look at the page and press "Right" twice
Making the case for jQuery to a PhD in Comp Science
I work in a large computer programming house and while I love the people I work with, one senior manager whom I get along well with does not support the concept of JavaScript frameworks at all and thinks you should do everything from scratch. He has an academic computer science background. I am a UI/UX person and have a hard time making an argument to him that he respects because I do not have the same background in computer science. Are there good academic papers out there or articles for developers
How to pass value from PHP produced HTML to Jquery without form element?
I am facing the problem that I don't know how I can pass a value from an PHP-generated <a> or <div> tag to Jquery. With Jquery I would like to load again the same PHP script but with a different start value $x. Can anybody help? Thank you! var loadWeb = "./foo.php" + <?=$x;?>; The code above in my Jquery file does not work. Do I need to generate the JS with the PHP?
Suppress http authentication dialogs and use jquery to authenticate http digest to devices on different ports
I have 7 IP cameras on a subnet with a Mac OS X 10.6.x Server. The server hosts the web page that displays mjpg feeds from the cameras. The feeds are added by appending an image tag to the body of the document - example (not a functioning URL): <img id="210_camera_mjpg" src="http://domain.com:8110/video2.mjpg" width="320" height="240" /> This is done for each camera, with its corresponding port number and id, of course. As soon as this html is appended to the document, the camera's http authentication
Please help: how to make marquee stop on mouseover?
Hello I found this usefull piece of code to make a scrolling test at : http://maxvergelli.wordpress.com/2010/02/21/linear-scrolling-text-with-jquery/ <script type="text/javascript"> $(document).ready(function() { $('.scrollingtext').bind('marquee', function() { var ob = $(this); var tw = ob.width(); var ww = ob.parent().width(); ob.css({ left: -tw }); ob.animate({ left: ww }, 20000, 'linear', function() { ob.trigger('marquee');
how to set value in dropdown form database using JQuery
how to set value in dropdown form database using JQuery
What forum is appropriate for a "call for developer help?"
Is there someplace where it is appropriate to put a call out for "developer help" i.e. my company would like to pay a developer to work on a JQuery project. This does not seem like the right forum... but then again, I could not find a better spot for it... any suggestions?
The best way to getting started.
Hi, What is the best way in getting started with Jquery. Do you have any strategy to learn quickly?
asp Update Panel doesnt work for jquery dialog after postback
Hello, I am very new to AJAX, javascript and client side scripting in general. I have a div in which there is a table and two asp buttons one updates the table and other displays the detail information on a jquery dialog box. I have place the div in update panel so on clicking button it updates the table and updates the information which is to be displayed on dialog box.The dialog box contains some asp labels and component art grid. Problem is that on asynchronous postback componentart grid is
Superfish : Accordian style Joomla module
I am trying to set up my accordian style dropdown in joomla to stay open on mouse over as its confusing when you click the submenu item and it closes. Cant' seem to find documention regarding the module parameters. Any help would be great. :)
jQuery.parseJSON is not a function
Hi I am working on a jQuery tutorial... (yes ? switching from prototype to jQuery !) but I am stuck on a an error message I don't get the solution... and muy script is very very simple <script> $(document).ready(function() { var obj = jQuery.parseJSON('{"name":"John"}'); alert( obj.name === "John" ); }); </script> I am using jquery-1.4.2.min.js ( loaded ) what's wrong with this code from the tutorial ?
Hiding single strings on a page
Is there a simple way to just hide some text in a page? Browsing the documentation I found the .hide() function. But how can I tell jQuery to hide all occurrences of a specific string? If I use the :contains() Selector I can find the text but can only hide the element that contains the text not just the text.
Jquery: Creating modal dialogs with overlay
Hi, I am trying to use this http://flowplayer.org/tools/demos/overlay/modal-dialog.html, for my project inside the table. so on button click, i am calling this Modal dialog, it works fine as it is. but if user selects Yes, i need to perform some database action, and i am not able to find the row index of the clicked button, inside the JQuery function. so in the following code- var buttons = $("#yesno button").click(function(e) { var yes = buttons.index(this) === 0; triggers.eq(3).html("You
Next Page