15,113 Topics

Member Avatar for
Member Avatar for localp

I need to know if you can add a javascript within [CODE]my_window.document.write( ); [/CODE] as [CODE]my_window.document.write( '<html><head><script type="text/javascript" src="http://somesite.com/xxy.js"></script></head></html>' ); [/CODE] When i add the code as shown above, it gets printed inthe parent window, how do i overcome this, if there's no way to overcome this, please suggest a …

Member Avatar for localp
0
1K
Member Avatar for azegurb

hi all i have taken from internet a script that adds and removes rows but i made a little changes to that script that is renumbering rows after deleting. but one problem arises. i can delete all rows by selecting at once except firts row. for ex. i have added …

Member Avatar for Airshow
0
134
Member Avatar for irandokht

Hi dears, i want to change width of tinyMCE editor but it doesn't changed and back to orginal state,i do either two follow step : tinyMCE.init({ mode: "textareas", theme: "advanced", width: "200", height:"200", ........ or <asp:TextBox ID="RichTextBox" runat="server" TextMode = "MultiLine" Width="300px" Height="200px" ></asp:TextBox> what's your suggestion for edit width? …

0
61
Member Avatar for bjeffries

I have this email newsletter field that works. I just dont want the person to be directed away from the page they are on when they submit the form. Is there a way to process the form then have a window pop-up saying: Thank you for submitting $email! My HTML …

Member Avatar for bjeffries
0
322
Member Avatar for public-image

