15,113 Topics
| |
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 … | |
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 … | |
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? … | |
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 … | |
<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 … | |
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 … | |
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{ … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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"] … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
[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) … | |
how the answers are evaluated in an online examination system??? any one answer my question briefly | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
[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 … | |
| 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 … |
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; … | |
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 … | |
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 … |
The End.