15,698 Topics
![]() | |
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 … | |
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 … ![]() | |
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] | |
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 … | |
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. | |
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? | |
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 || … | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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, … | |
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 … | |
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 | |
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, … | |
[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 … | |
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 … | |
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 | |
Hi All, I'm selecting text from an iframe using getSelection(). It reads everything but the tabs '\t'. | |
| |
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']; ?> … | |
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; … | |
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 … | |
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 … | |
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 … | |
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. | |
[CODE]<a href="?id=home">Home</a>[/CODE] is there any option available in Javascript for getting value of "[COLOR="Red"]?id=[/COLOR]home" ???? | |
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 … | |
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 … |
The End.