3,446 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
179
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
63
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
125
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
236
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
142
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
96
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
73
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
99
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
241
Member Avatar for kaosjon

Hi i am trying to develop my registration page it is a combination of multistep (tabs) with real time validation which is sort of working ok, it validates on entry which is really good, however when i include the script [CODE] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" charset="utf-8"></script>[/CODE] which is for the form …

0
80
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
196
Member Avatar for asif49

It's taken me a long time trying to fix this and I still haven't found out how to do it. My knowledge of javascript/jquery isn't great but for the website I'm building I tried experimenting with some, reused some code (reuse was allowed by author) for a content gallery and …

Member Avatar for Troy III
0
59
Member Avatar for extemer

Hello guys i learn something new so i thought to share it with you people.This tutorial is about when you search some data in a search bar and as you enter any key word e.g 'a' so it start looking for keywords starting with 'a' and highlight it.In this way …

Member Avatar for Taywin
0
167
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
101
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
186
Member Avatar for davy_yg

Hi I have a bar which dropdownbox so transparant, in a way that I could hardly read its text because its overlap my content text and pictures. But its order superseed the side bar box. I could clearly read its text on the side but hardly read its text on …

Member Avatar for MartinRinehart
0
188
Member Avatar for davy_yg

Hi I have a bar which dropdownbox so transparant, in a way that I could hardly read its text because its overlap my content text and pictures. But its order superseed the side bar box. I could clearly read its text on the side but hardly read its text on …

Member Avatar for cwarn23
0
172
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
219
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
187
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
71
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
185
Member Avatar for extemer

Hello guys i learn something new so i thought to share it with you people.This tutorial is about when you search some data in a search bar and as you enter any key word e.g 'a' so it start looking for keywords starting with 'a' and highlight it.In this way …

0
91
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
903
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
478
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
72
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
182
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
957
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
65
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
707
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 vizz

Following code shows live search box. But it does not disappear when clicked on page anywhere or pressing escape key. How to hide search result when clicked anywhere or pressed escape key? index.html [CODE]<script type="text/javascript" src="jquery.js"></script> </script> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') …

Member Avatar for mschroeder
0
267
Member Avatar for davy_yg

event_manager.php [CODE] // define variable $id = isset($_POST['id']) ? $_POST['id'] : ''; $event = isset($_POST['event']) ? $_POST['event'] : ''; $tempat = isset($_POST['tempat']) ? $_POST['tempat'] : ''; $mulai = isset($_POST['mulai']) ? $_POST['mulai'] : ''; $selesai = isset($_POST['selesai']) ? $_POST['selesai'] : ''; $keterangan = isset($_POST['keterangan']) ? $_POST['keterangan'] : ''; session_start(); // undefined …

Member Avatar for pritaeas
0
223
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
203
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
215
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
119
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
255
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
113
Member Avatar for sun-tzu

I am building a website for a charitable organization here in Paradise, CA called Heart to Hand. One of the many things that I am going to have the site do is list children in need of Christmas presents. For those people that are a bit indecisive I want to …

Member Avatar for Taywin
0
427
Member Avatar for cjohnweb

I google'd myself silly, I can't find tutorials for this. I hope someone could lend me a hand. I'll try to make this simple. I have a PHP & MySQL driven site. I have a form for adding new content. The form has a set of check box options that …

Member Avatar for cjohnweb
0
482
Member Avatar for sun-tzu

Basically what I need to do is take a number of elements, lets say 6 in this case, all of which are div's with an image child e.g. [CODE=HTML] <div class='triangle-element'> <img src="../images/face.jpg" /> <div> [/CODE] I want to be able to eventually take each instance of .triangle-element and turn …

Member Avatar for MartinRinehart
0
90
Member Avatar for vuyiswamb

Good Day All i am creating Textboxes at Runtime with something like this [CODE]Dim cnt As New TextBox cnt.ID = "cont_" & x If multiline Then cnt.TextMode = TextBoxMode.MultiLine End If [/CODE] These are dynamically created fields. so what i want to do is to use this following JQuery on …

Member Avatar for vuyiswamb
0
733
Member Avatar for strRusty_gal

Hi everyone, Hope i have posted at the correct section. Currently i am using ASP.NET UpdatePanel and a JQuery nyroModal.when i click on the link that have the CssClass that links to the nyroModal, it will display the error message instead of going to the success function. Is there anything …

0
55
Member Avatar for kaosjon

Hi, i want to use the jQuery UI Slider plugin in my website, however rather than using numbers i want to use 4 different options (easy, medium, hard, very hard), for the user to choose on the slider, how would i do this. This is the slider i want to …

Member Avatar for kaosjon
0
223
Member Avatar for Midnite007

I am using this gallery script on a site I am working with and for some reason can not seem to get the Back to Menu ( link ) at the bottom of the code to be at the bottom of the page or at least under the images that …

Member Avatar for diafol
0
143
Member Avatar for Nahiyan

Hello, So I was working with php, jquery, javascript and html to make a show/hide toggle system. I use php to fetch some data from my database and display them using html. I use jquery to make the show/hide toggle functionality. However, as I rely on php's while loop I …

Member Avatar for Nahiyan
0
199
Member Avatar for Rahul V S

hi friends, I'm trying to read an XML file using a jQuery 1.4 ajax ... the code is something like this ... [CODE] $.ajax({ type: "GET", url: "abcde.xml", dataType: "xml", error: function(){ /* error lines goes here */ }, success: function(){ /* success lines goes here */ } }); [/CODE] …

Member Avatar for Matthew N.
0
236
Member Avatar for tmash

Please help if anyone can spot the problem. This [URL="http://www.propertyscanner.co.uk/register/"]form[/URL] uses jquery 1.6.2 and its causing a bug in Mac 10.4 . see file attached.Would appreciate any responses.

Member Avatar for Matthew N.
0
67
Member Avatar for Krishna_Php

I want to be a web developer .how can i learn perfect jquery? Is here any way to learn complete jquery Online?

Member Avatar for diafol
0
151
Member Avatar for emulman

Using JQuery and CSS with javascript happens a very strange thing...i'm doing a site where every page has 5 DIV in vertcal, called "div1", "div2" and so on. Every page can have a different height, so i use the following script: [CODE] <script type="text/javascript"> $(document).ready(function() { var sH = $(document).height() …

Member Avatar for emulman
0
345

The End.