15,117 Topics

Member Avatar for
Member Avatar for Bisquick

The following script adds my affiliate extension to every url on my page. For example, if http://www.Google.com/ is on my page somewhere... Adding this script to the page will automatically change the url to- http://adf.ly/xxxxxx/http://www.Google.com/ - this goes for every url on the page... This script works great if the …

Member Avatar for pritaeas
0
324
Member Avatar for azareth

i have this code where it computes for the time entered by the user. it doesn't have yet the limitations or the conditions regarding the time to be entered . it successfully computes for the time and the hour increases based on the minutes, but the problem is when you …

Member Avatar for TrustyTony
0
270
Member Avatar for devin2203

Hi In my application I have a test for distance using google maps api. As you can see above if the postcode is within range the page is redirected to the menu page. I have created a very simple lightbox using css and the onclick function. I want that div/lightbox …

0
131
Member Avatar for Designer_101

Hi This is either really simple or completely impossible :) I have a table like the following: [CODE] <table> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>7</td> <td>9</td> </tr> <tr> <td><<SUM OF THIS COLUMN (8)>></td> <td><<SUM OF THIS COLUMN(11)>></td> </tr> </table>[/CODE] I hope you understand what it is im asking. This is …

Member Avatar for saqlainraza14
0
44K
Member Avatar for new_developer

I have div. <div>This is text in div1.</div> How do i get the text written in div to variable in javascript ??

Member Avatar for JorgeM
1
152
Member Avatar for Sanchixx

Hello, How can i replace a button by an image? Here is my code: <INPUT TYPE="butt <INPUT TYPE="button" NAME="insert" VALUE="Gras" onClick="this.form.area.value=this.form.area.value.concat('<b>Ajouter votre texte en gras ici</b>');">insert" Thank you, Sanchixx

Member Avatar for memomk
0
141
Member Avatar for Aardwolf

NotiOpened = '0'; if (NotiOpened == '0';) { $("#notification").slideDown("slow"); $('#notification').load('notification.php'); NotiOpened = '1'; } else { $("#notification").slideUp("slow"); NotiOpened = '0'; } what's wrong with it?

Member Avatar for memomk
0
150
Member Avatar for divsok

how to automatically refresh a dynamic web page after 1 second at once(not continually) using javascript ?

Member Avatar for Sanchixx
0
157
Member Avatar for shadiadiph

Does anyone know of a function that can check all or uncheck all checkboxes with one click barring in mind i have multiple forms on one page. function checkAll(formName, status){ for (i = 0; i < formName.length; i++) formName[i].checked = status.checked? true:false } I have tried the above it works …

Member Avatar for shadiadiph
0
122
Member Avatar for .NETLearner

Hi, Im trying to save a change value to the database from an autocomplete textbox. I have 2 scenarios 1) Add a new value without selecting any option from the autocomplete list. I want the oblur or any similar method of the textbox to hit whenit loses focus to call …

0
63
Member Avatar for magikman

I have a table of data with hostnames in column two of my table and other data such as location, type, etc. in the other columns. I would like to have a button that will filter any hostname that ends with an H. So far I have the code below …

Member Avatar for pritaeas
0
94
Member Avatar for Annuscha

