20,316 Topics
hi again is there a way to change css rules using javascript? i have this: [INLINECODE]<style type="text/css"> .flash { position:absolute; left:52px; bottom:30px; } .logo { position:absolute; left:0px; top:20px } </style>[/INLINECODE] and i want to change .logo and .flash attributes depending on the window size... thanks
Hi, Can anybody let me know how to stop the postback event on button click in firefox. Thanks in advance.
Good morning beautiful people. I'm having an issue on a page I am designing. My site uses two frames - a navigation frame (topFrame) and a content frame (mainFrame). As you can probably tell from the subject title; the content doesn't line up when the mainFrame has a scrollbar - …
Hi, I have a Javascript function that creates an Ajax request, returning an XML document into [inlinecode]transport.responseXML[/inlinecode]. I want to process this document but without hardcoding each tag name i.e. [inlinecode] xmlOptions[0].getElementsByTagName('salary')[0].firstChild.data [/inlinecode]. I would like to iterate over the XML document and find each tag and its value. The …
Hello to every body who visit this thread I want to prevent view source(html tags & javascript scripts) of the page with php. I've studied php manual withuot any success how can I do it? Is it possible
Hello I hope you'll be able to help me out, I've got 2 let's-call-them-issues... (got IPB 2.2.2 or whatever like that) 1) One of the members (probably some more too) can't get the attachment process right. The attachment option doesn't load at all or when it does it starts but …
Hi I am trying to run my AJAX Code in Firefox its not working. I am checking for other browser also function CretexmlHttp() { try { XmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); //Here we will assign ready state change event where we will // handle the response data from the server XmlHttp.onreadystatechange=stateChangeEventHandler; } //If …
I've been working on a web site menu update and I would dislike doing anything that might mess up my google keyword rankings for individual pages. This update is going to involve a new menu system. Currently the only full menu is on my index page. ie [url]www.budgetlighting.com[/url] It's nothing …
I have an html script going like this: which is in mymain.html <a id="temples" href="mytemples.html">Temples</a><br> <a id="festivals" href="myfestivals.html">Festivals</a><br> When I click on Temples link , I am taken to mytemples.html , which again has the folowing links : <a id="home" href="mymain.htm">Home</a><br> <a id="prev" href="#" onClick="history.go(-1)">Back</a><br> The funny issue is, when …
hi,so many problem with my comp these days.... so,i will go straight to the point. I use hotmail and whenever i look at the mailbox website,at the bottom of the window(where usually says done after done) always says 'error on page' and i cannot open or delete my message,i know …
hi, my name is Reece, i have learnt, javascript, css, php, xhtml, html and loads of graphic stuff. Im 14 and my teacher said for me to learn asp, but im sure there is no difference, is there??
i am a newbie in learning php, and i would like to know if php can be used just as javascript being initialized in the head of an html docment to be called whenever you need it?
hi i want to read the whole URL passing through the address bar and asssign it to a variable .Please help me
any idea about asynchronous drop downlist, on selected item of drop downlist with out causing server round trip how can we populate selected item into textbox.(with out postback or callback)
I need to parse a element from a XML file: <a> <b>45</b> <c>67</c> </a> <a> <b>98</b> <c>89</c> </a> So I try to read and put in a html element the first value of b with the next code: [CODE] document.getElementById("apDiv3").innerHTML=xmlDoc.getElementsByTagName("b")[0].data; or document.getElementById("apDiv3").innerHTML=xmlDoc.getElementsByTagName("b")[0].value; [/CODE] and I get a undefined message.Where is …
I have a link wich opens a the second page with links wich call a javascript function. I have some problem with javascript. i am two aspx page.. in my first aspx page contain the second aspx page name.. i am clicking the second page link the second page is …
hello, im guessing this question is quite trivial. i have a page setup as follows. MAIN PAGE [CODE] <html> <head> </head> <body> <div id='innerlogin'><iframe src='INNER PAGE'></iframe></div> </body> </html> [/CODE] INNER PAGE [CODE] <html> <head> <script type="text/javascript"> function RemoveDiv(){ d = parent.document.body; d_nested = parent.document.getElementById("innerlogin"); throwaway = d.removeChild(d_nested); } </script> </head> …
I dont really have code for this but here it goes. First of all I have basic knowledge of JavaScript and have moderate knowledge of php. What I am trying to do is when someone click on a link. It will display a hidden form via Javascript modifying CSS(which I …
Here is a function I made: [code]function dis_sub(CID,ALI,NAME,PIC,EID) { SUB_CAT+CID.ALI.value = ALI; SUB_CAT+CID.NA.value = NAME; SUB_CAT+CID.IDD.value = EID; }[/code] It is saying that I have syntax error right after the = sign. Also SUB_CAT is not a variable.
i've seen several threads about javascript books... but, since there are other people that learn faster from internet tutorials... could someone point me out where to look for javascript and ajax tutorials?
Hello, does anyone know how i can validate a date field using javascript. The field is a text field that accepts a date in the format yyyy-mm-dd. i appreciate your help. Thanks.
I have a form that consists of indexed fields like: [code] <input type="text" name="formItems[0].part" value="TK02"> <input type="text" name="formItems[0].price" value="13.0"> <input type="text" name="formItems[0].qty" value="1"> <input type="text" name="formItems[1].part" value="AG-1"> <input type="text" name="formItems[1].price" value="7.0"> <input type="text" name="formItems[1].qty" value="10"> [/code] In netscape/firefox, i can access the qtyOrdered value using: [code] document.forms['ShoppingCartForm'].elements['formItems[0].qty'].value [/code] How do …
Hi folks, I been asked to post data from a form to a msg broker system being tested by an external team. I have been told that all I should do is post the data using http request in the following format to a server. [code=javascript] var http =new HttpClient(); …
hi i have write the php language code. The login form creation. The validation part is ok.. but data is not pass to one page to another page. I have used `$_REQUEST` and `$_Post` method but not working.. any body replay me.. the following codes.. THe First file is login.php. …
i have been trying to add javascipt in my php script to implement dynamic form filling but it seems not to work. the javascript code works well without the php script what could br wrong? [code=javascript] var alive1 = new Array("Yes","No"); var alive2 = new Array(""); var loss = new …
Hello there, I designed 3 buttons and a form contains a Text Input, I want to make those 3 buttons add tags inside the Text Input,Explain: Example: I am a user, I wrote in that Input a text,the text is: "Hello How are you, bla bla bla..." I want to …
Hi, Can anyone say, why the following TEXTAREA-enlargening javaScript does not work in Firefox even though it works ok in IE7? <html> <head></head> <body> <form name="form1" method="post" action="" id="form1"> <br /> <br /> <textarea name="TextBox1" rows="4" cols="15" id="TextBox1" onClick="enLargeTbox(this.name)" onMouseOut="ReduceTbox(this.name)"></textarea><br /> <textarea name="TextBox2" rows="4" cols="15" id="TextBox2" onClick="enLargeTbox(this.name)" onMouseOut="ReduceTbox(this.name)"></textarea><br /> <textarea …
Hi, I have an html page which is designed using tables. I would like to know that if I click on a button located in one cell of the table, it should open another page in a new cell of a different table without refreshing the entire page. I tried …
I have been working a bit in PHP and JavaScript and AJAX lately. I am very new at it all, so any help would be greatly appreciated. [B]Here is the question: [/B] What is the best way to make sure keep data from an AJAX call, and cut back on …
I found that my code keeps returning the no properties found error once more so I go ahead and try to debug it.. I used an alert box to see what value my component stores.. Unfortunately for me, it said that its value is UNDEFINED.. what is this supposed to …
So I tried to google my problem, but for a change I didn't get any worthwhile answers. What I want to do is to have an external js file to define some functions (which will be used for form validation). Then I want to use the external functions inside each …
Hi guys, first & foremost, my apologies if this is posted in the wrong zone - feel welcome to move it if necessary. OK, and on to my situation... I'm attempting to rewrite my navigation bar (vbulletin) to use images as oppose plain text. I used to frontpage2003 to start …
As you may have probably gathered Javascript isn't my strong point ;) I want to be able to swap a class of one div when a link is in the :hover state. Therefore I should be able to swap a background image. Thanks for you help.
Here is a basic question (I thought I knew how to do this, but apparently not). (I am using Firefox 2.0.0.4, in case that is a factor). I am writing a Javascript page and want one of the text fields to default to a blank when the page is reloaded. …
Hello I want to pass the database retrieved username after user logs on & hence to check login correctness I am using php & jsp [code=php] <?php $conn= mysql_connect("localhost", "root", ""); if(!$conn){ exit("Error in SQL"); } mysql_select_db("college", $conn); $val1=$_REQUEST['login1']; $val2=$_REQUEST['password1']; $sql = "SELECT * FROM tlogin WHERE tid='$val1' AND tpasswd='$val2'"; …
Hello, I am running a homeowner's association website (1 page only). The manager asked if I might be able to allow her access to make announcements from time to time. I think this would be a good idea, but I don't want to give her carte blanche access to the …
Hi, I've been brainstorming features for my forums and how I should layout ads. I came across many "banned from AdSense" topics, so I made sure to read all the policies and guidelines well. As far as too many clicks and click bots go, I don't want to get banned …
My company provides a property listing service that is implemented via javascript and an iframe. This particular case is a lot more customized than most, passing variables from our site to their URI for more seamless integration (usually we just pass all URI variables in the iframe). Here's the unexpected …
I have two frames. The links in the left frame open up in the right. I would like to know if it is possible when clicking on links in the right frame, to put focus on the corresponding link in the left frame. Thanks in advance.
Hi, I am trying to create a web based text editor(the one just like in yahoo mail) and the feature i am trying to implement is of highlighting the text with different colors as you can do while composing email in yahoo.. can anyone please help?? Thanks,
Iam making a game, the error is that in the "d" loop (for...) the value "holeBalls" stays always the same. [code] for (d=holeNum;d<=holeBalls;d++) { document.getElementById('hole'+d).value++ } } [/code] what i want is that holeBalls here, gets the value of "'hole'+id" because now what happens is that (this is a kalah …
I need help with writing a hit counter in javascript. I am new to weboage design so I really dont know how to go about doing this.
I couldn't find a userscript for greasemonkey that removed that pesky banner at the top of the page, so I wrote this one, I've made it available here [URL]http://userscripts.org/scripts/show/10228[/URL]
Hi there, I've been using PHP and MySql for some time now but I am quite new to Javascript. I would like to know how it is possible to insert data stored in a MySql database into Javascript code. For exmple, I am working on a travel guide site and …
hi everyone, Iam doing a question bank and solution project.My problem is how to set time when a student is solving a paper.I tried using javascript but when a postback occurs the timer is reset.
hi, i have a jsp page, in this page i am displaying data retrieved from mysql database. Now [B][U]the problem is i must color table cell based on cell value[/U][/B]. how to implement this.please give me an sample or working code foe this problem.( any code is accepted) preferably html …
All, I am currently developing a UserJS "plug-in" for Opera in Linux using verision 9.21, build 641. I have encountered some bizarre problems and have been able to isolate and reproduce one using the code posted below. The basic issue throughout my code (and reproduced below) is that a command …
Hello everyone.. I have a problem i.e., unable to register an ocx file from server.The sample code is enclosed. Could anyone pls help me out.. <HTML> <HEAD> <TITLE> Draw a Square </TITLE> </HEAD> <BODY> Here is a sample square from ActiveX: <OBJECT ID="Sample"CODEBASE="http://my server address......../Sample.ocx" HEIGHT="101" WIDTH="101" CLASSID="clsid:0342D101-2EE9-1BAF-34565634EB71"> <PARAM NAME="Version" …
Hello, I'm not a Javascript expert -- not even a novice. But reading this forum and others, I've managed to get code in my page that allows me to have a big image, and three thumbnails. When I click on the thumbnails, a bigger version of them replaces the big …
Hi. I am creating an asp.net web site. Using GridView the website creates a table. Now my question is I want to write a javascript function that colors the text "NO" red within the table cells. Waiting for your reply.
The End.