15,120 Topics

Member Avatar for
Member Avatar for winnzor

When i click a button [CODE]<input id='delete' type='button' name='delete' value='Delete' onclick='deletePost(<? echo $id;?>);'>[/CODE] I want it to go to this function which is sent to my delete php code [CODE]function deletePost(id){ $('.content-num' + id).hide('slow'); $.ajax({ type: "POST", url: "/func/delete.php", data: "id="+ id, success: function(){ }}); alert(id); } [/CODE] Im new …

Member Avatar for vsmash
0
245
Member Avatar for tarunfuture

I am using javascript for form validation but after click on submit its showing me the alert but after cancelling the alert box it is processing and sending me to the next page

Member Avatar for tarunfuture
0
204
Member Avatar for martin11ph

Hi good day. I am currently using Spry Textfield Validation on my forms. Whenever there is an error, the error message does appear and the field goes red. However, the entire form is shifted to the left a couple of pixels. If the user corrects the value in the field, …

Member Avatar for martin11ph
0
219
Member Avatar for ankit.pandey3

[CODE]<script> //function PlaySound() { var sound = document.getElementById(sound1); sound.Play(); alert("ok");} function playSound( url ){ var s=document.getElementById("sound").innerHTML="<embed src='"+url+"' hidden=true autostart=true loop=false>"; s.play(); } </script> <!-- <embed src="sound_5.mp3" hidden="true" autostart="false" loop="false" width="0" height="0" id="sound1" enablejavascript="true"/>--> <input type="button" onclick="playSound('sound.wav')" value="Play"/> <div id="sound"></div> [/CODE] Hi friends, I want to play sound from above code …

Member Avatar for ankit.pandey3
0
174
Member Avatar for fmjnax

Hi all, I'm sorry if the thread title doesn't make much sense; I'm quite new to AJAX (well, to web programming as a whole. I'm more of a SQL/client-server developer). Anyway, I'm having some trouble getting some code to work. What I'm doing is I am dynamically loading a list …

Member Avatar for fmjnax
0
245
Member Avatar for sam230

I want to check the image size in JavaScript.. for example if image size is more than 500kb and other format instead of jpg.. it should not get uploaded.. i want to check these validation before form submit.. thanks in advance.. waiting for positive ans. Regards

Member Avatar for Troy III
0
272
Member Avatar for softDeveloper

Hi All, I'm selecting text from an iframe using getSelection(). It reads everything but the tabs '\t'.

Member Avatar for softDeveloper
0
141
Member Avatar for Martin C++
Member Avatar for Martin C++

Hello, I have a PHP page called summary.php and I m trying to make the jquery script to post piece of data when <select> is modified. This is my code atm [CODE=js] <script> $("select").change(function () { page_id=$(this).attr('id'); alert(page_id); $.post("#", {id:page_id}); }) .change(); </script> <?php if(isset($_POST['id'])){ die("YES!"); } echo $_POST['id']; ?> …

Member Avatar for Martin C++
0
202
Member Avatar for turpentyne

