User Profile
Collapse
-
Lunarpages has backpedaled rapidly on this matter, and now admit they made a mistake in telling me this. They thought it was a server-side script. So, the .js file is on the server and the browser-side script is in the html page. Everything now works as programmed, so we shall consider this matter as resolved. Thanks to all for the comments. -
Thanks, good idea and I'll be doing just that. I'll let you know what they come up with (if anything). Meanwhile I've posted the web page at www.capsulecomments.com and the .js script is embedded in the web page. If I post the .js script as a separate file and point to it, all is well, but embedded does not work. C'est la vie.Leave a comment:
-
I give up! When I remove the outside javascript, the html page then fails to present the drop down boxes. I am going to bite the bullet and pay Lunarpages the extra monthly fee to let the javascript run on the server. Thanks for all of your assistance, I really do appreciate it.Leave a comment:
-
Sorry, I should have mentioned that the .js code is now within the html <body> and works, with the above exception. It no longer points to an outside .js file.Leave a comment:
-
Update: I have removed the <head> .js script reference, and have changed the previous message coding to:
inputSel.setAtt ribute("onchang e","java_script : if (this.selectedI ndex!=0) {window.locatio n='' + (this.options[this.selectedIn dex].text) + '.html';}");
The change is {window.locatio n='' instead of having 'capsulecomment s' in there. Everything works as it should with one exception. The drop down...Leave a comment:
-
I removed <script type="text/javascript" src="yourFileNa me.js"></script> from the <head> section of the web page, but that made no difference. In the main .js script there is the following.
("id","citySele ct");
inputSel.setAtt ribute("onchang e","java_script : if
(this.selectedI ndex!=0)
{window.locatio n='/capsulecomments .com/' + (this.options...Leave a comment:
-
All three of the drop down boxes worked fine prior to my plugging the .js file into the html body. They showed all the countries and allowed a selection. The code populated the State drop down box and let the user select a city. Normally when a City is selected, a html page opens. If there is no html page for a selected city, nothing further happens when you click on the City name.
I guess the bottom line here is that the .js script...Leave a comment:
-
Leave a comment:
-
Thanks for the suggestion. I did that, but my selection boxes are now non-operational. All three are very small boxes and not selectable. Just to make sure I did this correctly, I opened the .js file in Notepad, and copied the entire contents. I then plugged in the brief script you suggested, with the .js contents pasted in where you indicated. Is it possible that the 'Form' coding needs adjusting? It is:
<form>
<table...Leave a comment:
-
Done, and it works fine. However, I have just been informed that my web site host does not allow JavaScript files, unless I pay extra. I'm now trying to figure out if I can directly convert the entire .js file into either a .html or .php file. Fun, fun, fun...Leave a comment:
-
-
Converting .js to either .php or .html
I have a fully developed JavaScript that includes three databases, plus their handling language. My web host has just informed me that they do not allow .js files. Is it possible to convert this .js file to either all html or to php?
I've attached the .js file as a .txt file for viewing, so as to avoid questions about what is in the JavaScript file. The web site that will call on the file is at www.capsulecomments.com... -
Thank you for pointing me to that script. As you have guessed, my biggest problem is figuring out how to have a script such as that, bring up the data in my Access database (3 separate tables). I'll take your suggestion vis-a-vis the MySQL tutorial, but first I need to have it bring up the Access tables. However, you have given me some good guidance here, and I thank you for that.Leave a comment:
-
I need three sequential drop box menus
Desired result:
Click Select Country and have a drop menu open that lists all of the world's countries.
Select a Country from that list and have another drop menu then open that lists all of the provinces/states in that country.
Select a Province/State from that list and have another drop menu then open that lists the cities in that Province/State.
Selecting a City will open a new web page with...
No activity results to display
Show More
Leave a comment: