15,698 Topics

Member Avatar for
Member Avatar for kurtzky123

I have a Parent window with two radio buttons (Yes and No) and a Submit button. If the user selects No and clicks the Submit button, a popup child window will appear. Is there a way to dynamically close the child page if let's say, the user clicks the Yes …

0
47
Member Avatar for ajcoder

I need to do a name game for class. I'm clueless where to start. I'm so new at Javascript, I just don't know what to do. Can you help? I want to know how to do this and understand why. You will create JavaScript code that will allow a user …

Member Avatar for jmichae3
0
264
Member Avatar for softDeveloper

How to get the parent node for all selections? this just give one selection out of 4 iframes: [CODE] self.parent.frames[i].getSelection().anchorNode.parentNode.outerHTML=self.parent.frames[i].getSelection().anchorNode.parentNode.innerHTML; [/CODE]

0
85
Member Avatar for bhuvan83

hi every1 i m new to website development. just learning it. i have made a code in which i access my database(MS Access). i m able to print the first record of the database on the page. but i m not able to go to next record which i want …

Member Avatar for Vetha
0
248
Member Avatar for softDeveloper

Hi all, how can we replace the getSelection HTML in an iframe? I want to getSelection() and the replace selection's html with simple text.

Member Avatar for softDeveloper
0
167
Member Avatar for softDeveloper

I'm getting xmlHttp.readyState 1 when sending these parameters and it only happens when parameter 'text' is very big. [CODE] var url="replaceText4.jsp"; url=url+"version="+version+"&work="+actualWork+"&secName="+secName+"&text="+text; xmlHttp.open("POST",url,true); xmlHttp.send(url); [/CODE] Could you help me on this?

Member Avatar for softDeveloper
0
141
Member Avatar for Milutz94

Many people are searching for this code, and not all codes are working for them :) So, this is a bit easyer, ussualy a .js and/or .css file are required, but this one is simple! [B]STEP 1[/B] Paste this into your page header: [CODE]<script type="text/javascript"><!-- function setFirstChildImgDisplay(el,vis) { if(!el || …

Member Avatar for stultuske
0
268
Member Avatar for softDeveloper

Hi all, I want to send big amounts of data, like a very big text with 3 Mb from an iframe to a database. For this I send the text from javascript side to JSP and from here to MySQL. When the text is big like this the text is …

Member Avatar for softDeveloper
0
130
Member Avatar for xilix

I am trying to start a daemon on a server with Ajax PHP and JQuery. The following code executes without any errors an opens all the html files in separate browser windows like it's supposed to. I receive the alert message . However, the daemon never starts. Can anyone see …

Member Avatar for pritaeas
0
283
Member Avatar for Altarium

Hello! I may be posting this in the wrong section (in which case I apologize), but is it possible to detect (using javascript or other web language) if the person using a computer has admin rights? I have a feeling it would not be possible (security and all), but I'm …

Member Avatar for Altarium
0
87
Member Avatar for klemme

Hi Guys, This is the image I am animating (The html surrounding it): [CODE] <div class="index_top_left_img"> <img src="products/wrangler-jeans.gif" width="198" class="IndeximgOpa" /> </div> [/CODE] I have this few lines which fades the images in and out: [CODE] $(function() { $('.IndeximgOpa').each(function() { $(this).hover( function() { $(this).stop().animate({ opacity: 1.0 }, 500); }, function() …

Member Avatar for pritaeas
0
206
Member Avatar for lkkkeith

I'm working on a card game with javascript and CSS but I am a complete newbie of both languages. I wanna ask whether I can make all card images as buttons and have an "overlapping" effect which looks like this [URL="http://www.crazyeights-cardgame.com/"]http://www.crazyeights-cardgame.com/[/URL] Attached is my source code but the images are …

Member Avatar for Airshow
0
135
Member Avatar for dremes

Hi could anyone advise what I should change with the code below to stop these been treated like a pop up windows, it would be best if it openned in new tab or second use of browser on top of current window. $chat = "window.open( '" . SK_Navigation::href("private_chat", array("userKey"=>$pr_key, "oppUserKey"=>$opp_key, …

Member Avatar for dremes
0
139
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
247
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
205
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
222
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
251
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
278
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
143
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
206
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
823
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
277
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
673
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
109
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
78
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
82
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
234
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
180

The End.