Jump to content


  • Posts

  • Joined

  • Last visited

About divyac

  • Birthday 11/26/1981

Profile Information

  • Gender
  • Location

divyac's Achievements


Newbie (1/7)



  1. divyac

    Ie8 Vs Xml

    sorry to say this again still its not working ya...........
  2. divyac

    Ie8 Vs Xml

    thanks for ur reply,i removed that DTD in my xml file.. but still i nt working.........
  3. divyac

    Ie8 Vs Xml

    Check out the following link.http://mssportfolio.com/popup/If u click on the "Add to cart" button,a pop up appears with some data retrieved from XML.The pop up works fine in Firefox but not with IE.The pop up appears in IE but not the data from xml file.what may be the problem?The script to retrieve xml code is as follows: function loadXMLDoc(dname){var xmlDoc;if (window.XMLHttpRequest) { xmlDoc=new window.XMLHttpRequest(); xmlDoc.open("GET",dname,false); xmlDoc.send(""); return xmlDoc.responseXML; }// IEelse if (ActiveXObject("Microsoft.XMLDOM")) { xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.load(dname); return xmlDoc; }alert("Error loading document");return null;} function display(id){xmlDoc=loadXMLDoc("xmlfile.xml");x=xmlDoc.getElementsByTagName("LISTING")for(i=0;i<x.length;i++){//document.write(x.item(i).attributes[0].textContent);//document.write("<br />");if(x.item(i).attributes[0].textContent==id){document.getElementById('name').innerHTML=x.item(i).childNodes[1].childNodes[0].nodeValue;document.getElementById('author').innerHTML=x.item(i).childNodes[3].childNodes[0].nodeValue;document.getElementById('price').innerHTML=x.item(i).childNodes[5].childNodes[0].nodeValue;document.getElementById('publisher').innerHTML=x.item(i).childNodes[7].childNodes[0].nodeValue;document.getElementById('img').src=x.item(i).childNodes[9].childNodes[0].nodeValue;}} }
  4. Please check out the following linkhttp://mssportfolio.com/breeds/index.phpLogin with username="Demo" and Password="demo".In firefox,the page gets logged in and not in IE.Can anyone guide me in this issue??
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><script type="text/javascript">function append(){ var a = document.getElementById("fname").value var b = document.getElementById("lname").value document.getElementById("nameval").value=a+'\n'+b;}</script></head><body><form name="samp" method="post">First Name:<input type="text" name="fname" id="fname"/>Last Name:<input type="text" name="lname" id="lname"/>Show Name:<textarea cols="30" rows="6" id="nameval" name="nameval" onfocus="append();"></textarea></form></body></html> in the above code, if i use a text editor in place of text area the append function is not working. Please help me in this issue.
  6. Please check out the following iframe link.<iframe src="http://free.scorespro.com/soccer.php?style=FF020E,F4F4F4,000066,FFFFFF,B9B9B9,FFFFFF,000000,F4F4F4,FFFFFF,tahoma,8,468" frameborder="0" height="3000" scrolling="No" width="468" marginheight="0" marginwidth="0"></iframe>I want to use this link in my web page.Is it possible to edit the contents and remove the ads from this iframe link?Note:i dont have server access to the above mentioned webpage.
  7. hey the problem is only with HTML comment in the second <script /> tag. Now its working fine :)thanks for your efforts..
  8. I am developing a site using PHP and Mysql and facing the following problem.kindly have a look at the following link:http://mssportfolio.com/dress/dressdetails.php?id=3This particular link works fine in Firefox but displaying nothing in IE.The problem is with the written javascript.The javascript is to maximize the image by clicking on that image and to move to the next image by clicking the "Next" button.if i comment that script,the contents without javascript are working fine.How to rectify this issue?Thnx in advance
  9. I want to upload 9 image files and if i click the submit button,all the images should be sent to a folder named "images" and the thumbnail images of those images should be created and sent to a folder named "thumbnails" inside "images" folder.Also,the image path should be sent to the database..Is it possible??if so,pls guide me..
  10. hey thanks for ur effort...i have written that function in other php file and included it in the current registration file as follows:$pw=generatePassword(8);and inserted $pw in against the password field...its working cool
  11. I want to generate password randomly and send to mysql database using PHP..i have got the following function for generating password but doesn't know how to incorporate in my registration form and where to call that function and update password field in database..please help me.. function generatePassword ( $length = 8 ) { // start with a blank password $password = “”; // define possible characters $possible = “0123456789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ!@#$%^&*”; // set up a counter $i = 0; // add random characters to $password until $length is reached while ($i < $length) { // pick a random character from the possible ones $char = substr($possible, mt_rand(0, strlen($possible)-1), 1); // we don’t want this character if it’s already in the password if (!strstr($password, $char)) { $password .= $char; $i++; } } // done! return $password; } where should i call this function generatePassword????
  12. divyac

    File Handling

    HiI have a text file named email.txt which has the following contentstest@test.coma@x.comzooman@deeply.bored.orgb@x.comguess.me@where.ami.nettestmore@test.comI want only the domain part of the listed email ids separately. The code which I tried is as follows<?phpfunction getUniqueDomains($list){$domains = array();foreach($list as $l){$arr = explode("@", $l);$domains = trim($arr[1]);}return array_unique($domains);}$filecontents = file("C:\xampp\htdocs\practice2\file concept\files\email.txt");$returnArray = getUniqueDomains($filecontents);foreach($returnArray as $d){print "$d, ";}?>but I am getting some warning message as shown belowWarning: file(C: mpp\htdocs\practice2ile conceptiles\email.txt) [function.file]: failed to open stream: Invalid argument in C:\xampp\htdocs\practice2\file concept\file_function.php on line 16Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\practice2\file concept\file_function.php on line 8Plz help me out to solve this problem
  13. I have created an id card template using svg and php...The template consists of 2 images namely a back ground image and an image which acts as a place holder to be replaced with the picture of the user..i am able to replace the image in that particular location but unable to drag that image to a particular point i need.There are many drop and drag scripts but not for <image>.Can anyone help me in dragging that image to any desired location???
  14. divyac

    Svg Image Upload

    I have created an Id card template using Inkscape and by using <embed> i am using that svg file in my project(PHP/MySQL).Now if the user clicks on that template,it must become editable and the user must be able to edit the contents and upload his/her pics.Is it possible to replace an existing image and drag that image and keep it wherever the user likes inside the template?How should i do this??Help me.plzzzzzzzz
  • Create New...