I ve managed to setup a local MySQL database (after LOTS of work) and now I want to put it online. My question: Where would my MySQL database be stored- on my computer or on an external server?
For example- I host my sites with NAThosting - where I use a FTP program to upload files. Those files are then stored on their servers somewhere. My locals files have no influence on the pages until they re uploaded and then stored where ever. When I want to use a database- will that be stored on their computers/servers much like my HTML pages or will the server need to be permanently running on my home CPU?
Hi. Basically I have a text box and and button. I would put a text on the text box and when I press the button- I want it to search for that word in my xml file. It would then be displayed in the same page.
My problem is that I m only able to search for elements/nodes but not the text itself. My javascript is able to load the xml file. I ve been searching online for a few days and I can t find anything. Please help- thank you
I have been trying to watch some episodes on abc.com and they will never come up- all it says is javascript void at the bottom left hand side. I have enable my javascript and also disabled my pop up blocker. I have no clue what to do or to fix it. I have been using mozilla firefox but have also tried internet explorer as welland it that still didn t work. Is there anyone who knows how to fix this problem...
the youtube asked me to turn on the JavaScript or upgrade the flash
how can i turn on the java script
i have a JavaScript code that shows the date and another that swaps images. Only one can work at a time. Any reasons? thanks a lot.
rolland hi- i think i failed to explain my point well: when i put more than one javascript- only one can work. in my case- either the date will show or the imgaes swap- cannot do both- as long as i use more than one code- all others are screwed up
Hi Colanth- how is your day?
thanks a lot for offering to help. The scripts are pasted below:
Script 1: Shows date
window.onload = initDate;
function initDate() {
var dayName = new Array("Sunday"- "Monday"- "Tuesday"- "Wednesday"- "Thursday"- "Friday"- "Saturday");
var monName = new Array("January"- "February"- "March"- "April"- "May"- "June"- "July"- "August"- "September"- "October"- "November"- "December");
var now = new Date();
var dtString = dayName[now.getDay()] + "- " + monName[now.getMonth()] + " " + now.getDate();
document.getElementById("dtField").innerHTML = dtString;
}
Script 2: rotates images
window.onload = rotate;
var adImages = new Array("pic1.gif"-"pic2.gif"- "pic3.gif");
var thisAd = 0;
function rotate() {
thisAd++;
if (thisAd == adImages.length) {
thisAd = 0;
}
document.getElementById("stories").src = adImages[thisAd];
setTimeout("rotate()"- 5 * 1000);
}
I saved the two files as script1.js and script2.js as external files and linked tothem as:
<script type="text/javascript" src=path to script1.js>
</script>
<script type="text/javascript" src=...path to script2.js>
</script>
between the head HTML tags.
I think the scripts are correct as they are from a book :-) they also work when i try them separately.
Thanks so much.
ah Yahoo does not show everything- i can see some dots in the scripts!
mike thanks for the comment- the script is from a book- not mine.
the scripts work separately- the problem i have is that when both codes are included on the web site only one works.
each code when tested on its own works fine.
mike thanks for the links as well. thoes tutorials are my favorites. I think you re right- when i use the following simple script- it works- ie both codes work:
<script type="text/javascript" language="javascript">
document.write(Date());
</script>
i probably put too much fath in the book :-))
faith not fath:-)
like when i press download it takes me to another page!! i tried so many time and it wont let me download either one!! but is not letting me download... like what do i do? i need to download because i cant see videos on youtube or is not letting me use the any links on myspace.. please help!!
thank you
No comments:
Post a Comment