<script> function close(){ window.open('alert_update.php?id=<? echo"$alertm[id]"; ?>','alert'); document.getElementById("alert").style.display="none"; } </script> The above script is what I am using to send a request as such to alert_update (the file that updates the database which is a small iframe 1px by 1px; but I also need it to onclick hide the div that …

Member Avatar for Airshow
0
156
Member Avatar for public-image

Okay so I was having a problem earlier where I could not get my DIV to hide using my script I used some source from google and got the following, I found it to be effective and do the job, however I want it so that when I click my …

Member Avatar for Airshow
0
97
Member Avatar for raul8

I'm having trouble with nodeValue property. No matter what..it gives me value null. All other propeties are executing fine. XML file: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <details> <player> <name>MSchu</name> <poles>91</poles> </player> <player> <name>Alonso</name> <poles>25</poles> </player> </details>[/CODE] And I'm running this code: [CODE]<html> <head> <script> function loadXMLDoc(){ if (window.XMLHttpRequest){ xhttp=new XMLHttpRequest(); } else{ …

Member Avatar for Airshow
0
238
Member Avatar for ello

Hey guys I'm having a little bit of an issue with this code, the code simply detects a page refresh, works fine in IE and FF, but it doesn't seem to be working in opera. Anyone got any suggestions on how to fix this? I've had an issue like this …

Member Avatar for ello
0
128
Member Avatar for doctorphp

Hi everyone. I am starting to learn AJAX and JavaScript and I am trying to make a popup login form and I am having trouble posting the data entered in the textboxes. It is fine when I post one piece of data but when I try to post two I …

Member Avatar for hielo
0
2K
Member Avatar for public-image

I am using a DIV to load pages that must be refreshed every so often however due to the delay in each load, it takes that amount of time to load the first preview. So what I want to do is while the page loads it up is there a …

Member Avatar for public-image
0
103
Member Avatar for waniejjang

Hi all, I have a problem with javascript function. I already do a dynamic dropdown menu where user have to select a company name at dropdown. And after select the company name, an email address will appear in textbox. The company table consists of Id, comp_name, email_add fields. But I …

Member Avatar for waniejjang
0
2K
Member Avatar for f_atencia

Say I have an XML file as such: <contacts> <contact id="1"> <name>Steven</name> <address>Here</address> <phone>11111111</phone> </contact> <contact id="2"> <name>John</name> <address>There</address> <phone>22222222</phone> </contact> </contacts> ...etc. How can I transform that to HTML with XSLT so that it can be a collapsable/expandable tree? For example, If I click a button that shows contact{@id="1"] …

0
89
Member Avatar for fantasma

I there everyone. I've been wondering if someone could help to glue up my broken head with this one. I've got some "labels" which show up, dynamicaly, the data coming from mySql through PHP. In those labels I've got 4 buttons for uploading an image, deleting the respective entry, editing …

Member Avatar for fantasma
0
191
Member Avatar for reagansmall

Hello - Okay...I have another confusing question (warning...newbie here!). I added some javascript to my main template page that makes my side navigation bar expandable. I had a folder of preexisting pages created from this template that the Dreamwever updated when I saved the main template. I want to make …

Member Avatar for maba001
0
149
Member Avatar for localp

There is textbox, and 2 buttons in a web page. when the user clicks one of the button, the character 'A', should get printed on the textbox. and when the user clicks on the other button, 'B', should get printed on the textbox in the format 'AB'. I was looking …

Member Avatar for localp
0
244
Member Avatar for reco21

Hello, I'm wondering how to add predefined text to many input fields on click of an image. so I have 4 images and I click one and 4 fields are filled with predefined text. If I click another the text is changed with some other predefined text. Thanks

Member Avatar for reco21
0
136
Member Avatar for cmills83

Has anyone had success changing a users print settings to landscape when printing a specific page using either CSS or JS? I see a lot of the same solutions repeated when searching but none seem to work so please only post something if you have had cross-browser success and can …

Member Avatar for codewall
0
62
Member Avatar for Xavier33x

Hey, Ive been working a site for my church and it looks fine on my screen but when i use my other laptop which has a bigger screen i find that i have white space on the right edge and on the bottom. My background picture was done in photoshop …

Member Avatar for Xavier33x
0
210
Member Avatar for murtazamzk

[CODE]<html> <body> <script language="JavaScript1.2"> //change 1 to another value to alter the scroll speed. Greater is faster var speed=1 var currentpos=0,alt=1,curpos1=0,curpos2=-1 function initialize(){ startit() } function scrollwindow(){ if (document.all) temp=document.body.scrollTop else temp=window.pageYOffset if (alt==0) alt=1 else alt=0 if (alt==0) curpos1=temp else curpos2=temp if (curpos1!=curpos2){ if (document.all) currentpos=document.body.scrollTop+speed else currentpos=window.pageYOffset+speed window.scroll(0,currentpos) …

Member Avatar for codewall
0
264
Member Avatar for pradeesh.login

how the answers are evaluated in an online examination system??? any one answer my question briefly

Member Avatar for codewall
0
57
Member Avatar for JPByD

I have a C# website that includes AJAX. The site has a master page and sub pages. I am revamping the photo gallery sub page to include a jquery function that displays a larger version of a thumbnail image when hovered. The thumbnails are listed in a xaml file, at …

Member Avatar for JPByD
0
229
Member Avatar for localp

I have a web page named A.html, and this web page contains a text box called 'text1', and a button. When a user clicks the button, a pop up window appears, the name of this pop up window is B.html. B.html has a text box, and its called 'text2', and …

Member Avatar for localp
0
125
Member Avatar for kendaop

Hello all! I'd like some help with some code to fade in and out banner images on my website. Basically, the idea is that every 10 seconds, the image will fade out as another image fades in. The way I am trying to accomplish this is by changing the opacity …

Member Avatar for AleMonteiro
0
121
Member Avatar for usuario

Hello, Somewhere in Internet I found a free script which I use in instant messaging system to send messages without page refreshing. This script works well for 99% of users but from time to time I get messages from users who can't send messages because nothing happends when they click …

Member Avatar for Airshow
0
108
Member Avatar for morteza_ipo

Hello. I want to delete duplicate values of options tag! this is my code. But this is not good and have problem! [CODE] function DropDups() { var i=0; var forml; forml = document.getElementsByTagName('form').length; for(i=0;i<forml;i++) { var Target=document.forms[i]['color']; for (var avvali=1; avvali<Target.options.length; avvali++) { valavvali = Target.options[avvali].text; for (var dovvomi=1; dovvomi<Target.options.length; …

Member Avatar for Airshow
0
4K
Member Avatar for moonknight33

[CODE]<html> <head> <title></title> </head> <body> <script type="text/javascript"> function showPic(whichPic){ var imgSource = whichPic.getAttribute("href"); var placeHolder = document.getElementById("placeholder"); placeHolder.setAttribute("src", imgSource); placeHolder.setAttribute("height", 400); } </script> <h1>Image placeholder</h1> <a href="pics/wolf_1.jpg" onclick="showPic(this); return false;">Wolf 1</a> <a href="pics/wolf_2.jpg" onclick="showPic(this); return false;">Wolf 2</a> <a href="pics/wolf_3.jpg" onclick="showPic(this); return false;">Wolf 3</a> <a href="pics/wolf_4.jpg" onclick="showPic(this); return false;">Wolf 4</a> <a …

Member Avatar for moonknight33
0
236
Member Avatar for trebor-pl

Hi, Im new to here. I have a problem with some JS for my website. I made JS to enter text from input boxes in form to a read only text area. However it overites the text instead of putting it below (thats what I want it to do, put …

Member Avatar for trebor-pl
0
250
Member Avatar for titosd

Hello, I"m trying to send mail to multi users, but i doesn"t succeded/ I doesn"t know how to add all the mails that i selected to the mailto tag. this the the code that I wrote: [CODE]<SCRIPT LANGUAGE="JavaScript"> function getSelected(opt) { var selected = new Array(); var index = 0; …

Member Avatar for Airshow
0
165
Member Avatar for morteza_ipo

Hello! I made a code with php! In this code my program gets many recodes and with a loop that generate form tag! And this tag have a loop again for generating select box with many options! That options value is image file name. And in this forms have a …

0
69
Member Avatar for Griffin54

Hello; On one of my web pages I want to add a page "Loading" image while some of my .pdf file upload when clicked on. I have searched for and found a few different sources of javascript code for the page loading function. However, none of the code I tried …

Member Avatar for Airshow
0
63

The End.