jquery

[jQuery] Error: Form elements must not be named "submit".

When submitting an upload form, an alert shows up: Error: Form elements must not be named "submit". And no, I don't have any form elements with the name submit. I'm using jQuery version 1.3.2. What's the fix for this? ...

Is it possible to have a CMYK colour picker?

I'd like to have a jQuery colour picker for CMYK colours rather than RGB which is the norm. Is this even possible to do? I can't find much around anywhere other than RGB's ...

How do i create a scrolling menu selector using jQuery ?

I'd like to create a scrolling menu selector which looks like the one on : http://www.metalabdesign.com/ where the user can click "Web" , "iPhone" and "Desktop" and the selector scrolls upward or downward depending on which menu item is selected ? Is there a plugin to do this ? I'd really appreciate it if anyone could point me in the ri...

Why should I use jQuery instead of GWT?

I need to decide between jQuery and GWT for my new project. I haven't programmed in JavaScript for a while and I was looking into GWT for the last few days and it looks pretty awesome generating all the different JS for different browsers and all...but it takes more time developing in Java than the same thing using jQuery at least for t...

how to make divs clikable after posting

Hi all, I'm busy to create an online agenda. I have 3 drop down menu's where you can select the year, month and week you want to see. Then with out a page refresh the div's(day's with there number for example you selected februari 2008 and you get 1 feb thuiesday ect..) are printed. Those divs must be made click able so a popup/light box...

Using jQuery in ASP.NET

When using the AJAX functionality in jQuery, do I also have to have ASP.NET AJAX/.NET 3.5 installed also? or can I only use ASP.NET AJAX? I'm unclear on whether or not I'm able to use AJAX in ASP.NET without ASP.NET AJAX or not. ...

Set Value For Dialog Display

I have code: $(function() { $("#dialog").dialog({ bgiframe: true, autoOpen: false, height: 300, modal: true, buttons: { Cancel: function() { $(this).dialog('close'); } }, close: function() { ...

append removing quotes

Hi, This is a fairly simple problem but I can't find a solution. I write some xml to a hidden div on tha page and i read it later on. The problem is that some quotes are being removed when writing to the div and because of this I can't load the use the xml in IE using LoadXML this is the XML <parameters id='XXX'> <product_id value='...

Iterating through a PHP array in jQuery?

How do I iterate through a PHP array in jQuery? I have an array in php named $viewfields. How do I iterate through each element of this array using jQuery? EDIT 1 <?php foreach ($viewfields as $view): ?> if(<?=$view['Attribute']['type'];?>=='text'||<?=$view['Attribute']['type'];?>=='number') { $("<input id=input<?=$v...

Show helper text on clicking textbox using jquery

I want to display helper text on clicking on the text boxes. eg: If I click a text box it should help us by saying what to type: Enter username here I have tried below given code but the text "Enter username" is fading out, I want the text to be displayed until the focus is changed to another text box. please, suggest some code for thi...

how to distinguish left mouse click and right with jquery?

Hello, What is the way of understanding the clicked mouse button with jquery or with javascript? $('div').bind('click', function(){ alert('clicked'); }); this fetches both right and left click, what is the way of being able to catch rightclick? I'd be happy if sth like below exists:) $('div').bind('rightclick', function(){ ...

How do i run the .animate function in jQuery forever?

$(this).css("left","100px"); function endless(){ $(this).animate({ left:'-=100px', },{ easing: "linear", duration: 5000, complete: function() { $(this).css('left','100px'); endless(); } }); }; endless(); This is what I tried, but using this approach i can't get stuff moving. Im' ...

Calculate dragable divs - jquery

I have two divs on the page, wich represent two columns. Both are floating left, have 49% width and padding-right for 0.5%. In each columns there are various divs positioned vertical down. Now I want to make a function, which will allows user to resize each div in column, or if this isn't achieveable, a function which will allow user to ...

jQuery media browser

Hi, I am attempting to build out a visual jQuery based browser for thumbnailed assets grouped by the upload date of the asset. The backend part is fine, but I'm having a really hard time finding a workable visual solution that can handle (potentially) hundreds to thousands of assets smoothly. The display of the content is not an issue...

How to customize error message of maxlength with jQuery validate to show number of entered characters

I want the maxlength validation of jQuery validate to display an error message like the following: "Please enter no more than {0} characters. You've currently entered {1} characters." Where {1} is a placeholder for the actual amount. What's the best way to do this? ...

understanding ajax a bit more

Does anyone have a complete start-to-end set of steps taken when making an ajax call? is it different then a http request? Via perception, it seems an ajax populated web page takes more time then a php populated one: both accessing the same db, same # of records, same display, difference being in-line php to render the form prior to sen...

jQuery wildcard search

I'm trying to find all elements on a page whose element ID contains a certain text. I'll then need to filter the found elements based on whether they are hidden or not. Any help is greatly appreciated. ...

jQuery click function only works on first element.

Hello, I am having some trouble with jQuery. I am making a simple CMS and in the interface I have a list of pages, in each list item is an edit link. I made jQuery listen for clicks with that edit id. It will then look at the parent LI to see what id it has so the user can save the changes to the right pageId in the database. My List ...

jQuery Tabs with Animations

I have a jQuery tab section - and I want to animate the panels within it. Below is the code. I basically want to make the "vertical-tabstrip-visible-content" a sliding panel - such that as each link is clicked, it will close the existing panels and slide the correct, corrosponding one into view. Any ideas how this could be achieved usin...

JQuery/JavaScript increment number

Hi Guys, I am trying to increment a number by a given value each second and retain the formatting using JavaScript or JQuery I am struggling to do it. Say I have a number like so: 1412015 the number which this can be incremented by each second is variable it could be anything beween 0.1 and 2. Is it possible, if the value which...