2,533 Topics

Member Avatar for
Member Avatar for Matthew N.

In JavaScript (preferably jQuery) how could I create a new element and set its values, but I want it in a specific place In the document. My divs are structured like this : [code]/* container item [item to be created inserted here] */ [/code] I know how to do this …

Member Avatar for Matthew N.
0
175
Member Avatar for johnniegee

I want to be able to enter multiple addresses for customers but only show one on the initial customer form, with the others being added when they press a 'add another address' button. I can get this to work by putting the 'add another address' button at the bottom of …

0
61
Member Avatar for jacob21

Hi, I am new in jquery. I am working on a registration page.I did all the validation but facing problem during username validation. when a user enter email id in the textbox,it first check whether it is present in database or not.. if not present "register successfully" otherwise "email exists" …

Member Avatar for Agarsia
0
3K
Member Avatar for feoperro

Hi, I made my own javascript method that I'd like to integrate into the JQuery validation plugin. I am new to JQuery and I'm not really sure how to integrate it though... Here is my javascript [B]working[/B] method: [CODE] function doAjax() { var captchaResponse = document.getElementById("registerCaptcha").value; $.ajax({ type: "POST", url: …

0
124
Member Avatar for danarashad

My Jquery dual list box isn't working when I call a page via ajax. But if I navigate to the page, the Jquery works. I've used the .live code but that doesn't seem to work. Any suggestions. The below code, I thought would work, but it doesn't. [CODE] $(function(){ $('.button').live('click', …

Member Avatar for danarashad
0
234
Member Avatar for daudiam

I want to reorder the rows by dragging them which is accomplished by the code below, but the void (placeholder) should be of a red color while the drag is taking place - this part is not happening : [CODE]<html> <head> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript" src="jquery.ui.sortable.min.js"></script> <script> $(function() { …

0
140
Member Avatar for bspace

The following request isn't retrieving a response when I look for it in Firebug. Any ideas why? [CODE]$function(){ //json request to flickr $.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key=71282ef5623d61a898f798c7916bed31&photoset_id=72157627882181032&format=json&jsoncallback=?'), });[/CODE]

Member Avatar for Airshow
0
94
Member Avatar for riya_developer

Can anyone tell me how to drag widget to empty place using jquery in mvc application? whick property I should set?

Member Avatar for ckchaudhary
0
71
Member Avatar for ddombadoh

I am quit new in jquery. I have implemented the jquery autocomplete textbox, where I load data from SQL server. Upon selecting an item from the dropdown, I fill some controls on the form. I also want to change the text property of a button. Below is my jquery code: …

Member Avatar for nakor77
0
98
Member Avatar for aldm

Hi, I have a div element which have a lot of other divs inside. Inside that divs are also div elements. Now, how can I change width of every div element inside wanted div using jquery (all levels of children). Example [CODE] <div id="1"> <div id="2"> <div id="3"> </div> </div> …

Member Avatar for MartinRinehart
0
240
Member Avatar for RazorRamon

Ok this is as basic a jquery coding as you can get.. Why does div id=tx show on load??? I'm testing this on wamp localhost...www folder. Any help?? Is there anything i need to do to save the jquery.js? jquery.js is in the same folder as this page. [CODE] <html> …

Member Avatar for stbuchok
0
193
Member Avatar for Violet_82

HI there, I have a really annoying and strange problem with a script, here's the code: [CODE] <script type="text/javascript"> $(function() { var images = $('.home_page_pic img').hide(); var index = 0; images.eq(index).show(); function swapImages() { images.eq(index).fadeOut(2000, function() { index++; if (index == images.length) { index = 0; } images.eq(index).fadeIn(2000, swapImages); }); …

Member Avatar for Violet_82
0
99
Member Avatar for extemer

Below code in bold is here i got the problem please help.the problem is while i submit the form a div appear after pressing submit button that data is submitted the div is appearing perfectly fine but the problem is after i inserted this code that is bold below for …

Member Avatar for Airshow
0
184
Member Avatar for n3xtgen

I am trying to use the jQuery validation plugin to validate my form but cant get it working. I have the script types in the header: [CODE] <script type="text/javascript" src="/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="/jquery.validate.js"></script>[/CODE] And my Form: [CODE]<form id="taskentry" method="post"> Trip Date<input type="text" class="required" name="trip[Date]" id="tripDate" placeholder="MM/DD/YYYY"/></form>[/CODE] I tried this but …

Member Avatar for extemer
0
216
Member Avatar for hbk_star2006

Hello Friends, Please help me. I am a new Web Designer.. Don't have strong Javascript Skills. I have just made a website name [url]http://www.bsroadlines.com/[/url] It contains 5 pages. This website has Images Slider Script at the header, which is working perfectly fine on 4 pages except one [B]gallery[/B] page. [url]http://bsroadlines.com/photo-gallery.php[/url] …

Member Avatar for MartinRinehart
0
180
Member Avatar for aiwagner

I am designing a mobile app for a friend. This is the first time I have used the jQuery Mobile framework, but I am having issues with jQuery's "Latest and Daily Builds" CDN. On my computer (within most browsers), the scaling is fine. Although on iOS devices (and possibly android …

Member Avatar for aiwagner
0
68
Member Avatar for alanlee9898

hi hi! I have encounter a problem that need to equal height in different classes. Currently I using this code from [URL="http://www.cssnewbie.com/equal-height-columns-with-jquery/"]cssnewbie[/URL]: [CODE]function equalHeight(group) { var tallest = 0; group.each(function() { var thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); } $(document).ready(function() { equalHeight($(".contentA")); equalHeight($(".contentB")); …

Member Avatar for alanlee9898
0
181
Member Avatar for mr_scooby

I have this form that has a textarea that is compulsory, it has a checkbox that allows it to be ticked to show a hidden textarea using css/jquery. What I would like is to know how to do the jquery to force input into the unhidden textarea only when the …

Member Avatar for stbuchok
0
900
Member Avatar for Xtremefaith

Ok so with the help of the Daniweb community here I've gotten better with AJAX/jQuery, enough to make a photography with it rather than flash. I'm very excited with how most of it is working but I've hit a brick wall I really need help with. [B]Outline:[/B] I have a …

Member Avatar for Xtremefaith
0
474
Member Avatar for sun-tzu

I have been working over the past week on a shopping cart script. What I can't seem to find out is how to make the checkout page. I want it to send the list of products, the total, and the address of the customer to PayPal and then have PayPal …

0
70
Member Avatar for nospryexpert

I've done a jQuery tutorial and have made some changes via CSS. It's a pretty simple Q&A list, in fact so simple that I did the entire thing with Notepad. I want to change some other things and find out if what I've done is copacetic. Here's the code - …

Member Avatar for nospryexpert
0
180
Member Avatar for Violet_82

Hi all, I am in the process of redoing my website and I have done pretty much all the html and css for it ([url]http://antobbo.webspace.virginmedia.com/photogallery/test/home.htm[/url]), so now I would like to add some javascript/jquery. This is essentially what I would like to achieve. On this page [url]http://antobbo.webspace.virginmedia.com/photogallery/test/gloom.htm[/url] I have a …

Member Avatar for Violet_82
0
949
Member Avatar for sun-tzu

[CODE] // Add to cart function $("#add-to-cart-form").submit(function(event) { /* stop form from submitting normally */ event.preventDefault(); $(".add_to_cart_message").show().html('Adding item to cart'); $.post("http://www.wghandcrafted.com/add_to_cart.php",$("#add-to-cart-form").serialize(), function(data) { $(".add_to_cart_message").html(data).delay(3000).fadeOut(); $("input.quantity").val(''); $("#cart-panel-widget").load('http://www.wghandcrafted.com/cart.php'); }); }); [/CODE] And the form: [CODE=HTML] <form id="add-to-cart-form" method="post" action="#"> <input type="hidden" name="pid" value="<?php print $P['id']; ?>" /> <div class="spacer"> <label for="qty">Quantity:</label> <input …

0
63
Member Avatar for sun-tzu

I just made this code today for a site I'm working on and figured people may try to improve it. To use: [CODE] $("#randomize").randomize(); [/CODE] [CODE=HTML] <!DOCTYPE HTML> <html> <head> <title>Random Pick Test</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script> <script type="text/javascript" src="randomize.jQuery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#randomize").randomize({ direction: 'topToBottom', evenBG: '#FFF', evenFG: '#000', …

Member Avatar for Taywin
0
701
Member Avatar for cjohnweb

Hey there, I'm still kinda learning JS. I can't figure this one out. I googled and discovered the issues is with placing the <!DOCTYPE html> tag at the top, but how to resolve the issue? I've a document with some Javascript and JQuery in it, it works great! I add …

Member Avatar for Taywin
0
2K
Member Avatar for jpknoob

Hi, i am trying to make a form that when a button is clicked, a hidden div is displayed with radio buttons. i have managed to do this, however, the pagerefreshes and after a few seconds the page resets back to normal. can anyone explain what i'm doing wrong. My …

Member Avatar for gotboots
0
196
Member Avatar for cgull

Hello, I have downloaded a jquery gallery and made a lot of changes to it. Now I am stuck with one thing that I can't change. The gallery has thumbnails that scorll on the bottom. I want the direction of the big image animation to change. It is hard to …

Member Avatar for AleMonteiro
0
211
Member Avatar for sun-tzu

The actual plugin is much more complex, but I can't even get this simple alert to show... [CODE] (function($){ $.fn.randomize = function() { var defaults = { }; var options = $.extend(defaults, options); return this.each(function() { obj = $(this); alert(obj); }; })(jQuery); [/CODE]

Member Avatar for AleMonteiro
0
103
Member Avatar for mawk

Hello, been lurking around to see if I could find any kind of solution to what I'm trying to solve, but the closest thing I got was this old thread: [url]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/313687[/url] [B]What I want[/B] I'm trying to create is a SELECT menu with an INPUT field, but the INPUT field …

Member Avatar for mawk
0
247
Member Avatar for AurosGamma

Hello, i'm making a web site as a college project, this site features html,php,javascript,ajax,jquery and mysql. I'm almost done with the website... in the website i have a game, the players can create a 'lobby' and others players joins them, so, when a lobby is created an entry in the …

0
110

The End.