15,688 Topics

Member Avatar for
Member Avatar for raf.fredi

$query =("SELECT * FROM products"); $result = mysql_query($query); while ($row = mysql_fetch_assoc($result)) { $id=$row['id']; $title=$row['ProductTitle']; echo"$title<br>"; } This gives list of products. How to create and display new div with `width:250px;height:250px;overflow:scroll;` when clicked on product title to show product details. How to check second product details without closing previously open …

0
53
Member Avatar for spivey

I have a php foreach loop that displays a span element with a name in it, and an associated input field for each item in the array being iterated through. There is an onclick so that the value is passed to the associated input field: <span onclick="setAuthor(this)">name</span> Here is the …

Member Avatar for CoursesWeb
0
169
Member Avatar for khajvah

Hello people, I am future web designer and want to learn PHP and javascript, i already know a little javasctipt but i have never touched PHP. I need 2 books: one for PHP and one for javascript, money is not a problem... I saw some books "PRO JS for web …

Member Avatar for khajvah
0
290
Member Avatar for vizz

<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var ele = $('#scroll'); var speed = 25, scroll = 5, scrolling; $('#scroll-up').mouseenter(function() { // Scroll the element up scrolling = window.setInterval(function() { ele.scrollTop( ele.scrollTop() - scroll ); }, speed); }); $('#scroll-down').mouseenter(function() { // Scroll the element down scrolling = …

Member Avatar for dany12
0
152
Member Avatar for srinidelite

Hello, Here is my Project i need to show the Model Popup (Gridview) ... I found My code is Correct , But i don't Understand That why is not showing while run time.. here is the Desgin Code... Please Let Me tel What the mistake i've committed over here .. …

0
82
Member Avatar for yellowSnow

Hello, I am trying to parse a string using regular expressions. This string can potentially have any number of non-alphanumeric characters acting as delimiters. These delimiters can also be grouped together. Here are some examples of the data: 00923:5342:123 --> I want to extract 00923, 5342 and 123 into an …

Member Avatar for Troy III
0
197
Member Avatar for KOTS202

Hi all, I am new to web development. So please be easy on me and try and explain somethings in detail. I am building a edit page for something else I am building. It is all PHP driven with a MySQL database. Well anyway my boss want a inline on …

0
55
Member Avatar for desup

var arr = new Array(); arr = document.getElementsByClassName("repestyl2"); var index = 0; while(index !== arr.length){ if(arr[index].innerHTML.indexOf("Eck") >= 0){ arr[index].removeNode(true); arr[index].parentNode.removeChild(arr[index]); index++; } Is this code ok? Because I can't get it to work :) Simple question :P Thanks :) Maybe I should use for-each o.O

Member Avatar for desup
0
158
Member Avatar for simplypixie

I am using jQuery and Ajax to add items to a shopping cart and in all areas of the site apart from one it works fine and I cannot for the life of me work out why this one area isn't working. The form code (which is the same as …

Member Avatar for simplypixie
0
199
Member Avatar for dany12

I need to retrieve a valeu from a select in html like on this [Link Anchor Text](http://www.saxoprint.co.uk/shop/folded-leaflets.aspx/) and calculate the price can anyone help me?

Member Avatar for baig772
0
421
Member Avatar for erik216

I want to make a checkbox to control two textfield The checkbox default checked and two textfield default disabled When user uncheck the checkbox , These two textfield do not disabled. How can I write the script?

Member Avatar for fobos
0
126
Member Avatar for VenusCrystal

Hi, I have a icon which on mouseover action i'm changing to another icon little bigger and with a tooltip. This icon is placed inside a table row before the text data. When mouseover happens it moves the text data to right and new icon is displayed. Instead of that …

Member Avatar for VenusCrystal
0
96
Member Avatar for ebolt007

Ok, so I have a bunch of scripts that I created, and by themselves they work perfectly, but I am trying to use a load more script, basically like I have below. Now the problem is I have put all of my "scripts" into a load more div, because if …

0
71
Member Avatar for ajcoder

I have created the following code. I want people to drag the objects that are recycleable in the bin and a message to pop up that says "yes, you can recycle this". The others would have a remark that says something like "no, you cannot recycle this". At the end. …

0
84
Member Avatar for kukula

Hi there, I would like to make kind of a menu/content like it is on this site: [homebroker.pl/oferty_pracy/wyslij_cv/1](https://homebroker.pl/oferty_pracy/wyslij_cv/1) When you click "zobacz" it expand smooth. Do I have to use some jQuery code to do this?

Member Avatar for dany12
0
84
Member Avatar for ebolt007

Maybe I'm doing this wrong, but here's what I'm trying to do. Ok, so how do I send the URL to a new page? Right now I understand the writing ajax to a div, replacing the contents of the div, appending it etc. But what about if I am using …

Member Avatar for stbuchok
0
431
Member Avatar for dany12

I need to use a handler that will get from my select option in html a value but not the valeu orm the option I will show my code now ...<form action="" method="POST" class="submit"> <label for="select"> Print copy</label> <select class="select" name="select"> <option>1 copy</option> <option selected="selected">2 copies</option> <option>3 copies</option> <option>4 copies</option> …

0
65
Member Avatar for gsique

Hello everyone! I would like of uses a popup Ajax to open a site. For example: The user access the site, open a popup ajax with a warning: "The site is on maintenance. Close the window to use the page index of the site". How to ? Thanks you!

Member Avatar for simplypixie
0
49
Member Avatar for drogba123

Hi guys, I am doing a validation form (3 inputs: number of apple, orange and banana). for example i type: 'a' as input in the form that required only number (apple), it will prompt me error then i type the next input orange: 2 and it will accept it, however …

Member Avatar for Troy III
0
232
Member Avatar for willpollock

I am having an issue with an external javascript. I've included the code from the web page and the javascript code I have. Instead of opening a website when the selection changes in any of the menus, I get a pop-up message box with the address of the web page. …

Member Avatar for Troy III
0
307
Member Avatar for mavis310

hey I'm just having some trdouble with an onclick call. its being called before it iss. not really sure whats wrong with it. im also passing it in a function with arg so that the value i is assigned to it for the loop. i tried it without it and …

Member Avatar for Troy III
-1
159
Member Avatar for turpentyne

help! I'm trying to figure out how to verify looped form fields by name. This seems like it should work, but it's just skipping right past this verification step. Here's the code: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript'> function myForm(){ // …

0
109
Member Avatar for ak47carbon

my coding is working but it is showing html tags from text.html,i want that onmouseover it get data from text.html by tag or div id naem and also by changing in text.html its suddenly chane not on refresh <html> <body> <script language="javascript" type="text/javascript"> <!-- //Browser Support Code function ajaxFunction(){ var …

Member Avatar for FullDuplex
0
102
Member Avatar for bavenbabu

I am new to usage of jquery.I want to show a confirmation facebox while all my input requirements are true.ie when my form fields are validated a simple facebox should appear showing the forms are validated.How can i do it.Itried a lot.But i didnt get the source for facebox.I didnt …

Member Avatar for pritaeas
0
170
Member Avatar for Troy III

We know we already have built-in [I]Trim methods[/I], but trimming doesn't get rid of internal, (and unwanted) extra spaces. -So this is where Normalize method comes to play. It trims left, it trims right, but most importantly it also trims on the inside, one could say: "it trims inside-out". In …

Member Avatar for Troy III
0
322
Member Avatar for mavis310

So for my code that i have below the reg.onclick is happening before it is even clicked and I'm not really sure how to fix this. Thanks for the help in advance. function displaySearch(){ var div = document.getElementById('table') var table = document.getElementById('tableSearch') var res = xmlhttp.responseXML var e = res.getElementsByTagName('element') …

Member Avatar for Troy III
0
188
Member Avatar for InS@NiTy

Hi, I'm trying to use a javascript for loop to write out links with titles from an array, that when clicked will execute a function I have written to pop open a new window, with info on the link clicked, this is the code I'm trying to use (this is …

Member Avatar for Troy III
0
157
Member Avatar for exonwarrior

Hey all! I have to come up with code for taking the contents of an input box on my webpage, use that as the name in my script and then display a message based on the time, say "Good morning Dave!" if it's between 5am and 12pm. I have all …

0
75
Member Avatar for Violet_82

HI there, I was wondering if anybody can advise. I am trying to build an unordered list with a few items in a page, and I want this list to be created and displyaed dynamically. So I create an array of strings and then through jquery I want this to …

Member Avatar for Violet_82
0
2K
Member Avatar for james chaco

Hi, I am luking for a Collection library much like what we get in java and c# and in my hunt i came across few names like bucket, coffeeblack, js_cols. Which would be most compatible with jQuery? As i got a nice library from sourceforge.net but it is not compatible …

Member Avatar for james chaco
0
127

The End.