Hi, I'm very new to javascript, if someone could help me I would really appreciate it. I'm adding this floatable jquery menu to my site [jquery-floating-menu](http://manos.malihu.gr/jquery-floating-menu). What I'm trying to do is get the menu to expand when clicked. I have tried to add .click instead of .hover but it …

Member Avatar for TrustyTony
0
212
Member Avatar for pytup

hi i need to add button thath allow to print out list my script display on the screen, i try few thing but button always dissapear after i display list. can someone help me? this is my script code: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <script> var teams …

Member Avatar for mbarandao
0
90
Member Avatar for divsok
Member Avatar for azhpool

Hi, i'm new to javascript and I'm just wondering why this isnt displaying the alert messages.. can anyone shed some light? <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $("#username").keyup(function(e) { var usr = $("#username").val(); var allready= 0; if(usr.length > 3) { allready= 1; $('input[type="submit"]').removeAttr('disabled'); } else $('input[type="submit"]').attr('disabled', true); allready = 0; }) …

Member Avatar for JorgeM
0
151
Member Avatar for jackbauer24

I am learning jQuery from thenewboston. I have learnt about ID selectors (#) and element selectors (<html element>). They have also used the colon selector (:). What is the colon selector for? Can somebody please explain in an easy way?

Member Avatar for JorgeM
0
88
Member Avatar for tymaut

Hello I am working on a web page(php based). I want to put a `like` button, so that when a user clicks it, he is added to the likers list in my database.(like in the facebook). I wrote a php funtion to execute this database insertion, but since the event …

Member Avatar for IIM
0
317
Member Avatar for PsychicTide

Hey guys, I've been stuck on this problem for quite some time now. I'm trying to have someone type some text into CK editor and then I want to count how many bold, italic, or underlined words have been typed. I've managed to count the number of tags there are …

0
114
Member Avatar for riahc3

I have this code: <?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl …

Member Avatar for McLaren
0
294
Member Avatar for didzmad

Hello there, I have been looking on the internet for the past week or so but no luck. I have come accross few bits and pieces but nothing that really worked or too much for what I am looking for. I am looking to have a Accordion Menu with 3 …

0
49
Member Avatar for Violet_82

Hi peeps, I wonder if you can help me at all. I am recreating a simple design, just doing some testing really, and what I am trying to achieve is to hide and show the navigation on the left side, here's the website: http://antobbo.webspace.virginmedia.com/various_tests/worktest/test.htm So ideally when i click on …

Member Avatar for Airshow
0
130
Member Avatar for trishtren

Hello, Iv been working on a project in java and i want to implement an export to HTML 5 feature. I have looked around and not seen many useful discussions on how to implement this feature. A number of software products i looked into such as scirra construct and adobe …

0
83
Member Avatar for divsok

how to input a code snippit to a textarea and how to preview it using syntax highliting in a html page?

Member Avatar for divsok
0
112
Member Avatar for Neetumishra

Hi, I am trying to change background image of my div but its not picking up style of background image that I am setting from javascript. So can anyone help me out? Thanks in advance. Here is my code: <HTML> <script language="JavaScript"> NUMBER_OF_IMAGES = 3; ImageNames = new Object(); ImageNames.length …

Member Avatar for JorgeM
0
229
Member Avatar for PF2G

Hi, I'm using a javascript messagebox, but i'm having trouble with the delete: <html> <head> <title>AdminstraĆ§Ć£o</title> <!----------------------------------------------> <script type="text/JavaScript"> function confirmDelete() { var agree=confirm("Tem a certeza que quer remover?"); if (agree) { return true; <?PHP $del="DELETE FROM content_lang WHERE id_content = '".$row_lang['id_content']."'"; $q_del=mysql_query ($del, $connect); ?> } else { return …

0
82
Member Avatar for 4cpukid

I am building a small quiz app and the choices are all list items (li) In jQuery or javascript how would I be able to allow the user to select one answer (it is ok if I need to add an 'a' tag) and then when they click submit (which …

Member Avatar for stbuchok
0
131
Member Avatar for sam230

i m trying to make a multiple level slide in-out menu in juqery.. i m able to open one div.. but not able to hide open div and show the clicked one.. this is my work.. click menu1 only working.. when i click menu2 everything goes work.. please have a …

Member Avatar for Sky Diploma
0
95
Member Avatar for Majestics

<html> <head> <!--Load the jquery lib --> <script type="text/javascript" src="jquery-1.7.2.js"></script> <!--Use jquery --> <script type="text/javascript"> $var = 1; </script> <script type="text/javascript"> $(document).ready(function(){ $('#cont').click(function(){ $('<p />').text("hye").appendTo($('#cont')); }); // $('p').live("click", function(){ // if($(this).text() == "Good...1") // $(this).empty().appendTo($('#myDiv')); //}); }); </script> --> </head> <body> <!-- <div id="myDiv"> <p>Hello world!</p> </div> <a href="#" id="myLink">Change …

0
83
Member Avatar for Buppy

Hi, I have a HTML structure like this: <div> <div id="a"></div> <div id="b"></div> <div id="c"></div> </div> I know the ID of an element (let's say it's #b), and i need to know which index it has in the parent div. In this case that would be 2. How do i …

Member Avatar for pritaeas
0
83
Member Avatar for divsok

i created a jsp page and put a javascript code " window.onload=func(); " in the header when the page is loading.In that func(),i set two objects to the session (using AJAX) and get them back into the jsp.After debugging the aplication everything is ok.but jsp page doesn't display the content …

0
86

The End.