15,700 Topics

Member Avatar for
Member Avatar for Inny

Id like to limit the text chars shown in this script because too many chars are displayed causing overlap (see link) no idea what to do, please help? p.s I dont know js so if you could kindly be very specific, thanks. :) see it here (bottom of page 5 …

Member Avatar for stbuchok
0
334
Member Avatar for steventaal

Hello everyone, I wrote an Ajax API, and I thought that it may be of some use to you all. I will post the code and explain it here. [CODE]/* <!Tut note: do not use "var" to declare x or req. function makeReq() { target="http://yourserver.com/login.php"; data="yourdata=this&itsplace=thisstring"; req = new Request("post", …

Member Avatar for urtrivedi
0
114
Member Avatar for kwamba

I have finished desgning a website for a student exchange program. Please assist in availing the code JS code for slide shows on web background Help please It's urgent

Member Avatar for divyakrishnan
0
69
Member Avatar for Stefano Mtangoo

I have decided when I have free of free time I will be playing around small php editor. I was wondering where I can get a list of keyword for mentioned languages, preferably in csv or like format Thanks! [B]EDIT:[/B] I forgot CSS

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for steventaal

Hello everyone, I wrote an Ajax API, and I thought that it may be of some use to you all. I think that it's pretty self-explanatory. Post or PM me if you all need more or need help. Peace! -Stev

0
216
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 asif49

I've put on my website a box which gets longer in height when it is clicked, I did this using the following code: [CODE] <script type="text/javascript"> var x=100; /*original height*/ function expand() { document.getElementById("move").style.height=x+'px'; /*Height from css.css in the div called "move"*/ if(x>300) { /*Desired height after expansion*/ clearTimeout(t); return; …

Member Avatar for asif49
0
99
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 akshayphp

I want to know that "how to show hidden fields when a user selects a particular option in the html form" I want the fields to be hidden first,then when the users selects: Option A- Particulars fields which have I will create for this option must be displayed. If Option …

Member Avatar for svilla
0
176
Member Avatar for filch

Does anyone use the Maphighlight plugin by David Lynch ( [url]http://davidlynch.org/js/maphilight/docs/[/url] ). It is supposed to be able to group areas on a map so that if you role over one of the members of the group, the other members highIight. I cannot get this to work. I have tried …

0
73
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 wilko1995

Hi, How would i go about creating a menu like the one that this website has? [URL="http://oas.com.au"]http://oas.com.au[/URL]

Member Avatar for AleMonteiro
0
90
Member Avatar for Jeroen van Zijp

Hey all, To make it more user-friendly, I decided I want to add a JS form validation to my contact form. The essence of the JS should be that it calls for a check.php?input= with the entered captcha code appended. Then the PHP script would echo "valid" or "invalid". For …

0
107
Member Avatar for Moss ali

Hi Dudes i need a javascript code for code behind using c#.When user click on delete button the popup dialog open Do you really want to delete Yes/No on Yes i want to put my Delete Method there.Pls help me.Thanks in advance.

Member Avatar for nakor77
0
225
Member Avatar for n3xtgen

I am new to AJAX and want to create something with three dropdown boxes. When a user selects the first one, the second dropdown populates with the corresponding fields, and when they select something from the second dropdown, the third populates. After selecting an option from the third dropdown I …

0
56
Member Avatar for vinothaviji

Hi..everyone, i have been designed a form then validate using php with ajax. I comple ted that php coding.But i know little bit about ajax.how to validate multiple fields in a form

Member Avatar for Taywin
-1
125
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
705
Member Avatar for AODfan

Hello, New to JavaScript and I have an assignment where one piece of it needs to have the first name, last name, area code, and phone number when prompted by a function, once that info is had, it then needs to use the constructor function that is there to process …

Member Avatar for Taywin
0
202
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 deceivingrakesh

I'm having a problem with css positions !! i want the position of an image to be fixed when the user scrolls till some point and the position should be set to relative after that . Thanks in advance !

Member Avatar for Taywin
0
127
Member Avatar for lailalaila

Hi there, I'm trying to figure out how I can have a script add up the number of radio buttons selected for each category. For example, on a test, I'll have three options for each question. I want to add up how many A's are selected, how many B's are …

Member Avatar for MartinRinehart
0
123
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
202
Member Avatar for deepak.marur

I'm ExtJS newbie. I need to send the contents of a ExtJS Textarea to the backend server for saving (autosave facility) as the user types in. How do I buffer the contents and push the buffer to the server after some threshold value. A code sample would greatly help me. …

Member Avatar for jogesh_p
0
326
Member Avatar for Matthew N.

Hello. I'm going to show you how to make a basic php image gallery. Firstly, create the following files [LIST] [*]index.php [*]view.php [*]/images (dir) [/LIST] Now, for the code. index.php [CODE] <?php $img = array(); $img[] = array('title'=>'img1', 'src' = 'img1.jpg'); ?> <html> <head> <title>mygallery | homepage</title> </head> <body> <h2>mygallery</h2> …

Member Avatar for Matthew N.
0
423
Member Avatar for DaSpirit

I need to update the SQL table every minute, as if typing on an online notepad, that save frequently. So of course, I have: [CODE]<textarea rows="20" cols="80" id="notepad"> <?php $con=mysql_connect("localhost","username","password"); if(!$con) { die('Could not connect: '.mysql_error()); } mysql_select_db("database", $con); $result = mysql_query("SELECT * FROM Notepad"); while($row = mysql_fetch_array($result)) { echo …

Member Avatar for pritaeas
0
122
Member Avatar for stoopkid

All I am trying to do is place the marker number in the map. I was able to do this with V2 of Google Map API, but now I have not a clue how to do it in V3. I've exhausted Googling this issue, and now come to my favorite …

Member Avatar for pritaeas
0
112
Member Avatar for adn295

I have gone through the basic techniques to implement comet server like streamhub,Maven/Jetty etc. I have following questions for that : After that I found the issues like in case of Maven/Jetty internet connection is required for downloading certain files from net.So it it possible to implement it if no …

Member Avatar for adn295
0
155
Member Avatar for jonsan32

Don't know what I'm doing wrong, but I'm positive it's me. This dropline menu works perfectly in Chrome, but completely goes to crap in every other browser (not just IE, which I'm used to). If you have any pointers, please pass them my way. I've pasted the code - in …

Member Avatar for jonsan32
0
177
Member Avatar for sanstepsan

I have included the following code in my website as a game for young kids to try and locate the erased position of a golf ball. Firefox runs the code perfectly and when the correct location is clicked the small golf ball pops up at that point. In IE however, …

Member Avatar for Taywin
0
91
Member Avatar for vasuv

Hi, I am new to HTML kind of stuff. I have some documents in my own folders for different applications. I want keep all the documents in related Hyperlink under that particular department. after creating all the hypertlinks that link link should navigate to that particular document. once it is …

Member Avatar for Taywin
0
107
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
110
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
253
Member Avatar for deepak.marur

I have a data store having a Note field (a textarea) and want to display all Notes satisfying a user input (even metacharacters). I've written the following function to handle this: function notefilter() { var newfilter = Ext.getCmp('searchnote'); var searchStr = newfilter.getValue(); searchStr = searchStr.replace('?', '\\?').replace('*', '\\*').replace('+', '\\+').replace('{', '\\{').replace('}', '\\}').replace('[', …

Member Avatar for deepak.marur
0
401
Member Avatar for prismily

Hi,I Am writing JavaScript to display JSP pages in JavaScript tabs,all JSP pages displays dynamic data,all JSP pages are working fine if i run individually,when i try to make it as tabs jsp pages are not working.can any one help me to solve this problem. my JS code: [code] var …

Member Avatar for prismily
-1
886
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
426
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 cjohnweb

I have this in a script of mine: [code=javascript] function add_option(section){ var sec = section.id; var addnew = document.myform.addnew.value; alert('add_option: section: '+addnew); [/code] I am pulling text from the input with the name of addnew, and it works. I would like to use a variable in place of the "addnew" …

Member Avatar for cjohnweb
0
199
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 bkimbriel

Not sure if this is the right place but it looked good to me lol. Anyway, I'm looking for a web PDF viewer that I could set up "locations" on the pdf for the user to select from and view using one single pdf, and it has to work on …

Member Avatar for bkimbriel
0
121
Member Avatar for domh87

I have to make a calculator on a site to determine a lump sum payout on life insurance, the user would enter all of 1. Gender, 2. Smoker or Not, 3. Monthly Payment. For each of the different variables there is a unique lump sum amount but no way of …

0
119
Member Avatar for fredfletcher

Hello, Wondering if someone can help me with this. I would like to set/create a single-use/temporary "cookie" for the duration of the user's session or possibly for up to 2 days and have a popup alert box, telling them that their screen resolution is too low to view. I have …

0
76
Member Avatar for terrymold

Hi everyone I have developed a PHP page which uses a few JavaScript functions and other JavaScript code to initially display today's date (and plus other data as well!). At the top of the PHP script is a PHP include file which determines whether or not today is BST - …

Member Avatar for banizdaymov
0
403
Member Avatar for kgizo

hello I'm developing an online game for this mini project we are about to embark in. The game I'm developing is similar to battle ship its just that I will use my own entities instead of using battle ships. Now I've already have a full code for the game which …

0
96
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 JimPatrick

Hi Guys, We are having an issue with the video playing on our client's site. The video plays fully locally but not fully once set live on the any of the browsers, it plays just the first 15secs, then it stops. Can anyone share some ideas as to how we …

Member Avatar for sun-tzu
0
177
Member Avatar for Rizi004

I want to know that how i can get the text which user write in text area and want to show that text in web page same as facebook when we write something and and add comment it will show in a div how i can go with innerHTML i …

Member Avatar for sun-tzu
0
192

The End.