15,120 Topics

Member Avatar for
Member Avatar for h20

Hi all, I need help in the alert function. I'm using count in php in which if the item is less than or equal to 10,the alert function would pop up. However my code does not work.Below is my code. Part of the php code: [CODE]echo "<td>".$row['COUNT(item)']."</td>";[/CODE] Javascript code: [CODE]<script …

Member Avatar for Airshow
0
191
Member Avatar for Acute

Hi everyone, can anyone explain me why following code [U]alerts[/U] me nothing: [CODE=javascript] var text = $.ajax({ type: "POST", url: "registration.php", data: "email=" + elementValue }).responseText; alert(text); [/CODE] but when I add option "async: false": [CODE=javascript] var text = $.ajax({ type: "POST", async: false, url: "registration.php", data: "email=" + elementValue …

Member Avatar for Acute
0
257
Member Avatar for tyson.crouch

Hi Guys, Okay, my question goes like this.. I have two sections which start off as hidden (display: none) and depending on the values submitted the two areas may need to be shown. For example, if a checkbox is clicked, it displays one area. And if a specific <select> option …

Member Avatar for parry_kulk
0
96
Member Avatar for flashfango

I would like to make a tree menu with category and sub category in Php. When i click on category then display subcategory with link that subcategory page. it is with mysql database. I’m tried to make this but I can't. I want to use the tool ([URL="http://www.sothink.com/product/treemenu/"]http://www.sothink.com/product/treemenu/[/URL]) for it, …

0
64
Member Avatar for ddrumpac

I am trying to find an adjustable counter that I can use on our site to show a steady increase in dollars collected. I guess similar to the the national debt counter, but the values need to be programmable and adjustable (starting amount, increment amount, speed, etc) by me. It …

Member Avatar for VisibleFrog
0
440
Member Avatar for Sorcher

Hello, i was wondering how i can put text inside a <input form that disappear when the user clicks inside the form. I would like to write "Description" inside a form so they know that they have to write a description into that form. Sorry if its hard to understand …

Member Avatar for Sorcher
0
80
Member Avatar for kalleanka

Hi! I am looking for a function that will add spaces in a string in a certain manner: tmpStr: 123456789123 (always 12 digits) the desired outcome is: 123 456 78 91 23 Do anyone of you have a neat fuction for that? :) I found one question in this forum …

Member Avatar for kalleanka
0
97
Member Avatar for valdrian_miran

How will I parse this XML using jQuery? <item> <station></station> <headline><![CDATA[]]></headline> <showDate>12/28/2010</showDate> <showTime></showTime> <doorsOpen></doorsOpen> <buylink></buylink> <description><![CDATA[]]></description> <pubDate>Mon, 27 Dec 2010 10:48:28 PST</pubDate> </item> I have to display month and date separately..

Member Avatar for parry_kulk
0
123
Member Avatar for dalip_007

When we are on facebook page and someone sends us a message,(not chat message), or any notification does occurs, Then a red number is appeared at the top to notify us (user) about the message. even if we don't refresh the page. This happens without the page refresh, Same thing …

Member Avatar for Moderns
0
113
Member Avatar for ckdoublenecks

I don't know why I get the message "unexpected $end" at the last line of code - can someone help? [CODE]<?php mysql_connect(localhost,root,""); mysql_select_db(test) or die( "Unable to select database"); if(!empty($_POST["submit"])) { $apt = $_POST['apt']; $query="SELECT * FROM payments Where apt='$apt'"; $result=mysql_query($query); if(mysql_num_rows($result)) ?> <html><head><script type="text/javascript"> if ($late = "L") {$rentdue …

Member Avatar for cossay
0
137
Member Avatar for bibekpokharel

I've been stuck in a situation. I am trying to retrieve image from database using ajax. I am using php as a server side scripting language.. I need to run the js funtion on every image i fetch from the database which happens to be a while loop...But that doesnt …

Member Avatar for Moderns
0
79
Member Avatar for Moderns

Hello, Assume we have one button that fires ajax request, ajax call will talk 15 seconds to load the results. Assume the user clicked on that button first time and waited for 5 seconds, then he/she clicked again. In this case the page will be loaded two times. i.e. first …

Member Avatar for Moderns
0
3K
Member Avatar for ichigo_cool

I've been spending a long time trying to figure this out but just can't. I've made a complete layout using CSS and XHTML; combining id styles with divs. I can't, for the life of me, figure out how to use the menu I've made to have the content of the …

Member Avatar for Airshow
0
364
Member Avatar for moonknight33

Hey, please help me, this html file run normally in other browser but Firefox. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Hello everyone... </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- Redirect webpage <meta http-equiv="refresh" content="2; url=/web/forum/vanilla" /> --> </head> <body> <script language="javascript" type="text/javascript"> function …

Member Avatar for hielo
0
192
Member Avatar for localp

I am trying to create a web page, that could be navigated by using tabs. I have been googling for days trying to find a way to change colour of a menu bar when it is on focus (when used the tab control in the keyboard). But it doesn't change …

0
59
Member Avatar for Ryujin

Hi all. I'm trying to add a slight delay to [URL="http://www.kutztown.edu/library/labs/newt.asp"]this page's[/URL] drop-down menu. Though I assume that entails a call to setTimeout() somehow, I've tried all I can think of (which isn't much...) and am clueless. Thank you for any tips! [CODE] <script type="text/javascript"> var timeout = 200; var …

