15,121 Topics
| |
Hi I have implemented an iframe that contains several links to other pages. I can't change the content of the iframe because it's on another server. Here you can see an example of the code for one link in the iframe: [CODE] <a href="javascript: void(0);" onclick="openUrl('http://www.streambeam.org');" title="">Link 1</a> [/CODE] Now … | |
hi i want to validate my id field that if someone enter data other than id in the id field it show message that its not id.i have little bit of logic to validate but i am not getting the point that how to validate that it only accept numeric … | |
I describe my problem with following simple example. [CODE] function show(str) { if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("txtHint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","data.php?q="+str,true); xmlhttp.send(); } [/CODE] here,i am getting some responsetext or result from data.php file through my request. In my … | |
Hi All, I have to deliver a secure web ASP.net site that after 20 minutes of inactivity wipes the users sessions and forces then to login again. I have set up all the necessary timeouts on the server and at the top of each of my master pages I have … | |
Hi, I am using google custom search & getting result on the same page. I am trying to show search result on the new tab. Need suggestion.. | |
hi all.... i want to add 01+1 and my desired output is 02. my code is var t=01; var t2=t+1; alert(t2); the alert value is 2. I want 02....what will i do? thanks in advance.... | |
[CODE]<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]"> <head> <meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" /> <title>Micro Customer Care</title> <style type="text/css"> body { padding:0; margin:0; } </style> [STYLE_SHEETS/] <!--[if lt IE 7]> <link rel="stylesheet" type="text/css" href="css/ie5-6.css"/> <![endif]--> <script src="js/chat.js" type="text/javascript" charset="UTF-8"></script> <script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script> … | |
I am reading data from a mysql db to my webpage. I wish to make a google pi-chart but have no idea how to pass the data from php (html?) to javascript(?) to populate the graph. I'm reading the rows into the html page ok, they are dispaying in a … | |
hi experts.. I'm new to javascript/ajax and i need to upload a picture to a server then the server will send a preview without redreshing the page..how can i do that? any suggestion? or sites for tutorials? thanks for help.. i need this ASAP.. | |
I need to make javascript code where i ask question from user and if he answers yes he will get new question but if he answers no he will only get third question not second. Then i need to save answers to database. How to start writing this code? | |
Hi! I have this code that adds field when the user hit the "add new field" button. The problem here is, once you added an input field, then fill it out, then add a new field again, the info in the first field be erased. As how the code runs, … | |
Please I am searching for a script that will ask the search engine to place the item searched at a particular place in a page ,my need is how can I describe such script to search engine if I am to search for it online, dose it has a name. … | |
Hello, I am experiencing a problem with running javascript code when ajax calls a file. I have a file named 'index.php' which simply loads some comments by using the file 'comment.inc.php' and run some javascript code to change the id of some div. I don't know how to let the … | |
Can someone work createElement into this script to demo its use? I think the two can work together, but I don't know how. [CODE]<html> <head> <script type="text/javascript"> function myFunction(anid) { var cssatr = document.getElementById(anid).getAttribute('style'); // get the value of "style" var htmlanid = document.getElementById(anid).innerHTML; // get html code return ('css … | |
how do I get the css and the html into the function? [code]<html> <head> <script type="text/javascript"> function myFunction() { return ("Hello world!"); } </script> </head> <body> <div style="float:right;"> <script type="text/javascript"> document.write(myFunction()) </script> </div> </body> </html>[/code] | |
Dear All, I have two pages with the similar codes. One is here [url]http://183.78.169.53/tm/addTyreSwap1.php[/url] in this page you have select the vehicle via the drop down list then a number of tyre will appear via the ajax call. The problem is that both the draggable and droppable is attached to … | |
I am writing some learning code to convert an XML file to a JavaScript array. So far I can convert from XML to JSON with this: [code] <?php $xmlStr = simplexml_load_file("xml/galleryXML.xml"); $jsonStr = json_encode($xmlStr); ?> [/code] I don't know and can't find a way to convert to a JavaScript array … | |
what i am trying to do is when i click the div it decreases to width=100px and when i click it again it changes it to original size but i am getting the problem in the second part where i want to re size it to original size i known … | |
when i click the link the the div is resized to 100px .. but again if i click i want to the the div to be same as before (800px) using the same sliding animation ..how can i do that [CODE] #ee{ border:1px solid #00F; height:100px; width:800px; position: absolute; } … | |
I have a HTML table having currently 3 rows and 7 columns. here rows and column may increase in future. Row1.Column3.Value= Row1.Column1.Value + Row1.Column2.Value Row1.Column7.Value= (Row1.Column3.Value - Row1.Column4.Value - Row1.Column5.Value ) * Row1.Column6.Value It should be repeated in every rows. I did but my code traversing only with first ROW | |
okay, I've got another problem. How can I obtain content of cascade style, using javascript? I know, there's a code document.getElementById('id').style.border='5px solid blue'; for example, but I need to do reversed operation, not to change style, but obtain it. I hope I've described my problem clearly enough enough ;) Thanks … | |
Hi, :) I am a newbie here and this is my first post. :?: I always wonder whether there is a better way of putting this or that or is there a work around for that, etc.... :idea: So, its better if we can have an uncluttered discussion topic that … | |
Hey guys, is there a way to get a node's name and assign it as a value to a variable using javascript? Here's an example structure of the xml. [CODE] <list> <student id="101"> <name>John Smith</name> <DOB>07-09-1987</DOB> <address>123 ABC street</address> </student> <student id="102"> <name>John Doe</name> <DOB>05-04-1986</DOB> <address>234 DEF street</address> <address2>345 GHI … | |
Can I configure this function to make it print a certain pixel only? Around 500px X 700px Center. <script language="javascript"> ... function printpage() { window.print(); } </script> Is it possible? | |
I have a html script with some JS and a php script that produces a comma delimited string of suggestions of first names to enter into an input field. It only works for "B" names right now. I need to turn this script into a combo box and can't think … | |
Good day, I've done some searching on this topic but am not sure if I am defining terms properly in order to get results. I am new to AJAX and can execute the process of dynamically adding some content. But I want to take it one step further for adding … | |
Hi there! Okay, here is my scenario: I have a link and a div on a webpage. With the link I want to toggle the content (HTML) of the div. On toggle, I want to load the content from a PHP-file and I want it to load on the toggle, … | |
I have 6 horizontal navigation image links on top of my site. The regular images are black n white, but on the hover they transform to a colored image. Each image leads to a different page on my site, I'm wondering if I can make the image corresponding to that … | |
Hello i trying to create a little diary using jquery, i have a script where you enter in the textbox then it displays it in a div with a delete button. how do i make it so when i go back to the page the text is still the but … | |
I am attempting to use a WebBrowser control in C# to display a webpage. I would like my C# application to know when a Javascript function is called within the loaded webpage. Is there anyway to do this? I can't seem to find an event handler for it. |
The End.