15,120 Topics
| |
i pass this to a div innerhtml from javascript. when i do it like this it doesn't work. it should display an image hyperlink [code]var newtext4=("<a href=" + number + "><img src=" + newtext2 + " /></a>");[/code] if i do just text, it displays a hyperlink. [code]var newtext4=("<a href=" + … | |
Hi Iam very begginer I want to use the script named lavaLamp from here [url]http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/?cp=all[/url] ) but I donn't know how I can use it I try to change the <li class="current">[B]<a href="#">Home[/B]</a></li> tag to the <li class="current">[B]<a href="http://google.com">Home</[/B]a></li> but it doesnt work please help me [CODE] <h3>With Image</h3> <ul … | |
Hello all! So I am creating a redirect page so that when someone signs up for our newsletter they're taken to this page and 10 seconds later, redirected to another page. The script I'm using isn't working for some reason. I originally had it in a seperate .js file but … | |
Can someone please advise what I may be missing? How can I not only make it better, but this does not seem to be working, although 1 domain instance has worked for some time, I tried adding to it: [CODE] if(document.form1.email.value.length > 0) { var theEmail = document.form1.email; var at … | |
I am using this tip given to [URL="http://designerfoo.com/jquery-thickbox-hack-to-refresh-parent-window-on-tb_close-event.html"]refresh the parent window on close[/URL] for thickbox. But in addition, I would like to display the loader image after closing & while refreshing. Any suggestion? Thanks. | |
Hello Everybody - I have a question that I need answered - Is there a way to implement either a vertical drop down menu or a horizontal drop down menu on a "hot spot" on an image map where as when the mouse rolls over the "hot spot" the "hot … | |
Hi there I have a page that has php code at the top. Ajax before the body tag and a form. I need to be able to call a php function (the one at the top of my page) that adds info from the form into the DB. Normally I'd … | |
[CODE]<link rel="STYLESHEET" type="text/css" href="styles/calendar.css"> <script language="JavaScript" src="javascript/simplecalendar.js" type="text/javascript"></script> <script type = 'text/javascript'> function insCell() { var x=document.getElementById('tr1').insertCell(1); var y=document.getElementById('tr2').insertCell(1); x.innerHTML= 'Day 1'; y.innerHTML='<input type = "text" name = "day"><img src="images/calendar.gif" name="imgCalendar" width="34" height="21" border="0" alt="">[COLOR="Red"]<a href="javascript: void(0);" onmouseover="if (timeoutId) clearTimeout(timeoutId);window.status='Show Calendar';return true;" onmouseout="if (timeoutDelay) calendarTimeout();window.status='';" onclick="g_Calendar.show(event,'frm.day',true,'yyyy-mm-dd'); return false;">[/COLOR]</a> '; } … | |
I have this php based website, that displays a photo and draws data from a db to display on the page. Currently has a link to a live camera(viewed by internet browser) that opens in a separate page. I have heard/read that using jquery you can create a iframe within … | |
Using this code I disable my submit button on the initial load. I'd like to enable it when the form is valid. I have Prototype.js on my system. I send back a chunck of html to update my target. Is it possible to send back an id so that I … | |
Hey Everyone, First off thank you for taking the time to help out. Here's my issue, I am using javascript to use a fade effect on my css sprite menu. I am also using the Jquery Tab function to bring up my content. So basically this is how it works. … | |
Hello, I am trying to make a link to a certain area of the image (for a site map, using the mpa feature), How would I place this code in? [code] <img src="http://www.mysite.com/images/header03.jpg" width="770" height="230" border="0" usemap="#Map" /> <map name="Map" id="Map"><area shape="rect" coords="291,195,366,227" href="http://mysite.index.html" /> <area shape="rect" coords="372,194,447,227" href="http://www.mysite.com/page1.html" /> … | |
I have this structure: includes/top.php : This contains <head> tags, jQUery library & functions : <script type="text/javascript"> function makeslider() { $('#coin-slider').coinslider({ width: 605,height: 450, navigation: true, delay: 5000 }); } </script> page.php : here have the #coin-slider div, but when I call the makeslider() function it doesn't turn my div … | |
HI every one I want to make a menu like this web site :[url]http://www.petrobras.com.br/pt/[/url] When your move the cursor on it , a new windows open and there is a picture in left side and submenues in right side I myself think it is a jquery tool but I don't … | |
Hi all, I'm down with a question. How do i add in a javascript function into another function? For eg. I have a button that enable me to create a new table on the page. when the table is created, there is input of text with calendar function. Is it … | |
I had written javascript calculation for hotel accommodation system. The calculation part is working in Mozila fire fox, but it is not working in IE6. I checked the internet options in IE6 and enabled active scripting, still it is not working.Is there any other option. Please give me the solution … | |
Hi, How can I add via javascript an Event Attribute like onkeyup="xyz(this.value)" in a text input ? function x() { if (condition) { document.definesearch.textsearch. ???? ; } } definesearch is the name of the form. textsearch is the name of the text input. I tried this : document.definesearch.textsearch.onkeyup="xyz(this.value)"; but it … | |
I have a digit 1.63e-01. I want to convert it to integer using JavaScript. How? | |
Hi, first of all sorry if this has come up before, but I couldn't find it anywhere. I have a working php form which submits data on submit. I need to verify the input fields to ensure they are not empty. I know i need a javascript function to run … | |
I am trying to create website with [B]PHP,MySQL,Ajax[/B].In my form,the [B]values [/B]of [B]sub-category[/B] [B]select box[/B] are populated according to the [B]value[/B] in the [B]category [/B][B]select box [/B] by calling [B]ajax [/B]function [B]showsubCategory(str)[/B],[B]below [/B]I am showing some of the code: [B]Ajax code[/B]: [CODE]<script type="text/javascript"> var xmlHttp function showsubCategory(str) { xmlHttp=GetXmlHttpObject() if … | |
Hello, I have the part of code presented below. It has 2 radiobuttons and 2 text inputs. When user selects the first radiobutton(value="searchw"), I would like to make textsearch1 enabled and textsearch2 disabled. And the opposite process.. when user selects the second radiobutton(value="searcht") I would like to make textsearch2 enabled … | |
Trying to get my one of my divs when clicked to call a function but it doesn't seem to be working??? I just noticed that only one solid pixel in the div border which i will eventually set to 0px calls the function but I want it so the whole … | |
Hi, I'm new to using Ajax so bare with me if i say anyting silly. :) I'm trying to insert comments into a mysql DB and immediately (no page refresh) show it on the same page as the comments form I use to insert the comment, somewhere in another div, … | |
i want onchange of an option in the dropdown list to change the value of the textarea. I tried but it's not working. [code] <script type='text/javascript'> function ChgBox(number) { var thecontent = document.getElementById(number).innerHTML; document.getElementById(content).value = thecontent; } </script> [/code] [code] echo "<div style='display:none;' id='2'>Type Image Url</div>"; $thenum ="2"; <select> <option … | |
hi all, if i have to print some text over a image in particular location of image can i do it with javascript actually i have a check(image) but i want to print name , amount over that image but i want it be in write place of check image … | |
I thought this would be simple I am trying tochange the opacity using style. but keeps throwing an error [code] document.getElementById('overlay').style.background='#000'; document.getElementById('overlay').style.opacity='40'; document.getElementById('overlay').style.filter='alpha(opacity=40)'; [/code] keeps thowing the error in parsing value for 'filter' declaration dropped in my css i have [code] #overlay{ width: 100%; height: 100%; background: transparent; /* for … | |
Sorry another silly issue with javascript but I am getting there. Can someone please explain how I should write this thankd. I tried stoping and restarting the string 'hello' +var 'more text'; maybe I am just too tired. The variables are already defined. [code] document.getElementById('welcomeone').innerHTML='+firstnameval you have successfully created your … | |
I need to GetThe Dynamic Values of Row1 Row2 Row3 Etc. My Code enter code here <script type="text/javascript"> $("document").ready(function(){ $(".addComment").btnAddRow({rowNumColumn:"rowNumber"}); $(".delRow").btnDelRow(); }); </script> <table border="1" class="autoTable"> <tr><td>Your Name</td> <td>Your Age</td><td> </td> </tr> <tr><td> <input type="text" id="wonder" size="25"/> </td> <td><input type="text" id="good" size="25"/> </td> <td><input type="button" value="Delete" class="delRow"/> </td> </tr> <tr> … | |
Hello, im making a fact system, and I need a refresh script, For example when someone clicks on the "next fact" button, the "div" part (where the fact is displayed) refreshes. ONLY the div part. and the javascript below is externally loaded... [CODE]/ ============================================== // Copyright 2004 by CodeLifter.com // … | |
hi everybody, i encounter a problem regarding PHP when i am doing my internship. i have a javascript which looks like this. <Script Language = "JavaScript"> function sent() { var text1, fTxt,dT; text1 = document.form1.EPTextField.value; dT = new Date(); fTxt =("You entered" + ": " + text1 + " " … |
The End.