Member Avatar for Airshow
0
429
Member Avatar for mrcpp

I'm using jCarousel to create this multi-row slideshow and..well... It doesn't work. I really don't know why, and this is very urgent. I have less than an hour to finish it. Please, please help me. main page: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us"> <head> …

Member Avatar for mrcpp
0
350
Member Avatar for youlichika

hi. I want to add a google map(with street view) in my site. I use this code. when I clicked the point on the map, it can change the street view to this part and show the click point information. But how to add a Red balloons marker in the …

Member Avatar for youlichika
0
356
Member Avatar for lse123

what is the trick, when a user go to an external link of my page an alert, or confirm box appear, or run some other code?

Member Avatar for rakhi4110
0
292
Member Avatar for PaliGap

The background to this is that I have two server-side scripts: * upload.cgi: accepts a file upload * monitor.cgi: reports the size of the file upload as the file upload progresses. There is a form handler: onSubmit="doProgress();" for the upload form that points to upload.cgi. This does the asynchronous thing …

Member Avatar for fxm
0
1K
Member Avatar for Moderns

Hi, I have a php page called: radio_page.php, it contains two radio buttons. First radio button is checked as default when loading the page. I need when clicking on second radio button to refresh the page and keep selection on second radio button, I am trying that as below, but …

Member Avatar for Moderns
0
6K
Member Avatar for soomro_moon

can any plzzzzzzzzz help me out !!!!!!!1111 i need to add print button in my page that will print the hole page with imags and txt everything. but the code should be simple plzzzzzzzzzzzz help meeee

Member Avatar for soomro_moon
0
101
Member Avatar for altarek

i want to add (+)to add more than textfield for phone [CODE]<form method="post" action="" enctype="multipart/form-data"> <table width="800" border="0" dir="rtl" style="direction:ltr;"> <tr> <td scope="col" style="direction:rtl;"><label for="textfield">name</label> <div align="right"> <input type="text" name="person_name" id="person_name"/> </div></td> </tr> <tr> <td style="direction:rtl;"><label for="textfield">job</label> <div align="right"> <input type="text" name="person_job" id="person_job" /> </div></td> </tr> <tr> <td style="direction:rtl;"><label for="label">mobile</label> …

Member Avatar for altarek
0
100
Member Avatar for chazzam

I have a problem with google maps. I want to 'click' a marker remotely (that is to say the user will be able to click on a button and affect the marker, as though the marker itself had been clicked). Not a problem except I don't know how to name …

0
148
Member Avatar for 1337hovie

Hello fellas, new to posting - but a lurker for a definite minute. I have a working ajax validation function, which works 100%. However, i need to add in 1 extra if statement. I tried writing it, and it's not working. i'll post my working code, and i'll post what …

0
79
Member Avatar for TheWhite

I have never used javascript before, but I know most other programming languages. [CODE] <div id="test"> <p class="location">New Jersey</p> </div> [/CODE] Is there a way to take out "New Jersey" and save it in a variable using javascript and then to remove the <div> who contains the class="location" (its parent?)

Member Avatar for hielo
0
63
Member Avatar for fantasma

Hi There I've been hammering my head with this for quite a while, and every solution I've tried didn't work, so I was wandering if you could help me with this. I've got a small div that is displayed for each record existing in the database, in order that, later, …

Member Avatar for fantasma
0
2K
Member Avatar for MARKAND911

I want to scan a document from my web application using javascript. How can I do this.

Member Avatar for MARKAND911
0
255
Member Avatar for UncleJoe

I have been hunting the internet for a good explanation, but I can't seem to find one; or I'm simply not getting it... I have a page with a table, where new rows can be added via AJAX. Each row has an input box which can be updated in one …

Member Avatar for UncleJoe
0
105
Member Avatar for krunalkakadia

Hello all, CalendarExtender to my textbox.I am success to first load year. function ChangeCalendarView(sender,args) {sender._switchMode("years", true);} Is it possible to change its behavior so that initially it shows only year to text box and not navigate to month. Thanks, KK

Member Avatar for kvprajapati
0
75

The End.