Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Publisher / Web Design / October 2005

Tip: Looking for answers? Try searching our database.

Java scrip

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Don Schmidt - 29 Oct 2005 03:01 GMT
Publisher 2000
Windows XP

The test site I'm attempting to make the drop down menu is:
http://www.pacifier.com/~dschmidt/osia_vancouver_usa/

Publisher MVP folks what am I doing wrong? Or better yet what do I do to
repair this Java script? The sites with LCID= don't come up.
Below script is the error message.

Thanks in advance.

Signature

Don
Vancouver, USA

<script language="JavaScript">
function goToPage(url)
{
if (url != "")
{
window.open(url);
}
}
</script>

<form name="dropdown">
<label>Websites of O.S.I.A.
<select name="list" accesskey="W">
<option selected>Please select one</option>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=1/" >Beaverton
Lodge #2645</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=1/>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=3/" >Bella
Rosa Portland
#2734</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=3/>
<option value="http://www.iinet.com/~k1294lodge/" >Camelia-Columbo Lodge
1294</option<http://www.iinet.com/~k1294lodge//>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=13/" >Mille
Cugini Lodge
#2659</option<ttp://www.osiaglnw.org/localunitsite.cfm?LCID=13/>
<option value="http://www.vanusa.org/" >The Wine
Cellar</option<http://www.vanusa.org/>
</select>
<button onclick="goToPage(document.dropdown.list.options(
document.dropdown.list.selectedIndex).value)">Go</button>
</form>

Error Occurred While Processing Request
     Error Diagnostic Information
     ODBC Error Code = 37000 (Syntax error or access violation)

     [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing
operator) in query expression 'LCId = 1/'.

     The error occurred while processing an element with a general
identifier of (CFQUERY), occupying document position (2:1) to (2:60).

     Date/Time: 10/28/05 18:58:01
     Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET
CLR 1.1.4322)
     Remote Address: 198.145.73.7
     Query String: LCID=1/

DavidF - 29 Oct 2005 13:57 GMT
Hey Don,

I am not an MVP, but perhaps the following script would allow you to racket
it back to Defcon 1. Make your HTML box wider on your Pub page if you want
the label to the left of the drop down box, or change

<label>Websites of O.S.I.A.

to

<label>Websites of O.S.I.A.<p>

if you want the label above the drop down box, and insert the modified code:

<script language="JavaScript">
function goToPage(url)
{
if (url != "")
{
window.open(url);
}
}
</script>

<form name="dropdown">
<label>Websites of O.S.I.A.
<select name="list" accesskey="W">
<option selected>Please select one</option>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=1" >Beaverton
Lodge #2645</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=1>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=3" >Bella Rosa
Portland #2734</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=3>
<option value="http://www.iinet.com/~k1294lodge/" >Camelia-Columbo Lodge
#1294</option<http://www.iinet.com/~k1294lodge//>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=13" >Mille
Cugini Lodge
#2659</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=13>
<option value="http://www.vanusa.org/" >The Wine
Cellar</option<http://www.vanusa.org/>
</select>
<button
onclick="goToPage(document.dropdown.list.options(document.dropdown.list.sele
ctedIndex).value)">Go</button>
</form>

DavidF

> Publisher 2000
> Windows XP
[quoted text clipped - 59 lines]
>       Remote Address: 198.145.73.7
>       Query String: LCID=1/
DavidF - 29 Oct 2005 14:33 GMT
Hummm. Just to double check, I tested the code I just posted, and it doesn't
work after being wrapped in the message. When I copied your code and pasted
it into the Insert HTML code fragment box, I 'unwrapped' it so I could see
each option value on one line. I then removed the forward slash after each
address that used LCID, made a couple typo corrections, and copied and
posted the code. Some where along the line, I went back to defcon 5. If the
following 'wrapped' code doesn't work for you, then just make the changes I
described above.

<script language="JavaScript">
function goToPage(url)
{
if (url != "")
{
window.open(url);
}
}
</script>

<form name="dropdown">
<label>Websites of O.S.I.A.
<select name="list" accesskey="W">
<option selected>Please select one</option>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=1" >Beaverton
Lodge #2645</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=1>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=3" >Bella
Rosa Portland
#2734</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=3>
<option value="http://www.iinet.com/~k1294lodge/" >Camelia-Columbo Lodge
#1294</option<http://www.iinet.com/~k1294lodge//>
<option value="http://www.osiaglnw.org/localunitsite.cfm?LCID=13" >Mille
Cugini Lodge
#2659</option<http://www.osiaglnw.org/localunitsite.cfm?LCID=13>
<option value="http://www.vanusa.org/" >The Wine
Cellar</option<http://www.vanusa.org/>
</select>
<button onclick="goToPage(document.dropdown.list.options(
document.dropdown.list.selectedIndex).value)">Go</button>
</form>

DavidF

> Hey Don,
>
[quoted text clipped - 38 lines]
> </select>
> <button

onclick="goToPage(document.dropdown.list.options(document.dropdown.list.sele
> ctedIndex).value)">Go</button>
> </form>
[quoted text clipped - 66 lines]
> >       Remote Address: 198.145.73.7
> >       Query String: LCID=1/
Don Schmidt - 31 Oct 2005 03:13 GMT
I just got back from a Grand Lodge Council meeting in Wenatchee WA.  Your
script below was a welcome sight and works great. I thank you and 'hope I
can repay the help.

Don
Vancouver, WA

> Hummm. Just to double check, I tested the code I just posted, and it
> doesn't
[quoted text clipped - 164 lines]
>> >       Remote Address: 198.145.73.7
>> >       Query String: LCID=1/
DavidF - 31 Oct 2005 14:00 GMT
Glad it worked out and glad I retested the first effort...

DavidF

> I just got back from a Grand Lodge Council meeting in Wenatchee WA.  Your
> script below was a welcome sight and works great. I thank you and 'hope I
[quoted text clipped - 97 lines]
> >> </select>
> >> <button

onclick="goToPage(document.dropdown.list.options(document.dropdown.list.sele
> >> ctedIndex).value)">Go</button>
> >> </form>
[quoted text clipped - 69 lines]
> >> >       Remote Address: 198.145.73.7
> >> >       Query String: LCID=1/

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.