working from this little form validation script, does anyone know how to check to make sure at least one of several looped in dropdowns have been selected as well. The dropdowns have a php generated name: <select name="participantqty[<?= $c_row['workshop_id'] ?>]" id="" class=""> [CODE]<script type="text/javascript"> function required(){ var first = document.forms["register1"].elements["fname"].value; …

Member Avatar for javaAddict
0
822
Member Avatar for pritesh2010

can any one tell me how to create a html help file in detail. Actually i already tried for that even i have created but the problem is i don't no how to create tree in content file. and when i passing the image url to my local machine and …

Member Avatar for pritesh2010
0
263
Member Avatar for pizzipie

I am just beginning to get the idea on how to put together the above four source codes to produce, in this case, a Contact Database/Display program. On a 0-10 learning scale I feel like a 3. My current problem is: ContactRevise3.html calls revise.php with the following script: [CODE] <script …

Member Avatar for vaultdweller123
0
671
Member Avatar for marios_neo

Hello guys, i'm trying to calculate the value of checkbox that chosen (onclick or onsubmit calculate the value).What i'm doing wrong? [CODE] <script type="text/javascript"> //<![CDATA[ function calculate_total(id) { // get a reference to the form using getElementById var theForm = document.getElementById( id ), total = 0; // DON'T use getElementById …

Member Avatar for marios_neo
0
108
Member Avatar for dineshswamy

i did this , it adds a form field after a particular event.but it differs,if i add the same form field statically(without JS). why this happens? i used the style property display:block/none to do this.

Member Avatar for pritaeas
0
77
Member Avatar for vizz

[CODE]<a href="?id=home">Home</a>[/CODE] is there any option available in Javascript for getting value of "[COLOR="Red"]?id=[/COLOR]home" ????

Member Avatar for vizz
0
80
Member Avatar for Que336

Somebody please help me. The page loads fine but when I change the option on select nothing happens. I'm sure it's just a small problem. Your help will go a long way. Thank you in advance. [CODE]<body> <table id="main" width="50%"> <tr> <td><div id="1"></div></td> <td><div id="2"></div></td> <td><div id="3"></div></td> <td><div id="4"></div></td> <td><div …

Member Avatar for jstfsklh211
0
233
Member Avatar for trickist17

Hey, I'm trying to do a loop in javascript, that adds an array into a variable. Because it is a bit hard to explain exactly what I want, please look at this code, which does the (for the beginning) same. [CODE] var s="one, two, three"; //this can be changed var …

Member Avatar for Troy III
0
179
Member Avatar for danielbala

Hi Im using datagrid in javascript to display a table in a page.(php) And im using the check box field in the table..when i select the check box the value is posted in the DB table but the current employee name field in a form is not posted to the …

0
62
Member Avatar for marios_neo

hey guys does anyone know why i got an 'undefined invisArr in for loop' in my javascript code? I've got 3 div boxes in an absolute position and i m trying to make it visible whene i m presing one or two or three links. // [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for marios_neo
0
144
Member Avatar for kimmi_baby

Hi, I have 2 calendars using jquery UI datepicker. The first calendar is default to todays date. What I need to happen is for the second calendar default date to change to default date (of first calendar) + 1 day. I'm really not too sure how to do this... So …

0
131
Member Avatar for fusionking

In an XSLT file, I am calling a function to a javascript file (.ascx) and trying to pass parameters. One parameter is a Date() object. The only way I've found to successfully pass it is to pass it as a string. Here's the code from the XSLT file. [CODE]<script> grouping("<xsl:value-of …

Member Avatar for Troy III
0
241
Member Avatar for jbennet

How can I get the X,Y co-ords of a JQueryUI draggable object, when it is dropped, and post them to something (a java servlet) using AJAX? Im trying to store the location of it in a database, ive got the handler to do that done, Im a backend guy, but …

Member Avatar for Troy III
0
99
Member Avatar for weblion

function Close() { $('.mask').hide(); $('.window').hide(); } function display() { $('.mask').css({ 'width': 1700, 'height': 1500 }); $('.mask').fadeIn(100); $('.mask').fadeTo("fast", 0.8); $('.window').css('top', 200); $('.window').css('left', 375); $('.window').css('display', 'inline'); $('.window').fadeIn('slow'); } function display1() { $('.max').css({ 'width': 1500, 'height': 900 }); $('.max').fadeIn(100); $('.max').fadeTo("fast", 0.8); $('.wind').css('top', 200); $('.wind').css('left', 375); $('.wind').css('display', 'inline'); $('.wind').fadeIn('slow'); } function Close1() { $('.max').hide(); …

Member Avatar for simplypixie
-2
109
Member Avatar for vizz

[CODE] <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function() { $('#navlist li a').click(function(){ $('#navlist .current').removeClass('current'); $(this).addClass('current'); return false; }); }); </script> <ul id="navlist"> <li><a href="?p=home" class="current">Home</a></li> <li><a href="?p=product">Our Products</a></li> <li><a href="?p=enquiry">Enquiry</a></li> <li><a href="?p=contact">Contact Us</a></li> <li><a href="?p=about">About Us</a></li> </ul> <div id="content"> <?php require_once('config.php'); $default = 'home'; $page = isset($_GET['p']) ? $_GET['p'] : $default; …

Member Avatar for pritaeas
0
342
Member Avatar for Gobble45

Hello All. To admins - i wasnt exactly sure where to put this forum post, so please move if needed. Im not sure exactly what scripting language to use in this instance, and on top of that, im not really familiar with any (a tiny bit of VBSCRIPT, and tiny …

Member Avatar for stbuchok
0
127
Member Avatar for softDeveloper

Hi all, I'm trying to get the caret position of an iframe. I tried several ways, based on this example: [url]http://stackoverflow.com/questions/8664504/designmode-iframe-get-cursor-position[/url] Anyway I try I allways get the start position of the selected text added with 19. I'm not getting why?

0
80
Member Avatar for Danny159

Hey, My following code doesnt seem to be working, it doesnt change the onclick function when you click the image... can someone please help me? Jquery is includes at the top of my page... [CODE]<script type="text/javascript"> function addfav(id){ var div = '#fav_'+id; $(div).attr("src","images/star.png"); $(div).unbind('click'); $(div).click(function() { removefav(id); return false; console.log('did …

Member Avatar for Danny159
0
158
Member Avatar for Tuz

i did a Display class to call Client class : package Details; public class Display{ public static void main (String[] args) { details d = new details(); \\ HERE IT CANNOT FIND SYMBOL d.details(); } } and the output is : error: cannot find symbol CAN SOMEONE HELP ME?

Member Avatar for stultuske
0
65
Member Avatar for jeevanism

hello folks, just a small help in urgent pls. My requirement is that I have to disable user input like clicking menu links when some functionality in the website is going on . in better words, when user Upload a large file, it will show a progress bar, until this …

0
63
Member Avatar for nuttyniall

Hi hope someone can can help im having a problem with how ripple is dealing with for loops when emulating an android app using html5 css jquery and jqtouch simple loop [CODE] var len = 1; for (i = 0; i <len; i++){ alert('foo'); } [/CODE] run it through chrome …

Member Avatar for Airshow
0
212

The End.